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

how BAPI_PO_CREATE1 update the database table

Former Member
0 Likes
1,507

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,109

Hi Jatil,

In the end this bapi calls ME_UPDATE_DOCUMENT in update task, in which the database is updated.

Regards,

John.

8 REPLIES 8
Read only

Former Member
0 Likes
1,110

Hi Jatil,

In the end this bapi calls ME_UPDATE_DOCUMENT in update task, in which the database is updated.

Regards,

John.

Read only

Former Member
0 Likes
1,109

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.

Read only

Former Member
0 Likes
1,109

hi John

i have searched in the bapi BAPI_PO_CREATE1 but not able to find out ME_UPDATE_DOCUMENT

thanks for your efforts

Read only

0 Likes
1,109

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

Read only

Former Member
0 Likes
1,109

hi Rahul

i think you forgot to paste the link for help on bapi

Read only

Former Member
0 Likes
1,109

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

Read only

Former Member
0 Likes
1,109

Use BAPI_TRANSACTION_COMMIT FM to commit the database. Otherwise it is not commited into the database