COPYMGD1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to create a copy of one of the following
If you would like to execute this report or see the full code listing simply enter COPYMGD1 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.
Title: Copy Standard Function Group SAPLMGD1/SAPLMGD2 for the Material Master
Text Symbol: 001 = The function group could not be created.
Text Symbol: 002 = The function group could not be created in full.
Text Symbol: 003 = The function group
Text Symbol: 004 = was created.
Text Symbol: 005 = Subscreens for the material master
Text Symbol: 006 = System error reading
Text Symbol: 007 = The main program could not be generated.
Text Symbol: 008 = Choose a name with 25 characters max.
INSERT REPORT TOP_INCLUDE FROM REPTAB.
No SAP DATABASE tables are accessed within this REPORT code!
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
RS_FUNCTION_POOL_ADD CALL FUNCTION 'RS_FUNCTION_POOL_ADD' EXPORTING AKTION = AKTION_UPDA AREA = FUGR_NEU CORRNUM = ' ' TEXT = 'Bildbausteine Benutzereigener MatStamm'(005) UNAME = SY-UNAME WITH_KORR = X WITH_MONITOR = ' ' SAVE_ACTIVE = 'X' IMPORTING NEW_NAME = FUGR_NEU EXCEPTIONS OTHERS = 01.
FUNCTION_INCLUDE_CONCATENATE CALL FUNCTION 'FUNCTION_INCLUDE_CONCATENATE' IMPORTING TOP = TOP_INCLUDE CHANGING PROGRAM = RAHMEN_PROG COMPLETE_AREA = FUGR_NEU EXCEPTIONS NOT_ENOUGH_INPUT = 1 NO_FUNCTION_POOL = 2 DELIMITER_WRONG_POSITION = 3 OTHERS = 4.
RS_TEXTPOOL_COPY call function 'RS_TEXTPOOL_COPY' exporting cprogram = saplmgdx program = rahmen_prog copy_list_header = ' ' copy_textsymbols = 'X' copy_selopt = ' ' no_dialog = 'X'.
RS_FUNCTION_COPY CALL FUNCTION 'RS_FUNCTION_COPY' EXPORTING DARK_FLAG = X NEW_GROUP = FUGR_NEU NEW_NAME = INIT_FBNAM OLD_NAME = INIT_MGDX.
RS_FUNCTION_ACTIVATE CALL FUNCTION 'RS_FUNCTION_ACTIVATE' EXPORTING ACTION = X CORR_INSERT = X FUNCNAME = INIT_FBNAM WITH_POPUP = ' '.
RS_SCRP_COPY CALL FUNCTION 'RS_SCRP_COPY' EXPORTING SOURCE_DYNNR = T_DYNPRO_ID SOURCE_PROGNAME = SAPLMGDX SUPPRESS_CHECKS = ' ' TARGET_DYNNR = T_TARGET_DYNPRO_ID TARGET_PROGNAME = RAHMEN_PROG.
RS_SCRP_SERVICE CALL FUNCTION 'RS_SCRP_SERVICE' EXPORTING DYNNR = T_TARGET_DYNPRO_ID FUNCTION = GENERATE PROGNAME = RAHMEN_PROG SUPPRESS_CHECKS = ' '.
RS_SCRP_COPY CALL FUNCTION 'RS_SCRP_COPY' EXPORTING SOURCE_DYNNR = T_DYNPRO_ID_002 SOURCE_PROGNAME = SAPLMGDX SUPPRESS_CHECKS = ' ' TARGET_DYNNR = T_TARGET_DYNPRO_ID_002 TARGET_PROGNAME = RAHMEN_PROG.
RS_SCRP_SERVICE CALL FUNCTION 'RS_SCRP_SERVICE' EXPORTING DYNNR = T_TARGET_DYNPRO_ID_002 FUNCTION = GENERATE PROGNAME = RAHMEN_PROG SUPPRESS_CHECKS = ' '.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
COPYMGD1 - Copy Standard Function Group SAPLMGD1/SAPLMGD2 for the Material Master COPYMGD1 - Copy Standard Function Group SAPLMGD1/SAPLMGD2 for the Material Master COPYLISA - Data Definition of the Reference Order for Creating Deliveries COPYLIFS - Read Workload for Picking Waves COPYDATA - documentation and ABAP source code COPF_VALIDATION_FUNCTION_TEST=FT - COPFVALIDATIONFUNCTIONTEST=FT