‎2008 Nov 20 7:42 PM
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,
‎2008 Nov 20 8:28 PM
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.
‎2008 Nov 20 8:28 PM
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.
‎2008 Nov 20 9:48 PM