2008 Jul 28 12:54 PM
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
2008 Jul 28 2:30 PM
Have you try with transaction variant option
http://help.sap.com/saphelp_nw04s/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm
a®
2008 Jul 28 2:41 PM
I don't want to create a transaction variant. I want the users to be able to maintain selection variants from the selection screen.
2008 Jul 28 2:55 PM
2008 Jul 28 3:12 PM
Thanks but I've already looked at this blog. This is specific to subscreens on executable programs not module pool.
2008 Sep 24 2:08 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |