Fonction SAP BAPI_LIKP_PROCESS_MSG_DIRECT - Process Delivery Output Without List

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DYNAMICOUTPUTDEVICE BAPIOUTPDEVEXT u 40 X Profile and Output Device (30 char.) for Dynamic Printer Control
PROCESSING BAPISHPOUTPUT-PROCESSING N 1 1 X Processing Mode
SORTMESSAGE BAPISHPOUTPUT-SORT C 2 1 X Sort Order for Output from Deliveries

Paramètre Reférence Long. Facultatif Description
DELIVERYNUMBER BAPISHPDELIVNUMB 10 Delivery Number
MESSAGEPROTOCOL BAPIMSGPROT 53 Processing Logs for Output Processing
OUTPUTTYPE BAPIOUTPTYPE 5 X Criteria for Ouput Selection
RETURN BAPIRET2 548 Return Parameters

Functionality
The method includes the methods 'OutboundDelivery.GetListOutput' and'OutboundDelivery.ProcessOutput.
The outputs belonging to the deliveries entered in the 'DeliveryNumber'parameter are selected and processed immediately.
If the 'MessageKey' parameter contains no values, all delivery outputswhich correspond to the processing mode entered (Processing), areprocessed.
The parameter 'DynamicOutputDevice' also offers dynamic control of theoutput device.
Outputs can be sorted according to the value entered in the'SortMessage' parameter.
Error messages are stored in the BAPI return parameter RETURN with thefollowing message types:

  • E (ERROR)

  • W (WARNING)

  • I (INFORMATION)

  • The processing status of each processed output can be taken from thereturn parameter 'MessageProtocol'.

    Description
    You can enter a print profile or an output device for dynamic printcontrol in this structure.
    PRINTER_PROFILE:
    Specify a print profile defined in the central system. If the printprofile you entered is not valid, the outputs entered will not beprocessed and an error will be logged in the return parameter RETURN.
    OUTPUT_DEVICE:
    Specify a printer. If you specify a printer, it will be assigned to alloutputs not defined in the print profile. If no print profile has beenspecified, the printer will be assigned to all outputs to be processed.

    Description
    Indicator which determined the status and send time of the outputs tobe selected.
    Only outputs with the status 0 and 3 are considered in firstprocessing.
    An output is only selected for repeat processing if it has status 1 or2, regardless of send time.
    Only outputs with status 2 are considered for error processing,regardless of send time.
    There can be many outputs of the same output type, which only differ increation date and time (as a result of repeat processing or multipletransmission). The last (newest) output in a group of identical outputsis selected.
    A list of possible entries for both the status and send time parametersprovides you with an overview.
    Status
    0 (not yet processed)
    1 (processed without errors)
    2 (processed with errors)
    Send time
    1 (next processing run)
    2 (spcific time)
    3 (explicit request)
    4 (immediate processing)

    Description
    Controls output sorting
    Select one of the following sort criteria:
    01 Delivery/Position/Output type
    02 Output type/Delivery/Position
    03 Partner roll/Partner number/Output type
    04 Sort fields 1-3
    05 Output type/Sort fields 1-3
    Using these sort criteria, you can determine which values are to bewritten in the sort fields from the application-specific communicationstructures.

    Default
    If the value you enter is invalid, outputs are sorted by criterium 01.

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

    Description
    The key attributes of the outputs processed including their processingstatus is returned in this structure.
    The following processing statuses are possible (PROC_STATUS):

    • E = Output was processed with errors.

    • P = Output was processed by another user between when you selected it
    • and tried to process it.
      • L = Output was locked at time of processing.

      • C = Output to be processed in repeat processing. There is, however a
      • new output.
        • S = Output processed successfully.
        • Description
          You can use the parameters in this structure to limit the outputselection.

          Value range
          The following parameters are available:
          TRANS_MEDIUM:
          Indicates which output should be created.
          You can specify that the output should be printed or issued as ane-mail, for example.
          OUTPUT_TYPE
          Indicates the type of output that is created.

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