Hello Everyone,
I have a requirement to pass URL parameters between two Design Studio applications and I was able to to achieve this functionality following the instructions in the http://scn.sap.com/docs/DOC-41397.
Now I want to enhance the logic to pass hierarchy nodes as URL parameters between applications and I can't seem find any solution for this. When I select the lowest node(s) of hierarchy, the Opendoc logic works but it fails when I select/pass a hierarchy node as a URL parameter to the destination application.
I am using the following URL to open the destination application:
APPLICATION.openNewWindow("http://AGAPPS707:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AdOsKSPUVXJLmNbXuBTFXBg"+
"&Xv_CC="+DS_FILTER.getFilterExt("0COSTCENTER")+
"&Xv_Period="+DS_MAIN1.getVariableValueText("TVCFCEPR5"));
0COSTCENTER is cost center hierachy
TVCFCEPR5 is the Fiscal Period variable at application level.
AdOsKSPUVXJLmNbXuBTFXBg is destination app doc id.
As you can see I defined Xv_CC and Xv_Period as the global URL variables in the destination app.
As mentioned above, the URL works fine when I select the lowest node(s) or leave hierachy selection blank. See below three working URLs
http://<SERVERNAME>:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AdOsKSPUVXJLmNbXuBTFXBg&Xv_CC=0010/1801200007; 0010/1801200004; 0010/1801290079&Xv_Period=012.2011
http://<SERVERNAME>:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AdOsKSPUVXJLmNbXuBTFXBg&Xv_CC=0010/1801200007&Xv_Period=012.2011
http://<SERVERNAME>:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AdOsKSPUVXJLmNbXuBTFXBg&Xv_CC=&Xv_Period=012.2011
URL fails when I try to pass a hierarchy node. See the failing link below:
http://<SERVERNAME>:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AdOsKSPUVXJLmNbXuBTFXBg&Xv_CC=+UNITED\ STATES(Text\ Node)&Xv_Period=012.2011
I get the error message "Input " UNITED\ STATES(Text\ Node)" for Cost Center has an invalid format"
Please help me resolve this issue.
Regards,
Bhanu