Skip to Content
avatar image
Former Member

Links in a Tree to call SAP Transactions

Hi Gurus,

Can anybody give a Code where I can call SAP Transactions from a webdynpro tree.

I thought I create SAP Transactional IViews in PCD and Navigate on Click.But this did not work.

This is the code I did.

//on click of Element call sap transaction

public void onActionSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.tut.wd.tree.wdp.IPrivateTreeView.IFolderContentElement selectedElement )

{

//@@begin onActionSelect(ServerEvent)

wdContext.currentContextElement().setTextOfSelectedNode(selectedElement.getText());

if(selectedElement.getText().equalsIgnoreCase("ZX1.")){

WDPortalNavigation.navigateAbsolute("ROLES://portal_content/Buy/Artist", WDPortalNavigationMode.SHOW_EXTERNAL,(String)null , (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, (String)null,(String)null, (String)null);

}

Can any body give me an exit.

Thanks in Advance.

Regards,

Raja Akella

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 21, 2006 at 07:22 AM

    Hi,

    I guess u can use Detailed navigation in Portal to achieve this functionality. U can create SAP Transactional iViews.

    Regards,

    Piyush.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      there exists an OBN API in WebDynpro Java as well. These are the steps that might help you:

      1) Create a Business Object in the Portal Content with an operation for each target transaction

      2) Create transaction iViews for any target transaction

      3) Add all transaction iView and you WD Java iView to the same portal role

      4) Link the business object operations with the transaction iView in the OBN configuration of each iView

      5) Implement LinkToAction Controls for each target transaction in your WD Java application

      6) In the onAction Methods call WDPortalNavigation.navigateToObjectWithSpecificOperation(system, bo, objValue, "ObjectValue", // objValueName, operation, parameters, false, false);

      This should work.

      Best regards,

      Stefan