Not able to pass parametrs to URL in SICF Handler method
Hi everyone,
We have create a WDA Object which Calls a OCI Catalog and passes the control to catalog using resume plug.
Once the the materials from catalog are selected and we click on submit button controls return back to a SICF Service which contains a Handler class.
In this handler class we are reading the selected Materials using statement-
server->request->get_form_fields( CHANGING fields = lt_cat_fields ).
i am able to get the materials here, now i want to attach these materials & there details to the WDA URL as parameters.
So that we can read the selected maerial details in WDA from URL parameters in the resume plug handler of WDA using-
wdr_task=>server->request->get_form_fields( CHANGING fields = lt_fields ).
How can we achieve this in SICF handler class.
Regards,
Akash Rana
You shouldn't use WDR_TASK directly in WDA. It isn't release for customer/partner usage. Plus these wouldnt' be form fields, but instead header fields if they are URL parameters. Instead of access WDR_TASK and the request/response object directly, you can get the url paramters of a start or resume plug via the WDEVENT importing parameter of the DEFAULT inbound plug (and its handler method).
From the online help:
Suspend and resume plugs can have user-defined parameters. For more information, see Window: Inbound and Outbound Plugs.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm
method HANDLEDEFAULT .
data: l_url_parameters type tihttpnvp.
wdevent->get_data(
exporting
name = if_wd_application=>all_url_parameters
importing
value = l_url_parameters ).
endmethod.
Similar Messages
-
Not able to pass portal login page with valid credentials using WebDispatch
Hi,
We are implementing SAP BillerDirect Portal. To make BillerDirect Portal available over the internet, we Configured SAP WebDispatcher with SSL termination. We followed the steps mentioned in SAP Help Documentaion for SAP WebDispatcher with SSL termination.
http://help.sap.com/saphelp_nw2004s/helpdata/en/76/6d4fa247d0d647b5bd40745400d873/frameset.htm
We created certificate and send it to CA (TrustCenter CA). We received the CA response and we imported the certificate.
AS mentioned in the help document, we configured the SAP Web Dispatcher profile to support SSL termination
We tried to access our BillerDirect Portal over the internet using below link
https://company.com/bd
We are getting login page, once we enter correct user ID and Password, portal is not loading (not going to next page) portal remains on same login page.
If we enter invalid credentials portal login page is giving u201CUser Authentication Failedu201D error.
If we try to access any portal login pages which brings a pop-up for login, login gets succeeded and we are able to see next pages
Examples
1) https://company.com/bd/admin/xcm/init.do
2) https://company.com/monitoring/SystemInfo
All pages which bring up portal login page without pop-up, not able to pass through portal login screen.
We Tried the ProxyMapping option on Dispatcher using Visual admin. This option also didnu2019t work for us.
Here is the WebDispatcher Profile
SAPSYSTEMNAME = xxx
SAPGLOBALHOST = xxxxx
SAPSYSTEM = 00
INSTANCE_NAME = W00
DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
DIR_EXECUTABLE = $(DIR_CT_RUN)
Accesssability of Message Server
rdisp/mshost = hostnameofportalserver with FQDN
ms/http_port = 8101
Configuration for medium scenario
icm/max_conn = 500
icm/max_sockets = 1024
icm/req_queue_len = 500
icm/min_threads = 10
icm/max_threads = 50
mpi/total_size_MB = 80
SAP Web Dispatcher Ports
icm/server_port_0 = PROT=HTTPS,PORT=443
icm/server_port_1 = PROT=HTTP,PORT=80
icm/HTTPS/verify_client = 0
SAP Web Dispatcher Web Administration
icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=D:\usr\sap\xxx\W00\data\icmanroot\admin,AUTHFILE= D:\usr\sap\xxx\SYS\global\security\data\icmauth.txt
Parameters for the SAP Cryptographic Library
ssl/ssl_lib = D:\usr\sap\xxxW00\sapcrypto.dll
ssl/server_pse = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
ssf/name = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
ssf/ssfapi_lib = D:\usr\sap\xxx\W00\sapcrypto.dll
sec/libsapsecu = D:\usr\sap\xxx\W00\sapcrypto.dll
wdisp/ssl_cred = D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
Parameters for Using SSL to the backend server
wdisp/ssl_encrypt = 1
wdisp/ssl_auth = 1
wdisp/ssl_cred = D:\usr\sap\xxxW00\sec\SAPSSLC.pse
wdisp/ssl_certhost = hostnameofportalserver with FQDN
wdisp/ssl_ignore_host_mismatch = true
#ICM Parameters
icm/HTTP/j2ee_0 = PREFIX=/, HOST =hostnameofportalserver with FQDN PORT=50000,SPORT=50001, SSLENC=1,TYPE=1, CRED =D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
We also tried below options in WebDispatcher profile but we are getting same problem.
wdisp/add_client_protocol_header = true
wdisp/add_clientprotocol_header = 1
wdisp/ssl_ignore_host_mismatch = true
#ICM Parameters
icm/HTTPS/forward_ccert_as_header = true
icm/HTTPS/trust_client_with_issuer = *
icm/HTTPS/trust_client_with_subject = *
we also tried
wdisp/ssl_encrypt = 0
wdisp/ssl_auth = 0
we also tried
wdisp/ssl_encrypt = 2
wdisp/ssl_auth = 2
We are not able to resolve issue. Please help us on resolving this issue.
Thanks
Praveen' in Host Names is not allowed. Our hosname has '_'.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm -
Not able to pass table name as parameter in function
Hi,
i am not able to pass tablename as parameter. I am using below function.
function count_test(tabname varchar2) return number is
l_count number;
begin
select count(*) INTO l_count FROM tabname;
RETURN l_count;
END;You can't do it with static SQL.
The only way is to do it with dynamic SQL:
EXECUTE IMMEDIATE 'select count(*) FROM '|| tabname INTO l_count;
Regards.
Al
Edited by: Alberto Faenza on May 10, 2012 1:44 AM
Mispelling -
Not able to Pass Reference Variables to Deferred task
Hi All,
I am not able to Pass the reference variables to Deferred task, With the following code, I am getting null values (for the passed refs) in Deferred Task.
Code is as:
<Action id='1' name='Set Deferred Task Action' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='addDeferredTask'/>
<Argument name='type' value='User'/>
<Argument name='name' value='$(empId)'/>
<Argument name='authorized' value='true'/>
<Argument name='task' value='WF_User Deferred Task'/> // Task defination
<Argument name='date'>
<Date>2008-11-19T14:50:18.840Z</Date>
</Argument>
<Argument name='taskDefinition'>
<block trace='true'>
<defvar name='usrObject'> // This is the variable I am passing to 'WF_User Deferred Task'
<new class='com.waveset.object.GenericObject'/>
</defvar>
<invoke name='setAttributes'>
<ref>usrObject</ref>
<map>
<s>accId</s>
<ref>empId</ref>
<s>updStatus</s>
<ref>newStatus</ref>
</map>
</invoke>
</block>
</Argument>
</Action>
<Transition to='End'/>
Please suggest me.
Thanks,
Ravi.yeah, you don't have your usrObject available in the deffered task however all variables that you put inside the usrObject are avialble. Like <ref>accId<ref> and <ref>updStatus</ref>. If you still need them organized hierarchically, you might try to add one more level to the object before passing it to addDefferedTask
<block>
<defvar name='objWrapper'>
<new class='com.waveset.object.GenericObject'/>
</defvar>
<defvar name='usrObject'>
<new class='com.waveset.object.GenericObject'/>
</defvar>
<invoke name='setAttributes'>
<ref>usrObject</ref>
<map>
<s>accId</s>
<s>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</s>
<s>updStatus</s>
<s>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</s>
</map>
</invoke>
<invoke name='setAttributes'>
<ref>objWrapper</ref>
<map>
<s>usrObject</s>
<ref>usrObject</ref>
</map>
</invoke>
<ref>objWrapper</ref>
</block>I hope you ve got the idea. Cheerz. -
We are not able to pass the presentation variables(date & Date1) to the det
Hi,
We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
But we are not able to pass the presentation variables(date & Date1) to the detail report.
Any suggestions are highly appreciated.
Thanks in Advance
Siva.Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
i have not tried it.Give it a try.
Regards,
Sandeep -
Not able to Pass header info to Microsoft MapPoint WebService using WLS10
We are passing some Header info to the MapPoint Web Service from our client Web Service which is hosted in Weblogic 10, however we are not sure if the info is getting passed.
The actual soap header which we are trying to postis as below:
<env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<m:CustomerInfoFindHeader xmlns:m="http://s.mappoint.net/mappoint-30/">
<m:CustomLogEntry>2</m:CustomLogEntry>
</m:CustomerInfoFindHeader>
</env:Header>
We are using the below code snippet for setting the header:
Document doc = null;
try
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
doc = factory.newDocumentBuilder().newDocument();
catch(ParserConfigurationException pce)
System.out.println("ERROR -> " + pce.getMessage());
Element header = doc.createElementNS("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV:Header");
Element headerContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/","m:CustomerInfoFindHeader");
Element headerChildContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/", "m:CustomLogEntry");
headerChildContent.appendChild(doc.createTextNode("2"));
headerContent.appendChild(headerChildContent);
header.appendChild(headerContent);
Attr nsAttr = doc.createAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:m");
nsAttr.setValue("http://s.mappoint.net/mappoint-30/");
headerContent.setAttributeNodeNS(nsAttr);
findServiceControl.setOutputHeaders(new Element[] {header});
Here findServiceControl is the Service Control object.
Even if the code is not throwing any error/exception I am not able to see the header portion which invoking the Mappoint Web Service (using the weblogic test client for testing the webservice).
Is there any other methodology for setting the header.
Regards
Sanjeev SinghIf you're not sure the header is being created properly, you should switch to using a javax.xml.transform.stream.StreamSource and javax.xml.transform.dom.DOMResult. For instance:
import java.io.ByteArrayInputStream;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.stream.StreamSource;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
StringBuffer xml = new StringBuffer()
.append("<env:Header ")
.append("xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">")
.append("<m:CustomerInfoFindHeader xmlns:m=\"http://s.mappoint.net/mappoint-30/\">")
.append("<m:CustomLogEntry>2</m:CustomLogEntry>")
.append("</m:CustomerInfoFindHeader>")
.append("</env:Header>);
TransformerFactory xformFactory = TransformerFactory.newInstance();
Transformer transformer = xformFactory.newTransformer();
ByteArrayInputStream bais = new ByteArrayInputStream(xml.toString().getBytes());
DOMResult result = new DOMResult();
transformer.transform(new StreamSource(bais), result);
Document document = (Document)result.getNode();
findServiceControl.setOutputHeaders(new Element[] {document.getDocumentElement()});
If you want to see the SOAP request being sent to the Mappoint Web Service, add the following to the JAVA_OPTIONS environment variable (in the startWebLogic.cmd file), and bounce it:
-Dweblogic.wsee.verbose=*
-Dweblogic.log.RedirectStdoutToServerLogEnabled=true
This will write the SOAP request (and SOAP response) to the server log of the WebLogic Server instance, which the service control is running in. -
Could not able to see POs in URL (SRM-SUS-MM) Scenario
Hi All,
We have created a PO in MM(R/3) and was transferred to SUS through XI.
We could able to see the PO in TCode BBP_PD in SRM-SUS. But for some reason we are not able to see the PO from the URL.
We have Purchaser (SRM_ADMIN) and Vendor (ARAMI-02) assigned the roles SAP_EC_SUS_ADMIN_PURCHASER and SAP_EC_SUS_ORDER_PROCESSOR respectively.
My Org Structure is as follows:
We have an Organization defined as company. Function CCode deifined.
We have an POrg defined as POrg Function POrg Defined.
We have an Pgrp defined as PGrp Function PGrg Defined.
We have defined vendor Org. haven't assigned anything in function tab.
But defined some attributes needed for Vend Org.
The PO is coming into transaction BBP_PD(SRM SUS) through XI from MM R/3 but is not available in URL either for Purchaser or for Vendor.
Please tell me what needs to be done to resolve the above issue.
Thanks in advance...
Regards,
Ravi..Hi
<b>Yes sure.. Ask BASIS Team to help out and add the required role / profile to the required User, who is unable to see the POs.</b>
<u>Please go through the following SAP OSS Notes as well -></u>
<b>Note 852516 Buyer administrator is not able to view supplier documents</b>
Note 854910 Buyer administrator is able to change status for invoices
Note 818385 Purchaser Admin has wrong authority to change invoices
Note 1024327 Short dump when trying to open a vendor message
Note 1032800 Error opening a vendor message in SUS
Note 1029356 Error opening a vendor message in EBP&SUS in one client
Note 884905 No SUS alerts displayed in BP SuCo 2.0
Note 743084 Missing status 'rejected' for Order in Menu
Do let me know.
Regards
- Atul -
Not able to navigate to the URL in new window
I am trying to navigate to the URL form the OAF page through simple button and it should open in new window.In 11i it was working fine bu using setDestination(url) and setTargetFrame("_blank") properties but in R12 setTargetFrame property is not working so I am not able to open the url framed in new window.It is opening in the same window.In R12 I am trying with javascript with the following code but it is not working there.Could you please help it is urgent?
xxExtRef.setDestination("javascript:window.open(url);");
where url variable holds the URL which is framed at run time i.e. url is different for diffrent customers
Any pointers would be of great help.
Thanks in advance.Hi ,
Instead of button you can go for Link and hardcode the url (eg : http://www.yahoo.com ) and set the target frame as _b using declarative implementation from Jdeveloper .
it will open the URL in a new window .
Keerthi -
Hi,
I am trying to record script in using Functional Oracle EBS/Form in open script but only Oracle Forms actions are got captured.
I am not able to record first web navigation(URL/Certificate Error : Navigation Blocked) part, only i am getting "web.window(7, "/web:window[@index='0' or @title='about:blank']"). close()" code for navigation of URL part.
I tried with changing Capture Screen in Recorder but doesn't work.
How to resolve this.
Please help me out.
Here is some info :
OATS version : Version: 12.3.0.1 Build 376
Browser : Internet Explorer 9
Operating System : Windows 7
I am using VPN connection to open oracle application.try adding ur url in secured site list
-
Not able to access parent instance variable in outside of methods in child
Hi,
I am not getting why i am not able to access parent class instance variable outside the child class intance methods.
class Parent
int a;
class Child extends Parent
a = 1; // Here i am getting a compilation error that Syntax error on token "a", VariableDeclaratorId expected after this token
void someMethod()
a = 1; // Here i am not getting any compilation error while accessing parent class variable
}Can any one please let me know exact reason for this and what is the error talks about?
Thanks,
Uday
Edited by: Udaya Shankara Gandhi on Jun 13, 2012 3:30 AMYou can only put assignments or expressions inside methods, constructors or class initializors, or when declaring a variable.
It has nothing to the with Child extending Parent.
class Parent {
int a = 1;
{ a = 1; }
public Parent() {
a = 1;
public void method() {
a = 1;
} -
Not able to get the complete URL in mail content
Hi All,
I want to give the below link in mail which is sent from workflow, so on click of it, the user will be able to open the particular opportunity directly.
https://<sys_host>%3Fcrm-object-type%3DBT111_OPPT%26crm-object-action%3DB%26crm-object-keyname%3DGUID%26crm-object-value%3DXXXXXXXXXXXX
XXXXX here is GUID of the Opportunity of 32 character.
For this, I have created a attribute of type BAPITGB-LINE. When inserting this expression into the mail activity of the WF, I have chosen the data to be exported as "All lines as cont. text".
In this attribute, when I concatenate the values and the guid, I get only part of the link as below which is 133 characters.
https://<sys_host>%3fcrm-object-type%3dbt111_oppt%26crm-object-action%3db%26crm-object-keyname%3dguid%26cr
When I try to append it in a internal table of type BAPITGB, I am getting the complete URL but with a space between every line in the internal table as below.
https://<sys_host>%3Fcrm-object-type%3DBT111_OPPT[SPACE]%26crm-object-action%3DB[SPACE]
%26crm-object-keyname%3DGUID[SPACE]%26crm-object-value%3D
DFD60A8AD0E53DF1918F0050569F0324
Please let me know, how to avoid this space in append statements. Also, the concatenate is taking only 132 characters, after which it cuts the URL, leaving it incomplete.Kindly correct me if I was wrong somewhere.
Thanks,
Ramya
Edited by: Gali Kling Schneider on Jul 11, 2011 9:47 AMHi Sanjay,
As suggested, I have split the URL into 3 links in WF container having the initial values as below.
Link1 -> <sys_host>.%3Fcrm-object-type%3DBT111_OPPT
Link2 -> %26crm-object-action%3DB %26crm-object-keyname%3DGUID
Link3 -> %26crm-object-value%3D
In the mail activity, I have given the link as: &LINK1&&LINK2&&LINK3&&GUID&
&GUID&-> GUID of the opportunity.
When I tested this in log-> List with technical details-> mail, it had the correct value without space as below.
https://<sys_host>.%3Fcrm-object
-type%3DBT111_OPPT%26crm-object-action%3DB
%26crm-object-keyname%3DGUID%26crm-object-value%3DDFD60A8AD0E53DF1918F00505
69F0324
But in SOST, when I checked for the link it is having spaces as below:
https://<sys_host>%20%3Fcrm-object-type%3DBT111_OPPT%20%26crm-object-action%3DB%26crm-object-keyname%3DGUID%20%26crm-object-value%3D%20DFD60A8AD0E53DF1918F0050569F0324
Kindly advice.
Thanks,
Ramya
Edited by: Gali Kling Schneider on Jul 11, 2011 9:48 AM -
Not able to pass user credentials in a full trust proxy to call web service in Sandbox solution
Hello,
I am trying to build a sandbox webpart that calls a windows authenticated webservice to fetch some data. I tried to pass the DefaultCredentials to the webservice proxy but The credentials passed are that of the
usercodeserviceproxy process ( in my case it is network service) . I see that the user account trying to authenticate is Domain\machinname$ which is the network service.
My question is - is there a way to pass the logged in user credentials to the web service from sandbox proxy ?' in Host Names is not allowed. Our hosname has '_'.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm -
Not able to pass a date in send mail utility.
Hi,
The requirement is :
when some one is getting terminated in HR, send a mail to a fixed set of people.
I created a trigger on Insert. Passing the person_id and calling a conc program. The IN to the conc program is person id. Now in the pkg I am using a cursor to get some details and sending as a send mail. Using FND_Message.
But when I am trying to pass the end_date as a part of the message it's not working. I gave fnd_log to check what is getting passed in that date, but it's always null. Not sure why.
I even tried using to_char but does not help. Any clue?Shankzzz wrote:
when some one is getting terminated in HR, send a mail to a fixed set of people.Yeah.. everyone in HR should be termimated - and we, Cyberdyne Systems, have the perfect solution. It is called the Cyberdyne Systems Model 101. Easy to program. Never yet have missed a target. And as we also do not like HR, we can sell you a Model 101 at a special dis-count too.
I created a trigger on Insert. Passing the person_id and calling a conc program. The IN to the conc program is person id. Now in the pkg I am using a cursor to get some details and sending as a send mail. Using FND_Message.
FND_MESSAGE ?
But when I am trying to pass the end_date as a part of the message it's not working. I gave fnd_log to check what is getting passed in that date, but it's always null. Not sure why.
FND_LOG ?
No idea what these are. You are perhaps talking Oracle Applications?
In this forum we talk SQL and PL/SQL server language - the plain vanilla flavour that comes with every Oracle RDBMS database. No applications. No Forms.
I even tried using to_char but does not help. Any clue?Why would a to_char() change a null value into a non-null value? -
Not able to pass input to XMLType datatype.
hi,
CREATE TABLE xml_data_test(xml_data XMLTYPE);
Create Or replace procedure XML_SP (P_XML XMLType)
as
begin
Insert into xml_data_test Values ( (P_XML) );
end;
exec XML_SP ('<MAIN><INFO> <COLUMN_NAME>COL1</COLUMN_NAME><DATA_TYPE>CHAR(1)</DATA_TYPE></INFO></MAIN>');
Error report:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'XML_SP'
How to insert the XML string to a xmltype table.If we want to pass from java or.ODP or OCCI we need to call as sp_name (xmltype(''));?
Not necessarily.
I'm not sure about OCCI but Java and ODP.Net support XMLType object client-side, so you can build an instance programmatically and directly pass it to the procedure.
Check the corresponding docs for more details :
OCCI : http://docs.oracle.com/cd/E11882_01/appdev.112/e10764/toc.htm
ODP : http://docs.oracle.com/cd/E11882_01/win.112/e23174/toc.htm
Java : http://docs.oracle.com/cd/E11882_01/appdev.112/e10769/toc.htm -
Not able to pass parameters to append search help
Hi
I have created a new search help, when I am testing it, its working fine.
My requirement is to append this search help to an existing search help.
The problem is, after appending the parameters are not getting passed through the new search help tab.
The parameter assignment and all are done.
Kindly help me in this regard.
Thanks,
Pallavi.look at how the other elementary search helps are set up within the collective...sounds like you have errors in your settings.
Maybe you are looking for
-
Replacing macbook with pro, can I install FCP again?
I'm on the verge of buying a new Macbook Pro to replace my dying Macbook, but need to know if I'll have to buy a new copy of Final Cut as well. The included documentation states that Final Cut Studio 2 can be installed on 1 laptop and 1 desktop, and
-
Can anyone help with my code?
Hello, I bought Photoshop last december, I got my invoice and everything went well untill the 30 days trial end, I can't use it anymore is asking for a code and I can't find it ANYWHERE, please help.
-
Help with a database template - Desktop Product Inventory Template
Hello Developers, I'm trying to develop a database to track purchase orders, supply levels, and supplies issued (with reports). I've been working with the MS Access template called "Desktop Product Inventory", but it has more functionality than I nee
-
Hello, I recently reinstalled my system fresh and ending up exctracting master copies of my old iphoto library (show package contents > masters). I imported all of those pictures into the new iphoto via file import. This was just fine (it took awhile
-
PSE10 Process doesn't unload when exiting
This is a recent problem: I'm running PSE-10 under Win-XP. When I finish using PSE, I exit as usual. Then, If I click on the desk-top Icon to launch PSE-10, again, it won't load. Using Windows Task Manager, I see that the Photoshop Elements 10.0.exe