Application Development and Automation 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: 
Read only

module pool programming

Former Member
0 Likes
666

Hi to all

1). First i am coping a zprogram which i screated by someone. The original zprogram is zsdcsc

and my program is zsdcsc2

2)After that i have copy all the screens of the zsdcsc to zsdcsc2.

3).here in zsdcsc32 there are many PBO AND PAI EVENTS for ex MODULE USER_COMMAND_9000 INPUT

i.e original according to the naming convention i want to change it into MODULE SAPXZZ_USER_COMMAND

9000 INPUT WITH the same properties of module usercommand_9000 input,

4)how to get/copy the user_Command properties to the new sapm_user_command_9000 can any

one give the exact answer

5) it will be stored in $tmp, i dont want to change it to package right now

Thanks in advance

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
638

Open your program zsdcsc2 in SE80. Select SCREENS. Right click and select Copy there you can give the source program name and also the new screen number what you want to.

Regards,

Amit

Read only

Former Member
0 Likes
638

If I understand correctly, you have an existing program with modules called names such as USER_COMMAND_9000, and you want to copy these and rename them to match a new naming standard of SAPXZZ_USER_COMMAND

_9000 etc... yes?

Are the PBO and PAI defined as separate includes in ZSDCSC, or are they in line i.e. are they already in your ZSDCSC2 source? If they are not already inline, you will need to copy the PAI & PBO includes across to the new program with appropriate names and refer to these names in ZSDCSC2 (looking at the program in SE80 gives a clearer view of how the includes are referenced).

And then you have to hand craft the changes - but you will find the "Find / Replace" option of great help if you choose the "In main program" (right click on main program name in SE80 for this search), plus the extended syntax check can pick up where you might have a module call in a screen that is not implemented in your code e.g. if you change one module name but forget the other.

A couple of suggestions... a naming standard like "d9000_user_command." makes it easier to visually group all the forms and modules for a screen together in SE80. Also, the usual program name for a custom module pool would start SAPMZ* or SAPMY, and its includes MZ or MY*

Finally, you may find more info on module pool coding in the SDN "UI Programming" forum.

cheers

Jonathan

Read only

Former Member
0 Likes
638

Hi naga,

Go to SE41 and copy the PF status to zsdcsc2 from zsdcsc

Go to SE80, in other functions--> change package....

Regards,

Prabhu Rajesh

Message was edited by:

PrabhuRajesh Janardanan

Read only

varma_narayana
Active Contributor
0 Likes
638

Hi..

1. To Copy Module pool Program:

Goto SE80 .

Open the Modulepool program

Right Click on the Program name and Select COPY from the Menu.

Here you need to Select all the Subobjects like Screens, Menus etc.

So the program will be copied with All the Sub objects.

2. To change the Package:

Right Click on the Program name and Select MORE OPTIONS-> CHANGE PACKAGE ASSIGNMENT.

it will ask for NEW PACKAGE.

Enter and Save.

Reward if Helpful.