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

How to test the bapi (BAPI_ACC_DOCUMENT_POST ) in se37.

Former Member
0 Likes
5,244

Hi Abapers,

                  I want to test the  bapi  BAPI_ACC_DOCUMENT_POST in se37 i have given the necessary  inputs to the fields but in the results table it is showing the  errors . It would be helpfull if anyone can give suggestions.

regards ,

Ajit.P.

Hi Abapers,

                  I want to test the  bapi  BAPI_ACC_DOCUMENT_POST in se37 i have given the necessary  inputs to the fields but in the results table it is showing the  errors . It would be helpfull if anyone can give suggestions.

regards ,

Ajit.P.

8 REPLIES 8
Read only

Former Member
0 Likes
3,468

Can you post error message /number ?

Regard's

Smruti

Read only

Former Member
0 Likes
3,468

This message was moderated.

Read only

Former Member
0 Likes
3,468

Hi Ajit,

If it is giving errors you need to clear those errors no other go.. Also each system config is different so it will be difficult to know what could be reason. Also unless you post what errors you are getting how can you expect a solution.

Mostly a BAPI fails if data is missing. Check if you are passing all necessary parameters, generally in foreground the data needed is less and BAPI you need to pass all the data.

Regards

Read only

Former Member
0 Likes
3,468

Hi Smruthi ,

             i am getting the above error.

obj-typ = bkpff i was giving.

regards

Ajit P.

Read only

0 Likes
3,468

Hi Smruthi ,

             i am getting the above error.

obj-typ = bkpff i was giving.

regards

Ajit P.

Read only

0 Likes
3,468

Hi Ajith,
Before testing one BAPI or FM, make sure that you know what are the mandatory input fileds.

seems that, in the BAPI you mentioned, the import parameter DOCUMENTHEADER' and the table 'CURRENCYAMOUNT' are mandatory items.
make sure you enter the correct input to retrieve the output

Read only

0 Likes
3,468

Hello,

As specified by Sebin, check all the mandatory fields needed. This can be done by looking up the function  in transaction BAPI.

Also, if you want to test it in SE37, don't forget that you will need to call BAPI_TRANSACTION_COMMIT afterwards. This is possible by using a test sequence.

menu Function Module -> Test -> Test sequence

write in the list of modules then execute. It is not very friendly so, once you execute the function module and see the results, hit BACK to execute the next one.

Hope this helps.

Read only

0 Likes
3,468

Hi ,

Check once all Import and Tabular Parameter properly filled "?", i mean all mandatory Parameter's.

Regard's

Smruti