‎2009 Jul 27 5:23 PM
Hi Forums!
I am having an issue with this bapi... The user can post to the GL with the ORDER ID of 400000 with the account I am using.
However, when I try to accomplish this with the BAPI I get the error
E KO 104 Order 400000 does not exist
I am assigning the order value to
gt_gl_item-orderid = pcard_post_rec-zlsapor.
Which in the structure is BAPIACGL09-AUFNR
any assistance greatly appreciated.
‎2009 Jul 27 5:27 PM
Hi
Probably u need to transfer the leading zero to, so transfer 0000400000 instead of 400000
Max
‎2009 Jul 27 5:27 PM
Hi
Probably u need to transfer the leading zero to, so transfer 0000400000 instead of 400000
Max
‎2009 Jul 27 5:31 PM
‎2009 Jul 27 5:34 PM
Hi
The field AUFNR has the convertion routine ALPHA to convert input/output format, so u can use the fm CONVERSION_EXIT_ALPHA_INPUT in order to add the leading zero
Max
‎2009 Jul 27 5:30 PM
Refer:
http://abap.wikiprog.com/wiki/BAPI_ACC_DOCUMENT_POST
BAPIACGL09-AUFNR is the Order Number
Make sure you use Conversion exit for the Order Number.
Refer: