2009 May 21 8:08 AM
Hi Gurus,
Scenario:
1) I have a table control with 2 radio buttons, 7 columns and 1 column of push buttons.
2) On click of radio button 2, the push button gets enabled and on click of the push button, a pop-up
screen comes up.
3) After entering data on the pop-up screen, control should come back to the main screen and whatever
data the user has entered should get displayed.
4) Now say user has entered 7 rows of data by repeating the above process. Suddenly, the user wants to
see what he entered in the first row's pop-up, then the user has to press the first row's push button in order
to see what he had entered in the pop-up.
My Problem is with the 4th Point, how can I achieve this.
Challenges I am facing: Even though I am clicking the 5th row's push button, it is showing me the 1st row's
data.
The Pop-up screen's values should change row wise depending on the data.
Please help me out, this issue is eating me up.
Thanks
Chandan
Hi Gurus,
Scenario:
1) I have a table control with 2 radio buttons, 7 columns and 1 column of push buttons.
2) On click of radio button 2, the push button gets enabled and on click of the push button, a pop-up
screen comes up.
3) After entering data on the pop-up screen, control should come back to the main screen and whatever
data the user has entered should get displayed.
4) Now say user has entered 7 rows of data by repeating the above process. Suddenly, the user wants to
see what he entered in the first row's pop-up, then the user has to press the first row's push button in order
to see what he had entered in the pop-up.
My Problem is with the 4th Point, how can I achieve this.
Challenges I am facing: Even though I am clicking the 5th row's push button, it is showing me the 1st row's
data.
The Pop-up screen's values should change row wise depending on the data.
Please help me out, this issue is eating me up.
Thanks
Chandan
2009 May 21 8:20 AM
Hi,
Give the function code for the button something like PB%%, the %% will be replaced with the number of line of the pressed push button during PAI and you can get that using sy-ucomm+2(2).
Hope this helps you, check and revert back.
Regards
Karthik D
2009 May 21 8:32 AM
I tried that, but how should I capture that in the code.
I can't write like this :
CASE ok_code.
WHEN 'PB%%'. <------ This is wrong
CALL SCREEN 110.
ENDCASE.
So can you please tell me how to do that ?
Most Important:
When the fcode of the push button will change, then the table control should start reading from that row only.
For e.g.
IF PB%% gives PB05, which means Row# = 5, then the table control should read only that row.
Is this possible ? Please I need this much only.
Thanks
Chandan
2009 May 21 8:46 AM
dont u go thru all the reply given to ur issue ......
again & again ur asking the same thing....
*screen 100
data: l_function like sy-ucomm,
l_lin type sy-stepl.
clear: ok_code,l_function,error.
ok_code = sy-ucomm.
l_function = ok_code.
if l_function(2) = 'BU'.
clear l_lin.
l_lin = gt_cat09-top_line + l_function+2(2) - 1.
read itab into ls_itab index l_line.--->current line. basedon conditions u can call popup message.
perform get_relations.
if gt_cat06[] is initial.
perform display_popup.--->pop up select options.
else.
saved = 'X'.
endif.
if error ne 'X'.
call screen '0101'.-->i'm calling another screen.
endif.
endif. case ok_code.
when 'SAVE'.
when 'DELE'.
when others.
endcase.
regards
Prabhu
2009 May 21 8:52 AM
Man, I am not asking same question again and again.
Please try 2 understand my issue, its not the same which u have written.
Please read my question properly and then give your comments.
Thanks
Chandan
2009 May 21 9:04 AM
its not a issue , u are not clearing/refreshing POPUP screen the data.
regards
Prabhu
2009 May 21 9:11 AM
The Pop-Up Screen data is stored in some internal table, If I clear that internal table then how come the data will be displayed next time the user clicks the same button.
The user may click the button to see the Pop-Up screen numerous times, what will u do that time ?
From where should I bring data for display to user, if I clear everything ?
Thanks
Chandan
2009 May 21 10:36 AM
Hello Chandan,
try this out.
Remove the push buttons column.
Switch on single selection in table control output ( w/Selection).
Inside the PAI loop just create a module.
there you check w\Selection parameter = 'X'.
if parameter = 'X'.
<move tbcl data to your internal table.>
or
here call the FM for popup.
update your internal table.
endif.
AND declare the parameter in your top include as DATA: sel type c.
let sel be your w/selection variable.
Hope this discussion was helpful.
Cheers,
Suvendu
2009 May 21 11:20 AM
hey suvendu, u have changed my requirement itself.....LOL
unfortunately that is not possible..
2009 May 23 10:51 PM
Hi,
As per my understanding, in table control, you have many pushbuttons with same name.
Which one is pressed is difficult to read?
You can use following code in PAI.
GET CURSOR FIELD <f>
LINE <lin>
If the <f> contains name of your push button, then you can check value in <lin>.
This is nothing but your line in internal table.
Now you can do READ TABLE <int_tab_name> index <lin> which will return exact data.
This data you can show in popup.
Please let me know whether this solved your problem or not.
2009 May 25 4:28 AM
Thanx a lot to everybody who has helped me.
I did a lot of R&D to complete this Development. Your suggestions and answers were valuable.
Thanks
Chandan
2009 May 25 5:27 AM
It would be nice if you tell us how you solved the problem.
Regards
Karthik D
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |