Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Perform on commit or Update function module

$
0
0

Hello Experts,

 

I am working on a basic requirement like sending invoice outputs as email attachment. For this i have created a Z include and attached it to NACE.

 

Its working fine. Further to my requirement i need update the invoice in DMS. For this i am using the same include. After sending mail part i have written code for DMS.

 

I am able to generate the DMS number using BAPI_DOCUMENT_CREATE2 and attaching document using CVAPI_DOC_CHECKIN.

 

The problem is now after calling create BAPI and chekin  Bapi, i am using commit BAPI. This is generating a runtime error like not use commit statement or BAPI before system commit.

 

To over come this i read, update fm and perform is commit is available. Now i have created a FM, processing type as update and Coll.run.

 

inside Fm if use commit i am getting run time error, if dont use the dms number is not generating.

 

Please suggest how to proceed further.

 

Regards,

NN


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>