Fonction SAP BAPI_CONTROL_RECIPE_GET_LIST - Read Control Recipe List

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CNTLRECSTATUS BAPI_RCOCHAPI-CNTL_REC_STATUS C 5 '00001' X Import: Control Recipe Status
DATEFROM BAPI_COBASIC-DATE D 8 '00000000' X Import: Earliest Creation Date for Control Recipes
DATETO BAPI_COBASIC-DATE D 8 SY-DATLO X Import: Latest Creation Date for Control Recipes
DESTADDRESS BAPI_RCOCHAPI-DEST_ADDRESS C 32 X Import: Address of Control Recipe Destination
DESTTYPE BAPI_RCOCHAPI-DEST_TYPE C 1 '3' X Import: Type of Control Recipe Destination
MATERIAL BAPI_RCOCHAPI-MATERIAL C 18 X Import: Material of Process Order
MATERIAL_EVG BAPIMGVMATNR u 82 X Bapie Structure for transfer of external material no, ver.,
PLANT BAPI_RCOCHAPI-PLANT C 4 Import: Plant of Control Recipes
PROCESSORDER BAPI_RCOCHAPI-PROC_ORDER C 12 X Import: Process Order Number
PRODCNTLREC BAPIFLAG-BAPIFLAG C 1 'X' X Import: Indicator: Read Productive Control Recipes
SCHEDDATEFROM BAPI_COBASIC-DATE D 8 '00000000' X Import: Earliest Scheduled Start Date of Control Recipes
SCHEDDATETO BAPI_COBASIC-DATE D 8 SY-DATLO X Import: Latest Scheduled Start Date of Control Recipes
TESTCNTLREC BAPI_RCOCHAPI-TEST_FLAG C 1 X Import: Indicator: Read Control Recipes for Test Purposes

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Export: System Messages on Method Call

Paramètre Reférence Long. Facultatif Description
CNTLRECHEADER BAPI_RCOCHAPI 291 Export: Header Data of Control Recipes

Functionality
Using this method, you read the header data of thecontrol recipes available in the SAP system.
For example, you can call this method from a process control system toobtain information on the control recipes created for this system.
Afterwards, you can use method ControlRecipe.Request (Request andtransfer control recipes) to export the control recipes to thecontrol system.

Notes
Authorizations
You need the following authorization to carry out the method:
Authorization object,,Field ,,Value
C_CREX_WRK ,,Destination address,,RFC destination of the
,, ,,control recipe destination
,,Activity ,,03 (Display controlrecipe)
,,Plant ,,Plant of the control recipe
Selection Criteria
You can pass on the following data as criteria for control recipeselection:

  • The plant in parameter Plant (required)

  • Data of the corresponding process order in parameters ProcessOrder

  • and Material
    • Control recipe data in the parameters DestAddress, DestType

    • , TestCntlRec, CntlRecStatus, DateFrom, andDateTo
      Control Recipes
      The header data of the selected control recipes are returned inparameter CntlRecHeader.
      System Messages
      System messages issued during method processing are returned inparameter Return. For information on possible messages and theirmeaning, see the parameter documentation.

      Further information
      For more information on control recipe processing, see the SAP Library,section PP Production Planning - Process Industries ->Process Management -> Control Recipes.

      Description
      In this parameter, the SAP system returns the messages issued during themethod call.

      Value range
      Typ,,ID ,,Number,,System message
      E ,,CB1,,403 ,,No control recipes found

      Description
      In this parameter, you specify the status of the control recipes to beselected.
      For more information on the control recipe status, see thedocumentation of the corresponding data element:
      Control recipe status

      Value range
      See the ABAP Dictionary
      00001,,Created

      Description
      In this parameter, you pass on the creation date as of which controlrecipes are to be selected.

      Description
      In this parameter, you pass on the creation date up to which controlrecipes are to be selected.

      Description
      In this parameter, you pass on the address of the control recipedestination for which control recipes are to be selected.
      For more information on the control recipe destination, see thedocumentation of the corresponding data elements:
      Address of the control recipe destination

      Value range
      RFC destinations defined in SAP Customizing (see IMG for ProcessManagement, Define RFC destinations for controlrecipe destinations).

      Description
      In this parameter, you pass on the type of the control recipedestination for which control recipes are to be selected.
      For more information on the destination type, see the documentation ofthe corresponding data element:
      Type of the control recipe destination

      Value range
      See the ABAP Dictionary
      3 ,,Download to ext. system, initiated by process control

      Description
      In this parameter, you pass on the materials of theprocess orders for which control recipes are to be selected.
      For more information on the material, refer to the documentation of thecorresponding data element:
      Material for order

      Value range
      See the ABAP Dictionary

      Description
      Parameter for the long material number
      This parameter can be used to transfer long material numbers. Thesenumbers can be up to 40 characters long.
      To use this parameter you must activate the switch for the businessfunction LAMA (long material number) in the system.
      The business function LAMA is available as a component of the businessfunction set for DIMP.

      Value range
      None

      Default
      None

      Description
      In this parameter, you pass on the key of the plant forwhich control recipes are to be selected.

      Value range
      See the ABAP Dictionary

      Description
      In this parameter, you pass on the key of the processorder for which control recipes are to be selected.

      Value range
      See the ABAP Dictionary

      Description
      You use this parameter to specify that only productive control recipesare to be selected.
      X ,,Select productive control recipes
      ' ' (blank) ,,Do not select productive control recipes
      X ,,Select productive control recipes

      Description
      You use this parameter to specify that control recipes for testpurposes are to be selected.
      For more information on the test indicator, see the documentation ofthe corresponding data element:
      Indicator: Control recipe for test purposes
      X ,,Select control recipes for test purposes
      ' ' (blank) ,,Do not select control recipes for test purposes

      Description
      In this table, the SAP system passes on the header data of the selectedcontrol recipes. For information on the meaning of the table fields, seethe documentation of the corresponding data elements.
      Table Structure
      CNTL_REC_ID ,,Control recipe number
      PLANT ,,Plant of the control recipe
      PROC_ORDER ,,Process order that the control recipebelongs to
      DEST ,,Control recipe destination
      DEST_ADDRESS ,,Address of the control recipe destination

      DEST_TYPE ,,Type of the control recipe destination
      CNTL_REC_STATUS,,Control recipe status
      TEST_FLAG ,,Indicator: Control recipe for testpurposes
      RECIPE_TEXT ,,Short text of the master recipe used in the order
      MATERIAL ,,Material number for order
      MATERIAL_TEXT ,,Material description
      INSPLOT ,,Inspection lot number assigned to theorder
      BATCH ,,Batch number of the material to be produced
      SCHEDULED_START_DATE,,Earliest scheduled start date of the ctrl recipe
      ,,(Date)
      SCHEDULED_START_TIME,,Earliest scheduled start time of the ctrl recipe
      ,,(Time)
      TEST_FLAG ,,X ,,Control recipe for test purposes
      ,,' ' (blank) ,,Productive control recipe
      For information on the value range of the other table fields, see theABAP Dictionary.