Conc managers not coming up
Hi,
I have a funny situation here. I am running 11i on windows server 2003. When i start the conc. managers the application hangs.( I mean i can not open the forms). And when i stop the conc. manager the hanged forms open immediately. This is on the production server. And its been down for last two days.
I have raised SR, but they are slow and giving me to check this script and all.
How can i solve this problem.
I have backup taken two days before.(cold backup of all appl. and db tier).
In the current sutuation the db is up and the concurrent managers are down.
So can i just restore the Apps tier(APPL,COMN,ORA Tops) from backup taken 3 days before. (No patches have been applied since the backup was taken). Will it be ok.
Regards
Taher
Taher,
Is this a single or multi node installation?
Has this ever worked? If yes, what changes have been done since then?
Can you run AutoConfig successfully on the database/application tier nodes? Did you run cmclean.sql script and see if it helps?
Can you find any errors in the CM?
Regards,
Hussein
Similar Messages
-
I am having trouble with my managers in release 12.1.1. I am running a fresh install.
After running adcmctl.sh start the internal manager 'seems' to stay up for a few seconds (I see it coming up in the sysadmin --> concurrent --> manager --> administer) but crashes without actually starting any processes or requests (there are none in queue anymore btw).
I read the following error(s) in the manager's log:
========================================================================
Starting VIS_0812@VIS Internal Concurrent Manager -- shell process ID 26535
logfile=/d01/oracle/VIS/inst/apps/VIS_ebsinstance/logs/appl/conc/log/VIS_0812.mgr
PRINTER=noprint
mailto=applmgr
restart=N
diag=N
sleep=30
pmon=4
quesiz=1
Reviver is ENABLED
expr: syntax error
The Internal Concurrent Manager has encountered an error.
Review concurrent manager log file for more detailed information. : 12-AUG-2010 00:45:54 -
Shutting down Internal Concurrent Manager : 12-AUG-2010 00:45:55
List of errors encountered:
_ 1 _
Error in DBMS lock request by handle. (ROUTINE=AFPGMG) (REASON=afpdlrh
received an unsuccessful result from PL/SQL procedure or function
FND_DCP.Check_Process_Status_By_Handle.
Routine FND_DCP.CHECK_PROCESS_STATUS_BY_HANDLE received a result code
of 5 fr
List of errors encountered:
_ 1 _
Routine AFPCAL received failure code while parsing or running your
concurrent program CPMGR
Review your concurrent request log file for more detailed information.
Make sure you are passing arguments in the correct format.
expr: syntax error
sh: mail: not found
The VIS_0812@VIS internal concurrent manager has terminated with status 1 - giving up.
Does anyone have an idea what's going on here?
Running CMCLEAN.sql gives the following error:
SQL> @/mnt/hgfs/shared/cmclean.sql
DOC>
DOC> WARNING : Do not run this script without explicit instructions
DOC> from Oracle Support
DOC>
DOC>
DOC> *** Make sure that the managers are shut down ***
DOC> *** before running this script ***
DOC>
DOC> *** If the concurrent managers are NOT shut down, ***
DOC> *** exit this script now !! ***
DOC>
DOC>#
If you wish to continue type the word 'dual': dual
-- Updating invalid process status codes in FND_CONCURRENT_PROCESSES
Manager short name Process id Status code
FNDICM 2028098 A
FNDCRM 2028111 A
RCVOLTM14 2028102 A
RCVOLTM 2028101 A
OAMCOLMGR 2028115 A
WFALSNRSVC 2028110 A
WFMLRSVC 2028109 A
WFWSSVC 2028108 A
FNDCPOPP 2028107 A
DownloadProcessorNor 2028106 A
malMode
FFTM 2028100 A
UPDATE fnd_concurrent_processes
ERROR at line 1:
ORA-00600: internal error code, arguments: [13013], [5001], [3259613],
[855663735], [13], [855663735], [17], [], [], [], [], []
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
I have searched google and the OTN forums for days now but can't find the answer to any of these errors. Who can help?'d oh...... a typo indeed, but in my sql statement. I'm deeply ashamed. The right output should be:
SQL> select owner, object_name, status
2 from dba_objects
3 where object_name = 'FND_CONCURRENT_PROCESSES';
OWNER
OBJECT_NAME
STATUS
APPLSYS
FND_CONCURRENT_PROCESSES
VALID
APPS
FND_CONCURRENT_PROCESSES
VALID
OWNER
OBJECT_NAME
STATUS
still looking for the logfile. Will get back to that later.
Update:
Logfile found. Rebooted my db and the logfile shows:
DB Logfile:Fri Aug 13 01:47:23 2010Stopping background process SMCO
Stopping background process FBDA
Shutting down instance: further logons disabled
Fri Aug 13 01:47:26 2010
Stopping background process CJQ0
Stopping background process QMNC
Stopping background process MMNL
Stopping background process MMON
Shutting down instance (immediate)
License high water mark = 3
ALTER DATABASE CLOSE NORMAL
Fri Aug 13 01:47:33 2010
SMON: disabling tx recovery
SMON: disabling cache recovery
Fri Aug 13 01:47:40 2010
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Thread 1 closed at log sequence 14
Successful close of redo thread 1
Fri Aug 13 01:47:56 2010
Completed: ALTER DATABASE CLOSE NORMAL
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Fri Aug 13 01:48:00 2010
Stopping background process VKTM:
Fri Aug 13 01:48:13 2010
Instance shutdown complete
Fri Aug 13 01:50:00 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Fri Aug 13 01:50:14 2010
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_1 parameter default value as /d01/oracle/VIS/db/tech_st/11.1.0/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =44
Fri Aug 13 01:50:27 2010
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 11.1.0.7.0.
Using parameter settings in client-side pfile /d01/oracle/VIS/db/tech_st/11.1.0/dbs/initVIS.ora on machine ebsinstance
System parameters with non-default values:
processes = 200
sessions = 400
timed_statistics = TRUE
shared_pool_size = 400M
shared_pool_reserved_size= 40M
nls_language = "american"
nls_territory = "america"
nls_sort = "binary"
nls_date_format = "DD-MON-RR"
nls_numeric_characters = ".,"
nls_comp = "binary"
nls_length_semantics = "BYTE"
sga_target = 1G
control_files = "/d01/oracle/VIS/db/apps_st/data/cntrl01.dbf"
control_files = "/d01/oracle/VIS/db/apps_st/data/cntrl02.dbf"
control_files = "/d01/oracle/VIS/db/apps_st/data/cntrl03.dbf"
db_block_checksum = "TRUE"
db_block_size = 8192
compatible = "11.1.0"
log_buffer = 10485760
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = "AUTO"
undo_tablespace = "UNDO_TBS"
db_block_checking = "FALSE"
sec_case_sensitive_logon = FALSE
session_cached_cursors = 500
utl_file_dir = "/usr/tmp"
utl_file_dir = "/usr/tmp"
utl_file_dir = "/d01/oracle/VIS/db/tech_st/11.1.0/appsutil/outbound/VIS_ebsinstance"
utl_file_dir = "/usr/tmp"
plsql_native_library_dir = "/d01/oracle/VIS/db/tech_st/11.1.0/plsql/nativelib"
plsql_native_library_subdir_count= 149
plsql_code_type = "INTERPRETED"
plsql_optimize_level = 2
job_queue_processes = 2
systemtrig_enabled = TRUE
cursor_sharing = "EXACT"
parallel_min_servers = 0
parallel_max_servers = 8
db_name = "VIS"
open_cursors = 600
ifile = "/d01/oracle/VIS/db/tech_st/11.1.0/dbs/VIS_ebsinstance_ifile.ora"
sortelimination_cost_ratio= 5
btree_bitmap_plans = FALSE
fastfull_scan_enabled = FALSE
query_rewrite_enabled = "true"
indexjoin_enabled = FALSE
sqlexecprogression_cost= 2147483647
likewith_bind_as_equality= TRUE
pga_aggregate_target = 1G
workarea_size_policy = "AUTO"
optimizerautostats_job = FALSE
optimizer_secure_view_merging= FALSE
aq_tm_processes = 1
olap_page_pool_size = 4M
diagnostic_dest = "/d01/oracle/VIS/db/tech_st/11.1.0/admin/VIS_ebsinstance"
tracefiles_public = TRUE
max_dump_file_size = "20480"
Fri Aug 13 01:50:33 2010
WARNING:Oracle instance running on a system with low open file descriptor
limit. Tune your system to increase this limit to avoid
severe performance degradation. Current limit = 992
PMON started with pid=2, OS id=3450
Fri Aug 13 01:50:34 2010
VKTM started with pid=3, OS id=3452
VKTM running at (100ms) precision
Fri Aug 13 01:50:35 2010
DIAG started with pid=4, OS id=3458
Fri Aug 13 01:50:35 2010
DBRM started with pid=5, OS id=3462
Fri Aug 13 01:50:35 2010
PSP0 started with pid=6, OS id=3464
Fri Aug 13 01:50:35 2010
DIA0 started with pid=7, OS id=3466
Fri Aug 13 01:50:36 2010
MMAN started with pid=8, OS id=3468
Fri Aug 13 01:50:37 2010
DBW0 started with pid=9, OS id=3470
Fri Aug 13 01:50:38 2010
LGWR started with pid=10, OS id=3472
Fri Aug 13 01:50:38 2010
CKPT started with pid=11, OS id=3474
Fri Aug 13 01:50:38 2010
SMON started with pid=12, OS id=3476
Fri Aug 13 01:50:38 2010
RECO started with pid=13, OS id=3479
Fri Aug 13 01:50:39 2010
MMON started with pid=14, OS id=3481
Fri Aug 13 01:50:39 2010
MMNL started with pid=15, OS id=3483
Fri Aug 13 01:50:39 2010
ORACLE_BASE not set in environment. It is recommended
that ORACLE_BASE be set in the environment
Fri Aug 13 01:50:40 2010
ALTER DATABASE MOUNT
Setting recovery target incarnation to 2
Successful mount of redo thread 1, with mount id 280699184
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Fri Aug 13 01:50:45 2010
ALTER DATABASE OPEN
Fri Aug 13 01:50:50 2010
Thread 1 opened at log sequence 14
Current log# 2 seq# 14 mem# 0: /d01/oracle/VIS/db/apps_st/data/log2.dbf
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Aug 13 01:50:50 2010
SMON: enabling cache recovery
Fri Aug 13 01:50:53 2010
Incremental checkpoint up to RBA [0xe.76b5.0], current log tail at RBA [0xe.76b5.0]
Fri Aug 13 01:51:01 2010
Successfully onlined Undo Tablespace 18.
Verifying file header compatibility for 11g tablespace encryption..
Verifying 11g file header compatibility for tablespace encryption completed
Fri Aug 13 01:51:01 2010
SMON: enabling tx recovery
Database Characterset is AL32UTF8
Opening with internal Resource Manager plan
Fri Aug 13 01:51:24 2010
Starting background process FBDA
Fri Aug 13 01:51:24 2010
FBDA started with pid=17, OS id=3498
Fri Aug 13 01:52:14 2010
replication_dependency_tracking turned off (no async multimaster replication found)
Fri Aug 13 01:52:42 2010
Starting background process QMNC
Fri Aug 13 01:52:42 2010
QMNC started with pid=18, OS id=3511
Fri Aug 13 01:59:23 2010
Completed: ALTER DATABASE OPEN
>
so, no ORA-00600 errors there.
Edited by: Snowgasm on 13-aug-2010 10:51
>SQL> @cmclean.sql
DOC>
DOC> WARNING : Do not run this script without explicit instructions
DOC> from Oracle Support
DOC>
DOC>
DOC> *** Make sure that the managers are shut down ***
DOC> *** before running this script ***
DOC>
DOC> *** If the concurrent managers are NOT shut down, ***
DOC> *** exit this script now !! ***
DOC>
DOC>#
If you wish to continue type the word 'dual': dual
-- Updating invalid process status codes in FND_CONCURRENT_PROCESSES
Manager short name Process id Status code
FNDICM 2028098 A
FNDCRM 2028111 A
RCVOLTM14 2028102 A
RCVOLTM 2028101 A
OAMCOLMGR 2028115 A
WFALSNRSVC 2028110 A
WFMLRSVC 2028109 A
DownloadProcessorNor 2028106 A
malMode
FFTM 2028100 A
WFWSSVC 2028108 A
FNDCPOPP 2028107 A
UPDATE fnd_concurrent_processes
ERROR at line 1:
ORA-00600: internal error code, arguments: [13013], [5001], [3259613],
[855663735], [13], [855663735], [17], [], [], [], [], []
>
Now when I check the logfile for the DB again I see the following entry added:
>Fri Aug 13 02:01:38 2010
Starting background process SMCO
Fri Aug 13 02:01:38 2010
SMCO started with pid=16, OS id=3587
Fri Aug 13 02:02:20 2010
Starting background process CJQ0
Fri Aug 13 02:02:20 2010
CJQ0 started with pid=24, OS id=3599
Fri Aug 13 02:04:11 2010
Errors in file /d01/oracle/VIS/db/tech_st/11.1.0/admin/VIS_ebsinstance/diag/rdbms/vis/VIS/trace/VIS_ora_3617.trc (incident=12997):
ORA-00600: internal error code, arguments: [13013], [5001], [3259613], [855663735], [13], [855663735], [17], [], [], [], [], []
Incident details in: /d01/oracle/VIS/db/tech_st/11.1.0/admin/VIS_ebsinstance/diag/rdbms/vis/VIS/incident/incdir_12997/VIS_ora_3617_i12997.trc
Fri Aug 13 02:05:00 2010
Trace dumping is performing id=[cdmp_20100813020500]
Fri Aug 13 02:05:03 2010
Sweep Incident[12997]: completed
>
Edited by: Snowgasm on 13-aug-2010 11:06
Edited by: Snowgasm on 13-aug-2010 11:09 -
Concurrent Managers Not coming up after applying a patch on 11.5.9.2
Hi,
I see below error on CM log.
Could not start Service Manager FNDSM_IP_uat. The TNS alias could not be located, the listener process on IP could not be contacted, or the listener failed to spawn the Service Manager process.
Routine AFPEIM encountered an error while starting concurrent manager PASMGR with library /u01/appluat/uatappl/pa/11.5.0/bin/PALIBR. Check that your system has enough resources to start a concurrent manager process. Contact your system adm : 19-FEB-2013 19:13:25 Process monitor session ended : 19-FEB-2013 19:13:25
Check that your system has enough resources to start a concurrent manager process. Contact your system adm
tnsping FNDSM_IP_uat is fine, i tried cmclean.sql and bouncing db and apps tiers, no use.
I have checked Concurrent Processing - Routine AFPEIM Encountered an Error While Starting Concurrent Manager [ID 783263.1],
but it is for 11.5.10.2.
Please suggest.
Thanks,kkrm333 wrote:
I am able to solve the issue by applying Patch 3830807: PATCH 3293983 NEEDS TO INCLUDE ALL THE MAKEFILES UNDER THE 8.0.6 ORACLE_HOME as per m note Concurrent Manager Fails To Start With Error 'Could not start Service Manager FNDSM_<server>_<SID>' Error [ID 423170.1]
Thanks,Thanks for the update and for sharing the solution!
Regards,
Hussein -
Hi,
My java engine is not coming up for some strange reason. Here is a partial log of dev_server0:
trc file: "/usr/sap/GSQ/DVEBMGS02/work/dev_server0", trc level: 1, release: "700"
node name : ID26770150
pid : 1314818
system name : GSQ
system nr. : 02
started at : Sun Sep 13 05:02:27 2009
arguments :
arg[00] : /usr/sap/GSQ/DVEBMGS02/exe/jlaunch
arg[01] : pf=/usr/sap/GSQ/SYS/profile/GSQ_DVEBMGS02_GILSAPEQ
arg[02] : -DSAPINFO=GSQ_02_server
arg[03] : pf=/usr/sap/GSQ/SYS/profile/GSQ_DVEBMGS02_GILSAPEQ
arg[04] : -DSAPSTART=1
arg[05] : -DCONNECT_PORT=64998
arg[06] : -DSAPSYSTEM=02
arg[07] : -DSAPSYSTEMNAME=GSQ
arg[08] : -DSAPMYNAME=GILSAPEQ_GSQ_02
arg[09] : -DSAPPROFILE=/usr/sap/GSQ/SYS/profile/GSQ_DVEBMGS02_GILSAPEQ
arg[10] : -DFRFC_FALLBACK=ON
arg[11] : -DFRFC_FALLBACK_HOST=localhost
[Thr 1] Sun Sep 13 05:02:27 2009
[Thr 1] *** WARNING => INFO: Unknown property [instance.box.number=GSQDVEBMGS02gilsapeq] [jstartxx_mt. 841]
[Thr 1] *** WARNING => INFO: Unknown property [instance.en.host=GILSAPEQ] [jstartxx_mt. 841]
[Thr 1] *** WARNING => INFO: Unknown property [instance.en.port=3203] [jstartxx_mt. 841]
[Thr 1] *** WARNING => INFO: Unknown property [instance.system.id=2] [jstartxx_mt. 841]
JStartupReadInstanceProperties: read instance properties [/usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties]
-> ms host : GILSAPEQ
-> ms port : 3903
-> OS libs : /usr/sap/GSQ/DVEBMGS02/j2ee/os_libs
-> Admin URL :
-> run mode : NORMAL
-> run action : NONE
-> enabled : yes
Used property files
-> files [00] : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
Instance properties
-> ms host : GILSAPEQ
-> ms port : 3903
-> os libs : /usr/sap/GSQ/DVEBMGS02/j2ee/os_libs
-> admin URL :
-> run mode : NORMAL
-> run action : NONE
-> enabled : yes
Bootstrap nodes
-> [00] bootstrap : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
-> [01] bootstrap_ID26770100 : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
-> [02] bootstrap_ID26770150 : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
Worker nodes
-> [00] ID26770100 : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
-> [01] ID26770150 : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/instance.properties
[Thr 1] JLaunchRequestQueueInit: create named pipe for ipc
[Thr 1] JLaunchRequestQueueInit: create pipe listener thread
[Thr 258] JLaunchRequestFunc: Thread 258 started as listener thread for np messages.
[Thr 515] WaitSyncSemThread: Thread 515 started as semaphore monitor thread.
[Thr 1] SigISetDefaultAction : default handling for signal 20
[Thr 1] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)
[Thr 1] CPIC (version=700.2009.02.11)
[Thr 1] [Node: server0] java home is set by profile parameter
Java Home: /usr/java14_64
[Thr 1] JStartupICheckFrameworkPackage: can't find framework package /usr/sap/GSQ/DVEBMGS02/exe/jvmx.jar
JStartupIReadSection: read node properties [ID26770150]
-> node name : server0
-> node type : server
-> node execute : yes
-> jlaunch parameters :
-> java path : /usr/java14_64
-> java parameters : -Xj9 -Xmn400m -Xgcpolicy:gencon -verbose:gc -Djco.jarm=1 -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer
-> java vm version : J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142-20080510 (JIT enabled)
-> java vm vendor : IBM J9 VM (IBM Corporation)
-> java vm type : server
-> java vm cpu : ppc64
-> heap size : 2048M
-> init heap size : 2048M
-> root path : /usr/sap/GSQ/DVEBMGS02/j2ee/cluster/server0
-> class path : ./bin/boot/boot.jar:./bin/boot/jaas.jar:./bin/system/bytecode.jar:.
-> OS libs path : /usr/sap/GSQ/DVEBMGS02/j2ee/os_libs
-> main class : com.sap.engine.boot.Start
-> framework class : com.sap.bc.proj.jstartup.JStartupFramework
-> registr. class : com.sap.bc.proj.jstartup.JStartupNatives
-> framework path : /usr/sap/GSQ/DVEBMGS02/exe/jstartup.jar:/usr/sap/GSQ/DVEBMGS02/exe/jvmx.jar
-> shutdown class : com.sap.engine.boot.Start
-> parameters :
-> debuggable : no
-> debug mode : no
-> debug port : 50221
-> shutdown timeout : 120000
[Thr 1] JLaunchISetDebugMode: set debug mode [no]
[Thr 772] JLaunchIStartFunc: Thread 772 started as Java VM thread.
JHVM_LoadJavaVM: VM Arguments of node [server0]
-> stack : 1048576 Bytes
-> arg[ 0]: exit
-> arg[ 1]: abort
-> arg[ 2]: vfprintf
-> arg[ 3]: -Xj9
-> arg[ 4]: -Xmn400m
-> arg[ 5]: -Xgcpolicy:gencon
-> arg[ 6]: -verbose:gc
-> arg[ 7]: -Djco.jarm=1
-> arg[ 8]: -Djava.security.policy=./java.policy
-> arg[ 9]: -Djava.security.egd=file:/dev/urandom
-> arg[ 10]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy
-> arg[ 11]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy
-> arg[ 12]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy
-> arg[ 13]: -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer
-> arg[ 14]: -Dsys.global.dir=/usr/sap/GSQ/SYS/global
-> arg[ 15]: -Dapplication.home=/usr/sap/GSQ/DVEBMGS02/exe
-> arg[ 16]: -Djava.class.path=/usr/sap/GSQ/DVEBMGS02/exe/jstartup.jar:/usr/sap/GSQ/DVEBMGS02/exe/jvmx.jar:./bin/boot/boot.jar:./bin/boot/jaas.jar:./bin/system/bytecode.jar:.
-> arg[ 17]: -Djava.library.path=/usr/java14_64/jre/bin:/usr/java14_64/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/GSQ/DVEBMGS02/exe:/usr/sap/GSQ/DVEBMGS02/exe:/usr/sap/GSQ/DVEBMGS02/exe:/tmp/sapinst_exe.856178.1252452114:/usr/sap/GSQ/SYS/exe/run:/oracle/client/10x_64/instantclient:/usr/java14_64/jre/bin/j9vm:/usr/sap/GSQ/DVEBMGS02/exe::/usr/lib:/usr/sap/GSQ/DVEBMGS02/j2ee/os_libs:/usr/sap/GSQ/DVEBMGS02/exe:/usr/sap/GSQ/DVEBMGS02/exe:/usr/sap/GSQ/DVEBMGS02/exe:/usr/java14_64/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/GSQ/SYS/exe/run:/oracle/client/10x_64/instantclient:/usr/java14_64/jre/bin/j9vm
-> arg[ 18]: -Dmemory.manager=2048M
-> arg[ 19]: -Xmx2048M
-> arg[ 20]: -Xms2048M
-> arg[ 21]: -DLoadBalanceRestricted=no
-> arg[ 22]: -Djstartup.mode=JCONTROL
-> arg[ 23]: -Djstartup.ownProcessId=1314818
-> arg[ 24]: -Djstartup.ownHardwareId=O0427428665
-> arg[ 25]: -Djstartup.whoami=server
-> arg[ 26]: -Djstartup.debuggable=no
-> arg[ 27]: -DSAPINFO=GSQ_02_server
-> arg[ 28]: -DSAPSTART=1
-> arg[ 29]: -DCONNECT_PORT=64998
-> arg[ 30]: -DSAPSYSTEM=02
-> arg[ 31]: -DSAPSYSTEMNAME=GSQ
-> arg[ 32]: -DSAPMYNAME=GILSAPEQ_GSQ_02
-> arg[ 33]: -DSAPPROFILE=/usr/sap/GSQ/SYS/profile/GSQ_DVEBMGS02_GILSAPEQ
-> arg[ 34]: -DFRFC_FALLBACK=ON
-> arg[ 35]: -DFRFC_FALLBACK_HOST=localhost
-> arg[ 36]: -DSAPSTARTUP=1
-> arg[ 37]: -DSAPSYSTEM=02
-> arg[ 38]: -DSAPSYSTEMNAME=GSQ
-> arg[ 39]: -DSAPMYNAME=GILSAPEQ_GSQ_02
-> arg[ 40]: -DSAPDBHOST=GILSAPEQ
-> arg[ 41]: -Dj2ee.dbhost=GILSAPEQ
Pls advise.
Thx.
Abdul
[Thr 772] Sun Sep 13 05:02:28 2009
[Thr 772] JHVM_LoadJavaVM: Java VM created OK.
JHVM_BuildArgumentList: main method arguments of node [server0]
[Thr 3600] Sun Sep 13 05:02:36 2009
[Thr 3600] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes
[Thr 3600] Sun Sep 13 05:02:37 2009
[Thr 3600] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
[Thr 3600] JLaunchISetClusterId: set cluster id 26770150
[Thr 3600] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
[Thr 3600] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
[Thr 35212] Sun Sep 13 05:03:27 2009
[Thr 35212] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
[Thr 35212] Sun Sep 13 05:03:28 2009
[Thr 35212] JHVM_RegisterNatives: registering methods in com.sap.i18n.cp.ConverterJNI
[Thr 35212] JLaunchIExitJava: exit hook is called (rc = -11113)
[Thr 35212] **********************************************************************
ERROR => The Java VM terminated with a non-zero exit code.
Please see SAP Note 943602 , section 'J2EE Engine exit codes'
for additional information and trouble shooting.
[Thr 35212] SigISetIgnoreAction : SIG_IGN for signal 20
[Thr 35212] JLaunchCloseProgram: good bye (exitcode = -11113)Hello,
The error message:
[Thr 35212] JLaunchIExitJava: exit hook is called (rc = -11113)
Indicates that one of the core services did not start. The Service Managers controls the life cycle of all services. The services that provide core functionality must always be running. If one of the core services fails to start, the Service Manager exits with an exit code -11113.
To find the name of the core service that failed to start please see the end of the std_server0.out file.
Furthermore the reason why the service failed to start will be evident in the defaultTrace.X.trc file in the server0/log directory.
Regards,
Ventsi Tsachev
Technology Development Support (J2EE Engine)
SAP Labs, Palo Alto, Ca (USA) -
MS DTC not coming online on SQL Server 2008 R2 failover cluster
Dear Experts,
On a SQL Server 2008 R2 failover cluster, MS DTC cluster service is not coming online. It fails with below error message.
"The DTC cluster resource's log file path was originally configured at: E:. Attempting to change that to: M:. This indicates a change in the path of the DTC cluster resource's dependent disk resource. This is not supported. The error code
returned: 0x8000FFFF".
From the Component Services, we can see under the clustered DTCs, in the properties of the log file that it is configured for E drive. The 'Transaction list' and 'Transaction Statistics' are empty. When I try to change the log file path to
point to M drive I get this warning message.
"An MSDTC log file already exists in the selected directory. Resetting an existing MS DTC log file may cause your databases and other transactional resource managers to become inconistent. Please review the MSDTC Administrator's manual before
proceeding. Do you wish to reset the existing MS DTC log"
Could you please advise if this is safe to proceed with this warning as the 'Transaction list' and 'Transaction Statistics' are empty or would it cause any other issue.
Thanks,
MMTauseef
Did you tried using wmi....win32_share
$path = "location where to create the folder"
$share = $Shares=[WMICLASS]'WIN32_Share' # class in wmi for share
$Sharename = 'Sharename'
New-Item -type directory -Path $Path
$Shares.Create($Path,$Sharename,0,255,$Sharename)
$Acl = Get-Acl $Path # cmdlet for getting access control list
$Access = New-Object system.security.accesscontrol.filesystemaccessrule("Username","FullControl","ContainerInherit, ObjectInherit", "None", "Allow")
$Acl.AddAccessRule($Access)
Set-Acl $Path $Acl
Thanks Azam When you see answers please Mark as Answer if Helpful..vote as helpful. -
Reg :: Concurrent manager is not coming up
Hi Folks,
The CM is not coming up .Below is some points.
1. adcmctl.sh start apps/pwd
adcmctl.sh: exiting with status 0
But stil it is dowm
2 .i stopped and started but no use.
3.DB - 10.2.0.2.0
EBS -11.5.10.2
Kindly advice to do some other way to bring up
Thanks in advanced.
SeethaPl post OS details. Pl review the concurrent manager log to see if there are any error messages - pl post those messages here.
Have any changes been made ? If so, what were they ? How are you determining that the concurrent managers are not running ? Pl run the CCM.sql script described below and post the output here.
Troubleshooting Concurrent Manager (Unix specific) (Doc ID 104452.1)
Basic Troubleshooting of the Concurrent Managers on UNIX (Doc ID 2069781.6)
CCM.sql Diagnostic Script for Concurrent Manager (Doc ID 171855.1)
HTH
Srini -
(Request for reporting available) is not coming in Cube
Hi All,
I have Cube & DSO.
I added fields in DSO & Cube.
Cube1 has Aggregrates built on it.i added 5 infoobjects on it, Now when i load data from DSO to Cube(Request for reporting available) is not coming up. i cant do reporting on it. can anyone help.
thanks in advance,
Kiran.Hi ....
Have you done the Roll up ?
Since aggregates are there on that cube....until and unless you do the roll up that request will not be available for Reporting...
Regards,
Debjani.... -
Data from one cube is not coming in the multiprovider
Hi,
I have two cubes with a common characterstic.
I created multiprovider above these two cubes. But data is not coming from the cube 2. The values from cube 2 are showing as 0.
Can anyone help me out in this?Hi ,
Check the following:-
1 Check whether you have made the joins properly.
2 Check data at multiprovider level .
3 is data available for reporting in both the cubes
Regards
Rahul -
IDOC not coming in status 30 for collecting idocs
Hi All,
We have a requirement in which we need to collect idocs and send together.
To achieve I am making Collect idocs in Partner profiles so that it goes in status 30 and hence I can run program RSEOUT00 to make it status 03 and hence write in file as a group of idocs.
Now inspite of making collect idocs in partner profile, its not coming in status 30 but directly coming in status 03.
Please let me know what may be the reason for the same.
Thanks,
VivekHi vivek,
If you have set the Collect Idoc option in partner profile then the IDOC's will be collected , irrespective of kind of port you are using and the packet size doesn't matter in this case.
It seems to me that the program RSEOUT00 is already scheduled in your system.
Can you check in SM37 , by putting the program RSEOUT00 and check if any user has scheduled the program.
Hope this helps.
Harry -
Field is not coming in selection screen
Hi all,
In one of my report there is a field customer group in selection-screen. Report is working fine so i transport request to qas in qas that field is coming on selection screen and its working fine.
But when i transport same request from qas to prd that field is not coming on selection screen.
I try 2-3 times by making diffrent diffrent request but still same result. can any body please tell me why its happen in prd??
regards
AnkitHi,
What i would like to suggest u that u need to first
is u have to convert the R/3 Production systems into the Quality one
try using tcode BDLS
read the documentation of BDLS.
hope this helps u !!
thanks
ravi -
Value is not coming in excise invoice ..
Hi .all,
We have created one plant . For that we did STO , delivery , PGI , and billing ( commercial and excise ). But in Excise invoice , excise value is not coming ...
Pls Advc ....hi,
pls check whether u have done relevant setting for the new plant code.
SPRO >Log general > Tax on Goods Movements > India > Basic Settings
reg
Deepak -
Data is not coming in pivot table
Hi,
i made a request using some measures,month (time) and some other columns but data is not coming when i m working on pivot table though its working in case of table and graph.
please help me out..
thanksHi,
well data is populating in tables and chart in Oracle BI and i also executed the same query in sql server 2005 and got the desired result.
the reason to show the results into pivot table is -- i want to show the result(measures) with time dimension and some other dimensions so i have to use this pivot table or if u have some other solution please let me know...
thanks
Edited by: user629711 on Nov 20, 2008 11:42 PM -
Version is not coming in Tcode PC_PAYRESULT
We have written a payroll driver program for non standard sap payroll countries with using Standard intrnational payroll driver. We getting results fine for all countries but the rpoblem is version is not coming for those countries. i.e.in Tcode PC_PAYRESULT the version is not coming. Please suggest us and also how to debugg the program ,in this program break point is not allowing. Thanks for advance help.............
With Regards,
T RaoHi,
check in client 000, if you don't have spanisch there, then most probably its not translated (yet)
you can transate yourself if needed...
Rgds
Nico -
Header is not coming in alv list display- urgent
hi all,
i am sending my code below....
my requirement is in selection screen i have 4 radio buttons . if i click 1 radio button it will duiisplay data and and its header. report is working fine. my requirement id when i click r_mssng radio button(missing radio button) it is showing data correctsly. here i want to show header as 'Missing details report'.
this is not coming in my report. anybody can suggest me.
i am sending my code below....
report zvra0001ftb13 message-id zv.
Confidential and Proprietary
* Celestica Corporation
* All Rights Reserved
*ABAP Name: ZVRA0001FTB13
*Created by: Srinivasa Chakravarthi
*Created on: 26/03/2003
*SAP Version: 4.6 C
*Description: This report displays details of foreign trades
and EHS based on the deliveries made to the outside
countries.
*Input: Selection Screen Criteria includes country of
origin,Company code, Sales Organisation,
Ship-to-party, Sold-to-paarty, Goods movement date,
Invoice number, Invoice type, Material , Material
Type, Exporter ID, Province of origin.
*Output: ALV output that contains Mode of Transport, Export
HS number, Commodity Description, Quantity, UOM,
Value, Country of Destination, Goods Origin
*Dependency: Nil
*Modification Log:
*CR# Date Coded Transport Description
*====== ======== ========= ============= ===============================
*5147 26/03/2003 Srinivas ED1K922286 New Development
*8700 02/11/2004 H.Arular ED1K938380 To check if entries of Comm
Code(HS code)is less than 8
digits and give a warning
message.
*18684 25/07/2007 MAHEEDHAR Merge the logic from report
ZVRA0001FTB13_ERROR into
report ZVRA0001FTB13 and
added two radio buttons
called missing data and non
missing data, addedc logic
accoriding to the radio
buttons.
*Declaring Tables.
tables: likp, "Delivery document Header
lips, "Delivery Document Item
vbfa, "Sales document Flow
bkpf, "Accounting Document Header
eikp, "Foreign Trade:Export/Import Data
eipo, "Foreign Trade:Export/ Import
"Header data
t618t, "Forein Trade:Mode of Transport
"Description
t604t, "Foreign Trade: Commodity Code/
"Import Code number Description.
mara, "Material master data.
t005, "Countries
t001, "Company Codes
tvko, "Sales Organisations
kna1, "Customer Master
t003, "Document types
t134, "Material types
tvfk,
konv,
vbrk.
constants : c_rep like vbrk-fkart value 'YGFB',
c_for(10) value 'Foreign'.
*Decalre Type pool for ALV
type-pools: slis.
*Type declaration for LIKP.
types: begin of t_data1,
vbeln like likp-vbeln, "Delivery
kunnr like likp-kunnr,
end of t_data1.
*Type declaration for LIPS,VBFA.
types: begin of t_data2,
vbeln like lips-vbeln, "Delivery
posnr like lips-posnr, "Delivery Item
vbelv like vbfa-vbelv, "Preceding SD document
posnv like vbfa-posnv, "Preceding item of SD document
matnr like lips-matnr, "Material Number
meins like lips-meins, "Base unit of measure
lfimg like lips-lfimg, "Actual Quantity Delivered
mtart like mara-mtart,
end of t_data2.
**Type declaration for BKPF.
*types: begin of t_data3,
belnr like bkpf-belnr, "Accounting Documnet number
bukrs like bkpf-bukrs, "Company Code
end of t_data3.
*Type declaration for BKPF.
types: begin of t_data3,
vbeln like vbrk-belnr, " Billing Doc
fkart like vbrk-fkart,
land1 like vbrk-land1,
end of t_data3.
*Type declaration for EIPO.
types: begin of t_data4,
vbeln like lips-vbeln, "Delivery
posnr like lips-posnr, "Delivery Item
matnr like vbrp-matnr,
fkimg like vbrp-fkimg,
meins like vbrp-meins,
verld like eipo-verld, "Country of dispatch for Foreign
"trade
herkl like eipo-herkl, "Country of origin of material
grwrt like eipo-grwrt, "Statistical value for Foreign
" trade
stawn like eipo-stawn, "Commodity code for foreign trade
expvz like eikp-expvz, "Mode of transport for foreign
"trade
end of t_data4.
*Type declaration for T618T.
types: begin of t_data5,
land1 like t618t-land1, "Country key
expvz like t618t-expvz, "Mode of Transport
bezei like t618t-bezei, "Description
end of t_data5.
*Type declaration for T604T.
types: begin of t_data6,
land1 like t604t-land1, "Country key
stawn like t604t-stawn, "Commodity Code
text1 like t604t-text1, "Description
end of t_data6.
*Type declaration for T604T.
types: begin of t_mara,
matnr like mara-matnr,
end of t_mara.
types : begin of rep_val,
vbelv like vbfa-vbelv,
posnv like vbfa-posnv,
vbeln like vbfa-vbeln,
posnn like vbfa-posnn,
uepos like vbap-uepos,
posnr like vbap-posnr,
netwr like vbap-netwr,
end of rep_val.
types : begin of t_price,
vbeln like vbak-vbeln,
posnr like vbap-posnr,
knumv like konv-knumv,
kposn like konv-kposn,
kbetr like konv-kbetr,
kpein like konv-kpein,
end of t_price.
data : t_sord type rep_val occurs 0 with header line.
data : t_dord type rep_val occurs 0 with header line.
data : t_rord type rep_val occurs 0 with header line.
data : t_hord type rep_val occurs 0 with header line.
data : t_ford type rep_val occurs 0 with header line.
data : i_price type t_price occurs 0 with header line.
data : i_price1 type t_price occurs 0 with header line.
data : i_mara type t_mara occurs 0 with header line.
data : i_sort type slis_t_sortinfo_alv.
DATA: t_layout TYPE slis_layout_alv.
*Declaring Selection screen.
selection-screen begin of block b1 with frame title text-101.
select-options:
s_verld for eipo-verld, "Country of Dest.
s_bukrs for bkpf-bukrs, "Company code
s_vkorg for likp-vkorg, "Sales Organisation
s_kunnr for likp-kunnr, "Ship-to-Party
s_kunag for likp-kunag, "Sold-to-party
s_wadat for likp-wadat_ist, "Goods Movement date
s_belnr for vbrk-vbeln, "Invoice number
s_blart for vbrk-fkart. "Invoice type.
selection-screen end of block b1.
selection-screen begin of block b2 with frame title text-101.
select-options:
s_matnr for mara-matnr, "Material
s_mtart for mara-mtart. "Material Type
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-101.
parameters:
p_export(30) type c default '1366770724RM' obligatory , "Exporter ID
p_provi(30) type c default 'ONTARIO' obligatory ,
p_sumid(30) type c default 'SUM0704'.
"Province of Origin
selection-screen end of block b3.
selection-screen begin of block b4 with frame title text-104.
parameters:
r_summ radiobutton group zsum,
r_dets radiobutton group zsum,
r_mssng radiobutton group zsum, " maheedhar
R_NMSNG RADIOBUTTON GROUP ZSUM. " MAHEEDHAR
selection-screen skip.
parameter : p_sum as checkbox .
selection-screen end of block b4.
selection-screen begin of block b5 with frame title text-105.
select-options : s_i_kun for likp-kunnr.
selection-screen end of block b5.
*Data Declaration
data: i_fieldcat type slis_t_fieldcat_alv.
data: l_fieldcat type slis_fieldcat_alv .
data: v_lin type i.
data: v_lfstk type c value 'C'.
data: v_vbtyp type c value 'U'.
data: i_data1 type t_data1 occurs 0 with header line.
data : begin of t_T005t occurs 0.
include structure t005t.
data : end of t_t005t.
data: i_data2 type t_data2 occurs 0 with header line.
data: t_delv type t_data2 occurs 0 with header line.
data: t_bild type t_data2 occurs 0 with header line.
data: i_data3 type t_data3 occurs 0 with header line.
data: i_data4 type t_data4 occurs 0 with header line.
data: i_data5 type t_data5 occurs 0 with header line.
data: i_data6 type t_data6 occurs 0 with header line.
*Declare Internal table for ALV output.
data: begin of i_output occurs 0,
belnr like vbrk-vbeln,
posnr like vbrp-posnr,
bezei like t618t-bezei,
stawn like eipo-stawn,
text1 like t604t-text1,
quantity type p decimals 2,
meins like lips-meins,
value type p decimals 2,
verld like t_t005t-landx,
herkl like t_t005t-landx,
strlen, "ED1K938380
end of i_output.
maheedhar-start.
data : i_output1 like i_output occurs 0 with header line,
i_output2 like i_output occurs 0 with header line.
maheedhar-end
data : buff_out like i_output occurs 0 with header line.
data: begin of t_outsum occurs 0,
bezei like t618t-bezei,
stawn like eipo-stawn,
text1 like t604t-text1,
quantity type p decimals 2,
meins like lips-meins,
value type p decimals 2,
verld like t_t005t-landx,
herkl like t_t005t-landx,
end of t_outsum.
data : v_ans.
data : variante LIKE disvariant.
data : v_repid LIKE sy-repid.
data : wa_listheader TYPE slis_listheader.
data : t_listheader TYPE slis_t_listheader.
data : b_text(250).
data: evntS type slis_t_event with header line. " MAHEEDHAR
EVENT AT SELECTION-SCREEN
at selection-screen.
*For Autorisation check
perform authorisation_check.
Validation of Selection screen
perform check_entry.
EVENT START-OF-SELECTION
start-of-selection.
*Get data
perform select_data.
**For calling ALV function modules
MAHEEDHAR - START
if r_mssng eq 'X'.
DELETE I_OUTPUT WHERE BEZEI NE SPACE AND
STAWN NE SPACE AND
HERKL NE SPACE AND
VERLD NE SPACE.
DESCRIBE TABLE I_OUTPUT LINES V_LIN.
IF V_LIN > 0.
PERFORM DISPLAY_OUTPUT.
ELSE.
MESSAGE E000 WITH TEXT-130.
ENDIF.
elseif R_SUMM eq 'X' OR R_DETS EQ 'X'. "ENDIF. " MAHEEDHAR
MAHEEDHAR-END
describe table i_output lines v_lin.
if v_lin > 0.
buff_out[] = i_output[].
Begin of ED1K938380
delete buff_out where stawn ne space or "ED1K938380
verld eq space or
herkl eq space.
delete buff_out where strlen ne 'X' or
verld eq space or
herkl eq space.
End of ED1K938380
describe table buff_out lines v_lin.
Lines with no commodity code exists.
if v_lin gt 0.
concatenate text-902 text-903 into b_text.
concatenate text-906 text-907 into b_text. "ED1K938380
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = Text-901
TEXT_QUESTION = b_text
TEXT_BUTTON_1 = 'Yes'
TEXT_BUTTON_2 = 'No'
DEFAULT_BUTTON = '2'
IMPORTING
ANSWER = v_ans.
if v_ans eq '1'.
perform display_output.
endif.
else.
perform display_output.
endif.
else. " MAHEEDHAR
message e000 with text-130.
endif.
MAHEEDHAR-START
*"-- If non missing details radiobutton is selected
elseif r_nmsng = 'X'.
*"-- move data from i_output to i_output1.
i_output1[] = i_output[].
sort i_output by belnr.
sort i_output1 by belnr.
*"-- to get missing data
delete i_output1 where bezei ne space and
stawn ne space and
herkl ne space and
verld ne space.
loop at i_output.
*"-- compare two int tables with respective document number
read table i_output1 with key belnr = i_output-belnr.
if sy-subrc ne 0.
move-corresponding i_output to i_output2.
append i_output2.
clear i_output2.
endif.
endloop.
describe table i_output2 lines v_lin.
if v_lin gt 0.
perform display_output.
else.
message e000 with text-130.
endif.
MAHEEDHAR-END.
ENDIF. " MAHEEDHAR
FORM SELECT_DATA *
form select_data.
Data:l_strlen type i. "ED1K938380
*Get details from LIKP.
if s_i_kun[] is initial.
select likpvbeln likpkunnr
into corresponding fields of table i_data1
from likp
inner join vbuk on likpvbeln = vbukvbeln
where
likp~vkorg in s_vkorg and
likp~kunnr in s_kunnr and
likp~kunag in s_kunag and
likp~wadat_ist in s_wadat and
vbuk~wbstk = 'C' .
else.
select likpvbeln likpkunnr
into corresponding fields of table i_data1
from likp
inner join vbuk on likpvbeln = vbukvbeln
where
( ( likp~vkorg in s_vkorg and
likp~kunnr in s_kunnr and
likp~kunag in s_kunag and
likp~wadat_ist in s_wadat and
vbuk~wbstk = 'C' )
or
likp~kunnr in s_i_kun and
likp~wadat_ist in s_wadat and
vbuk~wbstk = 'C' ) .
endif.
if sy-subrc ne 0.
message e000 with text-200.
endif.
*Get details from table LIPS
select lips~vbeln
lips~posnr
vbfa~vbeln
vbfa~posnn
lips~matnr
lips~meins
lips~lfimg
mara~mtart
from lips
inner join vbfa on vbfavbelv = lipsvbeln
and vbfaposnv = lipsposnr
inner join mara on maramatnr = lipsmatnr
into table i_data2
for all entries in i_data1
where
lips~vbeln = i_data1-vbeln and
lips~matnr in s_matnr and
vbfa~vbeln in s_belnr and
mara~mtart in s_mtart and
vbfa~vbtyp_n = 'U'.
if sy-subrc ne 0.
message e000 with text-201.
endif.
t_delv[] = i_data2[].
t_bild[] = i_data2[].
sort t_delv by vbeln.
delete adjacent duplicates from t_delv comparing vbeln.
sort t_bild by vbeln ascending vbelv descending.
delete adjacent duplicates from t_bild comparing vbeln.
*Get details of Accounting document number
select vbeln fkart land1 from vbrk
into table i_data3
for all entries in t_bild
where vbeln = t_bild-vbelv and
bukrs in s_bukrs and
fkart in s_blart and
vkorg in s_vkorg and " MAHEEDHAR
land1 in s_verld. " MAHEEDHAR
sort i_data3.
*Get details from EIPO.
select vbrp~vbeln
vbrp~posnr
vbrp~matnr
vbrp~fkimg
vbrp~meins
eipo~verld
eipo~herkl
eipo~grwrt
eipo~stawn
eikp~expvz
from eikp
inner join vbrp on vbrp~vbeln = eikp~refnr
inner join eipo on eikp~exnum = eipo~exnum
and eipo~expos = vbrp~posnr
into table i_data4 for all entries in i_data3
where vbrp~vbeln = i_data3-vbeln.
eipo~verld in s_verld.
if sy-subrc ne 0.
message e000 with text-201.
endif.
IF R_MSSNG NE 'X' or r_nmsng = 'X'. " MAHEEDHAR
perform get_price.
ENDIF. " MAHEEDHAR
Get details from T618T.
select land1
expvz
bezei
from t618t
into table i_data5
for all entries in i_data4
where
land1 = 'CA' and " Getting for Canada only
expvz = i_data4-expvz and
spras = sy-langu.
select matnr from mara into table i_mara where matnr in s_matnr
and mtart in s_mtart.
Get details from T604T.
select land1
stawn
text1
from t604t
into table i_data6
for all entries in i_data4
where
land1 = i_data4-VERLD and
stawn = i_data4-stawn and
spras = sy-langu.
select * from T005t into table t_T005t where spras = sy-langu.
loop at i_data3.
loop at i_data4 where vbeln eq i_data3-vbeln.
clear : i_data1, i_data2.
read table i_data2 with key vbelv = i_data4-vbeln
posnv = i_data4-posnr.
read table i_data1 with key vbeln = i_data2-vbeln.
if not s_i_kun[] is initial.
check ( ( i_data1-kunnr in s_i_kun ) or
( i_data3-land1 in s_verld ) ).
else.
check i_data3-land1 in s_verld .
endif.
read table i_mara with key matnr = i_data4-matnr.
if sy-subrc eq 0.
read table i_data5 with key expvz = i_data4-expvz .
land1 = i_data3-land1.
read table i_data6 with key stawn = i_data4-stawn
land1 = i_data4-VERLD.
move i_data4-vbeln to i_output-belnr.
move i_data4-posnr to i_output-posnr.
move i_data5-bezei to i_output-bezei.
move i_data6-text1 to i_output-text1.
Begin of ED1K938380.
l_strlen = strlen( i_data4-stawn ).
if l_strlen < 8.
move 'X' to i_output-strlen.
endif.
End of ED1K938380.
move i_data4-stawn to i_output-stawn.
move i_data4-meins to i_output-meins.
read table t_T005t with key land1 = i_data3-land1.
move t_t005t-landx to i_output-verld.
if p_sum eq space.
if i_data4-herkl ne 'CA'.
i_output-herkl = c_for.
else.
read table t_T005t with key land1 = i_data4-herkl.
move t_t005t-landx to i_output-herkl.
endif.
else.
read table t_T005t with key land1 = i_data4-herkl.
move t_t005t-landx to i_output-herkl.
endif.
move i_data4-fkimg to i_output-quantity.
if i_data3-fkart eq c_rep.
read table t_dord with key vbeln = i_data4-vbeln
posnn = i_data4-posnr.
if sy-subrc eq 0.
read table t_sord with key vbeln = t_dord-vbelv
posnn = t_dord-posnv.
if sy-subrc eq 0.
read table t_hord with key vbeln = t_sord-vbelv
posnr = t_sord-posnv.
if sy-subrc eq 0.
read table t_ford with key vbeln = t_hord-vbeln
posnr = t_hord-uepos.
if sy-subrc eq 0.
read table i_price with key vbeln = t_ford-vbeln
posnr = t_ford-posnr.
if sy-subrc eq 0.
read table i_price1 with key knumv = i_price-knumv
kposn = t_ford-posnr.
if sy-subrc eq 0.
if i_price1-kpein ne 0.
i_output-value =
( i_price1-kbetr / i_price1-kpein ) *
i_data4-fkimg.
endif.
endif.
endif.
endif.
endif.
endif.
endif.
else.
move i_data4-grwrt to i_output-value.
endif.
append i_output.
clear i_output.
clear : i_data5, i_data6.
endif.
endloop.
endloop.
sort i_output by verld herkl bezei stawn.
endform.
FORM DISPLAY_OUTPUT *
This form is to create the ALV output
form display_output.
data: xevents type slis_t_event,
ls_event type slis_alv_event,
slis_ev_top_of_page type slis_formname value 'TOP_OF_PAGE',
slis_ev_end_of_list type slis_formname value 'END_OF_LIST'.
*Call Function 'REUSE_ALV_EVENTS' for top of page
call function 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = xevents
EXCEPTIONS
list_type_wrong = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
read table xevents with key name = slis_ev_top_of_page
into ls_event.
if sy-subrc = 0.
move slis_ev_top_of_page to ls_event-form.
append ls_event to xevents.
endif.
read table xevents with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move slis_ev_end_of_list to ls_event-form.
append ls_event to xevents.
endif.
if r_dets ne space.
*Call Function 'REUSE_ALV_FIELD_CATALOG_MERGE' for position fixing in
*the output.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = 'ZVRA0001FTB13'
i_internal_tabname = 'I_OUTPUT'
i_inclname = 'ZVRA0001FTB13'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
i_bypassing_buffer = 'X'
i_buffer_active = ' '
changing
ct_fieldcat = i_fieldcat
exceptions
inconsistent_interface = 1
program_error = 2
others = 3.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at i_fieldcat into l_fieldcat.
l_fieldcat-key = ' '.
case l_fieldcat-fieldname.
when 'BELNR'.
l_fieldcat-seltext_m = text-912.
l_fieldcat-seltext_l = text-912.
l_fieldcat-reptext_ddic = text-912.
l_fieldcat-col_pos = '1'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '12'..
when 'POSNR'.
l_fieldcat-seltext_m = text-913.
l_fieldcat-seltext_l = text-913.
l_fieldcat-reptext_ddic = text-913.
l_fieldcat-col_pos = '2'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '6'.
when 'BEZEI'.
l_fieldcat-seltext_m = text-911.
l_fieldcat-seltext_l = text-911.
l_fieldcat-reptext_ddic = text-911.
l_fieldcat-col_pos = '3'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '15'..
when 'STAWN'.
l_fieldcat-seltext_m = text-111.
l_fieldcat-seltext_l = text-111.
l_fieldcat-reptext_ddic = text-111.
l_fieldcat-col_pos = '4'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '30'.
when 'TEXT1'.
l_fieldcat-seltext_m = text-112.
l_fieldcat-seltext_l = text-112.
l_fieldcat-outputlen = '40'.
l_fieldcat-col_pos = '5'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-112.
when 'QUANTITY'.
l_fieldcat-outputlen = '18'.
l_fieldcat-reptext_ddic = text-113.
l_fieldcat-seltext_m = text-113.
l_fieldcat-col_pos = '6'.
l_fieldcat-just = 'C'.
l_fieldcat-seltext_l = text-113.
when 'MEINS'.
l_fieldcat-outputlen = '8'.
l_fieldcat-reptext_ddic = text-114.
l_fieldcat-seltext_m = text-114.
l_fieldcat-col_pos = '7'.
l_fieldcat-just = 'C'.
l_fieldcat-seltext_l = text-114.
when 'VALUE'.
l_fieldcat-outputlen = '20'.
l_fieldcat-seltext_m = text-115.
l_fieldcat-seltext_l = text-115.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-115.
when 'VERLD'.
l_fieldcat-outputlen = '20'.
l_fieldcat-seltext_m = text-116.
l_fieldcat-seltext_l = text-116.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-116.
when 'HERKL'.
l_fieldcat-seltext_m = text-117.
l_fieldcat-seltext_l = text-117.
l_fieldcat-outputlen = '30'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-117.
when others.
l_fieldcat-no_out = 'X'.
endcase.
modify i_fieldcat from l_fieldcat.
endloop.
Call Function 'REUSE_ALV_LIST_DISPLAY' for dispaly of data in ALV.
call function 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = 'ZVRA0001FTB13'
it_fieldcat = i_fieldcat
it_events = xevents
is_layout = t_layout
i_save = 'A'
i_bypassing_buffer = 'X'
i_buffer_active = ' '
TABLES
t_outtab = i_output
EXCEPTIONS
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
else. " MAHEEDHAR
ELSEIF R_SUMM EQ 'X'. " MAHEEDHAR
sort i_output by verld herkl stawn bezei.
loop at i_output.
move-corresponding i_output to t_outsum.
collect t_outsum.
endloop.
*Call Function 'REUSE_ALV_FIELD_CATALOG_MERGE' for position fixing in
*the output.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'ZVRA0001FTB13'
i_internal_tabname = 'T_OUTSUM'
i_inclname = 'ZVRA0001FTB13'
i_bypassing_buffer = 'X'
i_buffer_active = ' '
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
others = 3.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at i_fieldcat into l_fieldcat.
l_fieldcat-key = ' '.
case l_fieldcat-fieldname.
when 'BEZEI'.
l_fieldcat-seltext_m = text-911.
l_fieldcat-seltext_l = text-911.
l_fieldcat-reptext_ddic = text-911.
l_fieldcat-col_pos = '1'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '15'..
when 'STAWN'.
l_fieldcat-seltext_m = text-111.
l_fieldcat-seltext_l = text-111.
l_fieldcat-reptext_ddic = text-111.
l_fieldcat-col_pos = '2'.
l_fieldcat-just = 'C'.
l_fieldcat-outputlen = '30'.
when 'TEXT1'.
l_fieldcat-seltext_m = text-112.
l_fieldcat-seltext_l = text-112.
l_fieldcat-outputlen = '40'.
l_fieldcat-col_pos = '3'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-112.
when 'QUANTITY'.
l_fieldcat-outputlen = '18'.
l_fieldcat-reptext_ddic = text-113.
l_fieldcat-seltext_m = text-113.
l_fieldcat-col_pos = '4'.
l_fieldcat-just = 'C'.
l_fieldcat-seltext_l = text-113.
when 'MEINS'.
l_fieldcat-outputlen = '8'.
l_fieldcat-reptext_ddic = text-114.
l_fieldcat-seltext_m = text-114.
l_fieldcat-col_pos = '5'.
l_fieldcat-just = 'C'.
l_fieldcat-seltext_l = text-114.
when 'VALUE'.
l_fieldcat-outputlen = '20'.
l_fieldcat-seltext_m = text-115.
l_fieldcat-seltext_l = text-115.
l_fieldcat-col_pos = '6'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-115.
when 'VERLD'.
l_fieldcat-outputlen = '20'.
l_fieldcat-seltext_m = text-116.
l_fieldcat-seltext_l = text-116.
l_fieldcat-col_pos = '7'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-116.
when 'HERKL'.
l_fieldcat-seltext_m = text-117.
l_fieldcat-seltext_l = text-117.
l_fieldcat-outputlen = '30'.
l_fieldcat-col_pos = '8'.
l_fieldcat-just = 'C'.
l_fieldcat-reptext_ddic = text-117.
when others.
l_fieldcat-no_out = 'X'.
endcase.
modify i_fieldcat from l_fieldcat.
endloop.
Call Function 'REUSE_ALV_LIST_DISPLAY' for dispaly of data in ALV.
call function 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = 'ZVRA0001FTB13'
it_fieldcat = i_fieldcat
it_events = xevents
i_save = 'A'
is_layout = t_layout
i_default = 'X'
is_variant = variante
i_bypassing_buffer = 'X'
i_buffer_active = ' '
TABLES
t_outtab = t_outsum
EXCEPTIONS
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
MAHEEDHAR-START.
*"-- if detail summary checkbox is selected
elseIF R_MSSNG = 'X'.
PERFORM PREPARE_HEADER.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = 'ZVRA0001FTB13'
i_internal_tabname = 'I_OUTPUT'
i_inclname = 'ZVRA0001FTB13'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
i_bypassing_buffer = 'X'
i_buffer_active = ' '
changing
ct_fieldcat = i_fieldcat
exceptions
inconsistent_interface = 1
program_error = 2
hi,
*& Report ZALV_FIELD_GRID1
REPORT ZALV_FIELD_GRID1
NO STANDARD PAGE HEADING.
TABLES MARA.
type-pools :slis.
TYPES : BEGIN OF TMARA ,
MATNR LIKE MARA-MATNR,
MEINS LIKE MARA-MEINS,
ERSDA LIKE MARA-ERSDA,
color(4) type c,
SEL type c,
LIGHT TYPE C,
END OF TMARA.
TYPES: BEGIN OF TMAKT,
MATNR LIKE MAKT-MATNR,
MAKTX LIKE MAKT-MAKTX,
MAKTG LIKE MAKT-MAKTG,
SEL TYPE C,
COLOR(4),
END OF TMAKT.
DATA: ITAB TYPE TMARA OCCURS 0 WITH HEADER LINE,
ITAB1 TYPE TMAKT OCCURS 0 WITH HEADER LINE,
wa_fieldcat type slis_fieldcat_alv,
fieldcat type slis_fieldcat_alv occurs 0,
i_layout type slis_layout_alv,
WA_LISTHEADER TYPE SLIS_LISTHEADER ,
i_LISTHEADER TYPE SLIS_LISTHEADER OCCURS 0,
V_EVENTS TYPE SLIS_T_EVENT ,
WA_EVENT TYPE SLIS_ALV_EVENT,
I_TITLE_MARA TYPE LVC_TITLE VALUE 'FIRST LIST DISPLAYED',
I_TITLE_MAKT TYPE LVC_TITLE VALUE 'SECONDRY LIST DISPLAYED',
SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE,
PRINT_CONT type slis_print_alv.
SELECTION SCREE
selection-screen begin of block screen1 with frame title TEXT-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /32(35) COMM1.
SELECTION-SCREEN ULINE /27(35).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS MATNR FOR MARA-MATNR.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN COMMENT /30(50) COMM2.
SELECTION-SCREEN ULINE /27(40).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS ERSDA FOR MARA-ERSDA.
SELECTION-SCREEN SKIP.
selection-screen end of block screen1.
INITIALIZATION
INITIALIZATION.
MATNR-low = '23'.
MATNR-high = '1000'.
MATNR-option = 'BT'.
MATNR-sign = 'I'.
APPEND MATNR.
ERSDA-low = '20030124'.
ERSDA-high = '20050302' .
APPEND ERSDA.
PERFORM FILLFIELD.
PERFORM FILLLAYOUT.
PERFORM build_print_params.
PERFORM FILL_SORT.
PERFORM EVENT_CALL.
PERFORM POPULATE_EVENT.
SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
comm1 ='SELECT MATERIAL NUMBER RANGE'.
comm2 ='SELECT MATERIAL CREATION DATE'.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM READDATA.
PERFORM POPDATA.
*& Form READDATA
text
FORM READDATA .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-LOW
IMPORTING
OUTPUT = MATNR-LOW.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = MATNR-HIGH
IMPORTING
OUTPUT = MATNR-HIGH.
SELECT MATNR
ERSDA
MEINS
FROM MARA
INTO CORRESPONDING FIELDS OF
TABLE ITAB
WHERE MATNR IN MATNR AND ERSDA IN ERSDA.
LOOP AT ITAB.
data id_color type i VALUE 1.
data id_colors(2) type c.
IF ITAB-MATNR < '000000000000000100'.
ITAB-LIGHT = '1'.
ELSEIF ITAB-MATNR < '000000000000000150' AND ITAB-MATNR >
'000000000000000100' .
ITAB-LIGHT = '2'.
ELSE.
ITAB-LIGHT = '3'.
ENDIF.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab-color.
modify itab.
CLEAR ITAB.
endloop.
ENDFORM. " READDATA
Form FILLFIELD
FORM FILLFIELD .
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
WA_FIELDCAT-outputlen = 20.
WA_FIELDCAT-HOTSPOT = 'X'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
*WA_FIELDCAT-EMPHASIZE = 'C210'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MEINS'.
WA_FIELDCAT-COL_POS = '2'.
*WA_FIELDCAT-EMPHASIZE = 'C510'.
WA_FIELDCAT-outputlen = 10.
wa_fieldcat-seltext_m = 'UNIT'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'ERSDA'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-outputlen = 15.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
*WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'CREAT DATE'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. "FILLFIELD
Setup print parameters
form build_print_params.
PRINT_CONT-reserve_lines = '3'. "Lines reserved for footer
PRINT_CONT-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
Form POPDATA
FORM POPDATA .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER-COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOPPAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = I_TITLE_MARA
I_GRID_SETTINGS =
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = SORT[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = V_EVENTS
IT_EVENT_EXIT =
IS_PRINT = PRINT_CONT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " POPDATA
Form TOPPAGE
FORM TOPPAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DETAIL'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
ENDFORM. "TOPPAGE
Form FILLLAYOUT
FORM FILLLAYOUT .
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-lights_fieldname = 'LIGHT'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
I_LAYOUT-no_totalline = 'X'.
ENDFORM. "FILLLAYOUT
Form FILL_SORT
FORM FILL_SORT .
SORT-DOWN = 'X'.
SORT-SPOS = 1.
SORT-FIELDNAME = 'MATNR'.
SORT-tabname = 'MARA'.
APPEND SORT.
ENDFORM. " FILL_SORT
Form EVENT_CALL
FORM EVENT_CALL .
DATA: I_EVENT LIKE V_EVENTS.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = V_EVENTS.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " EVENT_CALL
Form POPULATE_EVENT
FORM POPULATE_EVENT .
READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.
IF SY-SUBRC EQ 0.
WA_EVENT-FORM = 'USER_COMMAND'.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
READ TABLE V_EVENTS WITH KEY NAME = SLIS_EV_END_OF_PAGE
INTO WA_EVENT.
IF SY-SUBRC = 0.
move 'END_OF_PAGE' to WA_EVENT-FORM.
MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
WA_EVENT-NAME.
endif.
ENDIF.
ENDFORM. "POPULATE_EVENT
FORM END_OF_PAGE.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
ENDFORM.
*& Form USER_COMMAND
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
CASE RS_SELFIELD-FIELDNAME.
when 'MATNR'.
read table itab with key matnr = RS_SELFIELD-VALUE.
if sy-subrc = 0.
PERFORM DATA_RETRIEVAL_MAKT USING RS_SELFIELD-VALUE.
PERFORM BUILD_FIELDCATLOG_MAKT.
PERFORM FILLLAYOUT_MAKT.
PERFORM DISPLAY_ALV_MAKT.
CLEAR RS_SELFIELD.
ENDIF.
ENDCASE.
ENDCASE.
ENDFORM. "user_command
Form DATA_RETRIEVAL_MAKT
FORM DATA_RETRIEVAL_MAKT USING TMATNR .
SELECT MATNR
MAKTX
MAKTG
UP TO 100 ROWS
FROM MAKT
INTO TABLE ITAB1
WHERE SPRAS = 'EN' AND MATNR = TMATNR.
LOOP AT ITAB1.
data id_color type i VALUE 1.
data id_colors(2) type c.
id_color = id_color + 1.
if id_color > 7.
id_color = 1.
endif.
id_colors = id_color.
concatenate 'C' id_colors '10' into itab1-color.
modify itab1.
CLEAR ITAB1.
ENDLOOP.
ENDFORM. "DATA_RETRIEVAL_MAKT
Form FILLLAYOUT_MAKT
FORM FILLLAYOUT_MAKT .
CLEAR I_LAYOUT.
i_layout-zebra = 'X'.
i_layout-info_fieldname = 'COLOR'.
i_layout-box_fieldname = 'SEL'.
I_LAYOUT-EDIT ='X'.
I_LAYOUT-colwidth_optimize = 'X'.
I_LAYOUT-window_titlebar = 'EXAMPLE FOR ALV GRID'.
ENDFORM. " LAYOUT_MAKT
Form BUILD_FIELDCATLOG_MAKT
FORM BUILD_FIELDCATLOG_MAKT .
REFRESH FIELDCAT.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-KEY = 'X'.
WA_FIELDCAT-COL_POS = '1'.
*WA_FIELDCAT-EDIT_MASK = 'DD.MM.YYYY'.
WA_FIELDCAT-EMPHASIZE = 'C510'.
wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTX'.
WA_FIELDCAT-COL_POS = '2'.
WA_FIELDCAT-EMPHASIZE = 'C710'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
WA_FIELDCAT-FIELDNAME = 'MAKTG'.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-EMPHASIZE = 'C210'.
wa_fieldcat-seltext_m = 'MATERIAL DESCRIPTION'.
APPEND WA_FIELDCAT TO FIELDCAT.
clear wa_fieldcat.
ENDFORM. " BUILD_FIELDCATLOG_MAKT
Form DISPLAY_ALV_MAKT
FORM TOP-OF-PAGE.
REFRESH I_LISTHEADER.
DATA: ld_lines type i,
ld_linesc(10) type c,
I_DATE(10) TYPE C,
I_INFO LIKE WA_LISTHEADER-INFO.
WA_LISTHEADER-TYP = 'H'.
WA_LISTHEADER-INFO = 'MATERIAL DESCRIPTION FOR SELECTED NUMBER'.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
WA_LISTHEADER-TYP = 'S'.
WA_LISTHEADER-KEY = 'DATE :'.
CONCATENATE SY-DATUM+6(2) '.'
SY-DATUM+4(2) '.'
SY-DATUM(4) INTO I_DATE.
WA_LISTHEADER-INFO = I_datE.
APPEND WA_LISTHEADER TO I_LISTHEADER.
CLEAR WA_LISTHEADER.
describe table ITAB1 lines ld_lines.
ld_linesc = ld_lines.
concatenate 'TOTAL NUMBER OF RECORD SELECTED: ' ld_linesc
into I_INFO separated by space.
WA_LISTHEADER-TYP = 'A'.
WA_LISTHEADER-INFO = I_INFO.
append WA_LISTHEADER to I_LISTHEADER.
clear: WA_LISTHEADER , I_INFO.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_LISTHEADER
I_LOGO = 'ENJOYSAP_LOGO'.
I_END_OF_LIST_GRID =
I_ALV_FORM =
ENDFORM. "TOP-OF-PAGE
*& Form DISPLAY_ALV_MAKT
text
FORM DISPLAY_ALV_MAKT .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
I_GRID_TITLE = I_TITLE_MAKT
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = fieldcat
TABLES
T_OUTTAB = ITAB1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_MAKT
Regards
Ashok kumar -
Surcharge is not coming in Challan
Hi Gurus,
IAfter FB60,we create remittance challan(J1INCHLN) for Form 16A.When executing J1INCHLN,the system generate Challan no. and showing following details of challan:
Sr. Co Cd Doc No. Fiscal B.Place Tax Challan no. Challan dt Amount
No. Year Code
1 6000 45454 2008 194C C1 100023 13.1.09 20.00
2 6000 45454 2008 194C E1 100023 13.1.09 1.00
3 6000 45454 2008 194C H1 100023 13.1.09 1.00
I have defined surcharge as "CS",but it is not coming in challan.
Pl advise.
Regards,
SamarHi Gurus,
Thanks for the reply.
Still surcharge is not coming in remittance challan.Due to this problem,surcharge also not coming
in J1INQEFILE reports.
Pl advise.
Regards,
Samar
Maybe you are looking for
-
Problem connecting MBP 17" to 37" LCD Philips
Hi all, I recently bought a new Philips flat TV LCD model, the top-range for their 37 inches production (3ms panel, one of the fastest). This tv has 3 HDMI connections , and should support PC connections (it's a full hd , with support for 1080p conne
-
How to retrieve the drive letter of the current directory with an applet ?
The subject says it all. I have this html file and when launched it should get the current drive's letter. This is how it's done in java, but I dunno how to make it in an applet version. import java.*; import java.io.File; public class test { public
-
2 or 3 second sound start delay
I'm using the optical sound output into a receiver, and I find that there is a 2 to 3 second delay in sound starting. So, for example if there has been no sound for a while, then if I select a song, then I miss the first couple of seconds. More impo
-
Restricting PO Price Change (ME22/ME22N)
Hi Guys, Restrict Purchase Order Price Change: We want to restrict buyers from changing the price on the purchase order/Contracts after it has been created. So basically restrict them from making any change to the PO price within transactions ME22/
-
Soft Reset.. IPod or Safari Crashing
When using the iPod or Safari programs on my iPhone they sometimes stop working and reset back to the main interface. Is anyone else having this issue or know a solution?