Ansicht
Dokumentation
EXIT_SAPLCOAC_001 -
rdisp/max_wprun_time - Maximum work process run time Vendor Master (General Section)This documentation is copyright by SAP AG.
Using this SAP enhancement, you can implement an ABAP report program to create your own print list (user-defined list) for the optical archiving of batch records and/or order records. This print list completes the archiving data defined in the standard system as follows:
- In order records, it is created as a separate list and is archived together with the other order-related lists.
- In batch records, it is added to the print list defined in the standard system and is archived as a component to this list.
Enhancement Interface
The following import parameters are passed to the function module of the enhancement:
AUFNR | Order number |
CHARG | Batch number |
MATNR | Material number |
WERKS | Plant |
PROTOKOLL_ART | Record type that is created: |
1 = Order record | |
2 = Batch record |
Notes on Processing
When calling the list report from include ZXCOAU01, you specify the record type (order or batch record) for which your print list is archived. To do so, check the value of the PROTOKOLL_ART field (see syntax example):
- If your print list is only archived in order records, the PROTOKOLL_ART field must have value 1.
- If your print list is only archived in batch records, the PROTOKOLL_ART field must have value 2.
- If you do not check the PROTOKOLL_ART field, the print list is archived in order records and batch records.
Syntax Example
Calling the List Report from Include ZXCOAU01:
check PROTOKOLL_ART = '1'. (List is only valid for order record)
check PROTOKOLL_ART = '2'. (List is only valid for batch record)
SUBMIT list report
WITH aufnr = aufnr
WITH charg = charg
WITH matnr = matnr
WITH werks = werks
EXPORTING LIST TO MEMORY AND RETURN.
Creating the Print List:
report listreport message-id 40 no standard page heading
line-size 132 line-count 65.
parameters: aufnr like caufv-aufnr, "process order
charg like afpo-charg, "batch
matnr like afpo-matnr, "material
werks like caufv-werks. "plant
...
... (Data definition for user-defined list)
...
* Data for batch record header
include lpppitxt.
top-of-page.
summary.
* Batch record
if h_charg_kz = 'X'.
h_pagno = h_pagno + 1.
* Batch record -> simulating or archiving
if h_charg_simulation = 'X'.
write: /1 text-cps. "Batch record: simulate user-defined list
else.
write: /1 text-cpa. "Batch record: archive user-defined list
endif.
write: 69 text-pag, "Page:
76 h_pagno left-justified.
else.
* Order record -> simulating or archiving
if h_charg_simulation = 'X'.
write: /1 text-aps. "Order record: simulate user-defined list
else.
write: /1 text-apa. "Order record: archive user-defined list
endif.
write: 69 text-pag, "Page:
76 sy-pagno left-justified.
endif.
perform chargenprotokoll_kopf.
start-of-selection.
get parameter id 'CHS' field h_charg_simulation.
get parameter id 'CHP' field h_charg_kz.
get parameter id 'PAG' field h_pagno.
import ecaufv from memory id 'AUF'.
...
... (Code for the creation of a user-defined list)
...
* Include for batch record header
include lpppicpr.
* Ende ------------------------------------------------------------
ROGBILLS - Synchronize billing plans BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 6513 Date: 20240418 Time: 233958 sap01-206 ( 39 ms )