2007 Apr 05 7:29 AM
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
2007 Apr 05 7:36 AM
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
2007 Apr 05 7:39 AM
Is this BAPI is correct to attach a document to the material presented in the r/3 system BAPI_DOCUMENT_SAVEOBJECTLINKS.
Regards
Khanna
2007 Apr 05 8:17 AM
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
2007 Apr 05 7:36 AM
It can be tested as general fm.
Open it in SE37, and execute (F8),
pass the relavent input values and press F8.
2007 Apr 05 7:38 AM
some BAPI's will not generate Test Envinorment .
Regards
Prabhu
2007 Apr 05 7:45 AM
Hi Khanna,
You can use These t-codes and find your BAPI and test.
BAPI,SE37,se80.
Regards,
Ramganesan K.
2007 Apr 05 7:47 AM
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
2007 Apr 05 7:52 AM
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