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.

Former Member
0 Likes
584

Hello Everybody,

How do v make availabe collapisible areas in module pool programming?Can anyone help me with that??

Thanking u in anticipation.

Regards,

Supriya Manik.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
557

You do this by using subscreens, one with the ui elements and one with no ui elements, you can then call them dynamially depending on the which icon is clicked.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
558

You do this by using subscreens, one with the ui elements and one with no ui elements, you can then call them dynamially depending on the which icon is clicked.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
557

Hello Rich,

wat r the ui elements??could elobrate a bit on that??

Thanking u in anticipation.

Regards,

Supriya Manik.

Read only

0 Likes
557

The UI elements are the User Interface Elements, like input fields, radiobuttons, pushbuttons, etc.

So one subscreen would contain all of the elements that you want to make collaspable, and the other will be a "Dummy" subscreen with nothing in it.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
557

Hi Supriya,

check this below link may be helpful for you

http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1193042,00.html?NextURL=http%3A//...

If you don't want to login into it

here is the procedure mentioned in the above link supriya...

Many times when we design a screen, we end up putting a lot of things on just that one screen. Collapsible sub-screens are great in that they prevent clutter while not missing out on displaying important data.

For example, consider wanting to display the following:

+ ABC

XYZ

Here ABC is some contents with a button to collapse and expand. Below it is some other contents XYZ.

Logic:

We call a Screen 0100.

Screen 100 has two Sub screen areas sub1 and sub2.

Sub1 has ABC and sub2 has XYZ.

PBO makes call to both the subscreens. The trick is that the Screen No Sub1 calls is dynamic. It either calls 101 or 201, based on if the subscreen 1 is expanded or collapsed.

-->Screen 101 has a button with icon collapse. Its functional code is "EXPCO'. Next to it, it has the contents ABC. (This represents the expanded mode).

-->Screen 201 has a button with icon EXPAND. Its functional code is also "EXPCO'. As it is in the collapsed mode, the contents ABC is not displayed.

On the functional code of 100 for the button EXPCO, we toggle the subscreen number to be called.

Code

REPORT Z_PP_EXPANDER.

data:

gv_screen type sy-DYNNR value '0101',

ok_code type sy-ucomm.

call screen 0100.

  • SCreen 0100

PROCESS BEFORE OUTPUT.

  • MODULE STATUS_0100.

CALL SUBSCREEN sub1 INCLUDING sy-repid gv_screen.

CALL SUBSCREEN sub2 INCLUDING sy-repid '0300'.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

module USER_COMMAND_0100 input.

data:

lv_okcode type sy-ucomm.

lv_okcode = ok_code.

clear ok_code.

if lv_okcode = 'EXPCO'.

if gv_screen = '0101'.

gv_screen = '0201'.

else.

gv_screen = '0101'.

endif.

endif.

endmodule. " USER_COMMAND_0100 INPUT

Regards,

GUDURI