Skip to Content
avatar image
Former Member

FM/BAPI to update requirements assignment on a PM order

Hello,

I am working on a project which involves building interfaces between a client's SAP ECC system and a third party scheduling system. The orders are created in SAP, interfaced to the third party, where they assign resources and schedule appointments. Hence we need to build is inbound to SAP, to update the "requirements assignment" tab of PM order operations - transaction IW32.

I have looked at BAPI_ALM_ORDER_MAINTAIN, but this doesn't provide this specific functionality.

Does anyone know if there is any other type of function module which enables this to be created/updated?

The data appears to be stored in table KBED - capacity requirements.

Many thanks in advance,

Peter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 12, 2012 at 07:08 AM

    Please have a look into the functions available in function group CYBT.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Peter

      I am struggling with the same issue as my predecessor.

      We are building Fiori app where user would be able to add person and work to operation.

      Any clue which CY_BT* functions to use?

      thanks

      Bartosz

  • avatar image
    Former Member
    Dec 31, 2013 at 07:06 AM

    Hi Peter,

    I am also having a similar requirement. So would like to know how have been able to achieve it. If you can share the same, it would be extremely helpful.

    Thanks

    Balaji

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Kamal el Marzgioui

      Hi Kamal,

      Thanks for your response. If you can find and send me the same to my email id, that would of great help.

      Thanks in advance.

      Regards

      Balaji

  • avatar image
    Former Member
    Mar 11, 2016 at 07:39 AM

    Use  BAPI_REQUIREMENTS_GETDETAIL to get all the details.

         MATERIAL -20 char material

         PLANT - plant

         REQUIREMENTSTYPE - type of requirement

         VERSION  - version number

         REQMTSPLANNUMBER - '  '

         REQUIREMENTS_OUT

         RETURN

    Next call the BAPI  BAPI_REQUIREMENTS_CHANGE.

    Al the parameters same as above , also pass these additional parameters

          DO_COMMIT                      = 'X'

           UPDATE_MODE                = 'X'

           DELETE_OLD                    = 'X'

    REQUIREMENTS_SCHEDULE_IN - to this table pass only those records which need not be deleted.

    REQ_QTY , REQ_DATE , DATE_TYPE is required ( Which can be got from requirements_out).

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

        EXPORTING

          WAIT          =  'X'.

    Add comment
    10|10000 characters needed characters exceeded