2007 Aug 15 1:32 PM
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.
2007 Aug 16 11:46 AM
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
2007 Aug 15 4:23 PM
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
2007 Aug 16 7:12 AM
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
2007 Aug 16 7:17 AM
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.
2007 Aug 16 11:46 AM
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