on 2005 Jul 13 2:51 PM
Hi there,
A question to you all:
Is there a "URL generator" in webdynpro like there was back in the java-iview days?
What I want to do is generate a URL that starts a SAPGui transaction.
See below for the "old" url generator code:
Thanks,
faB
// get the url generator service
IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
// get Specialized Portal Url Generator
ISAPUrlGenerator portalGenSAP = null;
ISpecializedUrlGenerator specUrlGenSAP = urlGen.getSpecializedUrlGenerator(ISAPUrlGenerator.KEY);
if (specUrlGenSAP instanceof ISAPUrlGenerator) {
portalGenSAP = (ISAPUrlGenerator) specUrlGenSAP;
// generate SAP Transaction Url
try {
String listInquiryUrl = null;
String startInquiryUrl = null;
String creditinfoUrl = null;
String siParam = "VBAK-VKORG=&VBAK-VTWEG=&VBAK-SPART=&VBAK-VKBUR=&GV_SOLDTO=";
String liParam = "S_VKORG-LOW=&S_VKORG-HIGH=&S_VTWEG-LOW=&S_VTWEG-HIGH=&S_SPART-LOW=&S_SPART-HIGH=&S_VKBUR-LOW=&S_VKBUR-HIGH=&S_KUNAG-LOW=";
String ciParam = "DD_KUNNR-LOW=";
siParam = siParam + myJCoBean.getCustomerNo();
liParam = liParam + myJCoBean.getCustomerNo();
ciParam = ciParam + myJCoBean.getCustomerNo();
listInquiryUrl = portalGenSAP.generateTransactionUrl(request, myProfile.getProperty("SapR3System"), myProfile.getProperty("ListInquiryTcode"), liParam, "WinGui", false, false);
startInquiryUrl = portalGenSAP.generateTransactionUrl(request, myProfile.getProperty("SapR3System"), myProfile.getProperty("StartInquiryTcode"), siParam, "WinGui", false, false);
creditinfoUrl = portalGenSAP.generateTransactionUrl(request, myProfile.getProperty("SapR3System"), "FBL5N", ciParam, "WinGui", false, false);
myJCoBean.setListInquiryUrl(listInquiryUrl);
myJCoBean.setStartInquiryUrl(startInquiryUrl);
myJCoBean.setCreditInfo(creditinfoUrl);
Request clarification before answering.
Hi
I dont know if i really understood your question. But from what i understood i guess the following link would be helpful to you.
From standalone webdynpro i dont think you can directly call a SAP R/3 Transaction. But if your WebDynpro is within Portal then you can create a transaction iView and then call this iview from your WebDynpro using WDPortalNavigation api's. Well the above link given discusses on how exactly to achieve that.
Hope that was helpful.
regards
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.