My client asks me to add a function that when he double click order column, he wants to see CO03.
Below is the ABAP code.
*&———————————————————————* *& Form LINE_SELECTION *&———————————————————————* * text *———————————————————————-* * –> p1 text * <– p2 text *———————————————————————-* FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield. CHECK r_ucomm EQ ‘&IC1′ AND NOT rs_selfield-value IS INITIAL. CASE rs_selfield-fieldname. WHEN ‘AUFNR’. SET PARAMETER ID ‘ANR’ FIELD rs_selfield-value. CALL TRANSACTION ‘CO03′ AND SKIP FIRST SCREEN. ENDCASE. ENDFORM. ” LINE_SELECTION
Hi
Nice to see this code i want the same sort of code in my programe tha same requriments (when the user click on process order number he should go to cor3 tcode ) .As i was very new to alv i know basic alv but not this .here i am facing a problem like CHECK r_ucomm EQ ‘&IC1′ .&ic1 is not adata statment .
waiting for your reply
hey Sravya…
CHECK r_ucomm EQ ‘&IC1′ – Checks whether the event is a double click ‘&IC1′ .
If it is so, then goes to the case sentence. If it is the field you are expecting the user to press, then it sets the value of the memory id you need, and then to the transaction you want to take the user.
Hope it helps…
Thank’s For the reply
where smartforms save?
what is the strucher of BDC?
ABAP – Use Of Double Click On ALV Grid/List Display
http://sapprograms.blogspot.com/2008/03/double-click-on-alv-prog-1.html