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