SAP Function BAPI_REFSETOFOPERATIONS_CREATE - Creation of a reference operation set

Parameter Reference Type Length Default Optional Text
APPLICATION BAPI1190_CONTROL_DATA-APPLICATION C 4 X BOM application
BOMUSAGE BAPI1190_CONTROL_DATA-BOM_USAGE C 1 X BOM usage
PROFILE BAPI1190_CONTROL_DATA-PROFILE C 7 X Profile To Be Used
TESTRUN BAPIFLAG u 1 X Switch to Simulation Session for Write BAPIs

Parameter Reference Type Length Text
GROUP BAPI1190_TSK_C-TASK_LIST_GROUP C 8 Key for task list group
GROUPCOUNTER BAPI1190_TSK_C-GROUP_COUNTER C 2 Group counter

Parameter Reference Length Optional Text
COMPONENTALLOCATION BAPI1190_COM_C 263 X Component assignment in CREATE-BAPI for reference operation sets
INSPCHARACTERISTIC BAPI1190_CHA_C 709 X Insp. charac. (int. format) for Direct Input in the EWB
MATERIALTASKALLOCATION BAPI1190_MTK_C 179 X Material task list assignment in CREATE-BAPI for reference operation set
OPERATION BAPI1190_OPR_C 737 X Operations in CREATE-BAPI for reference operation sets
PRODUCTIONRESOURCE BAPI1190_PRT_C 401 X PRT assignments in CREATE-BAPI for reference operation sets
RETURN BAPIRET2 548 X Return parameter
SUBOPERATION BAPI1190_SUB_OPR_C 622 X Suboperations in CREATE-BAPI for reference operation sets
TASK BAPI1190_TSK_C 156 Task list header data CREATE-BAPI for reference operation sets
TEXT BAPI1012_TXT_C 134 X Long text lines in CREATE-BAPI for routings
TEXTALLOCATION BAPI1190_TXT_HDR_C 111 X Text assignments in CREATE-BAPI for reference operation sets

Functionality
This method serves to create reference operation sets with all theirsubordinated objects.
Here, you can generate a key date view as well as the complete historyof a reference operation set. The latter is particularly useful fordata transfers from non-SAP systems.

