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

Call transaction in salv

Hi Experts,

I am displaying a report using SALV in CRM.

In the first screen, I have a field partner number with hotspot.

When the user clicks on a particular partner number it should take him to BP transaction and display the partner details.

I have written the following code. Though it is taking me to the BP transaction, it is not displaying the specific data as it is not able to capture the particular BP number.

I have written like this:

*-- create hotspot on Partner Number column

METHOD ON_LINK_CLICK.

CLEAR: WA_FINAL.

CALL METHOD GR_SALV_TABLE->GET_SELECTIONS

RECEIVING

VALUE = GR_SALV_SELECTIONS.

CALL METHOD GR_SALV_SELECTIONS->GET_SELECTED_ROWS

RECEIVING

VALUE = T_SALV_T_ROW.

READ TABLE T_SALV_T_ROW INTO ME->L_ROWNUM INDEX 1.

IF SY-SUBRC = 0.

READ TABLE T_FINAL INTO WA_FINAL INDEX ROW.

IF SY-SUBRC EQ 0.

IF WA_FINAL-PARTNER_NO IS NOT INITIAL.

SUBMIT

CALL TRANSACTION C_BP AND SKIP FIRST SCREEN.

ENDIF.

ENDIF.

ENDIF.

ENDMETHOD.

Please let me know how to do it.

Regards,

Sangeeta.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2009 at 11:30 AM

    use SET PARAMETER statement to set the partner num using parameter id before calling the transaction. You can get the parameter id from data element of partner number.

    L.Velu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2009 at 07:15 AM

    solved....

    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.