Fonction SAP BAPI_HU_GET_LIST_MSG - Select handling unit 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
HUKEY BAPIHUKEY 20 Key for the BOR: HU's External Number
MESSAGEKEY BAPIHUSELMSG 44 Return of Selected Output
OUTPUTTYPE BAPIOUTPTYPE 5 X Criteria for Ouput Selection
RETURN BAPIRET2 548 Return Parameters

Functionality
You can use this method to select HU outputs. Limit the search by usingHU keys, output types and transmission type. The table of the selectedoutputs (MESSAGEKEY) is returned to the BAPI interface.
The processing mode, which serves as the control, must be entered.Status and send time are then determined. A quantity of similar outputs(outputs whose only difference is creation date and time) is alwaysobserved. Depending on the mode (referring to the newest output), thesystem selects according to the following:
1: Initial processing
Outputs with a status of 0 and a send time of 3 are selected.
2: Repeated processing
Here, the newest output must have status 1 or 2.
3: Error processing
The system checks whether the newest output has status 2. In repeatprocessing or error processing, the send time is irrelevant since theoutput was already processed. The output type determines whether anoutput is allowed to be repeated for these two modes. You can set the"manually changeable/repeatable" (T685B-NBEAR) attribute in the outputtype.
INCLUDE 'BAPI_LIKP_GET_LIST_MSG PROCESSING' OBJECT DOKU ID FU

Description
Key for the instances of the handling units for which outputs are to beselected.

Description
The selection results are returned in this structure. The structure canbe forwarded to the "ProcessOutput" method for processing of theoutputs that were selected.
INCLUDE 'BAPI_LIKP_GET_LIST_MSG OUTPUTTYPE' OBJECT DOKU ID FU
INCLUDE 'BAPI_HU_CREATE RETURN' OBJECT DOKU ID FU