Error starting the Application Server and Deployment Tool
After installing the iPlanet Aplication Server with sp3 I get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please!
Hi,
Would be more helpful if you can mention, the O/S. Also, pls mention where
you are getting this error, at kjs or kxs, or, are you able to start the server
and at which specific instance do you encounter this.
Regards
Raj
"Antonio Casqueiro" wrote:
After installing the iPlanet Aplication Server with sp3 I get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please!
Similar Messages
-
Error starting the Application Server and Deployment Tool in Windows 2000
After installing the iPlanet Aplication Server with sp3 in Windows 2000 I
get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please!Okay, pls check that you are logged in as administrator and installed and now you are logged in as administrator and registering the iAS server. Did you get any installation failures while installing and are you able to register the server using iASAT ?
-
Starting the application server
Hi,
I am new to Java Studio Enterprise 8. I try this tutorial
http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/jse7/introjse7/index.html#Step_2:_Make_sure_Sun_Java_System_App
which is for Java Studio Enterprise 7.
I stop the firewall before anything :
[X@Y Zip]$ sudo service iptables status
Firewall is stopped.
I start Java Studio Enterprise 8 IDE under Linux ([installdir]/jstudio_ent81/ide/bin/jstudio.sh). I clicked on runtime, I have two bullets, Bundled Java Tomcat (5.5.9) and Sun Java System Application Server. Unfortunately, unlike the picture provided on the tutorial I don't have an application server automatically started.
I tried to start the tomcat server, this worked fine, I can use my browser to log on the tomcat server, http://localhost:8084. I switched it off.
I tried starting the application server similarly but I get the following message after 5 minutes :
"Error : The Sun Java System Application server could not start. More information about the cause is in the server log file. Possible reasons include:
- Unknown master password (etc...)
-Port conflicts (etc...)
-Incorrect server information (etc...)
-Corrupted Deployed Applications preventing the server to start (This can be seen in the server log file. etc... )"
I don't think I've got anything running on those ports.
[X@Y Zip]$ netstat -an|grep 8080
[X@Y Zip]$ netstat -an|grep 8181
[X@Y Zip]$ netstat -an|grep 4848
[X@Y Zip]$ netstat -an|grep 7676
[X@Y Zip]$ netstat -an|grep 3820
[X@Y Zip]$ netstat -an|grep 3700
[X@Y Zip]$ netstat -an|grep 5222
In the server log file, I can't see much which would help [it seems to be long java command lines, but no particular message related to an error or a warning...]
Thanks for your help,I reset the master password, but it did not change anything.
I reinstalled everything, tried again, and still nothing on this side.
There isn't anything in the log [when I click on "View server log" I get a "no such file or directory" dialog box...].
When I click on start, I immediately get the following message on the shell :
"Internal HTTP server running on port 8082" and I can use my web browser to go on "http://localhost:8082/"... -
ABAP Trial version u2013 starting the application server
Hi,
I have a problem starting the application server via the management console. After choosing action ->start I have to enter user and password. Do I have to create a new user password combination, use the OS password or try bcuser and minisap? None of these three options worked out. I always get the message 'Start failed: 2 Invalid Credentials'. Or went there something wrong during the installation?
Thanks for your help.
BirgitHey Birgit,
In my case I installed ABAP Trial version (also known as MiniSap) on my local machine (Windows).
When I turn on the machine, my Windows(OS) requires a User/Password (It was configured this way but it is possible you configure to not require a User/Password, it uses a default).
When I instaled the ABAP Trial version, I logged on with a User/Password with administrator rights (it is necessary for installation).
When, in the "Management Console", I start the ABAP (the "NSP" node), it asks me the user and password and I use the OS User/Password that I used to install ABAP Trial (above).
If you are doing the same I don't know why the message "Start failed: 2 Invalid Credentials".
Merry Christmas,
Edited by: Walmir Catunda on Dec 15, 2008 11:34 AM -
Error when starting the Application Server
Hi..
I have a few problem..
I want to start the App/Portal Server.
/oracle/infs/bin
1)lsnrctl start - ok
2)sqlplus start -ok
3)oidmon start -ok
4)oidctl server=oidldapd instance=1 configset=1 start -ok
/oracle/infs/dcm/bin
5)dcmctl start -cl -ok
6)dcmctl start -ct ohs -ok
7)dcmctl start -ct oc4j -ok
but when i do step no 8)
dcmctl getstate -v
i got these error..
"See base exception for details.
Base Exception:
oracle.ias.repository.schema.SchemaException:Unable to retrieve the requested at
tributes:javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient
Access Rights]; remaining name 'orclReferenceName=iasdb.portal.upm.edu.my,cn=IA
S Infrastructure Databases, cn=IAS, cn=Products, cn=OracleContext'
See base exception for details.
$"
I tried to start the EM first in /oracle/infs/bin
emctl start
but, the EM didn't have any data (no cluster info, no infs info,no apps info, it is blank!!)
Plz Help me...thanks..user536800,
A search of this forum's archives for the word "xerces" returns 75 hits.
Perhaps one (or more) of those postings will help you?
The way to integrate Xerces into OC4J differs, depending on which OC4J version you are using.
Forgive me, but I couldn't find details of the version you are using in your post.
I also believe the way to do it would also depend on the version of Xerces you are using, the JDK version you are using and maybe even on the platform you are on.
Again, forgive me, but I could find none of those details in your post.
Good Luck,
Avi. -
Error starting the MDM server in client system
Hi MDM Experts,
I am new to MDM and we have just installed MDM 5.5 on our system. We are able to 'Mount the Repository' via the MDM Console on the client side but when we try to 'Start MDM Server', we encounter the error below:
"Error starting MDM server: The machine (server name) is not Windows-based. The MDM server cannot be started from this application; please use CLIX on the machine instead."
What must we do to resolve this error? Please help us on this matter.
Thanks in advance!
ASPHi ASP,
MDM server operations can Be performed through Console only if your Server is Windows based.
You can perform the some repository options through Console ,but for any Server based operations like Mounting the server,Start/Stop server etc you will have to operate through the CLIX ie Command line interface.
I Guess yours is a Unix based system or something else which is not Windows based.
so it will not allow you,
Either you install your server on a windows based system to operate through Console.
Or if you want to continue with the NON windows based system then you will have to use CLIX for most of your Console opeartions.
Hope It Helped
Thanks & Regards
Simona Pinto -
Error starting Oracle Application server
Hi I installed Oracle application server 10g. I successfully installed it. But when i stopped the opmn and emctl process and now when i am trying to start i am able to successfully start but when i type the URL of OAS Admin console. I get following error:
500 Internal Server Error
java.lang.NoClassDefFoundError: oracle/sysman/eml/app/Console at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java(Compiled Code)) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2283) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.findServlet(HttpApplication.java:4795) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:568)
Can any one please help me resolve this issue at the earliest?Hi,
Now I'm just thinking with U because error 500 can be result of different reasons. I think (I'm not sure)at this situation it has to do with java version.
AIX 5.3 has java version 1.4.2. .
Would U like to go $ORACLE_HOME\jdk\jre\bin\ then just type ./java -full version or java version.
Which result U 'll get.
also type in which java
moreover can U give me the output of the env command.
the last step before U start any as process just do the following
ps -ef | grep (owner of your as)
if U 'll find any process just kill it kill -15 process id if it does not help then hard kill with -9
try to set your environement variable well then start your opmn components again per-process to see which process is going wrong.
Let me know,
Regards
Hamdy -
Starting the application server PE on windows XP
Introduction
I installed JStudio Enterprise 8 with SJS AppServer 8.1
Later uninstalled JStudio Enterprise 8 but the server directory ie C:\Program Files\Sun\jstudio_ent8\Appserv8.1UR2\ remained intact.
The server icon had been removed from the windows startup menu but the server could still be started via the command line
Later installed JStudio Enterprise 8.1 with SJS AppServer 8.2
Installation directories are C:\Program Files\Sun\jstudio_ent81 and C:\Sun\AppServer respectively
After installation I opend a project created using JStudion Enterprise 8 and on trying to run the project I recieved the error below:
[#|2007-02-24T14:30:10.860-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|
Service [email protected] cannot be started! : com.sun.appserv.server.ServerLifecycleException:
Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketTimeoutException: Read timed out]|#]
Please note that the program ( right from the JStudio Ent 8) often complained that spaces had been detected in the class path.
However everything still went on smoothly.
Actions Carried Out
I used asadmin change-master-password --savemasterpassword=true to change password
I used netstat -a to confirm that the port 8080 and other ports as contained in domain.xml were not already in use by the OS
I uninstalled JStudio Ent 8.1 and JDK 5 with JRE, deleted the application files (eg .jstudio folder, .asadmintruststore file etc) I found in user directory
D:\Documents and Settings\user and reinstalled the above mentioned software. Subsequently I tried running a skeletal Enterprise Application but recieved same error.
I used asadmin verify-domain-xml and got the following result:
25-Feb-2007 09:52:30 com.sun.enterprise.config.serverbeans.validation.DomainXMLVerifier invokeConfigValidator
SEVERE /domain[1]/configs[1]: Assertion failed: There is a config element named "default-config"
Despite the above actions and continous trials the server would not start under the JStudioIDE
The server however starts under the command line with the message:
Domain domain1 is ready to receive client requests. Additional services ae being started in background.
However the server would not serve web pages when requested via Internet Explorer. When one eventually tries to stop the server the following message is displayed:
The domain (domain1) isn't running
CLI157 Could not stop domain domain1
Also, I haven't been able to use the admin console for the server and previously for Macromedia ColdFusion Mx v 6.1 Developer
General Info
System web root folder = D:\inetpub\wwwroot\
Java Installed = JDK 5 update 11 with JRE 5 update 11
Product Info
Sun Java System Application Server 8.2 Bundled with JStudio Enterprise Edition 8.1
No patches
System Info
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
Processor x86 Family 6 Model 9 Stepping 5 GenuineIntel ~1495 Mhz
Total Physical Memory 512.00 MB
Available Physical Memory 194.32 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 1.22 GB
Page File D:\pagefile.sysI take it that you would like to run JSE8.1 with AS8.2. Is that right? Or would you like to run both JSE8 and JSE8.1 simultaneously?
One thing to check for the userdir; the userdir should be different for different ide installs. By default of course this should be the case, but one possibility here is that the userdir could be corrupted.
Can you please try with a fresh userdir and see if things work?
Ref: http://blogs.sun.com/karthikr/entry/jse_directories
Also, can you check the server log files? From within the ide, right-click on the server in runtime tab and select 'view server log'. Or cd to <appserver_dir>/domains/domain1/logs directory and check the server.log to see if there are any error messages that may be of help in diagnosing the problem. -
How to find out the application server instance name?
Hi,
I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?
The version of the server as displayed when the server is started:
$ ./oc4j -start
Starting OC4J from /oraInventory/j2ee/home ...
09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0) initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
Many thanks for your help!
NewmanJ. Newman wrote:
Hi,
I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the application server and I am prompted to fill in the instance name. Where in the installation can I find out the instance name?If you have access to that server, then the following should give the instance name.
grep 'IASname' $ORACLE_HOME/config/ias.properties
you should also see it in the AS Control Console page.
The version of the server as displayed when the server is started:
$ ./oc4j -start
Starting OC4J from /oraInventory/j2ee/home ...
09/10/08 16:04:39 Oracle Containers for J2EE 10g (10.1.3.2.0) initializedThis 10.1.3.2.0 number is somewhat confusing. As I understand it, right now if you download a copy of the Application server from Oracle web site, the current version is 10.1.3.1.0.
Regarding the version numbers, this fourth digit refers to the Component-specific release number. The OAS documentation says this about it.
"This digit identifies a release level specific to a component. Different components can have different numbers in this position depending upon, for example, component patch sets or interim releases."
I am also reading the installation guide now and when looking at the server starting messages on the screen, I realize that installing the server in the oraInventory directory is not quite right. Does that interfere with the correct functioning of the server? I installed it but have never tried to use it until now.
Many thanks for your help!
NewmanI think Oracle software should always be installed in a separate directory. I think it may also generate errors in its functioning but it will certainly create a whole lot confusion and mess in later administration and configurations.
hope that helps!
AMN
Edited by: AMN on Oct 8, 2009 5:14 PM -
Can not Start Oracle Application Server ORB process
I have just installed Oracle Application Server (OAS) on my
machine running Windows NT 4.0 Workstation. When I logon to the
OAS manager and tried to start ORB, I got below error message:
Please wait while the command is being processed on host ssoh_x
YOT-11034, Unable to make address: IP://ssoh_x.jgfhome:2649.
Error: YT::EXCEPTION::BADPARAM::NOSUCHADDR
Starting ORB processes...Returning filename D:
\orant\orb\admin\.event
waiting for ORB to be ready...
YOT-11034, Unable to make address: IP://ssoh_x.jgfhome:2649.
Error: YT::EXCEPTION::BADPARAM::NOSUCHADDR
ORB is not responding. Please restart manually...
I have tried to re-install OAS for the second time. But I still
got the same problem.
I plan to use the OAS, together with Oracle Internet Commerce
Server (ICS) to develop an e-commerce project. I am yet to
download and install the ICS. I don't have any Oracle databases
installed in my machine. I'm using MS SQL Server 7.0 instead.
Please advised me on how to configure the ORB so that I'll be
able to start the application server.
nullHi,
Sock Hoon (guest) wrote:
: I have just installed Oracle Application Server (OAS) on my
: machine running Windows NT 4.0 Workstation. When I logon to the
OAS don't run on Win NT with installed service pack 4.
Go back to service pack 3 or apply patch from Developer 6.0 to
OAS.
: OAS manager and tried to start ORB, I got below error message:
: Please wait while the command is being processed on host ssoh_x
: YOT-11034, Unable to make address: IP://ssoh_x.jgfhome:2649.
: Error: YT::EXCEPTION::BADPARAM::NOSUCHADDR
: Starting ORB processes...Returning filename D:
: \orant\orb\admin\.event
: waiting for ORB to be ready...
: YOT-11034, Unable to make address: IP://ssoh_x.jgfhome:2649.
: Error: YT::EXCEPTION::BADPARAM::NOSUCHADDR
: ORB is not responding. Please restart manually...
: I have tried to re-install OAS for the second time. But I still
: got the same problem.
: I plan to use the OAS, together with Oracle Internet Commerce
: Server (ICS) to develop an e-commerce project. I am yet to
: download and install the ICS. I don't have any Oracle databases
: installed in my machine. I'm using MS SQL Server 7.0 instead.
: Please advised me on how to configure the ORB so that I'll be
: able to start the application server.
Best regards Andrew
null -
Error starting essbase applications
Hello specialists!
I'm having a problem restarting the essbase applications.
When i restart the essbase i receive the following error message in the applciation log:
[Thu Jun 21 12:57:34 2012]Local/PlanApp///3348/Error(1019005)
Unable to Read [E:\Hyperion\user_projects\epmsystem2\EssbaseServer\essbaseserver1\APP\PlanApp\Plan1\Plan1.ind], Not a Recognized Format
I tried to rename plan1.ind to oldpplan1.ind just to check if the application would start without problems and it worked.
I would like to know what could have caused this problem and how can i regenerate the plan1.ind file?
Thanks in advance!
Best regards!Hi,
You can try these steps:
1 - Stop the Essbase Server and delete the Plan1.ind file.
2 - Start the Essbase Server and log into the EAS Console
3 - Navigate to the corresponding application and right click over the database you are having problems.
4 - Select Restructure.
Most Essbase application files are renewed after a Restructure and in this case Plan1.ind will be re-created. -
Error starting weblogic Admin server
Hi All,
I am not very familiar with Fusion and weblogic but here is my situation:
Background: I am trying to install Fusion Middleware so I can integrate Oracle Transport Management with E-Business Suite (as per note Integrating Oracle E-Business Suite Release 12 with Oracle BPEL in Oracle SOA Suite 11g (Doc ID 1321776.1))
I just installed the following on Oracle Enterprise Linux 64bits
- SOA Suite 11.1.1.7.0
- Weblogic Server 10.3.6
-JDK 1.7.0_25
-Jdev 11.1.1.7.0
When starting the weblogic Admin server using "DOMAIN_HOME/startWebLogic.sh' I get an error:
Starting weblogic with Java version:
Unrecognized option -jrockit
Error: Could not create the Java virtual machine
I found a few thread with similar issue (for different versions of SOA suite) where it got fixed by changing some parameters in the cmd file but I am not sure they apply to my case.
Is the jdk version compatible? (I can start JDeveloper ok) , if not which one is the appropriate version. If i need to change it, can you provide details of how to do it? (I am not expert on SOA/Jdev )
Can you please help me here ?
Thanks in advance!Well, I tested it
java -version and it shows :
1.7.0_25
Java HotSpot 64 bit Server VM
--> So I guess the problem is I don't seem to have the jrockit.
I donwloaded it (Rel 28.7) and installed it. During installation it says "for JDK 1.6.0_45"
Anyway. I let it install anyway and I modified the PATH to point to the Jrockit bin directory. Then run java -version and it now shows JDK 1.6.0_45 and jvm as rockit
Now I tried to start the weblogic server and I get the same error. it still uses the JDK 1.7
So.. again.. is this supported with JDK 7 ?
How can I fix it now that I installed everything using the JDK 7?
Thanks -
File from the Application server
Hi gurus,
I am working on a scenario where I need to get a file from the application server and for this I need to ask user to enter the location and that too at the selection screen and then I need to read this location using open data set and read data set in my program , once I am done with this I need to do some other validations. so can you please help me out how to achieve this.
Thanks
Rajeev GuptaHi
Declare the selection screen with file as parameter so that the user enter the application server file..
the use the OPEND DATASET as mentioned in below code and process
Refer this:
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
*& Report ZUPLOADTAB * &----
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Regards
Anji -
Can we compare file contents of two files in the Application server?
Hi,
A file is generated daily to the application server. and i need to compare the generated file to the file generated on the previous day and prepare a report.
Can we compare file contents of two generated files present in the Application server?
If there is any alternative, please suggest.
regards
csyes we can compare if the app server is Unix.
cmp compare two binary files and report if different
cmp is silent if the files are the
same;
if they differ, the byte and line number at which the first
difference occurred is reported.
REPORT ZUNIX line-size 400
no standard page heading.
data: unixcom like rlgrap-filename.
unixcom = 'cmp file1 file2'.
data: begin of tabl occurs 500,
line(400),
end of tabl.
data: lines type i.
start-of-selection.
refresh tabl.
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
"if the files are different then you will some content in tabl
Regards
Viajy Babu Dudla -
ABAP Code for Backup the entire table data in the application server
Hello Friends,
I have to create the table data Backup and Store the entire table data in the application server and also be able to restore the data back if needed.
this should be dynamic program for any table based on the table name given on the application server.. I have developed a program for this but its having problems with the Quantity, amount. Its not writing it correctly at the application level.
ANy Suggestions on this.
Below is the program for this.
Thanks,
Ster.
* Report YWMM_TABLE_DUMP *
REPORT ywmm_table_dump .
TABLES :
dd03l.
* Type spool declaration
TYPE-POOLS:
abap, slis.
DATA: i_table_data1 TYPE REF TO data.
DATA : it_dd03l LIKE dd03l OCCURS 0 WITH HEADER LINE.
*DATA : gt_fieldcat TYPE lvc_s_fcat.
DATA : i_fcat TYPE STANDARD TABLE OF lvc_s_fcat,
l_dr_line TYPE REF TO data,
l_v_as4vers TYPE as4vers.
FIELD-SYMBOLS: <f_table_data1> TYPE STANDARD TABLE,
<f_wa_table_data1> TYPE ANY.
SELECTION-SCREEN: BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.
PARAMETERS: rb_copy RADIOBUTTON GROUP map DEFAULT 'X',
rb_rest RADIOBUTTON GROUP map.
SELECTION-SCREEN: END OF BLOCK bl1.
SELECTION-SCREEN: BEGIN OF BLOCK bl2 WITH FRAME TITLE text-002.
PARAMETERS: p_table TYPE tabname OBLIGATORY,
p_plfld TYPE dd03l-fieldname.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_bkfile TYPE localfile OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK bl2.
PERFORM get_data.
IF rb_copy = 'X'.
PERFORM backup.
ELSEIF rb_rest = 'X'.
PERFORM database_update.
ENDIF.
*& Form get_data
FORM get_data.
CLEAR i_fcat.
REFRESH i_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = p_table " Table Name
CHANGING
ct_fieldcat = i_fcat
EXCEPTIONS
OTHERS = 1.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_fcat
IMPORTING
ep_table = i_table_data1.
IF sy-subrc = 0.
ASSIGN i_table_data1->* TO <f_table_data1>.
ELSE.
WRITE: 'Error creating internal table'.
ENDIF.
IF rb_copy = 'X'.
SELECT * FROM (p_table) INTO CORRESPONDING FIELDS OF
TABLE <f_table_data1> UP TO 20 ROWS.
ELSEIF rb_rest = 'X'.
CREATE DATA l_dr_line LIKE LINE OF <f_table_data1>.
ASSIGN l_dr_line->* TO <f_wa_table_data1>.
*Get Data from Application Server
* Opening the dataset P_BKFILE given in the selection screen
TRANSLATE p_bkfile TO LOWER CASE.
OPEN DATASET p_bkfile FOR INPUT IN TEXT MODE." ENCODING DEFAULT.
IF sy-subrc NE 0.
* MESSAGE:
ELSE.
DO.
* Reading the file from application server
READ DATASET p_bkfile INTO <f_wa_table_data1>.
IF sy-subrc = 0.
APPEND <f_wa_table_data1> TO <f_table_data1>.
ELSE.
EXIT.
ENDIF.
ENDDO.
* Closing the dataset
CLOSE DATASET p_bkfile.
ENDIF.
ENDIF.
ENDFORM. " get_data
*& Form backup
* text
* --> p1 text
* <-- p2 text
FORM backup.
TRANSLATE p_bkfile TO LOWER CASE.
OPEN DATASET p_bkfile FOR OUTPUT IN TEXT MODE.
IF sy-subrc NE 0.
WRITE: text-017.
STOP.
ELSE.
LOOP AT <f_table_data1> ASSIGNING <f_wa_table_data1>.
TRANSFER <f_wa_table_data1> TO p_bkfile.
ENDLOOP.
ENDIF.
CLOSE DATASET p_bkfile.
ENDFORM. " backup
*& Form database_update
FORM database_update.
DATA : i_mara_u TYPE STANDARD TABLE OF mara WITH HEADER LINE,
i_ekpo_u TYPE STANDARD TABLE OF ekpo WITH HEADER LINE,
i_eban_u TYPE STANDARD TABLE OF eban WITH HEADER LINE,
i_resb_u TYPE STANDARD TABLE OF resb WITH HEADER LINE,
i_plpo_u TYPE STANDARD TABLE OF plpo WITH HEADER LINE,
i_stpo_u TYPE STANDARD TABLE OF stpo WITH HEADER LINE,
i_vbap_u TYPE STANDARD TABLE OF vbap WITH HEADER LINE,
i_vbrp_u TYPE STANDARD TABLE OF vbrp WITH HEADER LINE,
i_lips_u TYPE STANDARD TABLE OF lips WITH HEADER LINE,
i_afvc_u TYPE STANDARD TABLE OF afvc WITH HEADER LINE,
i_asmd_u TYPE STANDARD TABLE OF asmd WITH HEADER LINE,
* i_cooi_u TYPE STANDARD TABLE OF cooi WITH HEADER LINE,
i_qmel_u TYPE STANDARD TABLE OF qmel WITH HEADER LINE,
i_cooi_u TYPE STANDARD TABLE OF cooi WITH HEADER LINE,
i_esll_u TYPE STANDARD TABLE OF esll WITH HEADER LINE,
i_t165_u TYPE STANDARD TABLE OF t165 WITH HEADER LINE,
i_t165e_u TYPE STANDARD TABLE OF t165e WITH HEADER LINE,
i_twpko_u TYPE STANDARD TABLE OF twpko WITH HEADER LINE,
i_tpext_u TYPE STANDARD TABLE OF tpext WITH HEADER LINE,
i_ce4mxpa_u TYPE STANDARD TABLE OF ce4mxpa WITH HEADER LINE,
i_ce4mxpa_acct_u TYPE STANDARD TABLE OF ce4mxpa_acct WITH
HEADER LINE,
i_zaim_u TYPE STANDARD TABLE OF zaim WITH HEADER LINE,
i_s012_d TYPE STANDARD TABLE OF s012 WITH HEADER LINE,
i_s012_i TYPE STANDARD TABLE OF s012 WITH HEADER LINE,
i_dummy TYPE STANDARD TABLE OF mara.
CASE p_table.
WHEN 'MARA'.
* Non-Key
PERFORM move_to_table USING <f_table_data1>
CHANGING i_mara_u[]
i_mara_u.
PERFORM update_table USING i_mara_u[].
ENDCASE.
ENDFORM. " database_update
*& Form move_to_mara
FORM move_to_table USING p_tab_from TYPE STANDARD TABLE
CHANGING p_tab_to TYPE STANDARD TABLE
p_w_table.
DATA: l_wa_fcat TYPE lvc_s_fcat.
FIELD-SYMBOLS: <f_field_from> TYPE ANY,
<f_field_to> TYPE ANY.
LOOP AT p_tab_from ASSIGNING <f_wa_table_data1>.
LOOP AT i_fcat INTO l_wa_fcat.
ASSIGN COMPONENT l_wa_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field_from>.
ASSIGN COMPONENT l_wa_fcat-fieldname
OF STRUCTURE p_w_table TO <f_field_to>.
<f_field_to> = <f_field_from>.
ENDLOOP.
APPEND p_w_table TO p_tab_to.
ENDLOOP.
ENDFORM. " move_to_mara
*& Form update_table
FORM update_table USING p_table_update TYPE STANDARD TABLE.
SELECT SINGLE *
FROM dd03l
WHERE fieldname = p_plfld
AND tabname = p_table
AND keyflag <> 'X'
AND as4local = 'A'
AND as4vers = l_v_as4vers
AND ( comptype = 'E' OR comptype = space ).
IF sy-subrc = 0.
* Do update
IF NOT p_table_update IS INITIAL.
UPDATE (p_table) FROM TABLE p_table_update.
IF sy-subrc = 0.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
WRITE: text-003.
STOP.
ENDIF.
ENDIF.
ELSE.
*delete and insert.
IF NOT p_table_update IS INITIAL.
* DELETE (p_table).
IF sy-subrc = 0.
INSERT (p_table) FROM TABLE p_table_update.
IF sy-subrc = 0.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
WRITE: text-018.
STOP.
ENDIF.
ELSE.
ROLLBACK WORK.
WRITE: text-018.
STOP.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " update_table
Edited by: Julius Bussche on Jul 18, 2008 1:43 PM
Please use a meaningfull subject title!ARS,
I am struggling a bit to get this.
there is a syntax error,
Field "FIELDS_INT-TYPE" is unknown. It is neither in one of thespecified tables nor defined by a "DATA" statement.
Again you have asked to move to a diffrent table. What is that table and how to build it.
LOOP AT <f_table_data1> ASSIGNING <f_wa_table_data1>.
LOOP AT i_fcat INTO l_fcat.
IF l_fcat-inttype EQ 'P'.
ASSIGN COMPONENT l_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field>
TYPE fields_int-type
DECIMALS fields_int-decimals.
ELSE.
ASSIGN COMPONENT l_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field>
TYPE fields_int-type.
ENDIF.
" Move <f_field> to a new table and use this table for download
ENDLOOP.
TRANSFER <f_wa_table_data1> TO p_bkfile.
ENDLOOP.
Ster
Maybe you are looking for
-
How to invoke a Servlet on onClick event of CheckBox ?
Hi, Can anybody provide me with the code - how to invoke a Servlet & then pass all form variables to the Servlet on onClick Event of CheckBox in a JSP Page. I guess it is possible with Javascript but i need the code... Pls Help ! Thanx.
-
Why are subsequent clips either above or below the main clip and blurred?
I am new to iMovie 10. I have imported three clips into iMovie. I selected one and dragged it into the timeline area. I selected the second and dragged it into the timeline area that followed the first clip. Now, when I select the third and drag
-
Since the last update to OS X 10.9.5, I no longer have a checkbox to use all F keys as standard function keys. I've looked for any other possible solutions but can find none. I have the 2007 aluminum keyboard (three batteries) with the latest firmw
-
During booting linux I've got following message :: Loading Initramfs no kernel EDD support no kernel EDD support no kernel EDD support FATAL: Module input:b0011v0001peAB41_e0,1,4,11,14,k71,72,73,74,75,76,77,79,7A,7B,7C,7D,7E,7F,80,8C,8E,8F,96,9B,9C,9
-
Convertir une vidéo m4v en un autre format
Bonjour, J'ai acheté sur I Tunes deux films qui sont au format m4v. Je veux les visionner sur ma tv via mon lecteur DVD. Or, aucun de mes appareils n'acceptent le format m4v. Comment convertir mes vidéos achetées sur I tunes en un format compatible?