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
5 Responses
sravya

July 3rd, 2009 at 5:08 am
1Hi
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
Cristina

July 20th, 2009 at 4:39 am
2hey 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…
Sravya

August 6th, 2009 at 4:36 am
3Thank’s For the reply
satyendra

November 26th, 2009 at 3:31 am
4where smartforms save?
satyendra

November 26th, 2009 at 3:32 am
5what is the strucher of BDC?
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Recent Posts
Recent Comments
Meta
Archives
Blogroll
SAPLab-SAP Tips! ABAP Tips! is proudly powered by WordPress - BloggingPro theme by: Design Disease