2011 Dec 03 5:14 AM
hi
i had created customized Transaction ,
in that notification field is there , their when they place notification number ,after that when they double click on that, it have to go to iw23 .(so that they will get confirm that notification number is write )
i have tried to use AT LINE-SELECTION event it showing error ,
where i have to write and which event i have to use ?
may i know how can i resolve this ?
Thanks a lot
Edited by: raghu111 on Dec 3, 2011 6:14 AM
hi
i had created customized Transaction ,
in that notification field is there , their when they place notification number ,after that when they double click on that, it have to go to iw23 .(so that they will get confirm that notification number is write )
i have tried to use AT LINE-SELECTION event it showing error ,
where i have to write and which event i have to use ?
may i know how can i resolve this ?
Thanks a lot
Edited by: raghu111 on Dec 3, 2011 6:14 AM
2011 Dec 03 9:01 AM
Hi
AT LINE-SELECTION event is for abap list only, if you use a dialog programm, so a dynpro, you have to assigne the ok-code to function key F2, in this way this ok-code will automatically be triggered for doubleclick, and at the end you have to manage the code in the user_command
Max
2011 Dec 05 9:20 AM
Hi Raghu,
If you want enable At line-selection Functionality in MPP we need to assign F2 function key for double click functionality .The Default function Code for Double click is PICK. I hope it will resolve your problem.
2011 Dec 05 10:30 AM
Hi,
Try this.
In screen painter,
for notification field, set the attributes (Display) - enable the checkbox (Responds to double-click).
In user-command of the screen, use the below code for the ok_code 'PICK'
when 'PICK'.
DATA: wsl_scrfldnm TYPE scrfname.
GET CURSOR FIELD wsl_scrfldnm.
CHECK NOT wsl_scrfldnm IS INITIAL.
If wsl_scrfldnm = <notification_field>.
IF not <notification_field> IS INITIAL.
SET PARAMETER ID '<XXX>' FIELD <notification_field>.
CALL TRANSACTION '<TTT>'.
ENDIF.
Endif.
XXX - refers to the parameter id of the notification field
TTT - refers to transaction code to be executed
Hope this may be helpful.
Regards,
Sharin
2011 Dec 05 11:20 AM
hi sharin.
Thanks for ur reply
i followed ur steps
WHEN 'PICK'.
DATA : dc_scrfield TYPE zmotor-qmnum.
GET CURSOR FIELD dc_scrfield.
CHECK NOT dc_scrfield IS INITIAL.
IF dc_scrfield = zmotor-qmnum.
IF NOT zmotor-qmnum IS INITIAL .
set PARAMETER ID 'IQM' FIELD zmotor-qmnum.
call TRANSACTION 'IW23'.
ENDIF. .
ENDIF.
its not working
but i already tried like this .
WHEN 'PICK'.
if field name =tablename-fieldname
set PARAMETER ID 'IQM' FIELD zmotor-qmnum
call transaction 'IW23'
endif
i written in pai event ." i have dought here also whether i have to write here r not
HERE ITS WORKING BUT PROBLEM IS FOR ANOTHER FIELDS ALSO ITS RESPONDING . how to stop the responding .
as per my knowledge in condition only prob but i tried i didnt solve
please send me one example or tell me how to solve
for better understanding only i pasted coding
thanks a lot
Edited by: raghu111 on Dec 5, 2011 12:21 PM
2011 Dec 05 11:33 AM
Hi
WHat do you mean?
You need to to check the fieldname in order to run the code only for the field where the notification is placed:
GET CURSOR FIELD dc_scrfield.
CHECK NOT dc_scrfield IS INITIAL.
IF dc_scrfield = 'ZMOTOR-QMNUM'.
IF NOT zmotor-qmnum IS INITIAL .
set PARAMETER ID 'IQM' FIELD zmotor-qmnum.
call TRANSACTION 'IW23'.
ENDIF.
ENDIF.Max
2011 Dec 06 6:45 AM
hi shiren and max ,thanks a lot , problem is solved .
Edited by: raghu111 on Dec 7, 2011 5:26 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |