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

Commit work

Former Member
0 Likes
545

hi to all experts,

why commit work is not prefer to write withih BAPI function module.

if i write commit work in bapi.what type of problem is occure.

thanks in advance and reward also.

Regard:

Deepsama

5 REPLIES 5
Read only

Former Member
0 Likes
530

SAP has provided commit work with in it...

u no need to use commit work Statement in Report

it reduces the performance of the program.....

if it is usefull Plz reward

Regards

Anbu

Read only

0 Likes
530

if i create custom bapi, in this case what heppened.

Read only

0 Likes
530

it is very rare case to create a bapi...........

there u can use comit ststement if u need ......

FM : BAPI_TRANSACTION_COMMIT

u can try this also..........

if it is useful....Plz reward

Regards

Anbu

Edited by: anbu b on May 23, 2008 1:26 PM

Read only

valter_oliveira
Active Contributor
0 Likes
530

Hello.

After calling a BAPI, if the return table shows no errors, you should call FM BAPI_TRANSACTION_COMMIT, with parameter WAIT = 'X' if needed.

Best regards.

Valter Oliveira.

Read only

Former Member
0 Likes
530

Hi,

Executes a database commit and thus closes a Logical Unit of Work ( LUW) (see also Transaction Processing). This means that

all database updates are made irrevocable and cannot be reversed with ROLLBACK WORK and

all database locks are released.

COMMIT WORK also

calls the subroutines specified by PERFORM ... ON COMMIT,

executes asynchronously any update requests (see CALL FUNCTION ... IN UPDATE TASK) specified in these subroutines or started just before,

processes the function modules specified in CALL FUNCTION ... IN BACKGROUND TASK,

closes all open database cursors (see OPEN CURSOR) and

resets the time slice counter to 0.

Never Use Commit work in a select... endselect .. program dumps..

Regards,

Raj.