Fonction SAP BAPI_LIKP_PROCESS_MSG - Process Delivery Output

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

Paramètre Reférence Long. Facultatif Description
MESSAGEKEY BAPISELMSG 50 Output Control: Basic Data
MESSAGEPROTOCOL BAPIMSGPROT 53 Processing Logs for Output Processing
RETURN BAPIRET2 548 Return Parameters

Functionality
This method processes outputs for delivery.
All output key attributes entered via the 'MessageKey' parameter areprocessed by the method. If a processing mode is also entered in the'Processing' parameter, only the outputs which correspond to thisprocessing mode are processed.
The parameter 'DynamicOutputDevice' also offers dynamic control of theoutput device.
Error messages are stored in the BAPI return paramter RETURN with thefollowing message types:

  • E (ERROR)

  • W (WARNING)

  • I (INFORMATION)

  • To sort the outputs according to your preferred criteria, use themethods 'OutboundDelivery.GetListOutput' and'OutboundDelivery.ProcessOutput'. If you do not implement sorting, theoutputs will be sorted by key attribute.

    Notes
    You can select outputs using the method'OutboundDelivery.GetListOutput'.

    Description
    You can enter a print profile, or an output device for dynamic printcontrol.

    • PRINTER_PROFILE:

    • Specify a print profile defined in the central system. If the printprofile you enter is not valid, the outputs will not be processed andan 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, which are not defined in the print profile. If you have notspecified a print profile, the printer will be assigned to all outputsto be processed.

        Description
        Indicators which determine the status and send time of the outputs tobe selected.
        For first processing, outputs with status 0 and send time 3 areconsidered.
        An output is only selected for repeat processing if it has status 1 or2, regardless of send time.
        Outputs are only considered for error processing if thsy have status 2,regardless of send time.
        There can be several of the same types of outpus 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 parameterare listed to provide you with an overview.
        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)

        Description
        Selection results are returned in this structure. Using the structure,you can process selected outputs using the method'OutboundDelivery.ProcessOutput'.

        Description
        This structure returns the key attributes of processed outputsincluding their processing status.
        If processed successfully, the status is set to 1, if errors occur, thestatus is set to 2- The value 0 usually means that the processingprogram was not started, for example, if the output was processed byhand.

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