How I can pass parameters by POST method?
How I can pass parameters by POST method?
I use URL Template iView. I checked Requested Method - POST, but when I started the iView the program says:"It's a GET method!"
I use httpServletRequest.getMethod()in the program.
Environment: EP6 SP2
Thank's!
Hi Kremena,
the OSS stands for "Online Service System" - service.sap.com - messages or directly: service.sap.com/message.
Hope it helps
Detlev
Similar Messages
-
Passing Parameters via Post Method from Webdynpro Java to a web application
Hello Experts,
I want to pass few parameters from a web dynpro application to an external web application.
In order to achieve this, I am referring to the below thread:
HTTP Post
As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
I am using SAP NetWeaver Developer Studio Version: 7.01.00
Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
Thanks & Regards,
AnuragHi,
This is purely a java approach, even you can try this for your requirement.
There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
If it is Asynchronous means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
here you go and find the way to implement Asynchronous scenario,
http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
Thanks & Regards
Rajesh A -
Pass parameters via POST in WDPortalNavigation.navigateAbsolute method
Hi,
how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
Thanks,
Yuly RobermanWhat is the procedure to pass parameters via POST using WebDynpro ?
I am required to pass XML Data via POST.
I have gone through the following :
a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
b) Inter Navigation Application in Web Dynpro
However, I could not find any reference to do the same via POST.
Can anyone throw light on the same ?
Best Regards,
Subramanian V. -
How do I pass parameters to a report thru Report Viewer?
hi,
I am moving from Crystal Reports 8.5 to XI in VB6.
How do I pass parameters to a report thru Report Viewer?
Old VB code:
crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"
crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"
crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"
crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"
crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"
Bill toddHi Bill,
Download sample code from the following link:[https://boc.sdn.sap.com/codesamples]
Hope this helps!!
Regards,
Shweta -
BDC - How we can identify errors in Transaction method?.
Hi ,
How we can identify errors in Transaction method?.
Regards
Nikhil V KumarHI
CALL TRANSACTION 'FK01' USING IT_BDCDATA MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_MESSAGES.
IF SY-SUBRC <> 0.
PERFORM FORMAT_MESSAGES.
form FORMAT_MESSAGES .
DATA: L_MSG(100).
LOOP AT IT_MESSAGES.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = IT_MESSAGES-MSGID
LANG = SY-LANGU
NO = IT_MESSAGES-MSGNR
V1 = IT_MESSAGES-MSGV1
V2 = IT_MESSAGES-MSGV2
V3 = IT_MESSAGES-MSGV3
V4 = IT_MESSAGES-MSGV4
IMPORTING
MSG = L_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
write:/ l_msg.
endloop.
endform. " FORMAT_MESSAGES
HOPE THIS HELPS,
PRIYA. -
How i can pass the value into 1 line
Hi expert,
how do i pass all the value for sales document flow item in one line?
i'm using this function
CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
EXPORTING
aufbereitung = '2'
belegtyp = i_del-vbtyp
comwa = l_comwa
nachfolger = ' '
vorgaenger = 'X'
v_stufen = '50'
TABLES
vbfa_tab = lt_vbfa
EXCEPTIONS
no_vbfa = 1
no_vbuk_found = 2
OTHERS = 3.
so now lt_vbfa already got data line by line....
line 1 : contract : 00010 : 1000000 : 19,000.00
line 2 : order : 00010 : 2000000 : 10000.00
line 3 : delivery : 00010 : 3000000 : 10000.00
how i can pass the value into 1 line?
for example :
contract | line | amount | Order | line | amount | delivery | line | amount |
1000000 | 00010| 19,000.00 | 2000000 |00010 | 10000.00 | 3000000 | 00010 | 10000.00 |
Edited by: anuar jusoh on Aug 17, 2009 4:02 AMHi,
What is requirement for passing the data in a single line ? Do you finally need to append the same in the internal table and pass it in the module ?
You can create an internal table of type 1000 character and can loop the existing internal table. Then you can append the Work area in a single line and can finally append it to the table.
DATA : ITAB type standard table of char1000.
Loop at <existing table>.
concatenate table work area wa_char100 into Itab_char_1000.
endloop.
APPEND itab_char_1000 into itab.
Hope this helps.
Thanks,
Samantak. -
HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS?
HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS FOR ENHANCING THE AUTOMATIC SERIAL NUMBER PROFILE///
Hi
You can find user-exit for that. In user exit function you can use all import parameter. Set debugging in include program and you can see all import parameter.
Regards,
M Sajid -
How to pass parameters through POST
Hi,
Can any one help me how to pass the parameters and read it using POST method in webdynpro java.Use the following code to read URL parameters inside WDJ
// Check for URL parameters
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String text = request.getParameter("url_parameter");
Hope this helps. -
How to convert get parameters to post
hi,
i have a problem in adding parameters to url
it is not executing all the parameters as the length is too long
so i read in help file that if lenght is too long we need to convert get parameters to post
can any one tell me how to do that its urgent
http://sapwin2.agi.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=y_test_w001_q&BI_COMMAND_1-BI_COMMAND_TYPE=SET_ITEM_PARAMETERS&BI_COMMAND_1-VISIBILITY=HIDDEN&BI_COMMAND_1-TARGET_ITEM_REF=ANALYSIS_ITEM_1
please tell me how to convert to post parametersHi,
in standard HTML post and get are the two methods sending data from one page to another. While method get the parameter to the URL after "?" and seperated by "&" method post is using an HTML-form.
In your case I would suggest to implement a form with hidden fields named by your parameters and containing the values. By clicking the submit button, the hidden fields are transmitted as post parameters.
example
<html>
<head> </head>
<body>
<form name="test" action="http://sapwin2.agi.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex">
<input type="hidden" name="TEMPLATE" value="y_test_w001_q">
<input type="hidden" name="BI_COMMAND_1-BI_COMMAND_TYPE" value="SET_ITEM_PARAMETERS">
<input type="hidden" name="BI_COMMAND_1-VISIBILITY" value="HIDDEN">
<input type="hidden" name="BI_COMMAND_1-TARGET_ITEM_REF" value="ANALYSIS_ITEM_1">
<input type="submit>
</form>
<body>
</html>
Hope this helps.
Regards Michael -
How to send recomposed data in post method.
Currently, i try to build up MVC user authentication. I used login.html as View, servletA as controller to invoked Model and servletB as Model. The servletB will return queried result to servletA then servletA will decide redirected to specific url.
I has successful use the RequestDispatcher.forward(request, response) to post data from servletA to servletB. whereas i faced a trouble to post data back from servletB to servletA, which i unable put the queried result into request obj before post it back to servletA.
Any genius recommendation about this? or Any method composed data to send via post method?Here's a quick rundown that might help:
Use request.setAttribute() to put an item in request scope in a servlet before dispatching to another servlet or JSP.
Use <useBean> tag in a JSP to read the data on the JSP that the servlet put in request scope.
Alternatively, you can use request.getAttribute(), but the useBean is preferred.
Use request.getParameter() in a servlet to read data that the <form> tag on the JSP page put in request scope.
Use request.setAttribute() and request.getAttribute() to get send/get data between servlets (it could be request.getParameter(), but I dont think so).
There is a RequestDispatcher.forward() and a RequestDispatcher.include(). I'm not sure what the differences are (you'll have to research it.
In MVC, I have a single servlet for the controller (receive all url's, and dispatch to the appropriate JSP). I dont hava a separate servlet for the model. Instead, I instansiate a business object on the servlet, pass data to it, and let it do the calcuations. Then I have it return the data to the servlet which puts it in request scope for the JSP page when I dispatch to it. My MVC usuallyconsists of:
JSP -presentation layer
servlet - control layer
business logic layer
database layer (DAO).
Each layer does not contain the functionality of one of the other layers (clean separation of concerns).
Last note: Whereas you can use a servlet for the controller, a framework such as Spring or Struts is often used instead. -
How do i pass parameters from j2me to jsp?plz help
hi everyone...
i m doing my final year project
can anyone plz tell me how to pass parameters like user name,password,etc.. from a j2me midlet to a jsp page running in tomcat server?
i tried passing parameters in http connection through url as:
String url="http://localhost:8080/example/test.jsp?name=abc";
i need this info urgently as i am not able to proceed with my project... plz help
any suggestions or references would be appreciated...
thank u...
regards,
RinziJHD
hi.
you have written in URL i sperfectly right but if this is also not complete one.
i.e url = "http://localhost:8080/dir/xxx.jsp?userName=jasmit&password=vala"
now when u establishing connection i.e
HttpConnection con = (HttpConnection) Connector.open(url,3);
this will work as an declaration but if u want to send that parameter for that you have to get response from the server and that time only original connection is going to establish i.e
when u r writting
int responseCode = con.getResponseCode();
if(reponseCode == 200)
then ur parameter were passed to jsp page.
in jsp page u have to get parameter using request class
String userName = request.getParameter("userName").toString();
String password = request.getParameter("password").toString();
i hope this might solve ur problem.
Regards,
Jasmit vala
[email protected] -
How I can pass from an iView SAP BW 3x the personnel number to a report BI
Good Afternoon.
I need pass as parameter the personnel number of the user that entry in the portal to a report BI.
I did the following steps for created the iview in the portal:
[Steps for create the iview|http://www.freeimagehosting.net/uploads/cc5306da6f.jpg]
In the properties of the iview of have the following url:
BEx Web Application Query String = http://10.4.33.133:8000/SAP/BW/BEX?&VARID=&VAR_ID_2=ZVEMPLEADO++++++++++++++++++++0004&VAR_VALUE_LOW_EXT_2=00000058&INFOCUBE=ZPA_C01&QUERY=ZPA_C01_Q006
In this moment i have the value for the personnel number fixed with 00000058, But i want know What is name of the variable that i must use for not put a value fixed and this can work for any employee.
How can pass this parameter?
I test with <PERNR>
BEx Web Application Query String = http://10.4.33.133:8000/SAP/BW/BEX?&VARID=&VAR_ID_2=ZVEMPLEADO++++++++++++++++++++0004&VAR_VALUE_LOW_EXT_2=<PERNR>&INFOCUBE=ZPA_C01&QUERY=ZPA_C01_Q006
But this not work .
Thanks in advance for your help
Best RegardsGood Night.
Anyone can help me with this issue , please
Thank in advance for your help-
Regards -
Passing parameters to a method
I am passing objects to another method.
I do some changes to them and expect the changed objects to be available in the calling method ( since they are supposedely passed by reference) when the execution is returned to it. However, I don't get the changed objects but rather the old ones, before the method execution.
Can someone explain?
Thanks,
Boris.I do some changes to them and expect the changed
objects to be available in the calling methodIf you modify an object passed to a method, then the changes made to that object will be visible as soon as they are made.
If you change the parameter so that it references some other object, this will NOT be seen in the calling method.
You can "fake" it by putting the object in question in an array and passing the array. Better though is to just not expect methods to be able to change references they are passed to point at some other object. -
How long can Validating System Tables Post Import really take?
We imported a large transport set (25GB) into a target environment and it ran for about 40 hours and got to the last step Validating System Tables Post Import..., which is essentially executing the Schema Validation Utility (SVU).
At that point it seemed to get stuck, as we let it run for 24 hours and nothing was added to the log and it didn't fail and it didn't complete.
This does not seem reasonable. How long can this possibly take? Can we safely stop the process and run the SVU independently?
Thanks,
JeffMy habit is to save and close all files before sleeping, and shut down at the last percent if I knew I wasn't going to be able to charge within a few hours. My open files and current work is to valuable for me to have the computer sleep right in the middle of whatever I was doing, and the health of my OS is too important to me to ignore the possibility of a hard shutdown.
I do not know for a fact that the machine executes a hard shutdown, or actually does a proper shutdown sequence when it knows a hard shutdown is immenent. -
Mr. Steven help please : How you can pass paremeter by(ADF)
if you have two tables
(table a : E_mail{primary key},a_name)
(table b : E_mail{primary key},b_name)
& the relation between this tables by {E_mail} .
I create view have this two table(two entity) , but i hide the fields
E_mail & b_name from (table b) , then i drag and drop this view to JSP
page called (saveData) and put Commit and create . So, what i need ?
When i commit the page(saveData)i want put E_mail from (table a) to E_mail(table b)
How i can do it ?????
==> if you have an example please give it to me ?I am working with JDev 10.1.2
-what i did ?
-(1)I create view have the entity objects(from two table) named : testview-
(2)i am go to java file of the view(testview) and write :
public void seta_Email(Number value)
setAttributeInternal(a_Email, value); //from table A
setAttributeInternal(b_Email, value); //from table B
protected void create(AttributeList attributeList)
a t1 = get_a();
b t2 = get_b();
try
t1.create(attributeList);
t2.create(t1);
}catch (JboException ex)
t1.revert();
t2.revert();
throw ex;
(3)then i am go to AppModule(javafile) and write :
public void account()
ViewObject vo = get_bView1();
vo.clearCache();
vo.setMaxFetchSize(0);
vo.executeQuery();
Row newRow = vo.createRow();
vo.insertRow(newRow);
newRow.setNewRowState(Row.STATUS_INITIALIZED);
vo.setCurrentRow(newRow);
(4) .................
then what i do ????
please Mr.Steven tell me what's next step ???
Maybe you are looking for
-
I need help to recover my Entourage and iCal
I have just synced my iphone - daily event - but this time all the calender entries hit the fan! Oh dear, what a mess. I appeared to have duplicateds of almost everything! So I went through day by day deleting and updated profiles etc. then I tho
-
How to avoid full Table scan when using Rule based optimizer (Oracle817)
1. We have a Oracle 8.1.7 DB, and the optimizer_mode is set to "RULE" 2. There are three indexes on table cm_contract_supply, which is a large table having 28732830 Rows, and average row length 149 Bytes COLUMN_NAME INDEX_NAME PROGRESS_RECID XAK11CM_
-
When I tried to sync my iphone 4 and ipad in iturnes, an error message popped up saying this device cannot be used because Apple Mobile Device service is not started! What does that mean and how do I start service? I've had these devices for over a
-
I have registered my credit car which is from el salvador, but when I try to buy English movies for example I can't what can be the problem? how Can I solve it? also I'm trying to buy PAGES app but I cannot do it Somebody can help me?
-
Guys, Our company is unfortunately still using OEM copies of Acrobat that we get from Dell. We'd like to incorporate Acrobat 9 into our standard system image, but getting the application installed without a serial number, if possible, is not immedia