‎2007 Feb 01 7:42 AM
Is it possible to code some kind of input box in the secondary lists so that the user can directly navigate to a particular secondary list depending on his choice? Am away from office & couldn't answer back when one of my friends asked me that. Please advise me over any possibilities.
‎2007 Feb 01 7:53 AM
Hi Uday,
It's not possible to create the input box in the secondary list. U can create an application in the tool bar and from there u can select the choice.
Regards
Kannaiah
‎2007 Feb 01 7:56 AM
Thanks for replying. Is it possible to code in such a way that some window pops up on my screen when I press on a particular button in the toolbar prompting me to enter a list index number? And then if the lsind is ok then that particular list should be displayed
‎2007 Feb 01 8:07 AM
Hi,
you can create a sub-screen, and put a text box for list index.
and when the button is clicked use
call sub-screan ...
it should solve ur problem.
Regards,
Hardik
‎2007 Feb 01 8:07 AM
Uday,
We can do it .See the below concept
INPUT.
This key word will only be supported for a limited period (for the sake of compatibility with R/2). Instead, please use FORMAT INPUT (see FORMAT ) or the addition ... INPUT of the WRITE statement.
Ex :
REPORT demo_list_format_input.
WRITE 'Please fill in your name before printing:'.
WRITE / ' Enter name here ' INPUT ON.
ULINE.
WRITE 'You can overwrite the following line:'.
FORMAT INPUT ON INTENSIFIED OFF.
ULINE.
FORMAT INPUT OFF INTENSIFIED ON.
This will work for your requirement.
Don't forget to give marks
‎2007 Feb 01 9:45 AM
Hello Murali,
Thank you for your reply. I think that the "INPUT ON" does make the o/p look like a parameter statement. Right? So if I code 1 WRITE statement with INPUT ON then wouldnt it show me just that statement like in a different screen? (selection screen) Coz as how I said I wanted there to be some provision on all the secondary pages where the user could select a particular number and directly go to that particular list. I mean suppose am in 3rd secondary list & if the user selects an option there he should be able to directly traverse to any list number. Can you please provide me any code for the method you suggested? All helpful answers would be duly rewarded.
‎2007 Feb 01 8:16 AM
You can see it from the following Ex:
Parameter: P_date like sy-datum.
Data: lv_add.
End-of-selection.
Write: p_date,
lv_add input.
At line-selection.
read line 3 field value lv_add into lv_add.
read line 3 field value p_date into p_date.
p_date = p_date + lv_add.
Write: p_date.
Do reward points.
‎2007 Feb 01 8:45 AM
Hi Uday,
Use the function module:
POPUP_WITH_2_BUTTONS_TO_CHOOSE
Regards
Kannaiah
‎2007 Feb 01 8:55 AM
Hi Kannaiah, does the POPUP_WITH_2_BUTTONS_TO_CHOOSE accept user input? I think that it is used to display a message with continue & cancel options. Right? Sorry if am wrong, its just that am away from my PC so cant see the help for the FM
‎2007 Feb 01 9:00 AM
Hi Uday,
The function module generates a popup window, in which 2 buttons will be there for selection. U can place the list numbers in them and can generate the output.
Regards
Kannaiah
‎2007 Feb 01 9:01 AM
you can use
POPUP_TO_GET_ONE_VALUE
POPUP_TO_GET_VALUE
regards
shiba dutta