How to do parameter binding in web dynpro
My Web Service expects an input object called "Token " which consistes of
Token id, Provider -
both strings
Web service is checkUser
I did mapping and all those things . In my UI(automatically created), i'll take the input from user for Token id and Provider. and on action of button iam calling the web service like this
wdContext.currentRequest_CheckUser_checkUserElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
in init method i have binded the request like this
Request_CheckUser_checkUser req = new Request_CheckUser_checkUser();
wdContext.nodeRequest_CheckUser_checkUser().bind(req);
This were the 4 lines of code . Now i get excpetion like this
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [Token] of class [com.intellect.model.proxies.types.CheckUserRq] must exist and can not be null. This is required by schema description.
pls help
Hi sujesh,
U have to set the internet settings like ip address and all in the <b>Logical ports</b>. u can find this when u import ur webservice model u 'll get this logical ports in the tree structure just below the model classes.
and one more thing just try the url of the webservice in the internet explorer if u r able to open it or not.
if u r able to do this then, how r u accessing ur internet?? where r u deploying ur application ?? is that server having that internet access and through which ip??
just check all this and let me know...
Sirisha.
Similar Messages
-
How to change parameter ALLOW_BROWSER in web-dynpro ?
hi,
i have a request where i have to change the property ALLOW_BROWSER in a web-dynpro from NO to YES.
when i get in portal content administration this property is NOT changeable. the value NO is 'undergreyed' as well
as the property CachingLevelHi
have a look on this thread
1. Problem with getting table element's table row
2.How to select the entire row by selecting the checkbox in a table
BR
Satish -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
HOW WE CAN DISPLY DATE IN WEB-DYNPRO
Hi friend,
i want to one example to up load the date format in web-dynpro abap.
THAHi Vikash,
>
vikash wrote:
> Hi friend,
>
> HOW WE CAN DISPLY DATE IN WEB-DYNPRO
>
> THA
if you want to see date calender help in your view, you have to add an input field in the view and bind it with a context attribute of type dats.
Regards
Pranav -
How to call PDF file in Web Dynpro Appl?
How to call PDF file in Web Dynpro Appl?
Hi Gobinath,
1. Create a value attribute of type byte called pdfSource.
2. Insert an UI element called Interactive Form in your layout
3. Set the source property of this Interactive From UI element to the context pdfSource.
4. Insert a button which would open your pdf file.
public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionsubmit(ServerEvent)
IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
byte[] bytes = contextElement.getPdfSource();
try
File file = new File("C:
temp
example.pdf");
FileOutputStream os = new FileOutputStream(file);
os.write(bytes);
os.close();
catch (IOException e)
// do something
e.printStackTrace();
//@@end
Warm Regards,
Murtuza -
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM -
How to send a mail through web dynpro application
Hi
How to send a mail through web dynpro application?
ThanksHi ,
Please post some more details about your query .
One way is to can use LinkToUrl UI element and in the reference property of the UI element , give it as mailto:mail addess
Thanks.
aditya. -
How to put water mark in web dynpro abap Adobe forms
Hi
Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
actually I need to print water mark as back ground in gray color.
Points will be rewarded of Helpful answer..!
Regards,
SidramHi,
for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
Besides, there's an Adobe forum where you might get more information for such Adobe questions.
Regards, Heidi -
How to make color screen in Web dynpro appl?
How to make color screen in Web dynpro appl?
Hi Gobi..
<u><b>Go thorugh the follwing links</b></u>
https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/forum.jspa%3FforumID%3D52
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
<u><b>Tutorial</b></u>
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20edit%20web%20dynpro%20themes.pdf
<u><b>Setting the Theme</b></u>
http://help.sap.com/saphelp_nw2004s/helpdata/en/1e/535d420447e054e10000000a155106/content.htm
<u><b>Configuration</b></u>
http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
Regards,
GS
Message was edited by:
Sathishkumar GS
Message was edited by:
Sathishkumar GS -
How to decrease performane of a web dynpro abap application
Hi Folks,
I am new to web dynpro abap .pls tell me how to decrease performane of a web dynpro abap application but dont say by using icm tracking and wd_trace_tool.that are used to find out errors?>You mean to say we can use Runtime analysis and SQL trace in WDABAP?
Yes, that is exactly what I mean.
>I Thomas i need e learning tutorials created by you.I am new to WDABAP.if possible try to send URL of your e learning tutorials
They are all available here on SCN in the Web Dynpro ABAP eLearning library:
http://www.sdn.sap.com/irj/scn/webdynpro-elearning -
How do I connect my netweaver web dynpro
How do I connect my netweaver web dynpro to the portal? how do i arrange the iviews? how do i add the iviews?
hi,
You can create webdynpro iviews in portal in two ways.
1) from iview template &
2) from webdynpro java applications.
If you create from the 1st one, you have to provide two parameters of the webdynpro application.
i) namespace
ii) application name
you can find these namespace & application name from content admin --> webdynpro --> open your webdynpro project > open the application. you will find two columns.
left side name is the namespace (eg: local/firstproject) & right side you will find application name.
If you create iview from 2nd menthod, the following is the link contains creation of webdynpro iview.
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9]
hope this helps you
regards,
vv. -
How to browse local file using web dynpro
hi everyone
How can I browse local file using Web Dynpro?And read file names into Context or array. I have tried the following code but its not working
String resourcePath = WDURLGenerator.getResourcePath();
String depObjResourcePath = WDURLGenerator.getResourcePath(Test);
WDDeployableObjectPart appPart = WDDeployableObject.getPart(Test, TestApp, WDDeployableObjectPart.APPLICATION);
help required urgently
Thanks & Regards
Jaspreet KaurReply in
how to browse local file using web dynpro
Regards,
Ashwani Kr Sharma -
Pass a parameter in a Web Dynpro Application
Hi,
I have a Web Dynpro that Calls a RFC. This RFC needs a parameter (user ID from portal) in order to obtain Info. from the R/3 System.
I do it with based on the article which calls a bapi "BAPI_FLIGHTLIST".
The application runs OK when I type the parameter (user ID) in an "input field", it only return the information needed (method button) from R3. Now, if I want to get the parameter (user ID) automatically from the Web Dynpro ( the user who Logon into the portal) the application does not work.
I try with this code but isn't work.
wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
How can I set the parameter (Zusuario) in my input field automatically and after I press the button (method) return my info.???
Here is the code.
The method wdDOInit
Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
The method that Execute a RFC
//@@ Begin Take USer
String userid="";
try {
IWDClientUser user = WDClientUser.getCurrentUser();
userid = user.getSAPUser().getUniqueName();
} catch (WDUMException e) {
e.printStackTrace();
//@@ End Take USer
//@@ Begin Set the login user to Zusuario parameter
wdContext.currentZrfc_Prueba_Portal_InputElement().setZusuario(userid);
//@@ End Set the login user to Zusuario parameter
//@@ Begin Method that execute the RFC
try {
wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
wdComponentAPI.getMessageManager().reportSuccess(
"Execute whit the user: "
+ wdContext
.currentZrfc_Prueba_Portal_InputElement()
.getZusuario().toString());
} catch (Exception e) {
e.printStackTrace();
wdComponentAPI.getMessageManager().reportException("Caution " + e);
//@@ End Method that execute the RFC
Any help will be rewarded.
Regards
DarioHi Bala Duvvuri,
I taste your code but isn't work.
This the method wdDoInit
public void wdDoInit()
//@@begin wdDoInit()
Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
//@@end
This the method ExecuteRFC
public void ExecuteRFC( ) {
//@@begin ExecuteRFC()
Zrfc_Prueba_Portal_Input input = new Zrfc_Prueba_Portal_Input();
wdContext.nodeZrfc_Prueba_Portal_Input().bind(input);
//@@ Begin Take USer
String userid="";
try {
IWDClientUser user = WDClientUser.getCurrentUser();
userid = user.getSAPUser().getUniqueName();
} catch (WDUMException e) {
e.printStackTrace();
//@@ End Take USer
//@@ Begin Set the login user to Zusuario parameter
input.setZusuario(userid);
//@@ End Set the login user to Zusuario parameter
//@@ Begin Method that execute the RFC
try {
wdContext.currentZrfc_Prueba_Portal_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
wdComponentAPI.getMessageManager().reportSuccess(
"Execute whit the user: "
+ wdContext
.currentZrfc_Prueba_Portal_InputElement()
.getZusuario().toString());
} catch (Throwable e) {
e.printStackTrace();
wdComponentAPI.getMessageManager().reportException("Caution " + e);
//@@ End Method that execute the RFC
//@@end
Regards -
How to call t-code from web dynpro ABAP application
Dear Gurus,
I am new to ABAP web dynpros. I have to add a button and have to call a SAP standard t-code if user clicks on this button? How to accomplish this task? Any help or example would be appreciated.
Thanks,
GSMHi GSM,
You have to create a SAP transaction iView in your Portal, then obtain its URL in your webdynpro and call WDPortalNavigation.absolute() method.
Below are the same steps in more detail:
1) Create a SAP Transaction iView or an Internet Application Component iView (whichever you find convenient). While creating you can select whether you want to use SAP GUI for windows or SAP GUI for HTML. For the latter(GUI for HTML) ensure that your ITS is working fine and configured while creating the system in EP.
2) Open the properties of the SAP transaction iView created. In the OK code field you can give the ok code value just as you give in SAP R/3 in case you want to navigate to the second screen of SAP R/3 when you pass values from WebDynpro.
Example for the above would be say Transaction "VA03" for displaying Sales order. Suppose from Webdynpro i want to pass a parameter called "Order number" and when i click a button it should pass the order number to R/3 and skip the first screen required for inputting the sales order numbe.
It should directly go to the main display of sales order for that ordernumber.
3) Create your WebDynpro component and deploy it on the server. In your WebDynpro use the WDPortalNavigation.absolute() method and give the url of the SAP Transaction iView created as a parameter and also the required parameters that you would like to pass from WebDynpro.
4) Create a SAP WebDynpro iView in the Portal.
5) Now run the Component. It should open up your SAP Transaction iview.
Regards,
Uday
Maybe you are looking for
-
I am trying to install firefox and l can't get pass setup type on the type of setup whih is standard and then it tells me to close firefox so it can proceed with installation, when l do, it ask me do l want to cancel installation, if l say no then it
-
Result: PRVF-4007 : User equivalence check failed for user "oracle"
Hi I get below error everytime I run ./cluvfy stage -pre crsinst -n node01,node02 -fixup -verbose > a.log Checking user equivalence... Check: User equivalence for user "oracle" Node Name Comment node02 passed node01 failed Result: PRVF-4007 : User eq
-
Dynamically extracting SQL query costs/statistics at runtime
Hi there, I need to measure the I/O cost (such as 'physical reads')of a SQL statement at runtime. What I'm looking to do is to test the total cost of a number of queries in a java program. So I need to get the cost automatically and add them up. Ther
-
Updating schedule ship date and arrival date in SO
Hello all, I want to update the sales orderline based on supplier PO changes. Can anyone let me know if I can use process order API to update the schedule ship date and arrival date.I have created a seperate procedure inorder to achieve the same whic
-
After syncing I lost my iBooks and other apps. How do I recover them?
I lost my iBooks and other apps aftery syncing. How do I recover them?