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

Doubt about How to test the BAPI

Former Member
0 Likes
2,039

Hi Experts,

I have one doubt. How to test one BAPI. I have BAPI_DOCUMENT_SAVEOBJECTLINKS

I am using this BAPI to attach the document to the material. I opened se37 .Here how to test the BAPI wether the BAPI is Suitable to attach the document or not. Please let me know . Its very urent.

Helpful answers may be reward points

Regards

Khanna

Hi Experts,

I have one doubt. How to test one BAPI. I have BAPI_DOCUMENT_SAVEOBJECTLINKS

I am using this BAPI to attach the document to the material. I opened se37 .Here how to test the BAPI wether the BAPI is Suitable to attach the document or not. Please let me know . Its very urent.

Helpful answers may be reward points

Regards

Khanna

8 REPLIES 8
Read only

Former Member
0 Likes
1,676

Hi,

it is similar to the execution of any fun module.

Enter the BAPI Name in se37 tcode and press F8.

then pass the following parameters to it (depending upon the requirement you have).

DOCUMENTTYPE

DOCUMENTNUMBER

DOCUMENTPART

DOCUMENTVERSION

result will be displayed in OBJECT links.

reward if useful

regards,

Anji

Read only

0 Likes
1,676

Is this BAPI is correct to attach a document to the material presented in the r/3 system BAPI_DOCUMENT_SAVEOBJECTLINKS.

Regards

Khanna

Read only

0 Likes
1,676

Is this BAPI is correct to attach a document to the material presented in the r/3 system BAPI_DOCUMENT_SAVEOBJECTLINKS.Please let me know

Regards

Khanna

Read only

Former Member
0 Likes
1,676

It can be tested as general fm.

Open it in SE37, and execute (F8),

pass the relavent input values and press F8.

Read only

Former Member
0 Likes
1,676

some BAPI's will not generate Test Envinorment .

Regards

Prabhu

Read only

Former Member
0 Likes
1,676

Hi Khanna,

You can use These t-codes and find your BAPI and test.

BAPI,SE37,se80.

Regards,

Ramganesan K.

Read only

vimal_kumar4
Explorer
0 Likes
1,676

Hi,

First you have to create a new document using CV01N tcode. Here leave the document field as blank, document type value can be choosen from F4 help and document part and document version can be given as 0. Press enter and add the necessary values and save. It will then create a new document. Using that document go to SE37 and execute the BAPI. In the BAPI also you need to give the document no that is generated, and document type, document part and document version of the newly generated document. In the OBJECTLINKS table of the BAPI give the material number and other details. Please see the function module documentation of this BAPI also.

Please reward points if it helps.

Regards

Vimal

Read only

Peter_Inotai
Active Contributor
0 Likes
1,676

You can execute via SM37, however what you can get there is some error messages, if something is missing or incorrect.

To be able to generate a document you need also call FM BAPI_TRANSACTION_COMMIT.

So you can write a small program to test this FM, with calling this FM and then BAPI_TRANSACTION_COMMIT. If it works fine you can put this part of code to your final program.

Peter