Skip to Content
author's profile photo Former Member
Former Member

Business partner Archive Issue in Web UI

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 17, 2014 at 02:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • Posted on Jul 18, 2014 at 09:51 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.