Skip to Content
0
Former Member
Jun 05, 2009 at 10:52 AM

Call transaction in salv

87 Views

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.