‎2008 Apr 22 9:11 AM
Hi,
my request is to using write to write some info first and at this screen, add a button at the end of the info , when the button got clicked, jump to the next to display an ALV list. Is this possible?
how can i add a button to the screen, where generally all the 'write' sentence will output data?
thanx a lot
Recke.W.
‎2008 Apr 22 9:28 AM
Hi,
I am no clear by Write statement. But why dont you try this by creating a new screen and add some buttons in it through SE80.
Regards
Sourabh
‎2008 Apr 22 9:28 AM
Hi,
I am no clear by Write statement. But why dont you try this by creating a new screen and add some buttons in it through SE80.
Regards
Sourabh
‎2008 Apr 22 9:42 AM
Hi,
I Think Radio button in the output screen is not possible .you can have Check box instead.
If you are showing the output through ALV,you can use a check box ,on checking that write a subroutine displaying the next required ALV screen and pass it in the User-command in the ALV parameters.so that it will trigger the ALV screen on checking the box.
if you are showing output in normal screen,
write a checkbox and under at-lineselection code the next required ALV display.
May be you can show Radio buttonas icon or symol but can not perform any action on them.
Regards,
Raj.
‎2008 Apr 22 9:53 AM
Instead of having button ..........u can have the Hotspot........
using the write statement in List output..
FORMAT HOTSPOT.
WRITE 'Click me!' COLOR 5.
FORMAT HOTSPOT OFF.
in at-line selection event...u can call the ALV OUTPUT.
AT LINE-SELECTION.
Write the code to call the ALV..
Regards,
Vamshidhar .
‎2008 Apr 22 10:04 AM
Hi, thank you both of u.
Actually my request is not that complicated.
i have 2 screens to display, the first one will tell the information about the search result.
the second one is a alv list.
what i do now is using set pf-status '100' and defining a button in this status. Together with coding
'CASE sy-ucomm.
WHEN 'ALV'.
PERFORM creat_alv.'
ALV list can be displayed.
but my question is, is it possible ?:
1. when using 'write' in program, the result will be displayed in a screen, which is not defined by the user, how to add something into that screen? for example, add a customed button (not in the tool bar like pf-status, but beneather the info which was written by 'write/:' sentence.), when clicked then jump to alv list.
2. or add some information after ALV list.
thanx
‎2008 Apr 22 10:42 AM
Hi Vamshidhar,
thanx for ur answer, it is a way to do that, but seems can not be done at the same time with set pf-status '101'. with the following code, the button in 101 works, but the hotspot will be displayed but doesnt work when clicked.
set pf-status '101'.
FORMAT HOTSPOT.
WRITE:/ 'Click me!' COLOR 5.
FORMAT HOTSPOT OFF.
at line-selection.
write:/ 'got clicked'.
PERFORM creat_alv.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'ALV'.
PERFORM creat_alv.