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: 

how to pass quantity and currency in bdc.

Former Member
0 Kudos
892

hi

how to pass quantity and currency in bdc.

advance in thnx.

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos
249

Declare the Quantity/Amount field as flat data type of length = the output length of the original Quantity/Amount field.

and pass the same variable in building the BDC_Data internal table.

EG:

Data: v_amt(17),

v_quan(15),

v_curr(3).(Give the length of the data type curr)

Regards,

Ravi

Former Member
0 Kudos
249

USE a variable V_DMBTR Like dmbtr, "currency field

MOVE ITAB-CURR_VALUE TO V_DMBTR.

THEN use V_DMBTR where you want to populate DMBTR value.

thanks

Former Member
0 Kudos
249

Hi

you should transfer the same format if you run the trx online, so the easer solution can be to write the value in char field and then transfer it to bdc:

DATA: STRING(15).

WRITE: ITAB-AMOUNT CURRENCY ITAB-CURRENCY TO STRING.

BDC-FVAL = STRING.

WRITE: ITAB-QUANTITY UNIT ITAB-UNIT TO STRING.

BDC-FVAL = STRING.

mAX

Former Member
0 Kudos
249

Hi,

Declare character fields of the similar length and write the actual quantity and currency fields to those character fields and finally pass those character fields to the BDC