Application Development 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: 

Implementing BADI BUPA_GENERAL_UPDATE

Former Member
0 Kudos

Hi all.

I'm trying to implement the BADI BUPA_GENERAL_UPDATE in CRM. I'm using the Function Module BUP_BUPA_MEMORY_GET_ALL for getting the data but after make changes how i can set it to the buffer ?

1 ACCEPTED SOLUTION

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Armando!

I'm not sure, which data you like to change (what's buffer in this circumstance?), but checking interface definition of your BADI I found following:

Method CHANGE_BEFORE_UPDATE has just on <i>import</i> parameter. So SAP hasn't allowed changes before saving, they just give you the chance to make some own stuff before saving (e.g. insert into Z-table...).

Regards,

Christian

7 REPLIES 7

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Armando!

I'm not sure, which data you like to change (what's buffer in this circumstance?), but checking interface definition of your BADI I found following:

Method CHANGE_BEFORE_UPDATE has just on <i>import</i> parameter. So SAP hasn't allowed changes before saving, they just give you the chance to make some own stuff before saving (e.g. insert into Z-table...).

Regards,

Christian

0 Kudos

Thank You.

I was trying to take some data from BUT000 and make a mapping with BU_SORT1 and BU_SORT2, i can take the corresponding table from the buffer with the function module that i mentioned before, make changes but after how i cant put it in the buffer ? does is it possible ? do i need use user exit for this case ?

0 Kudos

Hi!

If you like to change data, which was not defined by coding of the exit in beforehand, have a look at statement assign, part dynamical assign. But be careful, it's as bad as making a modification.

Instead I searched some minutes function modules of group BUD0. If there is any standard way to change global memory (buffer), then it's using parts of same function group. Up to now my search was without success (BUP_BUPA_EVENT_DSAVE would make changes, but also to the database).

Just go on!

Christian

0 Kudos

Maybe i have not been explicit.

I'm trying to set some information when a BP is being created or modified. I need an user-exit or BADI for using before update where i can fill BU_SORT1 and BU_SORT2 with predefined texts. I was trying with the BADI mentioned before and the function module BUP_BUPA_MEMORY_GET_ALL but how i can put the modified data in memory after make changes ?

I was trying with the BADI BUPA_UPDATE where the BP is in Data Base but is waiting for a COMMIT, when i call the BAPI_BUPA_CHANGE it is raising an exception.

Any ideas ? What i need to do ?

Message was edited by: Armando Rodríguez

Message was edited by: Armando Rodríguez

0 Kudos

Hello

It's too late for using BUPA_GENERAL_UPDATE

because before being in your BADI, the system has launch in update task the module function BUP_BUPA_UPDATE with BUT000 (before your modification)

In my case I have used BADI BUPA_GENERAL_EXPORT, and after module function BUP_MEMORY_BUT000_FILL to update structure but000. In function group BUD_MEM, you can find others MF....

hope this helps

Manohar2u
Active Contributor
0 Kudos

I am just searching for updating Customer include fields of BUT000 into BUT000. I have found this messsage, not sure whether is this the right one!

Could any help me in the logic to update the Z included fields in Business master table.

Am looking for events in BDT whether they can help me out in this series..

ISSTA Initialize

ISDST Distribute data

XCHNG Were changes made?

DSAVB Collect data

DLVE1 Initialize current memory

if anyone has already done pls let me know whether am on right track or which BADI is the right one.

Thanks for your valuable inputs..

Cheers

Manohar

Message was edited by: Manohar Reddy KALLEM

Manohar2u
Active Contributor
0 Kudos

Hi Armando Rodríguez,

Seems this problem was solved. Can you pls help in solving this problem.

Regards

Manohar

Message was edited by: Manohar