SAP Reports / Programs | Sales and Distribution | POS Interface | POS Interface - Outbound(SD-POS-OUT) SAP SD

COPY_MANAGE_PROCESS_STATUS0F01 SAP ABAP INCLUDE - COPYMANAGEPROCESSSTATUS0F01







COPY_MANAGE_PROCESS_STATUS0F01 is a standard ABAP INCLUDE 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 COPY_MANAGE_PROCESS_STATUS0F01 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT COPY_MANAGE_PROCESS_STATUS0F01. "Basic submit
SUBMIT COPY_MANAGE_PROCESS_STATUS0F01 AND RETURN. "Return to original report after report execution complete
SUBMIT COPY_MANAGE_PROCESS_STATUS0F01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT COPY_MANAGE_PROCESS_STATUS0F01

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ENQUEUE_EWDLCOPY CALL FUNCTION 'ENQUEUE_EWDLCOPY' EXPORTING mode_wdlcopy = 'E' mandt = sy-mandt idocnr = t_wdlcopy-idocnr EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

IDOC_READ_COMPLETELY CALL FUNCTION 'IDOC_READ_COMPLETELY' EXPORTING document_number = t_wdlcopy-idocnr IMPORTING idoc_control = s_edidc TABLES int_edidd = t_edidd EXCEPTIONS document_not_exist = 1 document_number_invalid = 2 OTHERS = 3.

EDI_OUTPUT_NEW CALL FUNCTION 'EDI_OUTPUT_NEW' EXPORTING onl_option = 'B' TABLES i_edidc = t_edidc i_edidd = t_edidd_copy.

MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING master_idoc_control = s_in_edidc TABLES communication_idoc_control = t_out_edidc master_idoc_data = t_edidd EXCEPTIONS error_in_idoc_control = 1 error_writing_idoc_status = 2 error_in_idoc_data = 3 sending_logical_system_unknown = 4 OTHERS = 5.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_ES_EDIDOCE CALL FUNCTION 'DEQUEUE_ES_EDIDOCE' EXPORTING mode_edidc = 'E' mandt = sy-mandt docnum = t_out_edidc-docnum.

ENQUEUE_EWDLCOPYLOG CALL FUNCTION 'ENQUEUE_EWDLCOPYLOG' EXPORTING idocnr = t_trigger-idocnr rcvprn = t_trigger-rcvprn EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

IDOC_COPY_FILENAMES_GET CALL FUNCTION 'IDOC_COPY_FILENAMES_GET' EXPORTING i_rcvprn = old_part TABLES pet_pathname = pit_pathname pet_msgtype = pit_msgtype pet_partnr = pit_partnr idoc_tab = temp_trig.

IDOC_COPY_TRIGGER_CREATE CALL FUNCTION 'IDOC_COPY_TRIGGER_CREATE' EXPORTING pi_kunnr = old_part pi_dldnr = temp_trig-idocnr IMPORTING pe_fehlercode = tr_error TABLES pit_msgtype = pit_msgtype pit_pathname = pit_pathname pit_partnr = pit_partnr.

IDOC_COPY_FILENAMES_GET CALL FUNCTION 'IDOC_COPY_FILENAMES_GET' EXPORTING i_rcvprn = old_part TABLES pet_pathname = pit_pathname pet_msgtype = pit_msgtype pet_partnr = pit_partnr idoc_tab = temp_trig.

IDOC_COPY_TRIGGER_CREATE CALL FUNCTION 'IDOC_COPY_TRIGGER_CREATE' EXPORTING pi_kunnr = old_part pi_dldnr = temp_trig-idocnr IMPORTING pe_fehlercode = tr_error TABLES pit_msgtype = pit_msgtype pit_pathname = pit_pathname pit_partnr = pit_partnr.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

EDI_PARTNER_APPL_READ_OUT CALL FUNCTION 'EDI_PARTNER_APPL_READ_OUT' EXPORTING rec_edk13 = p_s_edk13 IMPORTING rec_edp13 = p_s_edp13 EXCEPTIONS partner_is_inactive = 1 partner_is_template = 2 partner_not_found = 3 OTHERS = 4.

EDI_PORT_READ CALL FUNCTION 'EDI_PORT_READ' EXPORTING portname = p_s_edp13-rcvpor IMPORTING typ = port_typ EXCEPTIONS port_not_exist = 1 OTHERS = 2.

ENQUEUE_EWDLCOPY CALL FUNCTION 'ENQUEUE_EWDLCOPY' EXPORTING mode_wdlcopy = 'E' mandt = sy-mandt idocnr = t_wdlcopy2-idocnr EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

IDOC_READ_COMPLETELY CALL FUNCTION 'IDOC_READ_COMPLETELY' EXPORTING document_number = t_wdlcopylog2-idocnr " refidoc IMPORTING idoc_control = s_edidc TABLES int_edidd = t_edidd EXCEPTIONS document_not_exist = 1 document_number_invalid = 2 OTHERS = 3.

MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING master_idoc_control = s_in_edidc TABLES communication_idoc_control = t_out_edidc master_idoc_data = t_edidd EXCEPTIONS error_in_idoc_control = 1 error_writing_idoc_status = 2 error_in_idoc_data = 3 sending_logical_system_unknown = 4 OTHERS = 5.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_ES_EDIDOCE





CALL FUNCTION 'DEQUEUE_ES_EDIDOCE' EXPORTING mode_edidc = 'E' mandt = sy-mandt docnum = t_out_edidc-docnum.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_structure_name = 'LOG_DISP_CM' is_layout = gs_layout it_events = gt_events[] TABLES t_outtab = gt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = rt_events.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_structure_name = 'STRUC_WDLCOPY' is_layout = gs_layout it_events = gt_events[] * i_save = g_save TABLES t_outtab = gt_outtab_reorg EXCEPTIONS program_error = 1 OTHERS = 2.

EDI_OUTPUT_NEW CALL FUNCTION 'EDI_OUTPUT_NEW' EXPORTING onl_option = 'B' "batch TABLES i_edidc = com_edidc i_edidd = int_edidd EXCEPTIONS OTHERS = 1.

DEQUEUE_ALL * CALL FUNCTION 'DEQUEUE_ALL' * EXPORTING * _SYNCHRON = ' ' * EXCEPTIONS * OTHERS = 1.

EDI_PORT_READ CALL FUNCTION 'EDI_PORT_READ' EXPORTING portname = p_s_edp13-rcvpor IMPORTING typ = port_typ EXCEPTIONS port_not_exist = 1 OTHERS = 2. "#EC *

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_repid i_structure_name = 'SCM_CHECK_CONS' is_layout = gs_layout it_events = gt_events[] TABLES t_outtab = gt_outtab2 EXCEPTIONS program_error = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name COPY_MANAGE_PROCESS_STATUS0F01 or its description.