cancel
Showing results for 
Search instead for 
Did you mean: 

BP Badi for Check before save

Former Member
0 Kudos

Hi all,

i need a Badi to implement a check before the save of the BP.

Any suggestions?

Best Regards,

Raffaele Frattini

Accepted Solutions (1)

Accepted Solutions (1)

gerhard_djuracek
Contributor

Hello,

as I'm not aware of your release I can offer you several possiblities:

- please check note 663905 and badi BUPA_FURTHER_CHECKS, BUPA_GENERAL_UPDATE,

and the following information: (GUI, PCUI)

I assume your requirement is to make some checks before you save a

business partner. Let me explain the different ways that you can

achieve the same.

1. Regarding the BADI IF_EX_BUPA_FURTHER_CHECKS, it is only invoked

from the BAPI's and not from dialog. This badi will be invoked from

Accounts PCUI application (People centric user interface, Portals) as

we use the BAPI's extensively in this environment.

2. This badi is not invoked from Trx BP as we use BDT (Business

data toolset). BDT has its own set of events, and you can make

further checks at various levels.

a) If you wish to make checks only for when changing some views, then

goto -> Enter /N -> Enter /nBUPT -> Menu BP CONTROL -> sub menu

SCREEN LAYOUT -> Views -> Suppose you wish to make checks before you

save address overview, then -> Select BUA120 -> and click Further

checks -> Here you enter the name of function module which consists

the check that you wish to make.

In this case, the check will be carried out only if the changes are

made to address overview.

b) If you wish to make checks before you save a BP irrespective

where you make a change then -> goto -> Enter /N -> Enter /nBUPT ->

Menu BP CONTROL -> sub menu EVENTS -> select event DCHCK -> Click

EVENT -> Function Modules -> Click new entry and entry the name of

the function module in which you wish to carry out additional checks.

In the above case, the check will be carried out every time.

3) Consider this if you wish to make checks from both SAPGUI AND PCUI.

a) There is no syncrhonization between BDT events and PCUI. So you

can call the Function module both from BDT (Option 2(b)) and as well

as the BADI (option 1).

Also, Please have a look at the notes 689890 and 663905. This BADI's are

invoked from the BAPI's mentioned in the note. If you use this BAPI's

directly, then the additional checks should be carried out, but this

BADI's are not invoked from the dialog.

- note 1246664 for WEB UI.

Regards, Gerhard

Answers (2)

Answers (2)

lemoreno
Participant
0 Kudos

Thank you so much. It helped me a lot!!!

Former Member
0 Kudos

Hi Gerhard,

thank you very much for your explanation.

Raffaele,