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

Function "TRANSACTION_END"

Former Member
0 Likes
1,422

Hey Guys,

Can u please hlpe me with this.

What does following functions do??

1. TRANSACTION_BEGIN

2. TRANSACTION_END

it is used in one of the BAPI Function Module.

Also Please answer if TRANSACTION_END commits the work???

Points will be rewarded

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,041

hi

Hope it will help you.

Reward if help.

All BAPIs implicitly carry out a separate COMMIT WORK.

If a COMMIT WORK AND WAIT is required, or if batch maintenance is to be included om a transaction, the implicit COMMIT of the BAPIs has to be suppressed.

This is done by calling function module 'TRANSACTION_BEGIN' before calling the individual BAPI. Thus the calling program takes over transaction control.

The transaction is terminated by calling function module 'TRANSACTION_END'. A database COMMIT is then carried out by calling BAPI BAPI_TRANSACTION_COMMIT.

Hey Guys,

Can u please hlpe me with this.

What does following functions do??

1. TRANSACTION_BEGIN

2. TRANSACTION_END

it is used in one of the BAPI Function Module.

Also Please answer if TRANSACTION_END commits the work???

Points will be rewarded

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,041

Hi,

Fuba: transaction_begin returns a unique transaction ID for the LUW ( database commitwork) .

Transaction end : behaves purely on the return value of transaction_begin :

if status of transaction is commit_work , it will do a comit else rollback.

and after that it refreshes all the buffers.

Reward if helps.

Regards,

Sandeep

Read only

dhruv_shah3
Active Contributor
0 Likes
1,041

Hi,

Go through this PDF and it will make you understand its use in BAPI.

[USE THIS|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81]

HTH

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
1,042

hi

Hope it will help you.

Reward if help.

All BAPIs implicitly carry out a separate COMMIT WORK.

If a COMMIT WORK AND WAIT is required, or if batch maintenance is to be included om a transaction, the implicit COMMIT of the BAPIs has to be suppressed.

This is done by calling function module 'TRANSACTION_BEGIN' before calling the individual BAPI. Thus the calling program takes over transaction control.

The transaction is terminated by calling function module 'TRANSACTION_END'. A database COMMIT is then carried out by calling BAPI BAPI_TRANSACTION_COMMIT.

Read only

Former Member
0 Likes
1,041

Hi,

TRANSACTION_BEGIN : It is is used to get the host id....

TRANSACTION_END : It ends the transaction.

Yes COMMIT WORK