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

BAPI_ACC_DOCUMENT_POST order number issue

Former Member
0 Likes
1,912

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,242

Hi

Probably u need to transfer the leading zero to, so transfer 0000400000 instead of 400000

Max

4 REPLIES 4
Read only

Former Member
0 Likes
1,243

Hi

Probably u need to transfer the leading zero to, so transfer 0000400000 instead of 400000

Max

Read only

0 Likes
1,242

DOH!!!

Read only

0 Likes
1,242

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

Read only

Former Member
0 Likes
1,242

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:

http://sapr3.blog.co.in/?p=36