cancel
Showing results for 
Search instead for 
Did you mean: 

WD ABAP running in EP or standalone

Former Member
0 Kudos

Is there an easy way to determine whether my WD ABAP application runs standalone or within the EP iView?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for the hint, but this was not my question. I have successfully deployed WD ABAP in iViews. But I have an application which runs

a) either standanlone or

b) in the portal.

I am kindly asking for a a line of ABAP code / ABAP snippet which gives my the information whether I do run in the EP or standalone.

Former Member
0 Kudos

From Comp controller get API.

Get a ref to the PORTAL manager,

Check the attribute version

Cheers

Phil.


data: lo_portal_mgr TYPE REF TO IF_WD_PORTAL_INTEGRATION  .                                                                         

  DATA lo_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
  lo_COMPONENTCONTROLLER =   wd_this->get_componentcontroller_ctr( ).

    DATA lo_api_componentcontroller TYPE REF TO if_wd_component.
    lo_api_componentcontroller = lo_componentcontroller->wd_get_api( ).

lo_portal_mgr = lo_api_componentcontroller->get_portal_manager( ).

if lo_portal_mgr->M_PORTAL_VERSION is initial.
  " not portal
    
endif.    

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

this is the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/42/f81cfe63291bc9e10000000a11466f/frameset.htm">documentation</a> for the portal,

grtz,

Koen