‎2006 Feb 22 8:22 AM
hi,
i want to create a function module with some fields.when i activated it give some errors for
netpr,menge,wemng fields(currency, quantity fields).error is it asks for reference fields.
please send me solution for it.
sreenu.
‎2006 Feb 22 8:25 AM
Hi sreenivasa,
1. This usually happens in table
creation (and not FM)
2. I tried to create a FM
and it works fine.
3. In import parameter
MENGE LIKE MENGE
regards,
amit m.
‎2006 Feb 22 8:29 AM
Hi,
<u>REf Table REf field</u>
<b>For NETPR</b>
VBAP WAERK
<b>For wemng:</b>
RBDRSEG MEINS
<b>For menge</b>
RBDRSEG MEINS
But this is usually needed whule creating a table only.
Best Regards,
Anjali
‎2006 Feb 22 8:33 AM
Hi,
There is no separate method for declaring currency/Quantity fields if you are using them in parameters for FM.It won't show any error.
What is the error you are getting?
‎2006 Feb 22 8:46 AM
hi,
declare ur curr and quan field like this
WEMNG TYPE WEMNG - curr field
u wont get any error in the function module.
‎2006 Feb 22 9:09 AM
Hi Sreenu,
While creating CURRENCY/QUANTITY fields in the DataBase Table, you have to enter a REFERENCE TABLE and a REFERENCE FIELD to the field.
For that, after entering the field name and the data type in the correcponding columns, you have to place the cursor on the data type of the required field and click the CURRENCY/QUANTITY FIELDS tab. You will find two columns called REFERENCE TABLE and a REFERENCE FIELD.
you have to enter a reference table in which a currency/quantity field is used and a reference field which is a currency/quantity field in that table.
For Example, below is the table details.
FIELD DATATYPE LENGTH DEC.PLACES REF.TABLE REF.FIELD
1.SNO CHAR 5
2.AMOUNT CURR 10 2 T001 WAERS
3.NOS QUAN 5 KNA1 /VSO/R_PAL_UL
Here Field 2(AMOUNT) is a CURR field whose Ref. Table is T001 and Ref. Field is WAERS and Field 3(NOS) is a QUAN field whose Ref. Table is KNA1 and Ref. Field is /VSO/R_PAL_UL.
Hope this will help you.
Regards,
Vaitheeswaran