Fonction SAP CBP_SOP_PLAN_SAVE_RFC - synchronous RFC to external planning system

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_SOPCTR SCBP_SOPCTR u 45 Additional Control fields for Communication

Paramètre Reférence Long. Facultatif Description
O_SOPTAB SCBP_SOPTAB 270 All affected production figures

Functionality
The current plan of the external planning system is saved. The currentplan situation in the form of production figures is returned for savingon the R/3 database.
The steps executed within the external planning system is expected tobe the following:
IF netchange flag is set.
extract production figures from current plan.
extract production figures from saved plan.
compare production figures from saved and current plan and
extract the changed production figures.
return changed production figures.
ELSE
extract the production figures from the current plan.
return current production figures.
ENDIF
save current plan to saved plan.

Notes
If the single planning flag I_SOPCTR-SPLFLG was set on the pendingrequest CBP_SOP_PLAN_REQUEST_RFC then only records in the tableO_SOPTAB are expected from the external planning system, that werepreviously contained in the request, just with changed productionfigures. If the single planning flag was not set, additional recordsare expected from the external planning system.
If the net-change flag I_SOPCTR-NTCHNGFLG is set, then only the recordswith changed production figures are expected in the table O_SOPTAB fromthe external planning system. If the net-change flag is not set, allrecords with all production figures are expected from the externalplanning system.
The periods shall be the same as previously used in requesting theplan from the external planning system for all records in the tableO_SOPTAB.

Description
The structure sends

  • the model name in the field MODEL,

  • the planning version in the field VERSION,

  • the port number of the stored production plan in the field PLHNDL_PUB,

  • the port number of the production plan in the field PLHNDL,

  • the net change flag in the field NTCHNGFLG,

  • the planning start in the field BEGIN and

  • the planning end in the field PENDE

  • to the external planning system.

    Description
    The table receives production figures from the external planningsystem.
    It recieves

    • a list of materials and product groups for certain plants in the
    • columns
      PMNUX and
      WENUX,
      • for each material/plant combination or product group/plant combination
      • a number of periods in the columns
        PERID
        PERKZ
        PERIV
        ERTAG
        LETAG
        ATAGE
        • and the production figure for the planning table for each of these
        • periods in the field PRODU.