on 04-26-2006 1:34 PM
Have a need when a business partner is created that the first name and last name do not already exist in the system of another partner. If it does, want to:
1) Pop up a warning message and
2) Prevent the data from being saved on the database.
Warning message I figure can be popped up in a function module of the event DCHCK. But I cannot figure a way how to rollback the partner creation.
Can anyone please advise on this?
Cheers,
Tony.
Hi Anthony,
For your requirement you will have to implement the "BUPA_GENERAL_UPDATE" BAdI. The method CHANGE_BEFORE_UPDATE of this BAdI has the BP GUID.
Using this GUID use appropriate function module to extact the current BP first name & Last name. Then search for the same in the database and use function module calls to do the further processing as required.
Let me know if this helps.
Jash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tony,
Unless you do a Commit Work the BP will not be created in the system.
After the BP creation Function Module use Commit Work, Only when, no errors and warnings are retunred.
In our programming we have done the same way. In case of error we do an exit from code, after populating appropriate error message.
Hope this helps.
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.