Skip to Content
author's profile photo Former Member
Former Member

Drill Down functionality in ALV Report

Hi Experts,

Gud Afternoon..!!!

My Requirement: I have to display a report in ALV and if user click on vbeln the screen should go to transaction code VA43 for that particular contract.

I used the below code,

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

data: w_vbeln type vbak-vbeln.

IF r_ucomm EQ '&IC1' . " Click value of hot spot

CASE rs_selfield-fieldname.

WHEN 'VBELN'.

w_vbeln = rs_selfield-value.

SET PARAMETER ID 'AUN' FIELD w_vbeln.

CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.

ENDCASE.

ELSEIF r_ucomm EQ 'CANC'

OR r_ucomm EQ 'BACK'

OR r_ucomm EQ 'EXIT'.

LEAVE PROGRAM.

ENDIF.

ENDFORM. " user_command

I am getting error message in VA43 initial screen as "Enter the doc. no"

Plz help me in this. Thanks in Advance..!!!

Regards,

Vadhu...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2008 at 08:16 AM

    hi,

    in SE41 and copy the LISTE status of standard pogram RFWERE00 to your Z program.

    check this link

    drill down functionality needed

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2008 at 08:32 AM

    hi

    did u check this thread

    drill-down-in-alv

    hope this helps

    regards

    Aakash Banga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 11:58 AM

    Hi,

    Thanks Aakash Banga, Rimpa Abhishek..!!!

    I got the solution with help of SDN. The Solution as follows,

    FORM user_command USING r_ucomm LIKE sy-ucomm

    rs_selfield TYPE slis_selfield.

    DATA: w_vbeln TYPE vbak-vbeln.

    IF r_ucomm EQ '&IC1' . " Click value of hot spot

    CASE rs_selfield-fieldname.

    WHEN 'VBELN'.

    w_vbeln = rs_selfield-value.

    REFRESH t_bdcdata.

    CLEAR t_bdcdata.

    t_bdcdata-program = 'SAPMV45A'.

    t_bdcdata-dynpro = '102'.

    t_bdcdata-dynbegin = 'X'.

    APPEND t_bdcdata TO t_bdcdata.

    CLEAR t_bdcdata.

    t_bdcdata-fnam = 'BDC_CURSOR'.

    t_bdcdata-fval = 'VBAK-VBELN'.

    APPEND t_bdcdata TO t_bdcdata.

    CLEAR t_bdcdata.

    t_bdcdata-fnam = 'BDC_OKCODE'.

    t_bdcdata-fval = '=SUCH'.

    APPEND t_bdcdata TO t_bdcdata.

    CLEAR t_bdcdata.

    t_bdcdata-fnam = 'VBAK-VBELN'.

    t_bdcdata-fval = w_vbeln.

    APPEND t_bdcdata TO t_bdcdata.

    CLEAR t_bdcdata.

    t_bdcdata-program = 'SAPMV45A'.

    t_bdcdata-dynpro = '4001'.

    t_bdcdata-dynbegin = 'X'.

    APPEND t_bdcdata TO t_bdcdata.

    CALL TRANSACTION 'VA43' USING t_bdcdata MODE 'P' .

    CALL TRANSACTION 'VA43' AND SKIP FIRST SCREEN.

    ENDCASE.

    ELSEIF r_ucomm EQ 'CANC'

    OR r_ucomm EQ 'BACK'

    OR r_ucomm EQ 'EXIT'.

    LEAVE PROGRAM.

    ENDIF.

    ENDFORM. " user_command

    Thanks & Regards,

    Vadhu Duraisami

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.