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 in BAPI

Former Member
0 Likes
603

Hi

I have created new report to post document using bapi BAPI_ACC_DOCUMENT_POST.

When I test bapi, document was posted successfully.

In report I got 2 errors.

Vendor abc is not defined in company code 123. (when i check xk03, vendor abc is already defined in CC 123)

G/L account 60000000 is not defined in chart of accounts HMRP .

I didnt get any errors in BAPI. Error is coming in Report only. Pls help me out.

Thanks

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
574

Hello Kumar

I assume that you have tested your BAPI using SE37. Since you are working then with the SAPGUI any alpha-conversion (= leading zeros are added by default) is done automatically. This may explain the problem with the vendor when running the report (Where are the data coming from for the report? File?).

Regards

Uwe

4 REPLIES 4
Read only

uwe_schieferstein
Active Contributor
0 Likes
575

Hello Kumar

I assume that you have tested your BAPI using SE37. Since you are working then with the SAPGUI any alpha-conversion (= leading zeros are added by default) is done automatically. This may explain the problem with the vendor when running the report (Where are the data coming from for the report? File?).

Regards

Uwe

Read only

0 Likes
574

Hi Uwe

Thanks for your reply.

Data is coming from excel file.

I am passing the data same as se37 testing.

Thanks

Kumar

Read only

0 Likes
574

Uwe meant to see if abc should not be passed but should be passed like 0000000abc, alpha convertion, before sending to BAPI

Read only

0 Likes
574

HI Uwe

Thanks a lot. My issue is solved

Thanks