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

how can create a function module for currency and quantity fields

Former Member
0 Likes
800

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.

5 REPLIES 5
Read only

Former Member
0 Likes
681

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.

Read only

Former Member
0 Likes
681

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

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
681

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?

Read only

Former Member
0 Likes
681

hi,

declare ur curr and quan field like this

WEMNG TYPE WEMNG - curr field

u wont get any error in the function module.

Read only

Former Member
0 Likes
681

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