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

Issues with BAPI_ACC_DOCUMENT_CHECK

Former Member
0 Likes
1,821

Hello Guys,

                  I am having Issues with BAPI_ACC_DOCUMENT_CHECK. The error which it is throwing is:

G/L Account ______ is not defined in the chart of accounts ___.

Please help me solve this error and also please tell me where exactly in that BAPI do we need to pass OFFSET_GLACCOUNT.

Note  There was an old thread regarding this issue but the solution link given over there is not working, so I had to open this thread.

Please help me out regarding this problem.

Thanks in Advance.

Message was edited by: Matthew Billingham - removed certain text

14 REPLIES 14
Read only

Former Member
0 Likes
1,621

Hi Anirban,

G/L accounts are defined for Chart of Accounts in SAP. Please check the entries in table SKA1 and only use the available combination of entries while passing to the BAPI.

BR,

Ankit.

Read only

0 Likes
1,621

Hi in the above BAPI i.e BAPI_ACC_DOCUMENT_CHECK where should I pass the Offset_GLAccount i.e which is used for balancing line no 999. Please tell me and help me find solutions for this error...??

Read only

0 Likes
1,621

What happened is that I passed an Excel file containing more than 999 lines. Now Offset_GLAccount is used to balance line no 999...something like that. The Offset_GLAccount is there but still the BAPI is throwing error that G/L Account is not defined. Please help on this.

Read only

0 Likes
1,621

Hi Anirban,

This is a standard SAP constraint. It happens because of field length is 3 characters for BUZEI field in BSEG table. A thorough code example has been provided at this link,

http://wiki.sdn.sap.com/wiki/display/ABAP/Posting+more+than+999+records+through+BAPI

Please read and ask if questions pertain.

BR,

Ankit.

Read only

Read only

p291102
Active Contributor
0 Likes
1,621

Hi,

Could you please tell me what you are trying to do with this BAPI?

Do you want to do with this g/l account parking or posting? You can acheive  by using this bapi only posting not parking.

If you want to do parking you have to use the FM PRELIMINARY_POSTING_FB01

if you  are a technical person and you are running any z program while executing you used to get functional error only even-though having technical

problem also. So the error doesn't make sense.

If another case if you are uploading the excel file means you are not maintaining 10 digit g/l acc nos also it used to come.

Regards,

Sankar M

Read only

Jay_Kamdar
Participant
0 Likes
1,621

it is a standard and valid error.

change the contents of the excel with valid values and upload an excel sheet having less than 999 lines  .

Read only

Former Member
0 Likes
1,621

Thanks all for trying to helping me out...my issue is solved now...

Thanks & Regards

Anirban

Read only

0 Likes
1,621

Hi Anirban,

Please close this thread.

BR,

Ankit.

Read only

0 Likes
1,621

Hi Ankit how to close it..??

Read only

0 Likes
1,621

Hi,

when replying to your own thread you get two radio buttons, one for not answered and another for answered. chose the answered radio button that all.

Cheers,

Arindam

Read only

Former Member
0 Likes
1,621

I am not getting any such link for ANSWERED and NOT ANSWERED. I would request the concerned moderator to close the Thread.

Thanks & Regards

Anirban

Read only

0 Likes
1,621

Hi Moderators,

Please assist .... Thanks.

BR,

Ankit.

Read only

0 Likes
1,621

it has already been marked as assumed answered by you.

the thread has been closed.