Fonction SAP BAPI_LIKP_GET_LIST_MSG - Selection of Delivery Output

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PROCESSING BAPISHPOUTPUT-PROCESSING N 1 1 X Processing Mode

Paramètre Reférence Long. Facultatif Description
DELIVERYNUMBER BAPISHPDELIVNUMB 10 Delivery Number
MESSAGEKEY BAPISELMSG 50 Return of Selected Output
OUTPUTTYPE BAPIOUTPTYPE 5 X Criteria for Ouput Selection
RETURN BAPIRET2 548 Return Parameters

Functionality
This method enables you to select delivery outputs in a central systemfrom a decentralized system. Selection is restricted by deliverynumber, output type and transmission medium. The selected outputs arereturned in a table on the BAPI interface. Error messages are stored inthe BAPI return parameter RETURN with the following message types:

  • E (ERROR)

  • W (WARNING)

  • I (INFORMATION)

  • You must enter the processing mode. Outputs are controlled inprocessing mode. The status and output send time are determined (thevarious statuses and times are listed as an overview in the note). Manyof the same types of outputs exist (messages which only differ increation date and time). Depending on the mode selection takes place asfollows (with relation to the newest output):
    1: First processing
    Outputs with the status 0 and time sent 3 are selected.
    2: Repeat processing
    The newest outputs must have status 1 or 2.
    3: Error processing
    The system checks whether the newest output has status 2. The send timehas no relevance for first processing or repeat processing as theoutputs have already been processed once. Whether an output may berepeated in this mode at all depends on the output type. You can changethe 'can be changed/repeated manually' setting. (T685B-NBEAR).

    Example
    Unprocessed outputs are to be selected for delivery into a centralsytem. By entering the delivery number in the DELIVERYNUMBER parameterand the processing mode '1' in the BAPISHPOUTPUT-PROCESSING parameter,selection will take place.
    The selected outputs can be processed using the'OutboundDelivery.ProcessOutput ' method.

    Description
    Indicator that defines the status and send time of the outputs that areto be selected.
    For initial processing, only outputs with status 0 and send time 3 aretaken into consideration.
    For repeated processing, only outputs with status 1 or 2 are selected,regardless of send time.
    For error processing, only outputs with status 2 are taken intoconsideration, regardless of send time.
    One output may have several similar outputs, with the only differencebeing date and time of creation (via repeated processing or repeatedsending). During the selection, the last (chronologically newest)output in each group of similar outputs is the one that is considered.
    As an overview, all possible attributes of both parameters (status andsend time) are listed here:
    Status
    0 (not yet processed)
    1 (processed with no errors)
    2 (processed with errors)
    Send time
    1 (next processing run)
    2 (specified time)
    3 (explicit request)
    4 (immediate processing)

    Description
    Numbers which identify deliveries can be entered in the table.

    Description
    Selection results are returned in this structure. You can processselected outputs in the structure using the method'OutboundDelivery.ProcessOutput'.

    Description
    You can use the parameters of this structure to limit output selection.

    Value range
    The following parameters are available:

    • TRANS_MEDIUM:

    • Indicates how the output should be created.
      For example, you can specify that the output should be printed or sentby mail.
      • OUTPUT_TYPE

      • Indicates the type of the output that is created.

        Description
        Error messages were stored in the BAPI return parameter RETURN with themessage types
        E (ERROR)
        W (WARNING)
        I (INFORMATION)