Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call transaction in salv

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

I have tried using set parameter id it is still not coming...

Former Member
0 Kudos

solved....

0 Kudos

Hi Sangeeta,

could you please say me what the solution you find to this problem?

thanks.