Skip to Content
0
Former Member
Nov 24, 2006 at 06:09 PM

cProjects calling custom BSP Application

33 Views

Hi,

I am trying to implement <b>cProjects</b> BAdi DPR_ADD_SAP_TAB_I. I implemented the following code in the method GET_ADD_TAB_DATA.

method IF_EX_DPR_ADD_SAP_TAB_I~GET_ADD_TAB_DATA .


  field-symbols: <tab_data> type DPR_TS_SAP_TAB_CTRL.

  data: lt_tab_data type DPR_TT_SAP_TAB_CTRL.


  lt_tab_data = ct_comp_ctrl.

  loop at lt_tab_data assigning <tab_data>.


    case <tab_data>-obj_type.

*    project definition

      when CL_DPR_CO=>SC_OT_PROJECT.

        <tab_data>-tab_title = 'otr(zotr_cust_txt/proj_txt)'.
        <tab_data>-controller = 'CTRL_TAB_DPO.DO' .
     
    when others.
    endcase.
  endloop.

  ct_comp_ctrl = lt_tab_data.

  EV_BSP_APPL = 'ZCST_TEST'.

endmethod.

I created controller CTRL_TAB_DPO.DO in BSP application ZCST_TEST. I have a welcome BSP page and when I test it from SE80, this works fine.

cProjects is a BSP application.

When the above code is executed, the welcome page is not called from the cProjects application... I tried to debug the code and I believe the problem is that the application<b> ZCST_TEST</b> is not called from application <b>cProjects</b>.

I am novice in BSP Programming. Please put your inputs on how I can call a BSP application 1 from Application 2.

Also, please suggest any better way to do this.

Thanks,

Pat.