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

Problem with Bapi 'BAPI_ACC_DOCUMENT_POST'

Former Member
0 Likes
646

Hi All,

The Bapi 'BAPI_ACC_DOCUMENT_POST' was used in a program at my work place, which is giving some errors. For example when the cost center 2790 was used at the item level, it gave the following error:

Cost center 1000/2790 does not exist on 07/24/2007.

But when I try to do the G/L posting directly with the BAPI, specifying all the input parameters the same as given in the program, it is doing it successfully. So, I am confused to know what exactly could the problem be as the direct BAPI is doing the posting but not, when the same BAPI is called in a program. Can anyone know the solution to my problem??

Thanks in Advanace.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
608

Hi,

Just an idea - did you remember to put the leading zeroes in your master data fields (i. e. 0000002790 and not 2790)? If not, use CONVERSION_EXIT_ALPHA_INPUT or similar method to inert leading zeroes.

Hope this helps (please reward me if it does),

Joerg

4 REPLIES 4
Read only

Former Member
0 Likes
609

Hi,

Just an idea - did you remember to put the leading zeroes in your master data fields (i. e. 0000002790 and not 2790)? If not, use CONVERSION_EXIT_ALPHA_INPUT or similar method to inert leading zeroes.

Hope this helps (please reward me if it does),

Joerg

Read only

Former Member
0 Likes
608

Hi,

BAPI check dependecies of configiration, one thong i would sugget you

goto SE37->give BAPI name-> DISPLAY-> See Documetation

Reward if useful!

Read only

Former Member
0 Likes
608

hi,

may be this cost center got something to do with the current date.... check with that.

i am not sure.. but may be this is not open for the current period.

thansk

mahesh

Read only

0 Likes
608

Hi Mahesh,

When I did the G/L posting directly with the BAPI, it didnot show any errors and did the posting successfully. And the cost center was valid in the given period.

Thanks.

Mohan