I have developed some custom programs Reports, for Z-Table updates.
say I have ZTest1, Ztest2 and Ztest3 as three custom programs as executable programs.
Now my job is to a diffrent program and have a common selection screen and have 3 push buttons. test1, test2, test3.
when the user clicks test1 button the program ZTest1 should be triggered and all updates should happend as is.
My question is how would i have a push button on the selection screen without using a module pool program and how the respective programs would trigger.
Marcin Pciak replied
TABLES sscrfields. DATA: program(5) type c. SELECTION-SCREEN: PUSHBUTTON 1(10) TEXT-001 USER-COMMAND CLI1, PUSHBUTTON 1(10) TEXT-002 USER-COMMAND CLI2, PUSHBUTTON 1(10) TEXT-003 USER-COMMAND CLI3. AT SELECTION-SCREEN. CASE sscrfields. WHEN 'CLI1'. program = 'ZTEST1'. WHEN 'CLI2'. program = 'ZTEST2'. WHEN 'CLI3'. program = 'ZTEST3'. ENDCASE. SUBMIT (program) and RETURN.
Hope it will help