06-05-2009 11:52 AM
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.
06-05-2009 12:30 PM
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
06-05-2009 12:55 PM
06-11-2009 8:15 AM
08-17-2009 2:57 PM
Hi Sangeeta,
could you please say me what the solution you find to this problem?
thanks.