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

How to Use At line-Selection Functionality in dialog programming or mpp .

Former Member
0 Likes
1,272

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,158

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

Read only

Former Member
0 Likes
1,158

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.

Read only

Former Member
0 Likes
1,158

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

Read only

0 Likes
1,158

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

Read only

0 Likes
1,158

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

Read only

0 Likes
1,158

hi shiren and max ,thanks a lot , problem is solved .

Edited by: raghu111 on Dec 7, 2011 5:26 AM