on 07-17-2014 2:56 PM
Hi All,
I have a requirement to set the archive flag in BP while edit it in Web UI . Once user select status as close in EDIT mode of BP and press SAVE button then it should set the archive flag in backend.
could you please let us know where can I write the code so that after pressing save button after editing the data BP can be archived.
I tried writing code in PARTNER_UPDATE badi using FM - BAPI_BUPA_CENTRAL_CHANGE but it is raising Abort message and not working.
Please advise.
Regards
Hi Saurabh,
What code you have written in PARTNER_UPDATE badi? can you share the code with us?
You can achieve this using bsp components itself, add code in set method of the status attribute. Check the new status is Closed then set the Archieve flag value using the entity itself.
Best Regards,
Dharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have a look at badi BUPA_GENERAL_UPDATE standard implementation CMS_CM_BUPA_GENERAL. It was created for central blocking, so it may be similar for archiving as well.
Hope, it will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can check what badis are triggered in class cl_exithandler. Set the breakpoint in method GET_INSTANCE and keep an eye on exit_name (names of calling badis).
Badi BUPA_GENERAL_UPDATE triggers during save process, the general purpose of it is to change BP data. You should not copy the same code of CMS_CM_BUPA_GENERAL (it sets BP central block), I have just given you a point how to do it in similar way.
Maybe it would be helpful (some hints for your code):
1. Read status value (BUPA_STATUS_CALLBACK or find another one FM)
2. Use FM BAPI_BUPA_CENTRAL_CHANGE ()
Maybe there are another options, but you can try this.
Use debug it always helpful.
User | Count |
---|---|
4 | |
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.