Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Double click on a table control..

Former Member
0 Likes
2,683

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,776

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.

13 REPLIES 13
Read only

Former Member
0 Likes
1,777

Hi Sathya,

Please add PICK function code in your PF status. That should do it.

Regards,

Aditya

Read only

0 Likes
1,776

Thank you for ur reply Aditya..

please give me a hint about how to add the function code and where...

Read only

0 Likes
1,776

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

Read only

0 Likes
1,776

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.

Read only

0 Likes
1,776

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

Read only

0 Likes
1,776

yes Aditya.. I have done that already..

Read only

0 Likes
1,776

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

Read only

0 Likes
1,776

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

Read only

0 Likes
1,776

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?..

Read only

0 Likes
1,776

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]

Read only

0 Likes
1,776

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

Read only

Former Member
0 Likes
1,776

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

Read only

0 Likes
1,776

Yes.. My Problem got solved..

Thank you Aditya , Dhwani.