Exporting Windows Not Coming Up
Just latetly, when I am exporting .jpgs in Illustrator 6.0, there usually is the Export Options window that pops up asking my preference (cmyk, rgb, etc) . Lately this is not happening and it just exports CMYK on it's own.
Try resetting your preferences.
Similar Messages
-
Finder windows not coming to front and other issues
Hey Guys,
I've been having some issues with finder not coming to the front when clicking on the Finder icon on the dock, like it used to.
Also, if I have a finder window on the front, and I click to an application behind it, the application doesn't come back in front again.
Anyone else having these issues, anyone know of a fix? Not sure if it's related, but in the force quit window, finder is shown twice?
It's happening on both my macbook pro and my mac pro, both running mavericks.Do you have StuffIt Deluxe installed? If so, see this thread:
http://discussions.apple.com/thread.jspa?messageID=4195602
What is happening is that your Finder is crashing.
Francine
Francine
Schwieder -
New windows not coming to forward focus.
I cant be the only one that is experiancing this, as the same thing happens on my new laptop.
OSX has a very annoying habit that I cant get rid of. If I have Safari open, and click a link to download something, the download window doesnt always come to the front, but instead opens BEHIND the main Safari window. So you dont know if the link has worked or not, and in the past I have click a download more than once thinking it hasnt worked only to download the same thing multiple times.
The same thing happens in Finder.
Does anyone know why, and how to fix this?The lost focus problem most often occurs for me when Safari is open and I double-click on a link in e-mail to open in the default browser. After the first time though the links usually open correctly in front.
No solution, but my work-around is to use the Command-` key-combination (that’s the accent key in the upper-left corner of the keyboard beneath the escape key) to bring other open windows to the front. -
Strange Issue: App UI Window not coming up (OS X w/ AIR 2)
A coworker of mine recently upgraded his OS X to 10.6, then to 10.6.4, and now an app we use internally won't start on his machine. I have the exact same setup as he does (OS X 10.6.4, AIR 2, Flash Player 10.1, same app version) and mine starts just fine. The app icon in his dock bounces once and then stops but no window comes up. We've tried uninstalling and reinstalling FP, AIR and the app itself, but no luck. I'm guessing it has something to do with the 10.6 upgrade, but has anyone run into this before? Any possible solutions?
It's kind of urgent so any help would be greatly appreciated!I have seen this same issue.... while Im developing if I add certain code to a spark skin all of the sudden when I run my app in ADL you can see Flash Builder starts a thread and I get all of my traces but my os doesnt show the app running and no errors are thrown. Then if I comment out a certain line of code it starts to work again. So maybe you are seeing an issue similar to this? I have no idea sorry Im just trying to keep the topic going with ideas.
-
SAP is not coming up after system refresh with Export/Import option
Hi,
I have exported Java 6.40 and finished the refresh successfully. And I imported the Java successfully. After importing Java, I restarted SAP but is not coming up. When I checked the dev_w0 trace file, I got the following information.
trc file: "dev_w0", trc level: 1, release: "640"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
B
B Wed Aug 05 10:48:17 2009
B create_con (con_name=R/3)
B Loading DB library 'F:\usr\sap\IDS\SYS\exe\run\dboraslib.dll' ...
B Library 'F:\usr\sap\IDS\SYS\exe\run\dboraslib.dll' loaded
B Version of 'F:\usr\sap\IDS\SYS\exe\run\dboraslib.dll' is "640.00", patchlevel (0.220)
B New connection 0 created
M sysno 00
M sid IDS
M systemid 560 (PC with Windows NT)
M relno 6400
M patchlevel 0
M patchno 247
M intno 20020600
M make: multithreaded, Unicode
M pid 844
M
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 844) [dpxxdisp.c 1170]
I MtxInit: -2 0 0
M DpSysAdmExtCreate: ABAP is active
M DpShMCreate: sizeof(wp_adm) 20328 (1452)
M DpShMCreate: sizeof(tm_adm) 2969176 (14772)
M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
M DpShMCreate: sizeof(comm_adm) 290000 (580)
M DpShMCreate: sizeof(vmc_adm) 0 (424)
M DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
M DpShMCreate: SHM_DP_ADM_KEY (addr: 05FE0040, size: 3391480)
M DpShMCreate: allocated sys_adm at 05FE0040
M DpShMCreate: allocated wp_adm at 05FE1B88
M DpShMCreate: allocated tm_adm_list at 05FE6AF0
M DpShMCreate: allocated tm_adm at 05FE6B18
M DpShMCreate: allocated wp_ca_adm at 062BB970
M DpShMCreate: allocated appc_ca_adm at 062C1730
M DpShMCreate: allocated comm_adm_list at 062C3670
M DpShMCreate: allocated comm_adm at 062C3688
M DpShMCreate: allocated vmc_adm_list at 0630A358
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 0630A380
M DpShMCreate: allocated wall_adm at 0630A388
M ThTaskStatus: rdisp/reset_online_during_debug 0
X EmInit: MmSetImplementation( 2 ).
X <ES> client 0 initializing ....
X Using implementation flat
M <EsNT> Memory Reset disabled as NT default
X ES initialized.
M
M Wed Aug 05 10:48:18 2009
M calling db_connect ...
C Prepending e:\oracle\IDS to Path.
C got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
C Client NLS settings: AMERICAN_AMERICA.UTF8
C Logon as OPS$-user to get SAPIDS's password
C Connecting as /@IDS on connection 0 (nls_hdl 0) ... (dbsl 640 070308)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 05B17398 05B1C458 05B1BEC0
C Attaching to DB Server IDS (con_hdl=0,svchp=05B1BE14,srvhp=05B1CA84)
C Starting user session (con_hdl=0,svchp=05B1BE14,srvhp=05B1CA84,usrhp=05B256B8)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
[dboci.c 4508]
C *** ERROR => CONNECT failed with sql error '1017'
[dbsloci.c 11395]
C Try to connect with default password
C Connecting as SAPIDS/<pwd>@IDS on connection 0 (nls_hdl 0) ... (dbsl 640 070308)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 UTF8 1 05B17398 05B1C458 05B1BEC0
C Starting user session (con_hdl=0,svchp=05B1BE14,srvhp=05B1CA84,usrhp=05B256B8)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
[dboci.c 4508]
C *** ERROR => CONNECT failed with sql error '1017'
[dbsloci.c 11395]
B ***LOG BY2=> sql error 1017 performing CON [dbsh#3 @ 1204] [dbsh 1204 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#3 @ 1204] [dbsh 1204 ]
B ***LOG BY2=> sql error 1017 performing CON [dblink#3 @ 428] [dblink 0428 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#3 @ 428] [dblink 0428 ]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1283]
M in_ThErrHandle: 1
M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9708]
M
M Info for wp 0
M
M stat = 4
M reqtype = 1
M act_reqtype = -1
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source = 255
M last_tid = 0
M last_mode = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M
M *****************************************************************************
M *
M * LOCATION SAP-Server ord-sapproj_IDS_00 on host ord-sapproj (wp 0)
M * ERROR tskh_init: db_connect
M *
M * TIME Wed Aug 05 10:48:18 2009
M * RELEASE 640
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 9893
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 255]
M Entering ThSetStatError
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 844) [dpnttool.c 357]
I have checked database connectivity with the command 'r3trans -d', it got finished with the return code 0012 and the trace.log file is showing the following information.
=======================================
4 ETW000 r3trans version 6.13 (release 640 - 17.07.08 - 08:11:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 05.08.2009 - 10:52:31
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Wed Aug 05 10:52:34 2009 0.000000
4 ETW000 [dev trc ,00000] db_con_init called 0.000000
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 0.000000
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 0.000000
4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 8449 0.008449
4 ETW000 [dev trc ,00000] using "f:\usr\sap\IDS\SYS\exe\run\dboraslib.dll"
4 ETW000 37 0.008486
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 18 0.008504
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll
4 ETW000 27 0.008531
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "640.00", patchlevel (0.220)
4 ETW000 219 0.008750
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll
4 ETW000 27 0.008777
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll
4 ETW000 36 0.008813
4 ETW000 [dev trc ,00000] New connection 0 created 26 0.008839
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 34 0.008873
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 22 0.008895
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 25 0.008920
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 32 0.008952
4 ETW000 [dev trc ,00000] Setting DIR_CLIENT_ORAHOME is not set as environment variable,
4 ETW000 assuming using instant client with unspecified location.
4 ETW000 227 0.009179
4 ETW000 [dev trc ,00000] -->oci_initialize (con_hdl=0) 130 0.009309
4 ETW000 [dev trc ,00000] got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
4 ETW000 32 0.009341
4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.UTF8 23827 0.033168
4 ETW000 [dev trc ,00000] Logon as OPS$-user to get SAPIDS's password 34 0.033202
4 ETW000 [dev trc ,00000] Connecting as /@IDS on connection 0 (nls_hdl 0) ... (dbsl 640 070308)
4 ETW000 35 0.033237
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 32 0.033269
4 ETW000 [dev trc ,00000] 0 UTF8 1 0253CDB0 02541E18 02541880
4 ETW000 112 0.033381
4 ETW000 [dev trc ,00000] Allocating service context handle for con_hdl=0 29 0.033410
4 ETW000 [dev trc ,00000] Allocating server context handle 25 0.033435
4 ETW000 [dev trc ,00000] Attaching to DB Server IDS (con_hdl=0,svchp=025417D4,srvhp=025423DC)
4 ETW000 51 0.033486
4 ETW000 [dev trc ,00000] Assigning server context 025423DC to service context 025417D4
4 ETW000 41860 0.075346
4 ETW000 [dev trc ,00000] Allocating user session handle 47 0.075393
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=025417D4,srvhp=025423DC,usrhp=0254AFA8)
4 ETW000 50 0.075443
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 4381 0.079824
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 31 0.079855
4 ETW000 [dev trc ,00000] set_ocica() -> OCI or SQL return code 1017 23 0.079878
4 ETW000 [dev trc ,00000] Try to connect with default password 80 0.079958
4 ETW000 [dev trc ,00000] Connecting as SAPIDS/<pwd>@IDS on connection 0 (nls_hdl 0) ... (dbsl 640 070308)
4 ETW000 28 0.079986
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 31 0.080017
4 ETW000 [dev trc ,00000] 0 UTF8 1 0253CDB0 02541E18 02541880
4 ETW000 32 0.080049
4 ETW000 [dev trc ,00000] Assigning username to user session 0254AFA8 19 0.080068
4 ETW000 [dev trc ,00000] Assigning password to user session 0254AFA8 25 0.080093
4 ETW000 [dev trc ,00000] Starting user session (con_hdl=0,svchp=025417D4,srvhp=025423DC,usrhp=0254AFA8)
4 ETW000 32 0.080125
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
4 ETW000 1691 0.081816
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '1017'
4 ETW000 28 0.081844
4 ETW000 [dev trc ,00000] set_ocica() -> OCI or SQL return code 1017 18 0.081862
4 ETW000 [dblink ,00428] ***LOG BY2=>sql error 1017 performing CON [dblink#3 @ 428]
4 ETW000 119 0.081981
4 ETW000 [dblink ,00428] ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#3 @ 428]
4 ETW000 30 0.082011
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'IDS'"
=================================================================================
Kindly suggest me the solution to resolve the issue.
Thanks & regards,
MogileeswarPlease check the logs it is clrerly mentioned thet your sapsystem is not able to connect to database.
ERROR => CONNECT failed with sql error '1017' [dbsloci.c 11395] B ***LOG BY2=> sql error 1017 performing CON [dbsh#3 @ 1204] [dbsh 1204 ] B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#3 @ 1204] [dbsh 1204 ] B ***LOG BY2=> sql error 1017 performing CON [dblink#3 @ 428] [dblink 0428 ] B ***LOG BY0=> ORA-01017: invalid username/password
Check the Note------Note 713685 - Hom./Het.System Copy SAP Web AS 6.40
run these commands:
brconnect -u / -c -l E -f chpass -o SAPSR3 -password whatever_you_want
sqlplus /nolog @sapdba_role.sql SID NT
Also check the parameter DBS_ORA_SCHEMA is set to SAPSR3.
Also read note 400241.
Thanks
Rishi Abrol -
My ipod 6th generation is not coming up in my devices with itunes. I am using a new computer with windows 8 and it is shoing up in my computer but not in itunes. any suggestions
I am having the exact same problem but as yet have not found a solution.
-
Values not coming on export invoice
Dear all,
While creating Excise invoice for exports i am not getting excise values in document because i have not maintained condition types in Export pricing procedure.
Now i have maintained Condition types in Export Pricing procedure both percentage and quantity condition types of excise and i kept all as statistical, even though the values were not coming to J1IIN and my client require excise values on print at the same time values has to come on ARE-1 document also
can anybody guide me how values has to come on both these documents 1. Export Excise invoice 2.ARE-1 document.
regards
venkataRefer SAP Note No. 822226 for code correction.
Regards,
Dilip Shende -
OBIEE 11G server not coming up after window username got chnged
Hi,
We have installed OBIEE 11g and was working fine. But, now the window username of the machine got changed and the BI server is not coming up. Do we need to re-install it or any workaround for this issue.
Thanks,
AnileshWhich service you are not able to start? Is it weblogic or bi services like bi server, PS server etc..
Have you tried to start weblogic manually by running Startweblogic.cmd and able to open WLS console? -
Everytime I go to export a photo, I get an error.
"Export Results: Not enough memory (1)
Using Windows 7 32-bit. Intel i5 4690K CPU 16GB RAM 120 SSD and 1 TB harddrive.Even though you have 16gb of ram installed, 32 bit Windows can only use 4gb of it so 12gb is wasted. This is the reason you are getting not enough memory errors and is a known problem with Lightroom an 32 bit Windows during export. You need to change to 64 bit Windows.
-
Export mp3 to Windows -- not playing
I'm in the radio industry and I use iTunes to store, file and categorize hundreds of commercials that my stations produce. I often import what my jocks send me into iTunes to listen to the mp3 files and then send them on to my clients for their review/approval. I've never had any problems what-so-ever until recently. Suddenly I've had to clients -using Windows (not sure which level, player, etc) that are not able to play my commercials. Both of which have had no problems at all in the past. I am running OSX 10.6.4 and iTunes 9.2 (61) - did something change recently with the iTunes upgrades that might be causing this? Is there something I need to set on my end to ensure Windows machines can play what I send them? I'm dealing with clients so I'm not able/willing to go through the process of troubleshooting/diagnosing their computers. I believe the only thing that has changed might be on my end - it seems there have been a million updates to iTunes in the past couple of months. I have to assume the problem is on my end. Any help? Thanks much! [email protected]
DUH! Figured out where the settings got changed mysteriously. It was on ACC encoder for importing. I changed to mp3 and my client could play the spot.
-
Hi all,
One of the apps in the production system is not coming up after the windows patching, there are 2 servers in the same box the other one came up fine with no issues.
Even the Work process log is also not generated.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
trc file: "dev_disp", trc level: 1, release: "46D"
Tue Jun 21 15:11:31 2011
relno 4640
patchlevel 0
patchno 2513
intno 0
pid 13548
***LOG Q00=> DpSapEnvInit, DPStart (71 13548) [dpxxdisp.c 921]
Tue Jun 21 15:11:35 2011
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust your DNS settings [dpxxtool2.c 3171]
MtxInit: -2 0 0
DpIPCInit: start server >xxxx_71 <
ERROR => DpShMCreate: ShmCreate SHM_DP_ADM_KEY [dpxxtool2.c 1335]
ERROR => DpIPCInit: DpShMCreate [dpxxtool2.c 409]
DP_FATAL_ERROR => DpSapEnvInit: DpIPCInit
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
call semaphore clean-up function ...
***LOG Q0E=> DpSigGenHandler, Exception (c0000005) [dpnttool.c 390]
C-STACK -
SAP (R) - R/3(TM) Callstack, Version 1.0
Copyright (C) SAP AG. All rights reserved.
Application exception occurred:
Exception : c0000005 (Access Violation)
App : disp+work.exe (pid=13548)
When : 6/21/2011 15:11:35.782
Threads : 2
Computer Name xxxxxx
User Name : SAPServicexxx
Number of Processors: 32
Processor Type: EM64T Family 6 Model 46 Stepping 6
Windows Version : 5.2 Current Build: 3790
Stack Dump for Thread Id 3ca8
eax=00000000 ebx=00000003 ecx=016ea020 edx=0319f68c esi=00000000 edi=00000000
eip=00427bcb esp=0319fdf8 ebp=00000000 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
function : <nosymbols>
00427bb0 ff742404 push dword ptr [esp+0x4] ss:0633e6a3=????????
00427bb4 ffd0 call eax
00427bb6 59 pop ecx
00427bb7 c3 ret
00427bb8 a1bcf06c01 mov eax,[016cf0bc] ds:016cf0bc=00000000
00427bbd 56 push esi
00427bbe 57 push edi
00427bbf 8b7c240c mov edi,[esp+0xc] ss:0633e6a3=????????
00427bc3 8bf7 mov esi,edi
00427bc5 69f698020000 imul esi,esi,0x298
FAULT-> 00427bcb 837c064800 cmp dword ptr [esieax0x48],0x0 ds:0319e8ab=467f0048
00427bd0 7f46 jg 00427c18
00427bd2 833db89f6e0101 cmp dword ptr [016e9fb8],0x1 ds:016e9fb8=00000003
00427bd9 0f8c45030000 jl 00427f24
00427bdf e8ad910a00 call 004d0d91
00427be4 68310a0000 push 0xa31
00427be9 689060d400 push 0xd46090
00427bee e8e6d0ffff call 00424cd9
00427bf3 59 pop ecx
00427bf4 50 push eax
00427bf5 689c60d400 push 0xd4609c
00427bfa 68bc9f6e01 push 0x16e9fbc
--> Stack Back Trace <--
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
00000000 00000000 00000000 00000000 00000000 00000000 disp+work!<nosymbols>
Stack Dump for Thread Id 2f70
eax=00000000 ebx=0036f190 ecx=00000000 edx=00000000 esi=77bd0888 edi=00000000
eip=7d61cd3e esp=0769fc78 ebp=0769fcb8 iopl=0 nv up ei pl nz na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
function : NtFsControlFile
7d61cd29 b836000000 mov eax,0x36
7d61cd2e b91b000000 mov ecx,0x1b
7d61cd33 8d542404 lea edx,[esp+0x4] ss:0a83e523=????????
7d61cd37 64ff15c0000000 call dword ptr fs:[000000c0] fs:000000c0=????????
7d61cd3e c22800 ret 0x28
--> Stack Back Trace <--
FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0769fcb8 00c38ed8 000004f4 00000000 00000000 0036f0f8 ntdll!NtFsControlFile
0769ff84 77bcb530 00000000 00000000 00000000 0036f190 disp+work!<nosymbols>
0769ffb8 7d4dfe37 0036f190 00000000 00000000 0036f190 MSVCRT!endthreadex
0769ffec 00000000 77bcb4bc 0036f190 00000000 00000000 kernel32!FlsSetValue
call clean-up function ...
SigICallExitRoutine: call exithandler (DpHalt)
DpHalt: shutdown server >mudpap01_UDP_71 <
Switch off Shared memory profiling
not attached to the message server
***LOG Q05=> DpHalt, DPStop ( 13548) [dpxxdisp.c 7267]
removing Event-Managment
ERROR => EvtRmMgt: Evt Mgt Table not init'd [evtnt.c 360]
(didn't work)
ShmCleanup SHM_SYS_ADM_KEY
ShmCleanup SHM_DP_ADM_KEY
ERROR => ShmDelete: Inv. Key=2 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 2 [shmnt.c 747]
ShmCleanup SHM_DP_CA_KEY
ERROR => ShmDelete: Inv. Key=3 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 3 [shmnt.c 747]
ShmCleanup SHM_PF_KEY
ERROR => ShmDelete: Inv. Key=4 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 4 [shmnt.c 747]
ShmCleanup SHM_PRES_BUF
ERROR => ShmDelete: Inv. Key=14 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 14 [shmnt.c 747]
ShmCleanup SHM_CALI_BUFFER
ERROR => ShmDelete: Inv. Key=11 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 11 [shmnt.c 747]
ShmCleanup SHM_DB_TBUFF
ERROR => ShmDelete: Inv. Key=19 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 19 [shmnt.c 747]
ShmCleanup SHM_DB_TBUFF_P
ERROR => ShmDelete: Inv. Key=33 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 33 [shmnt.c 747]
ShmCleanup SHM_DB_STBUFF
ERROR => ShmDelete: Inv. Key=41 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 41 [shmnt.c 747]
ShmCleanup SHM_DB_TTBUFF
ERROR => ShmDelete: Inv. Key=42 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 42 [shmnt.c 747]
ShmCleanup SHM_DB_FTBUFF
ERROR => ShmDelete: Inv. Key=43 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 43 [shmnt.c 747]
ShmCleanup SHM_DB_SNTBUFF
ERROR => ShmDelete: Inv. Key=45 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 45 [shmnt.c 747]
ShmCleanup SHM_DB_IRBUFF
ERROR => ShmDelete: Inv. Key=44 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 44 [shmnt.c 747]
ShmCleanup SHM_DB_OBJ_BUFFER
ERROR => ShmDelete: Inv. Key=54 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 54 [shmnt.c 747]
ShmCleanup SHM_ROLL_AREA_KEY
ERROR => ShmDelete: Inv. Key=9 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 9 [shmnt.c 747]
ShmCleanup SHM_PAGING_AREA_KEY
ERROR => ShmDelete: Inv. Key=8 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 8 [shmnt.c 747]
ShmCleanup SHM_ROLL_ADM_KEY
ERROR => ShmDelete: Inv. Key=17 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 17 [shmnt.c 747]
ShmCleanup SHM_PAGING_ADM_KEY
ERROR => ShmDelete: Inv. Key=18 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 18 [shmnt.c 747]
ShmCleanup SHM_PXA_KEY
ERROR => ShmDelete: Inv. Key=6 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 6 [shmnt.c 747]
ShmCleanup SHM_ENQ_TABLE_KEY
ERROR => ShmDelete: Inv. Key=34 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 34 [shmnt.c 747]
ShmCleanup SHM_ENQID_KEY
ERROR => ShmDelete: Inv. Key=58 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 58 [shmnt.c 747]
ShmCleanup SHM_VB_ADM_KEY
ERROR => ShmDelete: Inv. Key=7 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 7 [shmnt.c 747]
ShmCleanup SHM_DB_POOL
ERROR => ShmDelete: Inv. Key=40 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 40 [shmnt.c 747]
ShmCleanup SHM_EM_ADM
ERROR => ShmDelete: Inv. Key=51 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 51 [shmnt.c 747]
ShmCleanup SHM_MSBUF
ERROR => ShmDelete: Inv. Key=52 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 52 [shmnt.c 747]
ShmCleanup SHM_THRUN_ADM_KEY(th run adm)
ERROR => ShmDelete: Inv. Key=30 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 30 [shmnt.c 747]
ShmCleanup SHM_PF_AS_KEY(Appl.Statistics)
ERROR => ShmDelete: Inv. Key=56 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 56 [shmnt.c 747]
ShmCleanup SHM_POOL_0
ERROR => ShmDelete: Inv. Key=10 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 10 [shmnt.c 747]
ShmCleanup SHM_PROFILE
removing Semaphore-Management
removing Request Queue
ERROR => ShmDelete: Inv. Key=31 [shmnt.c 676]
ERROR => ShmCleanup: ShmDelete failed for Key: 31 [shmnt.c 747]
ERROR => DpRqIQRemove: ShmDelete [dpxxqueu.c 558]
closing connect handles (dgm + tcp)
***LOG Q05=> DpHalt, DPStop ( 13548) [dpxxdisp.c 7454]
return from clean-up function ...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Changed the extendend memory and other parameters still not able to bring it up...
Please suggest...
Thanks,
Subhash.GHi,
sappfpar result , no errors and warnings reported.
+++++++++++++++++++++++++++++++++++++++++++++++
Shared memory disposition overview
================================================================
Key: 1 Size: 2000 ( 0.0 MB) System administration
Key: 2 Size: 18828644 ( 18.0 MB) Disp. administration tables
Key: 3 Size: 178144000 ( 169.9 MB) Disp. communication areas
Key: 4 Size: 541048 ( 0.5 MB) statistic area
Key: 5 Size: 4096 ( 0.0 MB) SCSA area
Key: 6 Size: 851968000 ( 812.5 MB) ABAP program buffer
Key: 7 Size: 14838 ( 0.0 MB) Update task administration
Key: 8 Size: 134217828 ( 128.0 MB) Paging buffer
Key: 9 Size: 134217828 ( 128.0 MB) Roll buffer
Key: 11 Size: 500000 ( 0.5 MB) Factory calender buffer
Key: 12 Size: 3000000 ( 2.9 MB) TemSe Char-Code convert Buf.
Key: 13 Size: 10500000 ( 10.0 MB) Alert Area
Key: 14 Size: 58500096 ( 55.8 MB) Presentation buffer
Key: 16 Size: 22400 ( 0.0 MB) Semaphore activity monitoring
Key: 17 Size: 753764 ( 0.7 MB) Roll administration
Key: 18 Size: 458852 ( 0.4 MB) Paging adminitration
Key: 19 Size: 460000256 ( 438.7 MB) Table-buffer
Key: 30 Size: 91500 ( 0.1 MB) Taskhandler Runtime Admin
Key: 31 Size: 4206000 ( 4.0 MB) Dispatcher request queue
Key: 33 Size: 61440000 ( 58.6 MB) Table buffer, part.buffering
Key: 41 Size: 9010000 ( 8.6 MB) DB statistics buffer
Key: 42 Size: 52900592 ( 50.4 MB) DB TTAB buffer
Key: 43 Size: 87894392 ( 83.8 MB) DB FTAB buffer
Key: 44 Size: 46934392 ( 44.8 MB) DB IREC buffer
Key: 45 Size: 29526392 ( 28.2 MB) DB short nametab buffer
Key: 46 Size: 20480 ( 0.0 MB) DB sync table
Key: 47 Size: 71681024 ( 68.4 MB) DB CUA buffer
Key: 48 Size: 300000 ( 0.3 MB) Number range buffer
Key: 49 Size: 2769392 ( 2.6 MB) Spool admin (SpoolWP+DiaWP)
Key: 51 Size: 3200000 ( 3.1 MB) Extended memory admin.
Key: 52 Size: 40000 ( 0.0 MB) Message Server buffer
Key: 54 Size: 262152192 ( 250.0 MB) Export/Import buffer
Key: 55 Size: 8192 ( 0.0 MB) Spool local printer+joblist
Key: 57 Size: 1048576 ( 1.0 MB) Profil in shared Memory
Key: 58 Size: 4096 ( 0.0 MB) EnqId
Key: 1002 Size: 400000 ( 0.4 MB) Performance monitoring V01.0
Nr of operating system shared memory segments: 36
Shared memory resource requirements estimated
================================================================
Total Nr of shared segments required.....: 36
Shared memory segment size required min..: 851968000 ( 812.5 MB)
Swap space requirements estimated
================================================
Shared memory....................: 2370.2 MB
Processes........................: 468.3 MB
Extended Memory .................: 10260.0 MB
Total, minimum requirement.......: 13098.4 MB
Process local heaps, worst case..: 1908.0 MB
Total, worst case requirement....: 15006.4 MB
Errors detected..................: 0
Warnings detected................: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
We are windows 2003 with sqlserver 2005, is there any equal command as cleanipc in UNIX for windows to clean the share memory .
Thanks,
Subhash.G -
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 -
hi,
whenever i am executing this in french , the text is not coming in french language .
but in english it is coming perfectly..can some body give the reason??
at selection-screen on value-request for select1.
call function 'F4_DD_TABLE_FIELDS'
exporting
table = 'marc'
object = '*'
suppress_selection = 'X'
DISPLAY_ONLY =
importing
result = select1
exceptions
others = 1.
if not select1 is initial.
select single ddtext from
dd03t into a where
fieldname = select1
and ddlanguage in ('E','F').hi,
Execute this program this one will work correctly wat u want....
type-pools: slis.
TABLES: DFIES,X030L,DD03T.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
L_LAYOUT TYPE SLIS_LAYOUT_ALV.
types: begin of ty_dd03,
fieldname type FIELDNAME,
desc_1 type AS4TEXT,
desc_2 type AS4TEXT,
end of ty_dd03.
data: it_dd03 type standard table of ty_dd03,
wa_dd03 type ty_dd03.
DATA: BEGIN OF INTTAB OCCURS 100.
INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB.
DATA: BEGIN OF INTTAB_1 OCCURS 100.
INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB_1.
DATA:WA_INTTAB_1 TYPE DFIES.
PARAMETERS: TABLENM TYPE DD03T-TABNAME ."DDOBJNAME OBLIGATORY . "DEFAULT, "'MSEG',
parameter: p_lang TYPE TSTCT-SPRSL OBLIGATORY."DD03T-DDLANGUAGE OBLIGATORY. "DEFAULT. "'MENGE'.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = TABLENM
FIELDNAME = FIELDNM
LANGU = p_lang
LFIELDNAME = ' '
ALL_TYPES = ' '
IMPORTING
X030L_WA = WATAB
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
DFIES_TAB = INTTAB
FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
p_lang = 'EN'.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = TABLENM
FIELDNAME = FIELDNM
LANGU = p_lang
LFIELDNAME = ' '
ALL_TYPES = ' '
IMPORTING
X030L_WA = WATAB
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
DFIES_TAB = INTTAB_1
FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
X_FIELDCAT-FIELDNAME = 'FIELDNAME'.
X_FIELDCAT-TABNAME = 'IT_DD03'.
X_FIELDCAT-OUTPUTLEN = 10.
X_FIELDCAT-SELTEXT_L = 'FIELDNAME'.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-COL_POS = 1.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'DESC_2'.
X_FIELDCAT-TABNAME = 'IT_DD03'.
X_FIELDCAT-SELTEXT_L = 'FIELD DESCRIPTION'.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-OUTPUTLEN = 60.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
X_FIELDCAT-FIELDNAME = 'DESC_1'.
X_FIELDCAT-TABNAME = 'IT_DD03'.
X_FIELDCAT-SELTEXT_L = 'TRANSLATED DESCRIPTION IN FOREIGN LANGUAGE'.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-OUTPUTLEN = 60.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
LOOP AT INTTAB.
WA_DD03-FIELDNAME = INTTAB-FIELDNAME.
WA_DD03-DESC_1 = INTTAB-FIELDTEXT.
READ TABLE INTTAB_1 INTO WA_INTTAB_1 WITH KEY FIELDNAME = INTTAB-FIELDNAME.
IF SY-SUBRC EQ 0.
WA_DD03-DESC_2 = WA_INTTAB_1-FIELDTEXT.
ENDIF.
APPEND WA_DD03 TO IT_DD03.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = L_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
TABLES
T_OUTTAB = IT_DD03
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. -
Search help (PREM) for personal no. is not coming in ALV grid table control
hi experts,
Search help (PREM) for personal no. is not coming in ALV grid table control.
i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
but in output it is now showing the help.
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
ls_fcat-ref_field = 'EMP_ID'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
Then i tried to solve it using the PA0002 . ie.,
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'PA0002'.
ls_fcat-ref_field = 'PERNR'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
plz help me.
thanks.Hi
In the layout give layout-sel_mode = 'A'. and
pass 'A' to i_save exporting parameter to method set_table_for_first_display.
The same thing if you are working with function module
reuse_alv_grid_display.
Reward points for useful answer.
Venkat -
In portal after clicking the search field of table UI popup is not coming
Hi Experts,
I have a problem in portal . In "RecordWorkingTime" when I select any search field of this table Ui it is refreshing for unlimited time period and the pop up window is not coming .
Can you suggest me any possible solution for this strange problem ?
Regards,
Sumana
Edited by: sumana05 on Mar 9, 2012 10:58 AMHi
In addition to this, we also put the trace on the application. During the trace analysis we found that the RFC: HRXSS_CAT_WD_F4_SELFLD_DEFAULT doesn't seem to get called.
Not sure what could be the issue.
Maybe you are looking for
-
Email being marked as unread after a reply in 2013 Pro Plus
Starting this week, anytime I reply to an email from Outlook 2013, the email is being marked as unread. This causes my phone, ipad, and other devices to show that I have an unread message when I do not.
-
Abap quick viewer (tcode sqvi)
Hello friends, can any1 provide me with some links on abap quick viewer (tcode sqvi). links where i can learn how to use it. thnks
-
Want a Premium BC Account with 30+ Templates? I'm selling mine.
Hello, If you are interested in purchasing my Premium account and the templates that go with it, please contact me. I am switching careers and would like to sell, but I'm not in a rush so ridiculous low balling won't be considered. You can email me a
-
Receiving error msg in user's mailbox for both Outbound and Inbound IDocs
Hi, Whenever specific IDoc (Inbound/Outbound) gets failed then the user/org unit assigned in its partner profile should get those error messages in their inbox. To achieve this for Inbound Idoc I have performed following set of steps:- 1. Created an
-
Which Archlinux package to download
Hi folks, I'm prepared to download the latest version of Arch to be installed as guest on a Virtual Machine, KVM. On the download site I found; archlinux-2008.06-core-x86_64.img archlinux-2008.06-core-x86_64.iso To my understanding *img is for gues