How to create a dropdown in Web Dynpro
Hi,
I just wanted to know how to create a dropdown box.
Actually I am using a webservice and on the view I have to create a dropdown box with 4 values inside it.Also I have to map dat same field with one of the fields in the webservices request node.Is this possible???
Hi,
You can create Dropdown in two ways,
1. Create a simpleType.(DictionariesLocal dictonarysimpleTypes)
2. Go to enumeration , and add the data.
3. Create a context and in the property of the context , choose select and select the local dictionary and select the one which you have created.
4. You can create a DropDownKey and map to the context.
Dropdown by Index.
1.) Take DropDownByIndex UI Element in the Layout Tab.
2.) Take One ValueNode Named "Employee" in the Context.
3.) Take One Value Attribute Named "Id" for the Node "Employee".
4.) Bind "Employee.Id" to the texts Property of the DropDownByIndex.
5.) Set the "Employee" Node Properties in the Context Tab as
a.) Cardinality --> 0..n
b.) Selection --> 1..1
c.) Singleton --> True
6.) Write the Below Code in the Implementation Tab.
IPrivate<View Name>.IEmployeeElement empEle;
for(int i=0;i<3;i++)
empEle = wdContext.createEmployeeElement();
empEle.setId("Emp Id "+i);
wdContext.nodeEmployee().addElement(empEle);
Similar Messages
-
How to create search help for Web Dynpro?
Hi all,
I have troubles when creating search help for web dynpro. I have visited this link /people/dirk.rehberg/blog/2006/12/27/generic-search-help-for-web-dynpro-for-java but I can't find this generic search help plug-in for download. If u have this plug-in can u share it for me or upload somewhere for download. Or anyone has already done this search help please help me solve this problem! Thanks in advance!Hi Dinh Thieu Thien,
please place such a request to the appropriate forum "[Web Dynpro for Java|Web Dynpro Java;".
Thanks and regards,
Boris -
How to create value help in web-dynpro-abap
Hi ,
can anybody tell me detailed step for creating value help in web-dynpro-abap .Hi,
Web Dynpro provides two types of pre-implemented search helps :
1. ABAP Dictionary Search help
2. OVS
Input Help for WDA
http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm
There is a blog on implementing OVS help in WDA. You can refer below link for sample code.
/people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
In addition, you can also provide help through Drop Downs and Select options.
Working with Select options in WDA
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e
Plz reward if helpful.
Thanks.
Raj. -
How to create PDF from a web dynpro screen
Hi all,
I am in the process of creating my first web dynpro application for parking a document, the new requirement is when the user parks the document, a PDF of the web dynpro screen should also be generated. Can you please tell me how can I achieve that.
Thanks,
RajatA PDF generated from the screen? There is no SAP delivered functionality to do this. I might suggest that you just use the browser print and print to a PDF generated virtual printer. Otherwise you would have to design an Adobe Form (and run it within WDA using the InteractiveForm) that matched the interface of the WDA screen. There is no automatic generation. You would have to design and maintain each independently.
-
How to create dictionary table using web dynpro?
Dear Experts,
Please clarify my doubts.Im new in this EP development.
Im using EP6 portal with NWDS6 for dev.
My Doubts are :
Im trying to develop a web dynpro application which captures some data and insert/update in Table.
=> If we create a structure Dictionary in web dynpro application will that automatically create the table in Portal database?
=> If it is automatically created how to insert or update that table.
can any one plz help.
thanks and regards,
Viswes.Hi Visweswara
This will use the concept of EJB.
Refer these for creating Dictionary tables...
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c]
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
As far as answer to your second question is concerned,
=> If u create a structure Dictionary in web dynpro application it will not create the table in Portal database..
You can access that table via creating a web dynpro iview in Portal..
Only application can accessed after deployment via iviews in Portal..
Thanks...
Rewards Appreciated... -
How to create remote SAP j2ee web dynpro system
I have a J2EE web dynpro on another J2EE instance than the portal. I want to take advantage of logon tickets from Portal J2EE to this other system. But creating the system connection in the portal, I'm not sure what system type to select. If I choose to create an IView for J2EE Web Dynpro, it seems to assume that the app is on the portal instance.
I could just do a straight URL type IView, but then I don't think that I could make logon tickets work with that.Thank you, that was helpful.
I followed the instructions to create a system and then web dynpro iview, putting in the relevant parameters.
Our remote webdynpro iview URL is:
http://<host>/webdynpro/dispatcher/sap.com/<namespace>/<app>?SAPtestId=83
SO, in the iview entry, i gave values:
namespace: sap.com/<namespace>
app: <app>
parameters: SAPTestId=83
When I preview it, I get a J2EE exception:
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: com.sapportals.portal.prt.registry.PortalRegistryFactory [Root exception is java.lang.ClassNotFoundException: com.sapportals.portal.prt.registry.PortalRegistryFactory
Found in negative cache -
Creating sales order using web dynpro JAVA
Hello everyone,
i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
Thanks.
Vinita SharmaHi...
you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
Here are required Bapis... select which one you want....
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
BAPI_SALESORDER_GETSTATUS Sales order: Display status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
check this thread SALES ORDER creation using BAPI
sample java program which will call SAP bapi function sales order create
PradeeP -
Create portal user using web dynpro abap application
Dear All,
I would like to know is it possible to create portal user-id through web dynpro abap application.
My requirement is
> I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
> I will click on submit, one unique id will get created. This unique id will be the login id for portal.
I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
If it is possible to create the portal users using web dynpro abap pls share the code as well.
Regards,
Swapnil IndulkarHi swapnil,
I think by using BAPi.. BAPI_USER_CREATE1 you can create.
Please check this...
Create portal user from webdynpro abap
Creating user and assigning a group through code
user administration su01
How can i get the portal user id from logon ticket in the webdyn 4 ABAP
Cheers,
Kris.
Edited by: kissnas on May 21, 2011 8:47 AM -
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 -
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. -
Creating a report in Web dynpro using OOPS concept
Hi all,
Iam new to web Dynpro, i need to create a report in Web Dynpro using oops concept. can any one guide me regarding it.
Regads,
EasterHi,
Please refer to these links -
DEMO_COMMON_ASSISTANCE1 -Example for standard component
http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/content.htm
Regards,
Lekha. -
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.
Maybe you are looking for
-
Cisco 7206 has with LLQ QOS and cpu 85 %
hi all , i want to mention issue about cisco router 7206 npeg2 : can this router handle traffic 780 Mbps as download and 75 MBps as upload ?? with cpu 85 % and with LLQ qos ?? im asking this question because my QOS althoug it matched alot of traf
-
New condition baffling mouse cursor freezes if I put it on a flat surface even with ac plugged in
Hi all I am now really stumped. Here is the situation ac adaptor plugged in mouse freezes UNTIL I plug in WIRED and working lan cable. if I unplug the lan cable from the router the mouse cursor freezes. NOW that would be strange enough BUT if I unp
-
Calendar and Maps quit unexpectedly
I have a 13-inch mid-2012 MacBook Pro running OSX Mavericks. For some reason, when I try to open Calendar or Maps, I can a Problen Report saying that Calendar (or Maps) quit unexpectedly while using the MapKit plug-in. Any idea how I can fix this?
-
Priority for Automatic Proccesses in Oracle BPM 10.3
Hi, I'm completely new to the BPM space, and I was just transferred to a team that's using Oracle BPM 10.3, so my apologies if this is a trivial question. Does anyone know how to implement priority for automatic activities in Oracle BPM 10.3? Basical
-
Model for MKTPRJ_COMMCHNL
Hi , How to get the underlying Model for MKTPRJ_COMMCHNL BSP component. I want to add a custom field to the view : MKTPRJ_COMMCHNL/OVEFChannels . Can anyone please help?