Application Development and Automation 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: 
Read only

reference field in the smartform

Former Member
0 Likes
2,914

hello,

can you help me to specify reference field in smartform.

That means,

i had created the structure in which there is a field VEMNG for which the reference field is VEMEH from reference table VEPO.

Then i had written the program and created the internal table of type that structure and call the functional module which is calling the smartform by passing the internal table.

Now after executing it is giving runtime error as VEMNG is not present in the smartform. That means we have to specify the reference field in the smartform for that field.

i had specify in the smartform-global defination-currency/qty field as

VEMNG VEMEH QUAN as field name, reference field and data type.

But the error has come while doing syntaz check in smartform and the error is :- Global Definitions:Field "BRGEW" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .

Please help me to resolve this error in the smatform.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,908

Hi ,

If you r passing quantity and currency fields to smartforms then in

Globaldefinitions-> currency fields

u have to specify the fields as well as its uniot field .

For example u r using field erfmg or menge then u have to use

fieldname = it_itab-erfmg and reference field as it_mseg-erfme

field name = it_itab-menge and reference field as it_mseg-meins

and change the data type to curr or quan as required .

Regards

hello,

can you help me to specify reference field in smartform.

That means,

i had created the structure in which there is a field VEMNG for which the reference field is VEMEH from reference table VEPO.

Then i had written the program and created the internal table of type that structure and call the functional module which is calling the smartform by passing the internal table.

Now after executing it is giving runtime error as VEMNG is not present in the smartform. That means we have to specify the reference field in the smartform for that field.

i had specify in the smartform-global defination-currency/qty field as

VEMNG VEMEH QUAN as field name, reference field and data type.

But the error has come while doing syntaz check in smartform and the error is :- Global Definitions:Field "BRGEW" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .

Please help me to resolve this error in the smatform.

4 REPLIES 4
Read only

Former Member
0 Likes
1,908

Hi,

for quantity better use character fields rather than the quantity field speciifed,this will solve ur probs.

Reward points if helpful.

Thanks

Naveen khan

Read only

Former Member
0 Likes
1,908

Hi.......

You have specify Reference field in smart forms. Then specify Global table name and then reference field name. For eg. suppose your reference field name is ERFMG and your global table name is GTAB. Then specify GTAB-ERFMG and specify Reference field as QUAN Or CURR........May this will helpfull.

Pradip Pawar.

*******Plz dont forgot to give points if ans is valuable

Read only

Former Member
0 Likes
1,908

Hi................In Smart form Specify The field of Global table as a reference field.

For Ex. Suppose Field name is ERFMG And global table name is GTAB. Then Specify GTAB-ERFMG as a reference QUAN or CURR. Dont specify only field name.

Pradip Pawar.

Read only

Former Member
0 Likes
1,909

Hi ,

If you r passing quantity and currency fields to smartforms then in

Globaldefinitions-> currency fields

u have to specify the fields as well as its uniot field .

For example u r using field erfmg or menge then u have to use

fieldname = it_itab-erfmg and reference field as it_mseg-erfme

field name = it_itab-menge and reference field as it_mseg-meins

and change the data type to curr or quan as required .

Regards