‎2009 Apr 22 6:03 AM
Hi i have to create one BDC program session method.
but problem is file is of txt format.
like below :
06900000000009066716000000002120700100
which is as below :
Plant Article Price, Dec 2 Price unit
0690 000000000906671600 00000021207 00100
Note : the price is 212,07 a decimal sign is not included
so how can i seperate this above.
and if possible then plase send me sample code for BDC session method.
Thanks in advance,
Sujeet
Edited by: Sujeet Mishra on Apr 22, 2009 7:04 AM
‎2009 Apr 22 6:10 AM
HI,
If they are sending the amount with the decimals places then you need to divide with 100.
move this field to a currency field.
try this code.
data: char(20) type c .
data: amount type dmbtr .
START-OF-SELECTION.
char = '00000021207'.
move char to amount.
amount = amount / 100.
clear: char.
write amount to char.
write:/ amount, char.
‎2009 Apr 22 6:43 PM
Hi,
Better use BAPI BAPI_M_REVAL_CREATEPRICECHANGE
Thanks,
Asit Purbey.
‎2009 Apr 28 7:57 AM