Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy stanadard tcode CS03 program hierarchy to our Zprogram from SE80

Former Member
0 Kudos

I am new in abap i have a  requirement to make ZPROGRAM from standard TCODE CS03 program. Actually i have open the standard progarm SAPMC29S in SE80-abap development workbench when i click the program name 'SAPMC29S' there is option to copy the program but when i tried to copy a dialog box opened and  it shows me to copy Documentation , Variants , User interface , Screens and Includes .so I copied them all.finally giving a request and  saving the program but when I checked  My z program in SE80 upon checking the hierarchy to check that all things are copied or not .

I have compared the hierarchy with Program hierarchy  : SAPMC29S  and found that the Transaction tree is missing from my z program  .This means that the whole program is not copied, some things are missing . Actually main purpose of this requirement is to restrict the material name starting from F and C .

8 REPLIES 8

former_member201275
Active Contributor
0 Kudos

Is it not easier to do this from the variant of the original transaction?

You would need to create a Z* transactoin as well and then link this to your copied program, but I would first investigate all other options, particularly why this cannot be controlled simply from the variant as the Material is availabe in this screen and can subsequently be restricted.


0 Kudos

Sir Glen Anthony,

                          can you please elaborate this. are you talking about creating a variant for standard tcode. 

0 Kudos

Yes in the variant you have Select Options. Why not use this?

former_member201275
Active Contributor
0 Kudos

This message was moderated.

former_member201275
Active Contributor
0 Kudos

Hi Udit,

Did you manage to get the variant for this program working? Please post your solution here if this is now solved.

former_member182915
Active Contributor
0 Kudos

HI Udit,

i go through the program SAPMC29S in that only one screen and 3 include and many

tcode  are included so for each different tcode below fm play role to fetch data .


CALL FUNCTION 'CS_BOM_CALL_DIALOG'

         EXPORTING ECSIN  = CSIN

                   EDYNNR = HLP_DYNNR.


which is in

PROCESS AFTER INPUT.

    MODULE START_DIALOG.


So create a z prog with


INCLUDE zMC29STOP.

INCLUDE zMC29SO10.

INCLUDE zMC29SI10.


and create a screen and create a copy of includes

INCLUDE MC29STOP. to INCLUDE zMC29STOP.

INCLUDE MC29SO10.to INCLUDE zMC29SO10

INCLUDE MC29SI10. to INCLUDE zMC29SI10.

If u face any problem let me know,


Former Member
0 Kudos

thanks swadhin ghatuary and Glen Anthony.

my issue is solved.

i have create zcs03 tcode.