Application Development 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: 

Table Control for field details

Former Member
0 Kudos

Hi ,

I populated the data in table control. There is PO No filed in the table.

I want to see the PO details By Double clicking on that PO Number.

How can I do that. Which statement i should use in the coding.

thanks In advance

Harman

1 ACCEPTED SOLUTION

Former Member
0 Kudos

For the PO column in the table control first activate respond on double click chek box in attbutes .

When you perform docuble click on this field it treggers the PAI event then

get the PO value using GET CURSOR command then call the transaction Me23n with PO number.

Regards,

Gopi ,

reward points if helpfull.

3 REPLIES 3

Former Member
0 Kudos

hi,

u need to make that field <b>respond to double click</b> ( attributes-->display)

now in GUI Status u need to create one button in application toolbar with PICK name and assign F2 function to that.

PICK name is compulsary

now in user_command_1000 of PAI,

write like

MODULE user_command_9000 INPUT.

CASE sy-ucomm.

WHEN 'BACK' OR 'UP' OR 'CNC'.

LEAVE PROGRAM.

WHEN 'MOD'.

ok_code = sy-ucomm.

CLEAR sy-ucomm.

<b>WHEN 'PICK'.</b>

<b> GET CURSOR FIELD matnr VALUE mat_no.

PERFORM fetch_details.

f = 1.</b>

ENDCASE.

ENDMODULE. " USER_COMMAND_9000 INPUT

matnr is my field name in table control

<b>FORM fetch_details .</b>

SELECT mblnr menge FROM mseg INTO CORRESPONDING FIELDS OF TABLE itab1

WHERE matnr = mat_no.

<b> ENDFORM. " fetch_details</b>

reward if useful...

Message was edited by:

Dhwani shah

Former Member
0 Kudos

For the PO column in the table control first activate respond on double click chek box in attbutes .

When you perform docuble click on this field it treggers the PAI event then

get the PO value using GET CURSOR command then call the transaction Me23n with PO number.

Regards,

Gopi ,

reward points if helpfull.

0 Kudos

Very help ful answer

My problem has been sorted out.

Thanks