Web Dynpro with Adaptive RFC and "complex" ABAP Structures
Hi there,
I'm calling an RFC that returns a table with a "complex" structure, i.e. a structure with nested structures and tables. The issue I am having is that I would like to loop over that table and extract the relevant attributes from each row (i.e. attributes of the structure itself or of the nested structures or attributes of records of the nested tables), I however don't understand how.
My first attempt looks as follows
for(int i = 0; i < wdContext.node<<tab>>().size(); i++) {
IPrivate<<view>>.I<<tab>>Element x =
wdContext.node<<tab>>().get<<tab>>ElementAt(i);
However "x" doesn't seem to have the getter methods for the nested tables in question?
Help would be greatly appreciated.
Regards, Chris.
Hi,
If you are using model node binding over adaptive RFC model all nested structures / tables becomes sub-nodes rather then attributes.
VS
Similar Messages
-
How to use Adaptive WebService Model with CAF WebService and Complex Type
Hi All,
I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
Help is appreciated..
Thanks, JohannesThanks Mukesh.
It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
I did not find any information about how to return complex types in AWS.. in this document???
Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
Thanks, Johannes -
Java Web dynpro with ABAP Clients?
Morning,
We have a situation where we would like to use a Java Web dynpro with multiple ABAP backend data sources. This is for autorization as well as data. We are not using Enterprise Portal.
We've created a pair of system Jcos and mapped them to the Web dynpro via the URL. This works and the correct data from the correct Client is retrieved depending on which pair of Jcos we define in the URL.
The problem we are having is that we are only able to logon using the ABAP Client defined in the ume....master.client parameter.
Is there a way to achieve this (again without EP) either in the system configuration or programatically in the web dynpro?
tia
Cheers,
MitchHello,
Thanks for the updates. Actually my query is we have a SCM 5.0 system which has a java stack in it. But now we are going to upgrade it to SCM 7.0. - Is SCM 7.0 has a java stack ?
If it doesn't have , can we upgrade SCM 5.0 to SCM 7.0 without Java Stack ? Is it posssible to upgrade without Java Stack or not ?
Is it possible that we can convert Java Stuff into ABAP web dyn pro ? If yes , how shall we can achieve it ? If not, how shall we proceed in an alternate way ?
Thanks for your help in advance.
Madhu -
Use of Adaptive RFC and locking
Hello,
I am using an adaptive RFC model inside a Web Dynpro Application to maintain data residing on a SAP Enterprise system.
This RFC also sets a lock in order to make sure nobody else tries to change the same data.
I use pessimistic locking which means:
1. Web Dynpro calls a RFC
2. The RFC first locks the data then reads the data and returns the result back to Web Dynpro
3. The user changes the data and presses a save button
4. Web Dynpro calls the RFC to write and unlock the data
The problem i have is the fact that after locking and reading of the data the RFC is ended and the data is received by the Web Dynpro App. But at the same moment the lock is automatically unlocked because the RFC has ended succesfully.
How can i achieve that the lock is still there at the moment i want to change the data or is this procedure of pessimistic locking not possible?
BertilHi,
Whether possible or not : Don't know. Probably not with RFCs.
More importantly, shall you do it? If it is transactional data you are updating , you may wish to consider concurrency issues (what if you locked and came to web dynpro, and user is thinking whether he shall take a coffee break first before pressing the 'Save'. Would you like to keep this record(s) locked and unavailable for the entire duration?)
Normally, you would read the data in the first call, let the user update it on the second screen, and then, when the user presses save, execute in sequence :-
- try locking the record,
- if locking is successful, Verify whether the record you read has changed in the meanwhile or not (verify what you have in your workarea(before changes done by user) is the same as in DB, by reading again from the DB)
- If above check is successful, go ahead with the update else throw an error message to the user to redo the txn
- unlock, exit
hope this helps,
cheers,
Ajay -
Dynamic JCo Connection with Adaptive RFC Model 2
Hi gurus,
I'm trying to dinamically change a model data connector inside my web dynpro. I'm using an Adaptive RFC Model 2 to communicate with the R/3 backend. I've found that is possible to change the connector modifiyng the code inside the web dynpro. In detail I've found this example:
IWDDynamicRFCModel model1 = (IWDDynamicRFCModel) WDModelFactory.getModelInstance(Model1.class);
I put this code into wdDoInit method but I get the following error:
"<comp_name>.wdDoInit failed to create or init instance of model 'model_name' in scope NO_SCOPE with instanceId 'null'"
Furthermore I've used the deprecated Adaptive RFC Model and when I instantiate a model, ModelName m=new ModelName(), I see that the methods m.setJcoClient(client) and m.setSystemName(systemName) are visible, while when I try to do the same with Adaptive RFC Model 2, with my model m, the methods before there aren't.
So this is my question: is it possible to change data connector dinamically with Adaptive RFC Model 2?
Thanks a lotDear Lukinho,
You may try this ;
try {
IWDJCOClientConnection clientCon = WDSystemLandscape.getJCOClientConnection("<name of the JCO connection>");
String clientName = clientCon.getClientName();
String lang = clientCon.getLanguage();
String passowrd = clientCon.getPassword();
String sysID = clientCon.getSystemIdentifier();
String user = clientCon.getUser();
//etc...
} catch (WDSystemLandscapeException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
I got this code from the thread [Multiple Client Logon in JCO |Re: Multiple Client Logon in JCO;
Also have a look at this thread
[JCo Destination |Re: JCo Destination;
Hope it helps!!
Warm Regards
Upendra Agrawal -
Hi Guys
A situation at work has forced me to learn web dynpro with java. I already have some experience with the ABAP web dynpro . Now the question is how much "java" do i need to learn to learn sap WebDynpro based on java. Should I first try and get a fair 'hands on' on core java and then shoot for web dynpro or should I take the other approach, that is just learn as much java as is required for web dynpro . Any suggestions?
thanks
sameerHi Sameer,
I believe you need not thoroughly know Core Java to begin for Web Dynpro Java but yes, you should have a fair idea about object, class and exceptions that i believe you would already have after working in ABAP. The UI elements can be just inserted into the component by drag and drop and codes correspondly would be auto generated. Only for customization of some functionalities, you will have to write code in Java using APIs.
Just go through the following tutorials recommended by SAP to start over Web Dynpro Java on NWDS.
http://help.sap.com/saphelp_nw70/helpdata/en/16/c0d93f5e0f9015e10000000a155106/frameset.htm
Regards,
Tushar Sinha,
Infosys,
Hyderabad -
Difference between Adaptive RFC and Adaptive RFC2 model
Hi,
What is the difference between Adaptive RFC and Adaptive RFC2 model ?
Regards,
Sunaina Reddy THi
Main difference are
1.JCo 3.0 to connect to SAP Systems
2.Improved connection management
3.Faster performance
4.Lower memory consumption
5.SystemLandscape API is no longer needed
6.Compatible to ARFC1 to allow easy migration
Check the thread for further input
1.[Whatu2019s New in Web Dynpro Java?|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8062c7d3-c86f-2b10-4894-a9a323da20b3]
Best Regards
Satish Kumar -
Not Working-central web-authentication with a switch and Identity Service Engine
on the followup the document "Configuration example : central web-authentication with a switch and Identity Service Engine" by Nicolas Darchis, since the redirection on the switch is not working, i'm asking for your help...
I'm using ISE Version : 1.0.4.573 and WS-C2960-24PC-L w/software 12.2(55)SE1 and image C2960-LANBASEK9-M for the access.
The interface configuration looks like this:
interface FastEthernet0/24
switchport access vlan 6
switchport mode access
switchport voice vlan 20
ip access-group webauth in
authentication event fail action next-method
authentication event server dead action authorize
authentication event server alive action reinitialize
authentication order mab
authentication priority mab
authentication port-control auto
authentication periodic
authentication timer reauthenticate server
authentication violation restrict
mab
spanning-tree portfast
end
The ACL's
Extended IP access list webauth
10 permit ip any any
Extended IP access list redirect
10 deny ip any host 172.22.2.38
20 permit tcp any any eq www
30 permit tcp any any eq 443
The ISE side configuration I follow it step by step...
When I conect the XP client, e see the following Autenthication session...
swlx0x0x#show authentication sessions interface fastEthernet 0/24
Interface: FastEthernet0/24
MAC Address: 0015.c549.5c99
IP Address: 172.22.3.184
User-Name: 00-15-C5-49-5C-99
Status: Authz Success
Domain: DATA
Oper host mode: single-host
Oper control dir: both
Authorized By: Authentication Server
Vlan Group: N/A
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
Session timeout: N/A
Idle timeout: N/A
Common Session ID: AC16011F000000490AC1A9E2
Acct Session ID: 0x00000077
Handle: 0xB7000049
Runnable methods list:
Method State
mab Authc Success
But there is no redirection, and I get the the following message on switch console:
756005: Mar 28 11:40:30: epm-redirect:IP=172.22.3.184: No redirection policy for this host
756006: Mar 28 11:40:30: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_qualify ...
I have to mention I'm using an http proxy on port 8080...
Any Ideas on what is going wrong?
Regards
NunoOK, so I upgraded the IOS to version
SW Version: 12.2(55)SE5, SW Image: C2960-LANBASEK9-M
I tweak with ACL's to the following:
Extended IP access list redirect
10 permit ip any any (13 matches)
and created a DACL that is downloaded along with the authentication
Extended IP access list xACSACLx-IP-redirect-4f743d58 (per-user)
10 permit ip any any
I can see the epm session
swlx0x0x#show epm session ip 172.22.3.74
Admission feature: DOT1X
ACS ACL: xACSACLx-IP-redirect-4f743d58
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
And authentication
swlx0x0x#show authentication sessions interface fastEthernet 0/24
Interface: FastEthernet0/24
MAC Address: 0015.c549.5c99
IP Address: 172.22.3.74
User-Name: 00-15-C5-49-5C-99
Status: Authz Success
Domain: DATA
Oper host mode: multi-auth
Oper control dir: both
Authorized By: Authentication Server
Vlan Group: N/A
ACS ACL: xACSACLx-IP-redirect-4f743d58
URL Redirect ACL: redirect
URL Redirect: https://ISE-ip:8443/guestportal/gateway?sessionId=AC16011F000000510B44FBD2&action=cwa
Session timeout: N/A
Idle timeout: N/A
Common Session ID: AC16011F000000160042BD98
Acct Session ID: 0x0000001B
Handle: 0x90000016
Runnable methods list:
Method State
mab Authc Success
on the logging, I get the following messages...
017857: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_qualify ...
017858: Mar 29 11:27:04: epm-redirect:epm_redirect_cache_gen_hash: IP=172.22.3.74 Hash=271
017859: Mar 29 11:27:04: epm-redirect:IP=172.22.3.74: CacheEntryGet Success
017860: Mar 29 11:27:04: epm-redirect:IP=172.22.3.74: Ingress packet on [idb= FastEthernet0/24] matched with [acl=redirect]
017861: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: Enqueue the packet with if_input=FastEthernet0/24
017862: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: In epm_host_ingress_traffic_process ...
017863: Mar 29 11:27:04: epm-redirect:IDB=FastEthernet0/24: Not an HTTP(s) packet
What I'm I missing? -
How many connections supports a web interface with each camera and how many Adobe Encoder clients does AMS support? AMS Standart. We need connect by Adobe Encoder many people. what is differences between Adobe Media Server 5 Professional, Adobe Media Server 5 Standard and Adobe Media Server 5 Extended?
For the detailed list of differences across editions refer this link
http://www.adobe.com/in/products/adobe-media-server-family/buying-guide-comparison.html -
3px framed picture on a Web page with Internet Explorer and Google Chrome appears normal, but Firefox is on the right side frame 9px. Why?
I'm not seeing this.
Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
* http://kb.mozillazine.org/Zoom_text_of_web_pages
Can you attach a screenshot?
* http://en.wikipedia.org/wiki/Screenshot
Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB). -
Urg : adobe interactive form creation using Web dynpro with ABAP
<i>Hi Floks,
Thank you For Your support and view my Quires.
I need helpful answer Regarding this Question . I need to Create custom ADobe interactive Form with WEB dynpro ABAP .Could please help out and give me what are the step can i followed here (Ex) .
Good rewards for best Answers.
Thank You,
Suresh Duvvuri</i>please check this link:-
step by step it is explained
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
All the best,
Mahesh.gattu -
Why not "Web Dynpro *with* ABAP"?
As a newbie I found "Web Dynpro for ABAP" to be confusing. Any ideas why its worded that way? Just curious.
Hi,
because it's a programming <u>model</u> created <u>for</u> abap programming.
If you look at the true content of webdynpro you come out at:
declarative programming of all the navigation, ui, datadisplay and gathering, without
writing the code, but letting the code to be generated.
so it's a concept build for abap,
not with abap (although the classes and interfaces are)
grtz,
Koen -
Testing ABAP Web dynpro: Error code 403 and for the reason Forbidden
Hi,
We have NW04s Installed and trying to execute a SAP supplied ABAP web dynpro application DEMO_SIMPLE_MAIN. Please see the following error and let us know which service it's talking about? I am familiar with SICF. However in AS7.0( New name for WEB AS ) The transaction is little different.
Thanks
Arunava
However we are getting the following service error
Service cannot be reached
What has happened?
URL http://server.domain.name.com:8001/sap/bc/webdynpro/sap/demo_simple_main call was terminated because the corresponding service is not available.
Note
The termination occurred in system XXX with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:NAME999_XXX_01-v:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework TeamHi,
this was actually some services which needed to be started through SICF. Once I have started the service sap/bc/public ETC.. and the web dynpro started working. Most of the SAP delivered demo apps are working
However for some ABAP web dynpro ( for some application XRPM ) I get some peculiar error. Please see below and if you could think of anything out of these.
I have already checked and found the both HTTP and SMTP services are working fine.
The following error text was processed in the system PXA : Syntax error in program /1BCWDY/56ZRPAZLU25M8S1BKV2T==CP .
The error occurred on the application server fmsap994_PXA_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: CONSTRUCTOR of program CL_WDR_CLIENT_COMPONENT=======CP
Method: CONSTRUCTOR of program CL_WDR_CLIENT_APPLICATION=====CP
Method: CREATE_APPLICATION of program CL_WDR_CLIENT_APPLICATION=====CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP -
Web dynpro with adobe interactive forms and button submit
Hi,
I'am new with webdynpro and adobe interactive forms so i just trying some example with an adobe interactive form with a submit button event handler inside the webdynpro. But i can't catch the event handler submit that i creaate on onSubmit property of the interactive form.
Can anyone help please.
Thank you very much.I think I understand but just to make it clear. I use texts created using function module "SAVE_TEXT". In my Web Dynpro I select one or more of them and use the button "insert text" (with appropriate functionality behind it) to insert them to specified location in my PDF form opened in this Web Dynpro. Considering what you said it is not possible to replace this "insert text" button by drag and drop functionality. Am I correct?
Btw great job with the book "Next Generation ABAP Development" Thomas! -
Web Dynpro with Bapis using Miniwas 6.20 or Sneak Preview 6.40 ABAP
Does anyone know if I can I use a web Dynpro that uses BAPIs to connect to a Miniwas 6.20 like a Backend system?
I have the SLD configuration OK, I was able to create the Jco connection, but when I test the Metadata application with this Technical System (Miniwas 6.20) at the Content Administrator I get an error message: "Group PUBLIC not found" (I also tried with SPACE, like a Logon Group). I have the corresponding settings in the service file on Windows folder (sapmsBSP 3600) and the others settings too.
I think the problem is to try to define Logon Groups at this kind of R/3 system (Miniwas 6.20) ... It's possible to use Logon Group with Miniwas?
I want to know if somebody had tried to do this practice (Web Dynpro using BAPIS)against to Miniwas System.
Please I would like to get a yes or no answer
JanettHi,
You have to configure the PUBLIC logon group in SMLG transaction.
Once configured the SLD and JCO-Destinations in the WebDynpro Content Administrator, we had the same problem with METADATA_DIRECTORY JCO-Connection. When we tested it, we got an error related with the PUBLIC LOGON GROUP. This JCO destination is a metadata directory connection and use the SAP message server to connect to the PUBLIC logon group.
You can create the PUBLIC logon group easly with SMLG, but it is necesary to add a "Logon Favorite Storage" in "SMLG Transaction - Display control/status Area" called PUBLIC too.
More information at:
http://help.sap.com/saphelp_nw04/helpdata/en/28/1c623c44696069e10000000a11405a/content.htm
After that, all JCO connections and the webdybpro application should run fine.
Regards.
Agustin Alvarez
Maybe you are looking for
-
Premiere Elements 11.0 has encountered an error.
I have installed it three times and re-downloaded for the third time. Everything was closed..... Any clue? Premiere Elements 11.0 has encountered an error. [/PerforceRoot/PRE11/premiere/elements/mac/main/MediaCore/ASL/Foundati on/Make/Mac/../../Src/
-
IPhoto shows original as thumbnail and in non-edit mode
Hey guys, my problem started when my MacBook Pro turned of when iPhoto '11 was open without going into safety mode (battery needs replacement; haven't planned on it since it is only 3 years old and 550 cycles) then no thumbnails were displayed at all
-
Hi, I have a web application in which there are tabs inside a page. what is happening is, Lets say I navigate from tab A to tab B. The URL should change from ../A.do to ../B.do But it keeps showing ./A.do But the data displayed is ok. Can anyone plea
-
How to export HD footage to play on a standard DVD player
Hi Sorry, I am very new, but very excited about learning more about cs4. I am thinking to buy a HD video camera. Does CS4 easily convert HD footage at the dvd burning stage to then play on a regular dvd player. I understand it will mean downgrading t
-
I need to know what merchant gateways Oracle likes to use
Thanks for your time I am talking to a client that uses Oracle. They would like to use a different Merchant Account gateway. What gatways does Oracle like to use? thanks so much with your help Troy Burningham