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);