Skip to Content

How to get the status in Badi EQUI_UPDATE?

Hi Experts,

I'm using the Badi EQUI_UPDATE to perform an action after creating or changing an equipment. The problem is that there are no status information available. The function module STATUS_READ delivers wrong results because the buffer is no more available during posting. So the function module STATUS_READ gets the status information from the database an these are the status information before update.

Could anybody give me a clue how to get the right status information in Badi EQUI_UPDATE?

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Jan 14, 2016 at 09:03 AM

    Somewhere, well at this step they are only parameter in the execution of update FM STATUS_UPDATE. This FM is called during a perform at commit so should be executed after the execution of EQUI_UPDATE (which is directly recorded in EQUIPMENT_SAVE execution before execution of statement COMMIT WORK)

    So those data may be in table VBDATA or in memory of current RSM13000 execution, but won't be easy to read (and hard to maintain?) start with TH_GET_VBKEY, then VBMOD to get counter for FM and some import from database VBDATA to get parameter (try to debuf SM13, look for FM TH_DISPLAY_UPDATE_DATA_ALV on how to get access to parameters)

    AFAIK there is also a BTE (P&S PM000020 equipment update) with more data?

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • You may be required to assign some pointer to data of report RSM13000 (if allowed?) to read current record of internal table vbmod_tabl for vbkey field, or even vbdata too?

      Else change solutio to add some custom FM execution in update V2 or background task at implict enhancement end of EQUIPMENT_SAVE?

      Regards,

      Raymond

  • Posted on Jan 15, 2016 at 12:27 PM

    hello Jutta

    I would use user-exit IEQM0003 for this situation. (STATUS_READ would work properly here)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 18, 2016 at 10:17 AM

    Hi Experts,

    That was really a challenge, but with all your help I mastered ist. Thank you all for your answers. Now I get the right VB-Key with an assign.

    I send an interface to SAP-PO, so I prefer to use the Badi EQUI_UPDATE instead of user-exit IEQM0003.

    Many thanks

    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.