I'm trying to create a custom report which contains one start screen (main dynpro 100) and a subscreen (dynpro 200) on which a tabstrip is placed. Additional I have several subscreens that can be called by switching the tab of a tabstrip placed on subscreen dynpro 200. The several tabs got their own dynpro number, e.g. 201, 202, 203, and so on.
Now I have some problems with the dynpro processing. At the moment my dynpro processing for dynpro 100 and 200 looks like:
PROCESS BEFORE OUTPUT. MODULE status_0100. CALL SUBSCREEN sc_0200 INCLUDING 'ZCUSTOMREP' '0200'. PROCESS AFTER INPUT. CALL SUBSCREEN sc_0200. MODULE user_command_0100.
PROCESS BEFORE OUTPUT. MODULE status_0200. CALL SUBSCREEN tab_001 INCLUDING 'ZCUSTOMREP' '0201'. CALL SUBSCREEN tab_002 INCLUDING 'ZCUSTOMREP' '0202'. CALL SUBSCREEN tab_003 INCLUDING 'ZCUSTOMREP' '0203'. PROCESS AFTER INPUT. MODULE user_command_0200. CALL SUBSCREEN tab_001. CALL SUBSCREEN tab_002. CALL SUBSCREEN tab_003. <br>
Of course that works, but it means that every subscreen dynpro with its PBO and PAI gets called every time. But I only want the selected tab dynpro to be called. At the moment I have a check argument placed in every tab subscreen routine which compares with the selected tab, but I think that can be done easier?!
Does anybody have an idea about that? I do not have that much knowledge about dynpro sequence programming, so maybe the solution is quite easy. I tried to call the subscreens within the report source where the tab gets selected, but it looks like that it is only possible for normal screens but not for subscreens.
Thanks a lot!