Skip to Content
0
Former Member
Apr 04, 2006 at 05:00 PM

BAPI_BUPA_CREATE_FROM_DATA with commit

5563 Views

Hello!

I have to execute several steps for creating a complete business partner (bp):

1. Create bp by BAPI_BUPA_CREATE_FROM_DATA

2. Add a industry sector by BAPI_INDUSTRYSECTOR_ADD.

but if I execute 2nd step without bapi commit the BAPI_INDUSTRYSECTOR_ADD doesn't find the bp created.

My problem is the following:

if BAPI_INDUSTRYSECTOR_ADD returns an error I'd like to execute a rollback of BAPI_BUPA_CREATE_FROM_DATA although

I executed bapi commit.

is it possible?

Could I use function modules "transaction_begin" and "transaction_end"? Can they help me?