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

Saving variants on module pool with subscreen

Former Member
0 Likes
1,473

Hi,

I'm using FM RS_VARIANT_SAVE_FROM_SELSCREEN to save variants but I'm getting the error 'Selection screen 100 does not have any objects'.

In my module pool program I've declared a subscreen:

in TOP include:


SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
SELECT-OPTIONS: s_bukrs FOR regup-zbukr,
                s_date FOR regup-laufd,
                s_code FOR zhsbc_bansta-code_no.
PARAMETERS: r_bansta RADIOBUTTON GROUP r1 DEFAULT 'X',
            r_contrl RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF SCREEN 0101.

in screen 100:


PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN screen_0101
       INCLUDING 'Z99FI_HSBC_FILE_REPORTING' '0101'.

PROCESS AFTER INPUT.

  CALL SUBSCREEN screen_0101.

  MODULE user_command_0100.

as it's the easiest way of getting select options on a dynpro. I think this is why I'm getting the above error, as my selection screen 100 is blank but contains subscreen 101 which contains the screen parameters.

Does anyone know how to solve this? I can't put the PAI module in subscreen 101 as it's automatically generated at runtime so any changes I make would be over-written.

Failing that, is there another way of implementing create/save/get variants in a module pool program?

Thanks,

Gill

Hi,

I'm using FM RS_VARIANT_SAVE_FROM_SELSCREEN to save variants but I'm getting the error 'Selection screen 100 does not have any objects'.

In my module pool program I've declared a subscreen:

in TOP include:


SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
SELECT-OPTIONS: s_bukrs FOR regup-zbukr,
                s_date FOR regup-laufd,
                s_code FOR zhsbc_bansta-code_no.
PARAMETERS: r_bansta RADIOBUTTON GROUP r1 DEFAULT 'X',
            r_contrl RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF SCREEN 0101.

in screen 100:


PROCESS BEFORE OUTPUT.
  MODULE status_0100.
  CALL SUBSCREEN screen_0101
       INCLUDING 'Z99FI_HSBC_FILE_REPORTING' '0101'.

PROCESS AFTER INPUT.

  CALL SUBSCREEN screen_0101.

  MODULE user_command_0100.

as it's the easiest way of getting select options on a dynpro. I think this is why I'm getting the above error, as my selection screen 100 is blank but contains subscreen 101 which contains the screen parameters.

Does anyone know how to solve this? I can't put the PAI module in subscreen 101 as it's automatically generated at runtime so any changes I make would be over-written.

Failing that, is there another way of implementing create/save/get variants in a module pool program?

Thanks,

Gill

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
1,182
Read only

Former Member
0 Likes
1,182

I don't want to create a transaction variant. I want the users to be able to maintain selection variants from the selection screen.

Read only

Former Member
0 Likes
1,182

Hi,

Check this blog..may be it can help u..

Regards,

Joy.

Read only

Former Member
0 Likes
1,182

Thanks but I've already looked at this blog. This is specific to subscreens on executable programs not module pool.

Read only

0 Likes
1,182

Hi Gill Ackroyd,

have you solved your problem or is it still an open problem. Actually the same problem is coming up at a project of mine and I´ve no idea how to get RS_VARIANT_SAVE_FROM_SELSCREEN working.

THX for your efforts by now

Christian