2005 Dec 16 11:41 AM
2005 Dec 16 11:49 AM
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
2005 Dec 16 11:51 AM
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
2005 Dec 16 11:53 AM
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
2005 Dec 16 12:16 PM
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