cancel
Showing results for 
Search instead for 
Did you mean: 

Problem calling standard transaction BP and Activity

Former Member
0 Kudos
518

Hi Experts,

Please let me know how to call standard transactions BP and CRMD_BUS2000126 from my report.

In this case, it is calling the initial screen of the transactions only but it is not passing my parameters as well.

My code :

CALL METHOD GR_SALV_TABLE->GET_SELECTIONS

RECEIVING

VALUE = GR_SALV_SELECTIONS.

CALL METHOD GR_SALV_SELECTIONS->GET_CURRENT_CELL

RECEIVING

VALUE = T_SALV_CELL.

  • READ TABLE T_SALV_CELL INTO WA_SALV_CELL INDEX 1.

  • IF SY-SUBRC = 0.

*-- Read Row information

ROW = T_SALV_CELL-ROW.

READ TABLE T_FINAL INTO WA_FINAL INDEX ROW.

IF SY-SUBRC = 0.

IF T_SALV_CELL-COLUMNNAME = 'PARTNER_NO' AND WA_FINAL-PARTNER_NO IS NOT INITIAL.

SET PARAMETER ID 'BPA' FIELD WA_FINAL-PARTNER_NO.

CALL TRANSACTION C_BP AND SKIP FIRST SCREEN.

ELSEIF T_SALV_CELL-COLUMNNAME = 'OBJECT_ID' AND WA_FINAL-OBJECT_ID IS NOT INITIAL.

SET PARAMETER ID 'CRM_OBJECT_ID' FIELD WA_FINAL-OBJECT_ID.

CALL TRANSACTION C_CRMD_BUS2000126 AND SKIP FIRST SCREEN.

ENDIF.

ENDIF.

where c_bp is BP and c_crmd_bus2000126 is crmd_bus2000126 .

Regards,

Sangeeta.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

Kindly check the following link which explains how to call a transaction in Report.

[How to Call Transaction within a Report|http://help.sap.com/abapdocu/en/ABENCALL_TRANSACTION_BDC_ABEXA.htm]

I hope this helps.

Regards,

Venkat

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks Forum....