cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_DOCUMENT_CHANGE2: delete additional data of a document info record??!

Former Member
0 Kudos

dear sdn community,

I want to delete a special additional value of a document info record (SAP DVS) with the BAPI u201CBAPI_DOCUMENT_CHANGE2u201D but I donu2019t succeed. I think Iu2019m doing it wrong with the parameters.

Screenshot of my test functions moduleu2019s test data:

http://www0.xup.in/exec/ximg.php?fid=42099566

Detail Screenshot of u201Cdocumentdatau201D:

http://www0.xup.in/exec/ximg.php?fid=10728834

Detail screenshot of u201Ccharacteristicvaluesu201D:

http://www0.xup.in/exec/ximg.php?fid=20908978

Detail screenshot of u201Cclassallocationsu201D:

http://www0.xup.in/exec/ximg.php?fid=73273237

Screenshot of the document info record:

http://www0.xup.in/exec/ximg.php?fid=12555016

The BAPI doesnu2019t return any message and the value isn't deleted...

Could you help me?

Best regards,

Marius Klaus

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If you test it from SE37, you should have a additional function to commit. The bapi does not update without a commit work.

Phillip

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

this is correct to made the update you have to call also BAPI_TRANSACTION_COMMIT.

However would also recommend to use BAPI_DOCUMENT_GETDETAIL2 before to read out the current document data. Then modify this data and hand it over to BAPI_DOCUMENT_CHANGE2 and last but not least finish it with BAPI_TRANSACTION_COMMIT.

Best regards,

Christoph