Ansicht
Dokumentation
EXIT_SAPLCOAC_001 - User Exit for Batch Record
Addresses (Business Address Services) ABAP Short ReferenceThis documentation is copyright by SAP AG.
![SAP E-Book](https://www.consolut.com/fileadmin/consolut/general/e-books_banner.jpg)
Functionality
You can use this SAP enhancement to implement and archive your own report list for the order record.
Interface of the Enhancement
AUFNR Order number |
CHARG Batch number |
MATNR Material number |
WERKS Plant |
RETURN_CODE Return code |
Example
1. The report list can be called from Include ZXCOAU01 as follows:
SUBMIT List report
WITH aufnr = aufnr
WITH charg = charg
WITH matnr = matnr
WITH werks = werks
EXPORTING LIST TO MEMORY AND RETURN.
2. The report list must be created as follows:
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
...............
............... (Here come the user-defined data) !!!!!!!!
...............
* Data for the batch record header
include lpppitxt.
top-of-page.
summary.
* Order record -> Simulate or Archive
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.
perform chargenprotokoll_kopf.
start-of-selection.
get parameter id 'CHS' field h_charg_simulation.
import ecaufv from memory id 'AUF'.
.....................
..................... (Here comes user-defined coding) !!!!!!!!
.....................
* Include for batch record header
include lpppicpr.
* End ------------------------------------------------------------
Parameters
AUFNRCHARG
MATNR
WERKS
Exceptions
RETURN_CODEFunction Group
XCOASUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2833 Date: 20240604 Time: 005838 sap01-206 ( 28 ms )