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

BDC session for MR21

SujeetMishra
Active Contributor
0 Likes
480

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

3 REPLIES 3
Read only

Former Member
0 Likes
419

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.

Read only

Former Member
0 Likes
419

Hi,

Better use BAPI BAPI_M_REVAL_CREATEPRICECHANGE

Thanks,

Asit Purbey.

Read only

SujeetMishra
Active Contributor
0 Likes
419

solved.thanks