Example
You want to create a reference operation set with its operations andinspection characteristics on the key date 01.01.2000.
You generate an entry for each object in the following table by alwaysentering the date 01.01.2000 in the attribute VALID_FROM:

  • TASK

  • Enter the relevant task list header data here. The attributesTASK_LIST_GROUP and GROUP_COUNTER only have to be supplied if you workwith external number assignment. For internal number assignment thetask list group and the group counter are determined automatically.
    • OPERATION

    • You generate an entry for each operation in this table. To identify theoperations, you have to enter an external operation identifier in thefield OPERATION_ID. This identifier has to contain at least onecharacter that is not a number (such as VORG0010). You only have tosupply the TASK_LIST_GROUP and GROUP_COUNTER in the case of externalnumber assignment.
      • INSPCHARACTERISTIC

      • You generate an entry for each inspection characteristic in this table.To identify the inspection characteristics you have to enter aninspection characteristic number in the field INSPCHAR. You can createinspection characteristics with or without reference to a masterinspection characteristic. In the field CHA_MASTER_IMPORT_MODUS (Modusfor the reference to the master inspection characteristic) enter thereference to the master inspection characteristic: 'L' for reference.In this case, the master inspection characteristic has to be completelymaintained. In the parameter INSPCHARACTERISTIC you only have to supplythose fields that could not be copied from the master inspectioncharacteristic; 'C' for copy the data from the master inspectioncharacteristic into the inspection characteristic, 'N' for create alockable and unlockable reference to the master inspectioncharacteristic without a data transfer from the master inspectioncharacteristic. In this case manually fill out all fields in theparameter INSPCHARACTERISTIC.
        You can either transfer the inspection characteristic control indicatordirectly from the master inspection characteristic, enter itindividually or in the field PRESET_CTRL_INDS_KEY you enter a key forthe control indicator if you have stored this key in Customizing.
        If you have individually entered a control indicator, note thefollowing special features:
        SCOPE_IND: Inspection scope. This indicator can have differentcharacteristics:
        You set " " for: Free inspection scope
        You set "<" for: Smaller inspection scope permitted
        You set ">" for: Larger inspection scope permitted
        You set "=" for: Specified inspection scope
        RESULT_RECORDING_TYPE: Record entry type. This indicator can havedifferent characteristics:
        You set "-" for: No record entry
        You set "*" for: Classified record entry
        You set "+" for: Single record entry
        You set " " for: Summarized record entry
        DOCU_REQU: Documentation required for check results. This indicator canhave different characteristics:
        You set " " for: No documention required
        You set "." for: Documentation for rejection
        You set "+" for: Document all check results
        CONFIRMATION_CATEGORY Characteristic category
        You set " " for: Optional characteristic
        You set "+" for: Limited to the acceptance of the previous mandatorycharacteristic
        You set "-" for: Limited to the rejection of the previous mandatorycharacteristic
        You set "X" for: Mandatory characteristic
        PRINT_IND: Print control
        This indicator can have different characteristics:
        You set " " for: Print
        You set "x" for: Do not print
        You set "*" for: Do not print at skip
        If you want to assign an inspection equipment to the inspectioncharacteristic in the field ITEM_NO_OF_PRODUCTION_RESOURCE, note thatthis has to be assigned to the operation in the PARAMETERPRODUCTIONRESOURCE.

        Notes
        Provided that during the data transfer no errors can be found, theexport parameters GROUP and GROUPCOUNTER contain the key for thegenerated reference operation set. To secure the data in the database,you now have to carry out a COMMIT WORK.
        All errors that occur are logged in the external paramter RETURN. Inthe case of inconsistencies, the entire reference operation set to begenerated is rejected.

        Description
        In this parameter, the identifier of the generated reference operationset is available for the succsssful transfer of the copied data. Thisidentifier then allows you to later access the reference operation set.

        Description
        In this parameter, the group counter of the generated referenceoperation set is available for the succsssful transfer of the copieddata. In connection with the group counter returned in the parameterGROUP you can later access the generated reference operation set.

        Description
        You have to enter the BOM application is when creating the referenceoperation set, you also want to create component assignments.
        In connection with the BOM usage, the BOM application controls theselection of the correct alternative BOMs with the componentassignment.

        Description
        You have to enter the BOM application if, when creating a referenceoperation set, component assignments also have to be created.
        The BOM usage controls the selection of the relevant BOM in thecomponent assignment.

        Description
        When entering a profile, you can define default values for specificattributes of the reference operation set. The system always goes backto these if the relevant value has not been transferred. If the profileentry is missing, the following attributes have to be supplied in thetask list header (structure TASK):
        PLANT
        TASK_MEASURE_UNIT
        TASK_LIST_USAGE
        TASK_LIST_STATUS
        Likewise for task list header data, you can use the profile to definedefault values for the attributes of an operation. If there are nodefault values saved in the given profile or no profile has been given,then you have to supply the following attributes for the structureOPERATION:
        CONTROL_KEY
        BASE_QUANTITY
        NOMINATOR
        DENOMINATOR
        The profile can be maintained in Customizing.

        Description
        With the help of this parameter, you can determine whether thetransferred data is only checked for consistency or whether it is alsoupdated in the database, provided no inconsistencies occur.

        Value range
        Permitted values are:
        ' ' -> check and flag for update, provided there are noinconsitencies.
        'X' -> check only

        Default
        The default value is ' ', this means that provided no inconsistenciesoccur the data is flagged for update.

        Description
        The data of the component assignments to be generated are copied intothis table.
        The assignment takes place by entering the operation and item data.
        To identify the operation, you have to enter its identifier in thefield OPERATION_ID. If this entry is missing, the system determines theoperation from the operation number, if this is possible.
        The identification of the BOM item takes place using its identifier inthe field ITEM_ID in connection with entering the BOM and the headerBOM. If the header BOM is missing from the fields BOM_TYPE_ROOT,BOM_NO_ROOT and ALTERNATIVE_BOM_ROOT, then the entry for the headermaterial in the field MATERIAL can not be determined.
        You can only enter a task list group in the case of external numberassignment. In the case of internal number assignment the task listgroup is automatically assigned during processing.
        Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

        Description
        The data of the inspection charcteristics to be generated are copiedinto this table.
        The identification of the operation occurs when entering its identifierin the field OPERATION_ID. If this is not available the system tries todetermine the operation using the operation number in the fieldACTIVITY.
        The inspection characteristic can be created with reference to areleased master inspection characteristic.
        You can only enter a task list group in the case of external numberassignment. In the case of internal number assignment the task listgroup is automatically determined during processing.
        Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

        Description
        The data of the material-routing assignments to be generated is copiedinto this table.
        Note that you can only enter the task list group in the case ofexternal number assignment. In the case of internal number assignmentthe task list group is automatically assigned during processing.
        Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

        Description
        The data of the operations to be generated is copied into this table.
        To uniquely identify the operation particularly when being used insubordinated structures (such as component assignment) you can flageach operation in the field OPERATION_ID with a unique key. This has toinclude at least one character that is not a number (such as VORG0010)and not be changed for the entire life time of the operation.
        The following attributes have to have a value, otherwise theconsistency of the operation can not be ensured:
        - ACTIVITY
        - CONTROL_KEY or
        - WORK_CNTR and PLANT
        You can only enter a task list group in the case of external numberassignment. In the case of internal number assignment the task listgroup is automatically assigned during processing.
        Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

        Description
        The data of the PRT assignments to be generated are copied into thistable.
        The identification of the operation takes place when entering itsidentifier in the field OPERATION_ID. If this is not available, thesystem tries to determine the operation from the operation number inthe field ACTIVITY.
        The following objects can be assigned to an operation as PRTs in whichthe entry of the corresponding object type occurs in the fieldPRT_CATEGORY:

        • PRT (material)

        • The material is determined by the fields MATERIAL and PRT_PLANT.
          • Equipment

          • You define the equipment to be assigned in the field EQUIPMENT.
            • Documents

            • You define the documents to be assigned in the fields DOCUMENT_TYPE,DOCUMENT_NUMBER, DOCUMENT_PART and DOCUMENT_VERSION.
              • Other

              • You define the PRT to be assigned in the field MISCELLANEOUS.
                You can only enter a task list group in the case of external numberassignment. In the case of internal number assignment the task listgroup is automatically assigned during processing.
                Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

                Value range
                The object type of the PRT to be assigned is defined in the fieldPRT_CATEGORY. The following values are permitted here:
                - 'M' -> Material
                - 'E' -> Equipment
                - 'D' -> Documents
                - 'S' -> Other

                Description
                All the messages that occur when creating a reference operation set arecumulated in this table. If inconsistencies occur, these messages canbe used as the basis for correction.

                Description
                The data of the suboperations to be generated are copied into thistable.
                To identify the suboperation, you can flag each suboperation in thefield SUB_OPERATION_ID with a unique key. This has to contain at leastone character that is not a number (such as UV0010/1) and also not bechanged for the entire lifetime of the suboperation.
                The assignment of the suboperation to its subordinated operation occursin the field OPERATION_ID when entering the identifier of theoperation. If there is no entry here, the system tries to determine thecorrect operation by using the operation number in the field ACTIVITY.
                The following attributes have to have a value, otherwise, theconsistency of the suboperation can not be ensured:
                - SUB_ACTIVITY
                - CONTROL_KEY or
                - WORK_CNTR and PLANT
                You can only enter a task list group in the case of external numberassignment. In the case of internal number assignment, the task listgroup is automatically determined during processing.
                Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

                Description
                The header data of the reference operation set to be created is copiedinto this table.
                Note here that you can only enter a task list group in the case ofexternal number assignment. In the case of internal number assignmentthe task list group is automatically assigned during processing.
                Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

                Description
                Long text lines to be processed when creating or changing referenceoperation sets are transferred into this table line by line. Thisenables you to enter a format parameter for each line.
                Using both attributes LINE_FROM and LINE_TO from the tableTextAllocation, you can determine the long text lines assigned to anobject.
                Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.

                Description
                With the help of the data stored here, long texts can be assigned whencreating or changing reference operation sets. First you have to definethe corresponding object type in the the attribute OBJECT_TYPE, thatthe long text is assigned to. The following values are permitted here:
                - '10' -> Reference opreation set header
                - '13' -> Operation
                - '14' -> Suboperation
                - '17' -> PRT
                - '19' -> Inspection characteristics
                According to each object type, you have to supply the other attributeswith the values necessary for the unique identification of the object.The attributes LINE_FROM and LINE_TO are pointers in the related texttables, into which the actual long text lines are to be transferred.LINE_FROM defines the first line of the long text and LINE_TO the last.
                Information about the individual parameter fields can be found in therelevant data element documentation in the ABAP dictionary.