Web Dynpro using EJB to implement database access for MS SQL 2005 server
Hello,
For using EJB model in Java Web Dynpro, why do I need another dictionary project with all the required tables (there are 5 tables in my project), when the same database is already created in back end MS SQL 2005 Server.
Thanks
Srinivas
Thanks for your reply Charan,
I am fairly new to EJB. I have created only one session bean (called TrainingBean) and created all the business methods inside it.
Here is my database schema, with the following 5 tables
Courses
CourseSchedules
Students
Registrations
Competencies
Here are the session bean business methods:
changeCourse(String)
changeStartDate(String)
createCourse()
createCourseSchedule()
getCourses()
getCourseSchedules()
registerStudent(String)
unRegisterStudent(String)
Is this good way to implement EJB, or should I create multiple session beans and multiple corresponding Data access command beans ?
Thanks a lot
Srinivas
Similar Messages
-
How can I develop a web application using EJB design pattern?
I have searched over the web and found quite a lot of tutorials on how to use the EJB design pattern.
I know that there will be a home interface, EJB object interface and a SessionBean.
But the tutorials often only cover a single class, this made me unable to get a complete picture of how EJB design pattern can be implemented into a whole system.
I am now required to devleop an online shopping web application using EJB and JSP page.
I think I will need to create a lot of classes: Member, ShoppingCart, Product...etc.
What I want to ask is that, do I need to create a home interface, EJB object interface and a SessionBean for each of these classes?
I really need some ideas on how to develop this system using EJB + JSP pages.
Many thanks to you all.For every EJB that you want to create, you will need to code a home and remote interface and a bean class.
You could start getting your ideas here
http://www.theserverside.com/books/wiley/masteringEJB/
http://www.coreservlets.com -
Using local session bean interface from web container using EJB 3.0
Hi,
How can you use a local session bean interface from Java (rather than data controls) in a web container using EJB 3.0?
I can use a remote interface by looking up InitialContext, but I can't find a local interface this way (even from another session EJB). I can use a local interface from an EJB using annotation "EJB", but as I understand, this is not available in the web container.
If I try to add an ejb-jar.xml file, these seems to mess up by project...
Hope you can help.
RogerThe portable way to retrieve an EJB reference in Java EE is to either inject it or look it up via the
component's private naming environment. The simplest way is :
@EJB
private DocumentManager dm;
The global JNDI name is only used as an implementation specific way to uniquely assign an
identifier to a specific Remote EJB. It's best for this not to appear directly in the source code.
There's more on global JNDI names in our EJB FAQ :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
The alternative to annotations is to use an ejb-ref to declare the ejb dependency. The ejb-ref
is declared in the standard deployment descriptor corresponding to the component doing the
lookup. Each ejb-ref has an ejb-ref-name, e.g. <ejb-ref-name>DM_ref</ejb-ref-name>
The code looks up the ejb-ref-name relative to the java:comp/env namespace to retrieve the
EJB reference.
DocumentManager dm = (DocumentManager)
new InitialContext().lookup("java:comp/env/DM_ref"); -
Search help for Web Dynpro using the SAP-search help
Hi,
Im trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, ) in the project. In addition it should create the call in the customer generic.
It would be great if someone can give me a feedback!Hi Mike,
The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
Personally I'd recommend you give yourself a little project to work on and just get stuck in
Kind Regards,
Owen -
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. -
I want to write ABAP Program in web dynpro Using se80 tra.code
hi
I want to write ABAP Program in web dynpro Using se80 tra.code and to Create URL for the same.
Please let me know the steps to do.
ThanksHi Shiva,
I understood , you want to create a Webdynpro Applicaiton and run it.
this will help you
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cb243c45-0801-0010-eb9c-88669007f130
Regards
Abhimanyu -
Calling a Report Program In Web Dynpro Using Submit statment
Hi all,
Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
Field symbol has not yet been assigned.
The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: CHECKBOX_OUT of program SAPLKKBL
Form: GEN_LINE_OUT of program SAPLKKBL
Form: DATA_OUT_SIMPLE of program SAPLKKBL
Form: LIST_OUTPUT_NEW of program SAPLKKBL
Form: FIRST_LIST_DISPLAY of program SAPLKKBL
Module: LIST_DISPLAY of program SAPLKKBL
Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
Form: PBO of program SAPLSLVC_FULLSCREEN
Edited by: VINMANO on Jul 22, 2009 2:54 PMHI,
Its possible to call report program from Web dunpro...
chk out dis link,
calling report(se38) in webdynpro abap
By the way are using field symbol anywhere and left it unassigned?
Thanks,
Divya.S -
Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error
Dear All,
I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server). When I try to test the dblink connection, I get the following error.
I issued select * from dual@xyz;
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
ORA-02063: preceding 2 lines from xyz
28546. 0000 - "connection initialization failed, probable Net8 admin error"
My setup is the following.
1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
3. I use the same listener.ora file for both the db and the gateway.
4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
#(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
mssql =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=db.abc.com.tw)
(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME=orcl)
SID_LIST_mssql =
(SID_LIST =
(SID_DESC =
(SID_NAME=dg4msql)
(ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
(PROGRAM_NAME=/u01/gateway/bin/dg4msql)
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.abc.com.tw)
dg4msql =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
/u01/gateway/dg4msql/admin/initdg4msql.ora
HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=255
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
dblink was created using statement below.
CREATE DATABASE LINK "xyz.abc.COM.TW"
CONNECT TO SA IDENTIFIED BY
USING 'dg4msql';
Couple more things, that I have done to check the work above.
[oracle@db admin]$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
^C
--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1818ms
rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
[oracle@db admin]$ tnsping dg4msql
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
OK (0 msec)
[oracle@db admin]$ lsnrctl status mssql
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias mssql
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 11-SEP-2013 10:09:46
Uptime 0 days 0 hr. 44 min. 37 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "dg4msql" has 1 instance(s).
Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
1. When installing the gateway, it asks to run the root.sh script. the root.sh script as for the following.
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: n
is the above answer correct?
Thanks for reading.Dear Klaus,
I did start a new SQL*PLUS session
The output of /u01/gateway/bin/dg4msql is
[oracle@db log]$ /u01/gateway/bin/dg4msql
Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production Built with
Oracle Database Gateway for MSSQL
The output of env is
HOSTNAME=db.abc.com.tw
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
ORACLE_UNQNAME=orcl
TMPDIR=/tmp
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
USER=oracle
LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
ORACLE_SID=orcl
ORACLE_BASE=/u01/app/oracle
ORACLE_HOSTNAME=db.abc.com.tw
MAIL=/var/spool/mail/oracle
PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
PWD=/home/oracle
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
HISTCONTROL=ignoredups
SHLVL=1
HOME=/home/oracle
TMP=/tmp
LOGNAME=oracle
QTLIB=/usr/lib64/qt-3.3/lib
CVS_RSH=ssh
CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
G_BROKEN_FILENAMES=1
_=/bin/env -
Oracle Database Gateway for MS SQL server
Hi,
we have Oracle Database Appliance.
OS: Oracle Linux 5 x64
DB: 11.2.0.3 enterprise (Oracle Database Gateway for MS SQL server at the same version)
Communication with remote DB is OK, but CPU load is too high without any reason. CPU waste, useless HW load, energy waste.
Enterprise manager console:
http://81.89.49.222/em.JPG
OS top:
http://81.89.49.222/top.JPG
Please can you help me how to solve this issue? How can I restart these procesess? Any ideas?
Thank you
MichalHi,
we are using connection to multiple MS SQL servers:
[oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initaqpdb01.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[172.18.250.141]://master
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_FDS_TRANSACTION_MODEL=READ_ONLY
HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
[oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initcosima.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[172.20.250.99]//COSIMA
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
# custom init parameters
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_FDS_TRANSACTION_MODEL=READ_ONLY
HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
[oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepos.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[172.18.250.41]:1433//epos
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_FDS_TRANSACTION_MODEL=READ_ONLY
HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
[oracle@odamaind1 ~]$ cat /u01/app/oracle/product/11.2.0.3/dbhome_1/dg4msql/admin/initepospasohlavky.ora
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Microsoft SQL Server
# HS init parameters
HS_FDS_CONNECT_INFO=[172.31.250.41]/SQL2012/epos
# alternate connect format is hostname/serverinstance/databasename
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
HS_FDS_SUPPORT_STATISTICS=FALSE
HS_KEEP_REMOTE_COLUMN_SIZE=LOCAL
HS_NLS_LENGTH_SEMANTICS=CHAR
HS_FDS_TRANSACTION_MODEL=READ_ONLY
HS_FDS_TRANSACTION_ISOLATION=UNCOMMITTED
dg4msl process, look at posted attachment (print screen of enterprise manager and top from OS).
Thank you
Michal -
Hi all
I built a small application in Web dynpro which takes an XDP and XML and renders it with a limited set of Reader Rights which works great.. What I trying to do now is to port the code to an EJB with a Web Services so that this can be accessed by other systems..
When I call my web service i get the following error.. any ideas...
Regards
Kev
Caused by: java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/adsproxy/types/p1/RpData
at com.sap.tc.webdynpro.pdfobject.api.WDPDFObjectFactory.getPDFObject(WDPDFObjectFactory.java:43)
at com.adobe.consulting.eon.RenderServiceBean.eonRenderPDFObject(RenderServiceBean.java:154)
at com.adobe.consulting.eon.RenderServiceLocalLocalObjectImpl0_0.eonRenderPDFObject(RenderServiceLocalLocalObjectImpl0_0.java:103)
... 25 moreThanks for your reply Charan,
I am fairly new to EJB. I have created only one session bean (called TrainingBean) and created all the business methods inside it.
Here is my database schema, with the following 5 tables
Courses
CourseSchedules
Students
Registrations
Competencies
Here are the session bean business methods:
changeCourse(String)
changeStartDate(String)
createCourse()
createCourseSchedule()
getCourses()
getCourseSchedules()
registerStudent(String)
unRegisterStudent(String)
Is this good way to implement EJB, or should I create multiple session beans and multiple corresponding Data access command beans ?
Thanks a lot
Srinivas -
Cannot import DCs, necessary for Web Dynpro use in CAF GP
Hello!
I'm a newbie in SAP technologies. I want to develop a Web Dynpro (WD) application, which will be used as UI in CAF GP. The problem is that I cannot import necessary DCs for this!
As I understand, the following ones are necessary to develop a WD app for use in GP:
caf/eu/gp/api
caf/eu/gp/api/wd
com.sap.security.api.sda
(according to http://help.sap.com/saphelp_nw2004s/helpdata/en/b2/06ae42848bb211e10000000a155106/content.htm)
I acted as it is described in "Implementing a Web Dynpro CO which Implements the GP Interface" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59).
Actually, those DCs don't exist in my local configuration - so, as it is told in "Implementing a Web Dynpro CO which Implements the GP Interface", I tried to get the DCs from remote host (there's a server in Intranet with all stuff installed). In NetWeaver Dev Studio, in "Preferences -> Development Configuration Pool" I have written http://<local server>:50100. Actually, I don't know, what port should be used - I've written the one, which handles requests to SAP NetWeaver Portal. The response to "ping" button click is "HTTP response code: 403 (Forbidden)".
I tried to check the status of SLD, and went to http://<local server>:50100/sld. I have successfully logged in, but when I try to go to tab "Administration", I receive the message " 403 Forbidden. You are not authorized to view the requested resource."
Is there a problem with my roles & groups? Actually, I'm in group SAP_SLD_ADMINISTRATOR.
What is wrong?
How can I get the detailed information about the error (log files or something)?
Thanks in advance!Barry, as I understand, I have no these roles, available for granting. Maybe, I've acted in a wrong way (the version of SAP NetWeaver is "Release 2004s".):
I logged in NetWeaver portal as administrator, went to section "User administration", selected my user, opened the tab "Assigned Groups" and searched for the groups you've written - I found no one -
Srm 7.0 - Hide field in web dynpro using configurations
Hello to all,
I'm trying to hide some fields on PO web dynpro. In this example on web dynpro /SAPSRM/WDC_DODC_PO_I_BD I start the component configuration /SAPSRM/WDCC_DODC_PO_I_BD, I search for the fields I want to hide and put the visibility attribute to Invisible and I mark final check box.
The fields don't dessapear from the web dynpro. Am I missing something?
Best regards,
NachoThanks for your reply.
I have here two situations:
SPRO. If I add the field on Configure Field Control at Header Level/Item Level it disapears but not all fields appear on this transaction. For example, I can't do that to tolerance group (TOL_GP)
Webdynpro. Using Component Configuration of the dynpro. I guess that it is in two actions:
- Change the value of visibility to Invisible on Web dynpro Built-In
- Add field to context. I put for this example:
Attributes of the Element usagesDefinition (ITEM_TOL.TOL_GP)
usageName ITEM_TOL.TOL_GP
componentName ITEM_TOL.TOL_GP
ConfigurationName /SAPSRM/WDCC_DODC_PO_I_BD
The webdynpro way doesn't work, Am I missing something?
Best regards,
Nacho -
What is the right way to display a table in Java web dynpro using a node.
Hi experts,
I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro. In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
Thanks and Regards.
Vaibhav Tiwari.Please refer to my post.. you will get the answer
Dynamic Table - same data repeating in all rows
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt. -
Showing Image in Web Dynpro using ABAP
Hi All,
I am new to Web Dynpro ABAP , basically my requirement is to show a image , could any one please tell me the steps to do that , i have already uploaded the image in application server using T-code smw0 , and in the layout i have taken the element IMAGE.
I have also made the context node as Image and under that i have made three attributes named as :-
IMAGE (Context Node)
source (Attibute type string)
tooltip (Attribute type string)
visible (Attribute type WDUI_VISIBILITY)
In the WDDOINIT method i have written the following code.
DATA:
context_node TYPE REF TO if_wd_context_node,
context_elem TYPE REF TO if_wd_context_element,
stru_image TYPE if_image_view=>element_image.
fill structure with values
stru_image-source = 'abc.gif'.
stru_image-tooltip = 'Image Tooltip!!'.
stru_image-visible = '02'. "=visible
navigate to <IMAGE> via lead selection
context_node = wd_context->get_child_node( name = `IMAGE` ).
get element via lead selection
context_elem = context_node->get_element( ).
bind structure to context element image
CALL METHOD context_elem->set_static_attributes
EXPORTING
static_attributes = stru_image.
But I am getting the error if_image_view does not exist.
Please help me and guide me if I am proceeding in a wrong way.
Thanks and Regards,
Rachit KhannaHi ,
Its very simple ....
Dont use any transaction to upload image.
right click on component and select
create->mime_object->import
suppose ur image is on desktop...
So select the path of desktop select the image and click ok.
U will see an MIMEs named folder in ur component and under which u will have ur image.
now add image element into UI and there u will have source name property ...just write the name of ur image file and test ur application.
U can see the image in output..
(Also there are different properties of image element to set the position and other things)
any queries ..feel free to ask
regards
panky -
Hi,
I am working on one web dynpro application where I am using function module : Bapi_Employee_Getdata .
In this i need to get the user id from portal and need send that as input parameter to RFC, I did everything but when i see output i couldnt see anything I guess basically itz not pulling any data from back end, I am not sure where I am doin wrong ..?
any ideas..?
ThanksHi
In my application I am passing portal userid as input parameter, do we have to pass the portal userid to fuction module or does it automatically send the userid to function module..?
Here is Cust Controller Code:
public void wdDoInit()
//@@begin wdDoInit()
try{
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
if (user != null)
try{
IUserAccount[] acct = user.getUserAccounts();
if(acct[0] != null)
String strUserid = acct[0].getLogonUid();
System.out.print(strUserid);
Rhxss_Ser_Get_Employee_Data_Input input = new Rhxss_Ser_Get_Employee_Data_Input();
wdContext.nodeEmployee().bind(input);
Bapi_Employee_Getdata_Input Input = new Bapi_Employee_Getdata_Input();
wdContext.nodeEmployeeOrgData().bind(Input);
input.setUsername(strUserid);
Input.setUserid(strUserid);
}catch (UMException ex)
ex.printStackTrace();
}catch (WDUMException e)
//@@end
public void executeRHXSS_SER_GET_EMPLOYEE_DATA( )
//@@begin executeRHXSS_SER_GET_EMPLOYEE_DATA()
try{
wdContext.currentEmployeeElement().modelObject().execute();
wdContext.nodeEmployeeOutput().invalidate();
}catch (Exception ex)
ex.printStackTrace();
//@@end
//@@begin javadoc:executeBAPI_EMPLOYEE_GETDATA()
/** Declared method. */
//@@end
public void executeBAPI_EMPLOYEE_GETDATA( )
//@@begin executeBAPI_EMPLOYEE_GETDATA()
try{
wdContext.currentEmployeeOrgDataElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
catch (Exception ex)
ex.printStackTrace();
//@@end
Maybe you are looking for
-
Help trying to create a button in safari please.
trying to create a button that runs an applescript. I have been discussing it in 101 but cross posting it here because it's not getting much interest over there. Any help would be nice. I have read Become an xCoder and it doesn't seem to answer my qu
-
Syching Photos from Itunes to Ipod Photo 30G
I am having the worst time syching my photos from my PC computer to my ipod photo. I am using my family computer because my laptop is kaput. I am starting over...from scratch. Deleted everything on my ipod and hoping to synch it all back on there fro
-
Laptop Bios cannot detect new HDD but still able to boot into windows
I have a Pavilion Dv5 1010tu which the original HDD have died. So i bought a new Samsung 320GB Sata and install Windows 7 on it. After Windows installation finished successful, I manually restart the laptop without Windows setup disk and it stop at d
-
"Application not found" error after deploying
Hi, I am getting error as "Application not found" after deploying. When I depoly the project am getting Finished Deployment message in the Deploy Output View followed by a popup message "Application not found". Please help me in solving this error. R
-
Restrict same user using same internet explorer session
Hi, I encountered a problem here. Hope some one had deal with this problem can help me out. The application was written in BSP. The users are using Internet Explorer 6.0 and 7.0 to use the application. The problem I encountered here is after an user