ADSUB_SYNC_SER08_TO_PO is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter ADSUB_SYNC_SER08_TO_PO into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: P_TEST = Testrun
Selection Text: P_TRFILE = Path for log file
Selection Text: P_W_LOG = Writing log file
Selection Text: SO_EBELN = D .
Selection Text: SO_PSTYP = D .
Title:
Text Symbol: 002 = Modified lines
Text Symbol: 003 = All selected lines
Text Symbol: 004 = Modified serial number entry for purchase order:
Text Symbol: 005 = Database update error
Text Symbol: 006 = Database lock error
Text Symbol: 007 = runtime:
Text Symbol: 008 = Selection
Text Symbol: 009 = Update
Text Symbol: 011 = End of program, see results in log file:
Text Symbol: 012 = Report is required only for DIMP customers.
Text Symbol: 013 = No update in simulation mode (testrun)
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TR_INITIALIZE_LOG_WITH_FILE CALL FUNCTION 'TR_INITIALIZE_LOG_WITH_FILE' EXPORTING file = p_trfile.
ENQUEUE_EMEKPOE CALL FUNCTION 'ENQUEUE_EMEKPOE' EXPORTING mode_ekpo = 'E' ebeln = lv_ebeln mandt = sy-mandt * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_EMEKPOE CALL FUNCTION 'DEQUEUE_EMEKPOE' EXPORTING mode_ekpo = 'E' mandt = sy-mandt ebeln = lv_ebeln.
TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' TABLES xmsg = lt_errorlog EXCEPTIONS file_not_found = 1 wrong_call = 2 OTHERS = 3.
TR_FLUSH_LOG CALL FUNCTION 'TR_FLUSH_LOG' EXCEPTIONS OTHERS = 0.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.