2007 Dec 25 1:03 PM
hi,
I am using a table control in my screen(1001). the requirment is
when i double click on one of the rows in the table control then the next screen(1002) with more details abt the row should be called.
I m using the foll code in PAI of1001 .
ok_code1 = ok_code.
clear ok_code.
CASE ok_code1.
WHEN 'PICK'.
GET CURSOR FIELD WA_VBAP-VBELN.
call screen 1002.
But i m not getting the result. when i debug it the debugger never comes to thest 'WHEN 'PICK'.
please help. give me a note..what may be the cause.
Thanx.
2007 Dec 25 1:33 PM
Hi Sathya,
Please add PICK function code in your PF status. That should do it.
Regards,
Aditya
hi,
I am using a table control in my screen(1001). the requirment is
when i double click on one of the rows in the table control then the next screen(1002) with more details abt the row should be called.
I m using the foll code in PAI of1001 .
ok_code1 = ok_code.
clear ok_code.
CASE ok_code1.
WHEN 'PICK'.
GET CURSOR FIELD WA_VBAP-VBELN.
call screen 1002.
But i m not getting the result. when i debug it the debugger never comes to thest 'WHEN 'PICK'.
please help. give me a note..what may be the cause.
Thanx.
2007 Dec 25 1:33 PM
Hi Sathya,
Please add PICK function code in your PF status. That should do it.
Regards,
Aditya
2007 Dec 25 1:40 PM
Thank you for ur reply Aditya..
please give me a hint about how to add the function code and where...
2007 Dec 26 3:16 AM
Hi Sathya,
Say your main program name is : ZPROGRAM
and the PF status you have assigned to the screen containing the table control is: ZSTATUS
Then go to transaction SE41 and enter the program name ZPROGRAM and Status ZSTATUS
Goto Change made -> Drop down in the Function Keys area
Here you shall see "Recommended Function Key Settings" -> in this against the F2 function key - enter the PICK keyword.
Save and activate.
This should do it
Please revert in case of any questions.
Regards,
Aditya
2007 Dec 26 4:48 AM
Hi Aditya,
Thank you for ur help.
I followed the steps that u have told. but i m not getting the output..
that is when i double click it takes me nowhere.
and i have a doubt. how does it capture whether i make the the double click on the table control?
Thank u.
2007 Dec 26 4:55 AM
Hi Sathya,
Have you marked the checkbox "Respond to double click" in the attributes of the table control column that you want active for PICK action?
Please confirm.
/Adi
2007 Dec 26 5:02 AM
2007 Dec 26 5:10 AM
Hi Sathya,
Everything should be set for it to work now. Please ensure whether all components are active in your program, enter your program name in SE80 and activate the whole program. It would prevent anything e,g, a screen or the PF status from being left as inactive.
Could you check and revert.
/Aditya
2007 Dec 26 5:21 AM
Adi. I m getting a message that " status "example" ( pf status created by me for my program) is missing for the interface <my-program-name>
Edited by: Sathya K on Dec 26, 2007 6:30 AM
2007 Dec 26 6:59 AM
hi Aditya,
in my program i have written
call screen 1001.
module_1001_PBO.
break-point.
set pf-status 'z_ex'.
endmodule.
in 1001 flow logic
PROCESS BEFORE OUTPUT
module_1001_PBO.
when debeg my PROGRAM , the screen is called and the debugger never comes to the 'break -point."
Please any idea?..
2007 Dec 26 7:07 AM
Hi
Satya tht is not problem with the thing u r doing see in table control it is not able to detect on which row u clicked and wht information u needed further so u do like this
i think u r table control will have one check box whenu select tht it will fill with value 'x' so accrdingly u keep one button and say like this
when case 'function_code_button'.
loop at table where check_box eq 'x'.
get the detalis u want and
leave to screen required.
endloop.
endcase.
see here pick will not work
plzzz reward if u found my answer helpful to u
for furtherquiries my mail id [email protected]
2007 Dec 26 7:18 AM
Hi Sathya,
First of all - SET PF-STATUS 'Z_EX' - the PF status name should always be in capital else it is NOT recognized
I hope you have entered O
Please make this change and test.
Is the screen 1001 being called? and does screen 1001 hold your table control?
/Aditya
2007 Dec 26 9:02 AM
hi,
Are u assigning 'F2' to 'PICK' as its function key?
In my case its working fine....
MODULE user_command_1000 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'UP' OR 'CANC'.
LEAVE PROGRAM.
WHEN 'PICK'.
GET CURSOR FIELD xblnr VALUE bill_no.
CALL SCREEN 1001.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
reward if usefull......
Edited by: Dhwani shah on Dec 26, 2007 10:03 AM
2007 Dec 26 9:06 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |