April 16th, 2009

ABAP ALV Double Click CO03

ABAP Program, ALV, by Jack.

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

Back Top

Responses to “ABAP ALV Double Click CO03”

  1. 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

    sravya Windows XP Internet Explorer 6.0 at July 3, 2009 5:08 am
  2. 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…

    Cristina Windows XP Firefox 3.0.11 at July 20, 2009 4:39 am
  3. Thank’s For the reply

  4. where smartforms save?

    satyendra Windows XP Internet Explorer 6.0 at November 26, 2009 3:31 am
  5. what is the strucher of BDC?

    satyendra Windows XP Internet Explorer 6.0 at November 26, 2009 3:32 am
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*