‎2007 Feb 09 7:02 AM
hi all
i want to know that how does BAPI_PO_CREATE1 updates the database table
is it through bdc, call transaction or simply commit the table by an internal table
i have searched the code but not able to find out in which particular sub routine it is updating the table
thanks in advance
‎2007 Feb 09 7:28 AM
Hi Jatil,
In the end this bapi calls ME_UPDATE_DOCUMENT in update task, in which the database is updated.
Regards,
John.
‎2007 Feb 09 7:28 AM
Hi Jatil,
In the end this bapi calls ME_UPDATE_DOCUMENT in update task, in which the database is updated.
Regards,
John.
‎2007 Feb 09 7:34 AM
Jatil,
All BAPIs in the system updates the Database directly, thats the reason they are the fastest data uploading objects. I am not sure where in the code you can find this but for the BAPI help you can read this.
Thanks.
‎2007 Feb 09 8:23 AM
hi John
i have searched in the bapi BAPI_PO_CREATE1 but not able to find out ME_UPDATE_DOCUMENT
thanks for your efforts
‎2007 Feb 09 8:30 AM
Hi Jatil,
Then you have to search again....; here is the hierarchy:
1. perform process_po ->
2. ch_po->po_post( EXPORTING im_uncomplete = lf_memory "819467
im_no_commit = mmpur_yes
EXCEPTIONS failure = 1 ).
3. CALL FUNCTION 'MEPO_DOC_POST'
4. PERFORM BUCHEN(saplmepo)
5. CALL FUNCTION 'ME_CREATE_DOCUMENT' IN UPDATE TASK
Success,
John
‎2007 Feb 09 8:25 AM
hi Rahul
i think you forgot to paste the link for help on bapi
‎2007 Feb 09 8:40 AM
Hi Jatil,
See the below links for the complete information about BAPI:
The foll. links gives you step by step eg for learning bapi.
http://www.erpgenie.com/sap/abap/bapi/example.htm
http://www.sap-img.com/bapi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c1e53c111d395fa00a0c94260a5/content.htm
http://www.sappoint.com/abap/bapiintro.pdf#search=%22BAPI(SAP)%22
http://www.erpgenie.com/sap/abap/bapi/index.htm
http://www.erpgenie.com/sap/abap/bapi/conventions.htm
http://www.erpgenie.com/sapgenie/docs/BAPI%20Programming.doc
Thanks
‎2007 Feb 09 8:29 AM
check this
<b>* docu: post document
call method ch_po->po_post( exporting im_uncomplete = lf_memory"819467
im_no_commit = mmpur_yes
exceptions failure = 1 ).</b>
in that BAPI itself.
Regards
Prabhu
‎2007 Feb 09 8:53 AM
Use BAPI_TRANSACTION_COMMIT FM to commit the database. Otherwise it is not commited into the database