ABAP Units for process agents
I am implementing ABAP Units for process agents.
I am using abap unit framework for process agents for this.
I am passing a variant xml with test data, this will create a BO structure, along with xml in the variant, i am also passing the expected bo structure(to be compared).
But still it dumps...as it says unexpected fields!
Guide me.
Thanks a lot.
Hi Pallavi,
You can achive this using event based chains.
1. Create 4 chains to load to 4 CUBEs.
2. Schedule 4 chains based on 4 events(can create at SM62).
3. Create an ABAP Program to raise events based on logic and Create one more process chain and include ABAP program. and schedule this program daily.
Logic is:
Based on system data derive quater and correspondingly raise an event.
<a href="http://sapbwneelam.blogspot.com/2007/09/how-to-start-process-chain-through.html">Sample - how to ... start process chain through an event</a>
Hope it Helps
Srini
Similar Messages
-
ABAP Unit for Function Module(Function Group)
Hi, Gurus:
Can we use ABAP Unit to test Function Module(Function Group).
If can, give me a simple example. how to create methods. Thanks.
Regards,I'm a little unclear about your question, Yunfa.
Do you want to single-test a SE37 function-module? This can be easily done, just hit the F8 button, and it takes you to a single-test environment.
Do you want to test an FM using an ABAP-program? This too is easy to do. To code the FM-call, there's a button called Pattern, in the standard SE38 screen, where you can put in your FM name, and it inserts the relevant code in your program.
Note that if you're testing BAPIs using the single-test environment, the actual document posting will not happen, because that requires a BAPI_COMMIT_WORK call. So, the way to test BAPIs which post documents would be to write an SE38 program, which also calls the commit-bapi.
Hope this answers your question! -
Standard ABAP program for process chains
Hi gurus,
Is there any standard ABAP program to trigger process chains?
I do not have authorization for RSPC_API_CHAIN_START. So is there any alternative function module or any standard ABAP program that I could use?
Please help.Hi Apara,
Did you try scheduling the chain via rspc1? If not then follow the steps as given below and see if it is successful
1) Goto RSPC1.
2) Enter your chain technical name.
3) Go to display variant by right clicking the chain. Select the immediate option. save the settings.
4) Come back to the process chain screen. Click on execute button. See if this succeeds.
or in case if the chain has been already scheduled once:
Just open the PC in RCPC1/RCPC
right click on the start variant (i.e the first process in the PC)
and select display scheduled jobs...
this will show you the released jobs for this pC
just selsct the check box in front of the released job and the select the menu option Job - > selct Repeat scheduling.
selct immediate and remove the periodic tick mark and save which will run your process chain immediately.
But i doubt if you will be able to schedule the process chain via a function module or a ABAP code without prior authorization. Maybe you can request some one from your team to run the chain for you until you get access.
You will surely need to get access for running the chain without which it should not be possible to run the chain.
Thanks
Pawan -
Deactivating ABAP UNIT in Production system
Hi All,
I have gone through the documention of ABAP UNIT for unit testing. In the documents it is mentioned that the Test classes created for Unit Testing are Local Classes and does not make any negative impact on the Production environment Because these classes are Inactive in Production system.
Can anyone please reply to the follwoing:
1) Are the Test classes Inactive by default in production system?
2) If No then what is the procedure for Deactivating Test classes in the production environment?
3) What is the transaction code for checking the status (active/inactive) these classes?
4) Is the menu path Programs->Test-> ABAP_Unit is inactive in production?
Thanks and Regards,
Ashvender1) Unit Test Framework will look for the Type of Client. If your client is Production client, Unit test framework will automatically make them inactive.
The check happens to allow to run Unit test in FM SABP_AU_TEST_PROGRAM_FROM_EU.
3) Unit Test classes will be complied in the production system but you will not be able to exectue them.
When we create Unit test in development, Table TAUNIT_PROG_INFO is being updated (HAS_TESTS = 'X'). But when we transport our objects along with the ABAP Unit in Production client, this table is not being updated.
4) You can try running the ABAP unit by Program > Test > Unit Test in Production, but will give you message "Unit tests are not possible in production clients".
Regards,
Naimesh Patel -
Executing ABAP Report- No memory for processing HTTP, HTTPS or SMTP query
Hello experts,
I am getting same error while running ABAP Report- /OSP/TRIGGER_LEAVE_SCHEDULER
Error-
No memory for processing HTTP, HTTPS or SMTP query .
Please help.
Regards,
ShashankHello
This should solve it
1562539 - No memory for processing HTTP, HTTPS, or SMTP queries.
Thanks
Alagappan -
Hi Experts, need an example for abap unit test(ABAP OO)?
Hi Experts,
I want to do abap unit test for the developed programs, could anyone please give me an example program of development(a simple is ok, just use it to test)? and an abap unit test example for the program, what I want is to use object oriented abap, thanks in advance!
Merry Christmas to you all.
Kind regards
DawsonHi
Below documents will give you more information,
http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/content.htm
ABAP Testing and Troubleshooting [original link is broken]
http://bi.offis.de/publicProject/g16cglafhqva.htm
regards
Nagaraju -
Creating ABAP Unit Tests for Report Programs
How can we create ABAP unit test for report programs.
Please explain the steps?Hi Devendra.
I would like to suggest some references which are as below:
[SAP HELP - Complete ABAP unit|http://help.sap.com/saphelp_nw04/helpdata/en/a2/8a1b602e858645b8aac1559b638ea4/frameset.htm]
[SDN - Reference for ABAP unit testing|about unit testing;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave
Edited by: Harsh Dave on Jul 14, 2008 2:13 PM
Edited by: Harsh Dave on Jul 14, 2008 2:20 PM -
Enable ABAP trace for programs running in BI process chains
Hi
Can anyone please indicate how can we enable a ABAP trace for a long running program, that runs through Process chains of SAP BI.well i´m not a 100% sure, but this task has not so much workload that you cant give it a shot
-
Systemd unit for Glassfish v4 server
Hi all!
Im trying to set up sytemd unit for glassfish4 web server but I am ending up in failed satate..
Here's what I got:
cat /usr/lib/systemd/system/glassfish.service
[Unit]
Description=GlassFish Server
[Service]
ExecStart=/home/pian/glassfish4/bin/asadmin start-domain
ExecStop=/home/pian/glassfish4/bin/asadmin stop-domain
ExecReload=/home/pian/glassfish4/bin/asadmin restart-domain
Type=forking
TimeoutSec=15min
[Install]
WantedBy=multi-user.target
#systemctl status glassfish.service
* glassfish.service - GlassFish Server
Loaded: loaded (/usr/lib/systemd/system/glassfish.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2015-03-22 14:54:34 UTC; 10min ago
Process: 142 ExecStart=/home/pian/glassfish4/bin/asadmin start-domain (code=exited, status=1/FAILURE)
Mar 22 14:43:32 alarmpi systemd[1]: Starting GlassFish Server...
Mar 22 14:54:34 alarmpi asadmin[142]: Waiting for domain1 to start ................................................................................................................................................
Mar 22 14:54:34 alarmpi asadmin[142]: serverNoStart
Mar 22 14:54:34 alarmpi asadmin[142]: Command start-domain failed.
Mar 22 14:54:34 alarmpi systemd[1]: glassfish.service: control process exited, code=exited status=1
Mar 22 14:54:34 alarmpi systemd[1]: Failed to start GlassFish Server.
Mar 22 14:54:34 alarmpi systemd[1]: Unit glassfish.service entered failed state.
Mar 22 14:54:34 alarmpi systemd[1]: glassfish.service failed.
glassfish's log file
[2015-03-22T15:08:25.078+0000] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427036905078] [levelValue: 800] [[
JVM invocation command line:
/usr/lib/jvm/java-8-openjdk/bin/java
-cp
/home/pian/glassfish4/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/home/pian/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/home/pian/glassfish4/glassfish/domains/domain1/config/cacerts.jks
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/home/pian/glassfish4/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/home/pian/glassfish4/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/home/pian/glassfish4/glassfish/modules/endorsed:/home/pian/glassfish4/glassfish/lib/endorsed
-Djava.security.policy=/home/pian/glassfish4/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/home/pian/glassfish4/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/home/pian/glassfish4/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/home/pian/glassfish4/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
-Dgosh.args=--nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk/lib/ext:/usr/lib/jvm/java-8-openjdk/jre/lib/ext:/home/pian/glassfish4/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/home/pian/glassfish4/glassfish/lib:/usr/java/packages/lib/arm:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/home/pian/glassfish4/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=false,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,/home/pian/glassfish4/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
/home/pian/glassfish4/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2015-03-22T15:10:49.758+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037049758] [levelValue: 800] [[
Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]
[2015-03-22T15:10:49.826+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037049826] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2015-03-22T15:10:58.384+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037058384] [levelValue: 800] [[
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:10:58.495+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037058495] [levelValue: 800] [[
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:10:59.986+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427037040685] [timeMillis: 1427037059986] [levelValue: 800] [[
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]
[2015-03-22T15:11:19.304+0000] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427037041041] [timeMillis: 1427037079304] [levelValue: 800] [[
Authorization Service has successfully initialized.]]
[2015-03-22T15:11:34.956+0000] [glassfish 4.1] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427037041041] [timeMillis: 1427037094956] [levelValue: 800] [[
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]
[2015-03-22T15:11:35.020+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037095020] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 1,051ms - bound to [/0.0.0.0:8080]]]
[2015-03-22T15:11:42.794+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037102794] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 60ms - bound to [/0.0.0.0:8181]]]
[2015-03-22T15:11:49.478+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037109478] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 50ms - bound to [/0.0.0.0:4848]]]
[2015-03-22T15:11:53.456+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427037041032] [timeMillis: 1427037113456] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 12ms - bound to [/0.0.0.0:3700]]]
[2015-03-22T15:14:14.999+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037254999] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:15:00.827+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01002] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037300827] [levelValue: 800] [[
Java security manager is disabled.]]
[2015-03-22T15:15:00.842+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01010] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037300842] [levelValue: 800] [[
Entering Security Startup Service.]]
[2015-03-22T15:15:01.135+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01143] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037301135] [levelValue: 800] [[
Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.]]
[2015-03-22T15:15:07.477+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01011] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037307477] [levelValue: 800] [[
Security Service(s) started successfully.]]
[2015-03-22T15:15:35.705+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037335705] [levelValue: 800] [[
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]
[2015-03-22T15:15:36.235+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037336235] [levelValue: 800] [[
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]
[2015-03-22T15:15:36.542+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037336542] [levelValue: 800] [[
Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]
[2015-03-22T15:15:37.531+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037337531] [levelValue: 800] [[
Created virtual server server]]
[2015-03-22T15:15:37.794+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037337794] [levelValue: 800] [[
Created virtual server __asadmin]]
[2015-03-22T15:15:47.942+0000] [glassfish 4.1] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037347942] [levelValue: 800] [[
Setting JAAS app name glassfish-web]]
[2015-03-22T15:15:47.965+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037347965] [levelValue: 800] [[
Virtual server server loaded default web module ]]
[2015-03-22T15:16:31.619+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037391619] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.504+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392504] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.624+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392624] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.740+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392740] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.856+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392856] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:32.975+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037392975] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:33.092+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037393092] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:16:33.212+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427037040728] [timeMillis: 1427037393212] [levelValue: 800] [[
visiting unvisited references]]
when starting Glassfish from terminal with asadmin start-domain I get this:
$ ./asadmin start-domain
Waiting for domain1 to start ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
serverNoStart
Command start-domain failed.
and this gets logged:
[2015-03-22T15:39:24.132+0000] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427038764132] [levelValue: 800] [[
JVM invocation command line:
/usr/lib/jvm/java-8-openjdk/bin/java
-cp
/home/pian/glassfish4/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:MaxPermSize=192m
-Xmx512m
-client
-javaagent:/home/pian/glassfish4/glassfish/lib/monitor/flashlight-agent.jar
-Djavax.xml.accessExternalSchema=all
-Djavax.net.ssl.trustStore=/home/pian/glassfish4/glassfish/domains/domain1/config/cacerts.jks
-Djdk.corba.allowOutputStreamSubclass=true
-Dfelix.fileinstall.dir=/home/pian/glassfish4/glassfish/modules/autostart/
-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall
-Dcom.sun.aas.installRoot=/home/pian/glassfish4/glassfish
-Dfelix.fileinstall.poll=5000
-Djava.endorsed.dirs=/home/pian/glassfish4/glassfish/modules/endorsed:/home/pian/glassfish4/glassfish/lib/endorsed
-Djava.security.policy=/home/pian/glassfish4/glassfish/domains/domain1/config/server.policy
-Dosgi.shell.telnet.maxconn=1
-Dfelix.fileinstall.bundles.startTransient=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dfelix.fileinstall.log.level=2
-Djavax.net.ssl.keyStore=/home/pian/glassfish4/glassfish/domains/domain1/config/keystore.jks
-Djava.security.auth.login.config=/home/pian/glassfish4/glassfish/domains/domain1/config/login.conf
-Dfelix.fileinstall.disableConfigSave=false
-Dfelix.fileinstall.bundles.new.start=true
-Dcom.sun.aas.instanceRoot=/home/pian/glassfish4/glassfish/domains/domain1
-Dosgi.shell.telnet.port=6666
-Dgosh.args=--nointeractive
-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
-Dosgi.shell.telnet.ip=127.0.0.1
-DANTLR_USE_DIRECT_CLASS_LOADING=true
-Djava.awt.headless=true
-Dcom.ctc.wstx.returnNullForDefaultNamespace=true
-Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk/lib/ext:/usr/lib/jvm/java-8-openjdk/jre/lib/ext:/home/pian/glassfish4/glassfish/domains/domain1/lib/ext
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djava.library.path=/home/pian/glassfish4/glassfish/lib:/usr/java/packages/lib/arm:/lib:/usr/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-upgrade
false
-domaindir
/home/pian/glassfish4/glassfish/domains/domain1
-read-stdin
true
-asadmin-args
--host,,,localhost,,,--port,,,4848,,,--secure=false,,,--terse=false,,,--echo=false,,,--interactive=true,,,start-domain,,,--verbose=false,,,--watchdog=false,,,--debug=false,,,--domaindir,,,/home/pian/glassfish4/glassfish/domains,,,domain1
-domainname
domain1
-instancename
server
-type
DAS
-verbose
false
-asadmin-classpath
/home/pian/glassfish4/glassfish/lib/client/appserver-cli.jar
-debug
false
-asadmin-classname
com.sun.enterprise.admin.cli.AdminMain]]
[2015-03-22T15:41:45.525+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427038905525] [levelValue: 800] [[
Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]
[2015-03-22T15:41:45.598+0000] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427038905598] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2015-03-22T15:41:54.578+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038914578] [levelValue: 800] [[
Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:41:54.690+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038914690] [levelValue: 800] [[
Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]
[2015-03-22T15:41:56.229+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=15 _ThreadName=RunLevelControllerThread-1427038896771] [timeMillis: 1427038916229] [levelValue: 800] [[
Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]
[2015-03-22T15:42:16.455+0000] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427038896420] [timeMillis: 1427038936455] [levelValue: 800] [[
Authorization Service has successfully initialized.]]
[2015-03-22T15:42:25.582+0000] [glassfish 4.1] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=12 _ThreadName=RunLevelControllerThread-1427038896420] [timeMillis: 1427038945582] [levelValue: 800] [[
Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry]]
[2015-03-22T15:42:43.272+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038963272] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 1,079ms - bound to [/0.0.0.0:8080]]]
[2015-03-22T15:42:49.658+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038969658] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 62ms - bound to [/0.0.0.0:8181]]]
[2015-03-22T15:42:54.264+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038974264] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 41ms - bound to [/0.0.0.0:4848]]]
[2015-03-22T15:42:58.446+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=14 _ThreadName=RunLevelControllerThread-1427038896756] [timeMillis: 1427038978446] [levelValue: 800] [[
Grizzly Framework 2.3.15 started in: 12ms - bound to [/0.0.0.0:3700]]]
[2015-03-22T15:45:23.078+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039123078] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:46:06.032+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01002] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166032] [levelValue: 800] [[
Java security manager is disabled.]]
[2015-03-22T15:46:06.048+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01010] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166048] [levelValue: 800] [[
Entering Security Startup Service.]]
[2015-03-22T15:46:06.359+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01143] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039166359] [levelValue: 800] [[
Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.]]
[2015-03-22T15:46:12.625+0000] [glassfish 4.1] [INFO] [NCLS-SECURITY-01011] [javax.enterprise.system.core.security] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039172625] [levelValue: 800] [[
Security Service(s) started successfully.]]
[2015-03-22T15:46:40.575+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039200575] [levelValue: 800] [[
Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080]]
[2015-03-22T15:46:41.137+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039201137] [levelValue: 800] [[
Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181]]
[2015-03-22T15:46:41.462+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00198] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039201462] [levelValue: 800] [[
Created HTTP listener admin-listener on host/port 0.0.0.0:4848]]
[2015-03-22T15:46:42.503+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039202503] [levelValue: 800] [[
Created virtual server server]]
[2015-03-22T15:46:42.788+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00200] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039202788] [levelValue: 800] [[
Created virtual server __asadmin]]
[2015-03-22T15:46:52.796+0000] [glassfish 4.1] [INFO] [AS-WEB-CORE-00306] [javax.enterprise.web.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039212796] [levelValue: 800] [[
Setting JAAS app name glassfish-web]]
[2015-03-22T15:46:52.815+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00201] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039212815] [levelValue: 800] [[
Virtual server server loaded default web module ]]
[2015-03-22T15:47:35.172+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039255172] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.122+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256122] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.245+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256245] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.369+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256369] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.493+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256493] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.619+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256619] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.741+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256741] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:47:36.871+0000] [glassfish 4.1] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039256871] [levelValue: 800] [[
visiting unvisited references]]
[2015-03-22T15:49:33.162+0000] [glassfish 4.1] [INFO] [] [org.glassfish.jersey.server.ApplicationHandler] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039373162] [levelValue: 800] [[
Initiating Jersey application, version Jersey: 2.10.4 2014-08-08 15:09:00...]]
[2015-03-22T15:50:26.435+0000] [glassfish 4.1] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039426435] [levelValue: 800] [[
Loading application [service] at [/service]]]
[2015-03-22T15:50:26.502+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00022] [javax.enterprise.system.core] [tid: _ThreadID=13 _ThreadName=RunLevelControllerThread-1427038896461] [timeMillis: 1427039426502] [levelValue: 800] [[
Loading application service done in 486,416 ms]]
[2015-03-22T15:50:26.554+0000] [glassfish 4.1] [INFO] [NCLS-CORE-00017] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427039426554] [levelValue: 800] [[
GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (127,555ms), startup services(530,277ms), total(657,832ms)]]
[2015-03-22T15:50:51.956+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00024] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039451956] [levelValue: 800] [[
Creating a SecureRMIServerSocketFactory @ 0.0.0.0 with ssl config = GlassFishConfigBean.org.glassfish.grizzly.config.dom.Ssl]]
[2015-03-22T15:50:52.232+0000] [glassfish 4.1] [WARNING] [NCLS-JMX-00020] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039452232] [levelValue: 900] [[
All SSL cipher suites disabled for network-listener(s). Using SSL implementation specific defaults]]
[2015-03-22T15:50:52.223+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=59 _ThreadName=Thread-8] [timeMillis: 1427039452223] [levelValue: 800] [[
SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@1a7d45]]
[2015-03-22T15:50:53.861+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=59 _ThreadName=Thread-8] [timeMillis: 1427039453861] [levelValue: 800] [[
SSLParams =org.glassfish.admin.mbeanserver.ssl.SSLParams@1a7d45]]
[2015-03-22T15:50:53.870+0000] [glassfish 4.1] [WARNING] [NCLS-JMX-00020] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039453870] [levelValue: 900] [[
All SSL cipher suites disabled for network-listener(s). Using SSL implementation specific defaults]]
right now, glassfish is started, but when accessing deployed application's URL (it's REST web service) I get resource not available.
after a while sevice get's available and this is appended into the log:
[2015-03-22T15:51:01.140+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00025] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039461140] [levelValue: 800] [[
SSLServerSocket /0.0.0.0:8686 and [SSL: ServerSocket[addr=/0.0.0.0,localport=8686]] created]]
[2015-03-22T15:51:08.236+0000] [glassfish 4.1] [INFO] [NCLS-BOOTSTRAP-00027] [javax.enterprise.bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1427039468236] [levelValue: 800] [[
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@5a060f as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@ec523c.]]
[2015-03-22T15:52:03.697+0000] [glassfish 4.1] [INFO] [NCLS-JMX-00005] [javax.enterprise.system.jmx] [tid: _ThreadID=59 _ThreadName=Thread-19] [timeMillis: 1427039523697] [levelValue: 800] [[
JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://alarmpi:8686/jndi/rmi://alarmpi:8686/jmxrmi]]
[2015-03-22T15:53:19.225+0000] [glassfish 4.1] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=25 _ThreadName=http-listener-1(4)] [timeMillis: 1427039599225] [levelValue: 800] [[
HV000001: Hibernate Validator 5.0.0.Final]]
[2015-03-22T15:53:30.219+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=25 _ThreadName=Thread-8] [timeMillis: 1427039610219] [levelValue: 800] [[
[EL Info]: 2015-03-22 15:53:30.062--ServerSession(32742320)--EclipseLink, version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd]]
[2015-03-22T15:53:34.081+0000] [glassfish 4.1] [INFO] [] [] [tid: _ThreadID=25 _ThreadName=Thread-8] [timeMillis: 1427039614081] [levelValue: 800] [[
[EL Info]: connection: 2015-03-22 15:53:34.067--ServerSession(32742320)--file:/home/pian/glassfish4/glassfish/domains/domain1/applications/service/WEB-INF/classes/_serviceUnit login successful]]
So can you, please, help me understand what is happening and what I need to do to correctly start glassfish's domain with deployed application in it via systemd?
Thank you!
Last edited by greengold (2015-03-22 16:10:33)I suggest you create a dedicated user for your calibre service and not run it as root (User=, Group=). I'm not so sure running that code mess as root.
Edit: Or if you want the server to run only when your user is logged in, then create it in the systemd user session.
Last edited by progandy (2015-01-18 23:56:03) -
Hi,
I want to do a unit test for Fm ,but the FM input have some value that always changing and other
Are stay the same ,and the FM output change accordingly , i can build a unit test for this kind of FM,
Or it's worthless ?
Regards
Ricardo AronaHi Naimesh,
But your FM involves some kind of processing i.e. collecting table, modifying data in to internal table, filling up final table etc than you should write ABAP Unit only on that Subroutine.
Yea , my FM get always different key.
the WORKITEM_ID is unique and always changing.
like :
Import
WORKITEM_ID - 005104574
DECISION_KEY - 0001
USER_ID - C0267195
OPERATION_ID - EXEC
so the export data is always changing accordingly .
What u suggest for this kind of issue?
Regards -
ABAP-Coding for EVERY Key figure in infocube 0RT_C02
Hello gurus;
Does anybody know which is the reason for Abap-coding for every key figure in infocube 0rt_c02 from InfoSource 2lis_13_vditm?
Thanks in advanced!
CsrHi,
this is done like this in the business content because the extractor is providing the data with a process key; this process key is then translated into meaningfull business objects (key figures);
fro instance ProcessKey 202 in application SD is reflecting Credit memos:
* Credit Memo
IF COMM_STRUCTURE-PROCESSKEY = '202'
AND COMM_STRUCTURE-BWAPPLNM EQ 'SD'.
* currency convert
IF COMM_STRUCTURE-COST <> 0. "Value in document UNIT
PERFORM LOC_CURR_CONVERT
USING COMM_STRUCTURE-COST "Value in doc UNIT
COMM_STRUCTURE-TRANS_DATE "Date for exchange
COMM_STRUCTURE-DOC_CURRCY "Document Currency
COMM_STRUCTURE-LOC_CURRCY "Local currency
* COMM_STRUCTURE-EXCHG_RATE "Exchanging rate
COMM_STRUCTURE-/BIC/ZEXRATEAC "Exchanging rate Acctn
CHANGING RESULT.
* the KPI's must be turned to positive because the SD-extractors
* allways deliver them neg. if it's a process back (e.g. return order)
RESULT = RESULT * ( -1 ).
UNIT = COMM_STRUCTURE-LOC_CURRCY.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
ELSE.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 4.
ENDIF.
ELSE.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 4.
ENDIF.
the above routine is quite self explaining the code.
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
Setting currency and measurement unit for a field in an ALV report
Plz give sample code to set currency and measurement unit for a field in an ALV report
dear friend
i am seanding you
the display form
if you need select form
and process form also pls keep in touch.
if help full rewards are expecting.
yours
vivek
FORM build_field_catalog .
DATA: w_dthigh(10).
CLEAR fcat.
fcat-fieldname = 'VBELN'.
fcat-outputlen = 10.
fcat-seltext_s = 'COMMERCIAL INVOICE'.
fcat-seltext_m = 'Commercial Invoice'.
fcat-seltext_l = 'COMMERCIAL INVOICE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
fcat-hotspot = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'EXNUM'.
fcat-outputlen = 10.
fcat-seltext_s = 'EXCISE INVOICE'.
fcat-seltext_m = 'Excise Invoice'.
fcat-seltext_l = 'EXCISE INVOICE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-hotspot = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'EXDAT'.
fcat-outputlen = 10.
fcat-seltext_s = 'EXCISE DATE'.
fcat-seltext_m = 'Excise Date'.
fcat-seltext_l = 'EXCISE DATE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'D'.
fcat-datatype = 'DATS'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'NAME1'.
fcat-outputlen = 30.
fcat-seltext_s = 'CUSTOMER'.
fcat-seltext_m = 'Customer'.
fcat-seltext_l = 'CUSTOMER'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'ZZPD'.
fcat-outputlen = 15.
fcat-seltext_s = 'COUNTRY'.
fcat-seltext_m = 'COUNTRY'.
fcat-seltext_l = 'COUNTRY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'WERKS'.
fcat-outputlen = 4.
fcat-seltext_s = 'PLANT'.
fcat-seltext_m = 'Plant'.
fcat-seltext_l = 'PLANT'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'ARKTX'.
fcat-outputlen = 40.
fcat-seltext_s = 'MATERIAL DESCRIPTION'.
fcat-seltext_m = 'Material Description'.
fcat-seltext_l = 'MATERIAL DESCRIPTION'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-lowercase = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKART'.
fcat-outputlen = 4.
fcat-seltext_s = 'Billing type'.
fcat-seltext_m = 'Billing type'.
fcat-seltext_l = 'Billing type'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'INCO1'.
fcat-outputlen = 5.
fcat-seltext_s = 'INCO TERMS'.
fcat-seltext_m = 'INCO TERMS'.
fcat-seltext_l = 'INCO TERMS'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'INCO2'.
fcat-outputlen = 10.
fcat-seltext_s = 'INCO TERMS DES'.
fcat-seltext_m = 'INCO TERMS DES'.
fcat-seltext_l = 'INCO TERMS DES'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKIMG'.
fcat-outputlen = 14.
fcat-seltext_s = 'QUANTITY'.
fcat-seltext_m = 'Quantity'.
fcat-seltext_l = 'QUANTITY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'QUAN'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKLMG'.
fcat-outputlen = 10.
fcat-seltext_s = 'QUANTITY'.
fcat-seltext_m = 'QUANTITY'.
fcat-seltext_l = 'QUANTITY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'QUAN'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'MEINS'.
fcat-outputlen = 5.
fcat-seltext_s = 'UNIT'.
fcat-seltext_m = 'UNIT'.
fcat-seltext_l = 'UNIT'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CHAR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'KBETR'.
fcat-outputlen = 8.
fcat-seltext_s = 'RATE'.
fcat-seltext_m = 'Rate'.
fcat-seltext_l = 'RATE'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'NSR'.
fcat-outputlen = 8.
fcat-seltext_s = 'Exmill'.
fcat-seltext_m = 'Exmill'.
fcat-seltext_l = 'Exmill'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'KURSK'.
fcat-outputlen = 8.
fcat-seltext_s = 'EXCHANGE RATE'.
fcat-seltext_m = 'Exchange Rate'.
fcat-seltext_l = 'Exchange Rate'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'WAERK'.
fcat-outputlen = 5.
fcat-seltext_s = 'CURRENCY'.
fcat-seltext_m = 'Currency'.
fcat-seltext_l = 'CURRENCY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'C'.
fcat-datatype = 'CUKY'.
APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'LCURR1'.
fcat-outputlen = 14.
fcat-seltext_s = 'GROSS AMT'.
fcat-seltext_m = 'Gross Amt'.
fcat-seltext_l = 'GROSS AMT'.
fcat-ddictxt = 'L'.
fcat-inttype = 'P'.
fcat-datatype = 'CURR'.
fcat-do_sum = 'X'.
APPEND fcat.
================================= *****************
fheader-typ = 'H'.
SELECT SINGLE butxt
FROM t001
INTO fheader-info
WHERE bukrs EQ '1000'.
APPEND fheader.
CLEAR fheader.
fheader-typ = 'H'.
fheader-info = 'Daily Shipments For Exp'.
APPEND fheader.
CLEAR fheader.
Plant
SORT s_werks BY low.
READ TABLE s_werks INDEX 1.
fheader-typ = 'S'.
WRITE s_werks-low TO fheader-key.
SORT s_werks BY high DESCENDING.
READ TABLE s_werks INDEX 1.
IF s_werks-high NE space.
CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
SEPARATED BY space.
ELSE.
WRITE fheader-key TO fheader-info.
ENDIF.
CLEAR fheader-key.
fheader-key = 'PLANT : '.
APPEND fheader.
CLEAR fheader.
Billing Typ
SORT S_FKART BY LOW.
READ TABLE S_FKART INDEX 1.
FHEADER-TYP = 'S'.
WRITE S_FKART-LOW TO FHEADER-KEY.
SORT S_FKART BY HIGH DESCENDING.
READ TABLE S_FKART INDEX 1.
IF S_FKART-HIGH NE SPACE.
CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
SEPARATED BY SPACE.
ELSE.
WRITE FHEADER-KEY TO FHEADER-INFO.
ENDIF.
CLEAR FHEADER-KEY.
FHEADER-KEY = 'DOCUMENT TYPE : '.
APPEND FHEADER.
CLEAR FHEADER.
Date...
fheader-typ = 'S'.
FHEADER-KEY = S_FKDAT-LOW.
WRITE s_fkdat-low TO fheader-key.
WRITE s_fkdat-high TO w_dthigh.
CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
SEPARATED BY space.
CLEAR fheader-key.
fheader-key = 'PERIOD : '.
APPEND fheader.
CLEAR fheader.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = fevents[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc = 0.
fevents-form = 'TOPOFPAGE'.
MODIFY fevents INDEX sy-tabix.
CLEAR fevents.
ENDIF.
rptname = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = rptname
it_fieldcat = fcat[]
i_default = 'S'
it_events = fevents[]
i_save = 'X'
TABLES
t_outtab = it_output[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " BUILD_FIELD_CATALOG -
Here we go again on questions regarding ABAPUnit. We are trying to use Abap unit within a Class object. All the examples we have seen have to do with Classes and Methods within a Report program.
What we have created:
Class: ZCL_MAIN
Type: General Class
Method: test_abapunit
Class: ZCL_MAIN_TEST
Class type: Abap Unit
Sub Class of ZCL_MAIN
Method: Test_abapunit_test
We try and run the Abap Unit Test from the Test Class and it says it is complete but does not execute our code. I know we are doing something wrong but are stumped as to what it is.
GlennHi Glenn,
although Uwe and Klaus actually provided for the relevant information we too faced some difficulties at first understanding 'where' you actually put the test classes. So here are the mechanics:
Open SE80 or SE24 and implement your class ZCL_MAIN.
While this class is opened, choose <i>Goto->Class-local types->Local Class Definitions/Types</i> from the menu. An editor for local classes is opened on the right.
Type in your class definition ZCL_MAIN_TEST like this:
CLASS lcl_main_test DEFINITION FOR TESTING.
"#AU Risk_Level Harmless
PRIVATE SECTION.
CONSTANTS: some_initial_test_value TYPE i VALUE 5.
DATA: main_class TYPE REF TO zcl_main.
METHODS setup FOR TESTING.
METHODS teardown FOR TESTING.
METHODS check_get_my_int FOR TESTING.
METHODS check_.. FOR TESTING.
ENDCLASS.
This is btw a 'normal' local class, no subclass of cl_abap_unit.. whatsoever.
Go back (menu <i>Goto->Class Definition</i>).
Choose <i>Goto->Class-local types->local class implementations</i> from the menu.
Type in your class implementation for ZCL_MAIN_TEST, i.e. implement especially the setup()-method for the test fixture and the various test-methods.
Compile/activate your class ZCL_MAIN.
Run the test by choosing <i>Test->Unit Test</i> from the context menu of the class ZCL_MAIN.
Hope this helps, regards,
Sebastian -
I'm familiar with the technical concept of ABAP Unit testing, using both local or global classes, running sets of Unit Tests using the Code Inspector. However, I'm struggling with two issues:
a) Technical issue: how can I test a Protected or Private method of a class using ABAP Unit testing? It works if the class to be tested has granted friendship to the unit test class, but is that the way to do this?
b) conceptual issue on the types of Unit Tests to define: the Unit Test is based on comparing actual results with expected results. But how can I predict a result on a development environment that is constantly changing?
Thanx in advance
Ben MeijsHi!
For having plan vs actual report, first of all you need to define CO versions through ORKE for your operating concern. You also needs to define plan version through KE14. Also you need to assign COPA reciever plan version for integrated planning.
All your SD condition types need to be assigned to value fields. Also to flow actual values of production orders, CO Orders - it is required to assign PA transfer structure to settlement profile. Settlement profile must allow profitlability segments as settlement recievers and it must be stored in settlement profile. The assignment ensures that variances also flows to COPA. Key figure should also be defined for when assessment is caried out from cost center accounting to COPA. Also your value fields are also to be assigned to Cost component structure in COPA.
After doing above necessary activity, you may plan for your form of report through KE34. Lines, form and header are specified by means of characteristics or value fields.
Hope it helps a lot!
Please revert back for any query.
Thanks & Regards,
Taral Patel -
Report to display Average time taken for processing payments".
Hi,
I have been asked to develop a report for "Report to display Average time taken for processing payments".
Could any one guide me technically what are the different tables i need to take to generate the report. Treat this is very urgent. Pls provide sample code too....
Thanks in advance....Given below is the set up for credit card payment processing:
Set Up Credit Control Areas:
Define Credit Control Area
Transaction: OB45
Tables: T014
Action: Define a credit control area and its associated currency. The Update Group should be 00012. This entry is required so the sales order will calculate the value to authorize
Assign Company Code to Credit Control Area
Transaction: OB38
Tables: T001
Action: Assign a default credit control area for each company code
Define Permitted Credit Control Area for a Company
Code
Transaction:
Tables: T001CM
Action: For each company code enter every credit control area that can be used
Identify Credit Price
Transaction: V/08
Tables: T683S
Action: Towards the end of the pricing procedure, after all pricing and tax determination, create a subtotal line to store the value of the price plus any sales tax. Make the following entries:
Sub to: A
Reqt: 2
AltCTy: 4
Automatic Credit Checking
Transaction: OVA8
Tables: T691F
Action: Select each combination of credit control areas, risk categories and document types for which credit checking should be bypassed. You need to mark the field no Credit Check with the valid number for sales documents.
Set Up Payment Guarantees
Define Forms of Payment Guarantee
Transaction: OVFD
Tables: T691K
Action: R/3 is delivered with form 02 defined for payment cards. Other than the descriptor, the only other entry should be 3 in the column labeled PymtGuaCat
Define Payment Guarantee Procedure
Transaction:
Tables: T691M/T691O
Action: Define a procedure and a description.
Forms of Payment Guarantee and make the following entries Sequential Number 1
Payment Guarantee Form 02
Routine Number 0 Routine Number can be used to validate payment card presence.
Define Customer Payment Guarantee Flag
Transaction:
Tables: T691P
Action: Define a flag to be stored in table.
Create Customer Payment Guarantee = Payment Card Payment Cards (All Customers can use Payment Cards).
Define Sales Document Payment Guarantee Flag
Transaction:
Tables: T691R
Action: Define the flag that will be associated with sales document types that are relevant for payment cards
Assign Sales Document Payment Guarantee Flag
Transaction:
Tables: TVAK
Action: Assign the document flag type the sales documents types that are relevant for payment cards.
Determine Payment Guarantee Procedure
Transaction: OVFJ
Tables: T691U
Action: Combine the Customer flag and the sales document flag to derive the payment guarantee procedure
Payment Card Configuration
Define Card Types
Transaction:
Tables: TVCIN
Action: Create the different card types plus the routine that validates the card for length and prefix (etc )
Visa , Mastercard, American Express, and Discover
Create the following entries for each payment card
AMEX American Express ZCCARD_CHECK_AMEX Month
DC Discover Card ZCCARD_CHECK_DC Month*****
MC Mastercard ZCCARD_CHECK_MC Month
VISA Visa ZCCARD_CHECK_VISA Month
The Routines can be created based on the original routines delivered by SAP.
*****SAP does not deliver a card check for Discover Card. We created our own routine.
Define Card Categories
Transaction:
Tables: TVCTY
Action: Define the card category to determine if a
payment card is a credit card or a procurement card.
Create the following two entries
Cat Description One Card Additional Data
CC Credit Cards No-check No-check
PC Procurement Cards No-check Check
Determine Card Categories
Transaction:
Tables: TVCTD
Action: For each card category map the account number range to a card category. Multiple ranges are possible for each card category or a masking technique can be used. Get the card number ranges from user community. Below is just a sample of what I am aware are the different types of cards.
Visa Credit Expires in 7 days.
400000 405500
405505 405549
405555 415927
415929 424603
424606 427532
427534 428799
428900 471699
471700 499999
Visa Procurement Expires in 7 days.
405501 405504
405550 405554
415928 415928
424604 424605
427533 427533
428800 428899
Mastercard Credit Expires in 30 days
500000 540499
540600 554999
557000 599999
Mastercard Procurement Expires in 30 days
540500 540599
555000 556999
American Express Credit Expires in 30 days
340000 349999
370000 379999
Discover Card Credit Expires in 30 days
601100 601199
Set Sales Documents to accept Payment Card Information Transaction:
Tables: TVAK
Action: Review the listing of Sales Document types and enter 03 in the column labeled PT for each type which can accept a payment card
Configuration for Authorization Request
Maintain Authorization Requirements
Transaction: OV9A
Tables: TFRM
Action: Define and activate the abap requirement that determines when an authorization is sent. Note that the following tables are available to be used in the abap requirement (VBAK, VBAP, VBKD, VBUK, and VBUP).
Define Checking Group
Transaction:
Tables: CCPGA
Action: Define a checking group and enter the
description. Then follow the below guidelines for the remaining fields to be filled.
AuthReq Routine 901 is set here.
PreAu If checked R/3 will request an authorization for a .01 and the authorization will be flagged as such. (Insight does not use pre-authorization check).
A horizon This is the days in the future SAP will use to determine the value to authorize
(Insight does not use auth horizon period).
Valid You will get warning message if the payment card is expiring within 30 days of order entry date.
Assign Checking Group to Sales Document
Transaction:
Tables: TVAK
Action: Assign the checking group to the sales order types relevant for payment cards
Define Authorization Validity Periods
Transaction:
Tables: TVCIN
Action: For each card type enter the authorization validity period in days.
AMEX American Express 30
DC Discover card 30
MC Master card 30
VISA Visa 7
Configuration for clearing houses
Create new General Ledger Accounts
Transaction: FS01
Tables:
Action: Two General Ledger accounts need to be created for each payment card type. One for A/R reconciliation purposes and one for credit card clearing.
Maintain Condition Types
Transaction: OV85
Tables: T685
Action: Define a condition type for account determination and assign it to access sequence A001
Define account determination procedure
Transaction: OV86
Tables: T683 / T683S
Action: Define procedure name and select the procedure for control. Enter the condition type defined in the previous step.
Assign account determination procedure
Transaction:
Tables:
Action: Determine which billing type we are using for payment card process.
Authorization and Settlement Control
Transaction:
Tables: TCCAA
Action: Define the general ledger accounts for reconciliation and clearing and assign the function modules for authorization and settlement along with the proper RFC destinations for each.
Enter Merchant IDs
Transaction:
Tables: TCCM
Action: Create the merchant ids that the company uses to process payment cards
Assign merchant ids
Transaction:
Tables: TCCAA
Action: Enter the merchant ids with each clearinghouse account
Maybe you are looking for
-
Printing only 1 page not whole document?
When you are proofing a page, you must remember to check the page range button as it defaults to all after each page is printed. How do you change this default? We have printed many copies when we are thinking that only one page will go. We toggle be
-
Need to call DB func on create in ADF BC
Hi OTN, I have a taskflow for creating new records in some related tables with business components. For key attributes I use DBSequence type. So while creating new records I have temporary negative keys. For some cases I need to calculate attribute v
-
Debug .JAR in Visual Studio
I have a .JAR file, and I want to debug it in Visual Studio. I need the final result to be again a JAR file. I'm looking for VS intellisense support, step by step debugging, and on the fly variable watch and editing. I'm not looking for migrating to
-
I recently tried to download a MP3 file from a website. Instead of downloading as a file it started playing via Quicktime. Is there a simple default setting I can change so that I will have the option to download the file?
-
Using Logic Pro with Reason 3.0
I am trying to use logic Pro with reason 3.0. I want to be able to sync them together to use redrum within reason as my drum machine. I am using a MOTU 828 mk II audio interface with 8 in's and 8 out's. When I start logic first and the reason I am no