2007 Dec 03 9:31 AM
Hi Experts,
i have screen 9000 on which there are 2 radio buttons for 'YES' and "NO'
when i click on "YES" , on screen 9001(next screen to 9000), the field "Name " should be displayed.
when i click on "NO", on screen 9001(next screen to 9000), the field "NAme" should not be displayed.
How to achieve this module pool??? kindly help.
Hi Experts,
i have screen 9000 on which there are 2 radio buttons for 'YES' and "NO'
when i click on "YES" , on screen 9001(next screen to 9000), the field "Name " should be displayed.
when i click on "NO", on screen 9001(next screen to 9000), the field "NAme" should not be displayed.
How to achieve this module pool??? kindly help.
2007 Dec 03 9:37 AM
Hi
In Screen 9001 keep a field (V_NAME) for displaying the Name or NAme
in 9000 PAI based on the radio button populate that value to that field v_name
if r1 = 'X'.
v_name = 'Name'.
else.
v_name = 'NAme'.
endif.
Check the below link:
http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
You can also check the transaction ABAPDOCU which gives you lot of sample programs.
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
http://www.geocities.com/ZSAPcHAT
http://www.allsaplinks.com/files/using_table_in_screen.pdf
Regards
anji
2007 Dec 03 9:37 AM
what you need for this is the addition NO-DISPLAY of the parameters statement.
2007 Dec 03 10:29 AM
based in the radio button value loop screen. and modify the screen elements in the PBO of screen 9001.
write the following code in PBO of screen 9001.
loop at screen.
if screen-name = 'NAME'.
screen-input = '0'.
modify screen
endif.
end loop..
2007 Dec 07 10:55 AM
Hi,
I the PBO of 9000 write the code
If radiobutton 'YES' (screen 9001) = X.
if screen-name = 'Name'.
screen-invisible = ' '.
modify screen.
endif.
elseif radiobutton 'NO (screen 9001) = X.
if screen-name = 'Name'.
screen-invisible = ' X'.
modify screen.
endif.
endif.
Reward points if this resolves ur query.