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

LSMW using BAPI

Former Member
0 Likes
423

Hi all,

I am using BAPI in LSMW to update profit center on sales order. It all works and gets data updated with data in this format vbeln(10),item(6),profit center(10)

0003691960,000030,0357602275 sales order,item,profit center.

but if is just give 3691960,30,357602275. IDOC is not posted and i get a error message.

I have created query SQ01 to get list output of sales order,item and profit center.Is there anywhere in LSMW i can write a code to allow this,if so how? I have a mass data to be updated. I think i am clear. My appologise if inappropriate.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
385

Yes Vinay,

you can use the second type of data also but make sure one thing... whether you put the leading zeros or not you should convert the vblen number what ever you are getting from the input file with the CONVERSION_EXIT_ALPHA_INPUT fm. It will add the leading zeros once it come across the input value.

IF any of the fields have the conversion routine then its better to use those routine to convert the input value to the proper SAP format value.

Try this, if you still get the problem let me know.

2 REPLIES 2
Read only

Former Member
0 Likes
386

Yes Vinay,

you can use the second type of data also but make sure one thing... whether you put the leading zeros or not you should convert the vblen number what ever you are getting from the input file with the CONVERSION_EXIT_ALPHA_INPUT fm. It will add the leading zeros once it come across the input value.

IF any of the fields have the conversion routine then its better to use those routine to convert the input value to the proper SAP format value.

Try this, if you still get the problem let me know.

Read only

0 Likes
385

Hey Naveen,

Thanks it works.