Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Currency field of a Z-table in Smartform

Former Member
0 Kudos

Hi,

I have created a Ztable with a currency field NETVAL for which i provided Reference Table as VBAP and Reference field as WAERK. When calling a smartform from a module pool program, i am getting an error that ''Reference field 'IMAT-NETVAL' is unknown". What should i add in smartform for that curr field to be displayed in smartform???

Please help.


1 ACCEPTED SOLUTION

ramkumar007
Participant

Hi Rakesh ,

can you please check this.

Regards & Thanks

Ram

11 REPLIES 11

arivazhagan_sivasamy
Active Contributor
0 Kudos

Please maintain this field IMAT-NETVAL in Global definitions in currency/quan fields.

Arivazhagan S

0 Kudos

Global Definitions>>Currency/Quan fields>

FieldName              Reference Field                Data Type

IMAT-NETVAL                                                     CURR

What should i write in its Reference field? Because in the ztable, I have given NETVAL's Reference field as WAERK  and its Reference table as VBAP.....

0 Kudos

Use VBAP-WAERK, so declare VBAP in global definition and insure that this data is read from database when required.

Regards,

Raymond

Former Member
0 Kudos

you may have to give the reference in 'currency/qty' tab of  'global definitions' of the smart form

sivaganesh_krishnan
Contributor
0 Kudos

Hi rakesh,

in the global definiton you will find quantity and reference field tab.. declare the reference table as below

former_member209119
Active Participant
0 Kudos

Hi,

By  IMAT-NETWEL, you mean the internal table field of your z-table type...right?

Have you defined your internal table IMAT as an import parameter in Smartform?

If not then follow the below path:

Global Settings (on left side of SF) --> form interface --> Import

Hope it should help.

Also delete the NETWEL field from z-table, save and activate.

Now again add the field NETWEL with ref table and field and activate. Try this once.

Thanks!

Former Member
0 Kudos

Hi

In smartform, gloabl definition -> currency / Quant fields tab, you could give

field name - Imat-netval and reference field as vbak-waers.

Please give and let me know.

Best Regards,
Abirami

Former Member
0 Kudos

Hi Rakesh,

Please add IMAT-NETVAL as shown below (Choose Currency drop down) -

BR.

ramkumar007
Participant

Hi Rakesh ,

can you please check this.

Regards & Thanks

Ram

0 Kudos

hi Ramkumar,

Thanks for the help in form of print previews. It worked.

Regards,

Rakesh Nair

raymond_giuseppi
Active Contributor
0 Kudos

You question is not coherent, you wrote to have created a Ztable-NETVAL field with reference currency field VBAP-WAERK, but you error is a reference field IMAT-NETVAL, so another field (should not be a cucy currency code field ?)

Regards,

Raymond