SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

COPYMGD1 SAP ABAP Report - Copy Standard Function Group SAPLMGD1/SAPLMGD2 for the Material Master







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 see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


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 COPYMGD1. "Basic submit
SUBMIT COPYMGD1 AND RETURN. "Return to original report after report execution complete
SUBMIT COPYMGD1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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.


INCLUDES used within this REPORT COPYMGD1

INSERT REPORT TOP_INCLUDE FROM REPTAB.


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:

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 = ' '.



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 COPYMGD1 or its description.