Fonction SAP BAPI_HU_PROCESS_MSG_DIRECT - Select and process handling-unit outputs

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DYNAMICOUTPUTDEVICE BAPIOUTPDEVEXT u 40 X Profile and Output Device for Dynamic Printer Control
PROCESSING BAPISHPOUTPUT-PROCESSING N 1 1 X Processing Mode
SORTMESSAGE BAPISHPOUTPUT-SORT C 2 1 X Sort Outputs According to Handling Units

Paramètre Reférence Long. Facultatif Description
HUKEY BAPIHUKEY 20 Key for the BOR: HU's External Number
MESSAGEPROTOCOL BAPIMSGPROT 53 X Processing Logs for Output Processing
OUTPUTTYPE BAPIOUTPTYPE 5 Criteria for Ouput Selection
RETURN BAPIRET2 548 Return Parameters

Functionality
This method includes the "GetListOutput" and "ProcessOutput" methods.
The outputs that belong to the handling units that were specified inthe HUKEY parameter were selected and then processed immediately.
Dynamic control of the output device is offered as an option via the"DynamicOutputDevice" parameter.
Outputs are sorted according to the value specified in the"SortMessage" parameter.
The processing status of each output that was processed can be accessedin the "MessageProtocol" return parameter.
INCLUDE 'BAPI_LIKP_PROCESS_MSG DYNAMICOUTPUTDEVICE' OBJECT DOKU
ID FU
INCLUDE 'BAPI_LIKP_GET_LIST_MSG PROCESSING' OBJECT DOKU ID FU

Description
Controls how outputs are sorted.
Select one of the following sort criteria:
01 Handling unit identification/output type
02 Output type/handling unit identification
03 Partner function/partner number/output type
04 Sort fields 1-3
05 Output type/sort fields 1-3
You can use these sort criteria to specifiy which values should becopied from the application-specific communication structures into thesort fields.
INCLUDE 'BAPI_HU_GET_LIST_MSG HUKEY' OBJECT DOKU ID FU
INCLUDE 'BAPI_LIKP_PROCESS_MSG MESSAGEPROTOCOL' OBJECT DOKU ID
FU
INCLUDE 'BAPI_LIKP_PROCESS_MSG_DIRECT OUTPUTTYPE' OBJECT DOKU ID FU
INCLUDE 'BAPI_HU_CREATE RETURN' OBJECT DOKU ID FU