12-12-2007 9:43 AM
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
12-12-2007 9:52 AM
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.
12-12-2007 9:48 AM
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
12-12-2007 9:52 AM
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.
12-12-2007 11:17 AM