on 03-21-2006 6:56 AM
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
Hi,
I guess u can use Detailed navigation in Portal to achieve this functionality. U can create SAP Transactional iViews.
Regards,
Piyush.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
If you are working on WD ABAP then you have to use a OBN(Object Based Navigation) call to achieve this. As far as my understanding is concerned you can not call R/3 transaction directly.
I am explaining the steps below, but not providing u with code as its not possible:
1) You will need to do some portal configuration where you create a link b/n ur webdynpro appl and the R/3 transaction..
for same u need to create 2 iviews: 1 wd iView and other R/3 iView.
2) and to pass the parameters you need to go to the event which will trigger r/3 call, in ur wd appl, and write code similar to below mentioned:
CALL METHOD lr_portal_manager->navigate_to_object
EXPORTING
system =
object_type =
OBJECT_VALUE_NAME =
OBJECT_VALUE =
operation =
business_parameters =
FORWARD_OBN_METADATA =
.
Hope this helps.
Regards,
Anoop
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
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.