New session was refused due to memory bottleneck
Has anyone had experience with this error and know how to go about fixing it from occuring again?
Error when processing your request
What has happened?
The URL https://____________/zpro was not called due to an error.
Note
The following error text was processed in the system DEV : New session was refused due to memory bottleneck
The error occurred on the application server onebase_DEV_00 and in the work process 0 .
The termination type was: ABORT_MESSAGE_STATE
The ABAP call stack was:
Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server onebase_DEV_00 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server onebase_DEV_00 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-https -c: 160 -u: ****** -l: E -s: DEV -i: onebase_DEV_00 -w: 0 -d: 20080822 -t: 094930 -v: ABORT_MESSAGE_STATE -e: New session was refused due to memory bottleneck
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Hi ,
I am having an issue related to the query in this thread. Can you please let me know if you any solution for this.
The following error text was processed in the system : Error occurred while sending data through the HTTP protocol.
The error occurred on the application server bwdbi_DIB_41 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: SEND_RESPONSE of program CL_HTTP_SERVER_NET============CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
tHE ABOVE IS THE error message. This occurs when we are trying to call the a URL from web report using RRI, where in this url is used for RRI.
Regards
Sudha
Similar Messages
-
ITS - New session was refused due to memory bottleneck
Hi Expert,
I have received the following error in production
New session was refused due to memory bottleneck
on
Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Is there any way to tune the memory for ITS pluginHi Expert,
I found out that the problem was due to the idle session of HTTP Plugin (browse vis SM04). After investigation, I found that HTTP Plugin session would be removed if user use "logoff" in portal env (i.e My HTTP plugin is launch vis IView in portal).
However, HTTP Plugin session would still be here if user click the "X" on the right hand top corner. The HTTP Plugin session would remain even the rdisp/plugin_auto_logout expired (i.e currently it set to default 1800).
Any clues? I need to manually removed it on SM04 in order to release the memory. -
New session was refused due to memory bottleneck - ABORT_MESSAGE_STATE
Hi,
After testing our services for sometime we are getting this message:
The following error text was processed in the system EU8 : New session was refused due to memory bottleneck
The error occurred on the application server ukapx096_EU8_00 and in the work process 0 .
The termination type was: ABORT_MESSAGE_STATE
The ABAP call stack was:
Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
We realized our memory was entirely consumed and logged off all sessions. Invalidated the cache in SITSPMON and we dont have any ITS sessions (checked in SM04). Even then the problem continues. We restarted the ICM with no positive results. We then increased the memory for ITS to 512MB and then restarted the SAP system. But the problem continues. We couldnt run any services (Even WEBGUI service for SE16).
Do we need to refresh any more caches/memories?
Regards,
RavikanthHi Edgar,
We already considered the note and configured 256MB. Later we increased it to 512MB.
SM50 Trace for the WP 0.
W Wed Jan 14 13:52:08 2009
W *** WARNING => ipl_MemAvail already 98 % memory used (itsp: highwater = 80 %) [itsplmem.c 535]
M ***LOG W0D=> NULL& [itspxx.cpp 697]
W *** ERROR => itsp_OpenSession failed rc = 1, send icf error page [itsplxx.c 878]
M ***LOG W03=> [itsplxx.c 879]
W *** ERROR => ipl_OpenSession returns 1(ITSPE_FAILURE) [itsplxx.c 881]
W *** ERROR => Raise Last error:[27 from: itspxx.cpp :699] [itsplxx.c 1216]
W *** ERROR => RaiseError(sapdext) ITS_P:27 [itspxx.cpp 699]
SM21 Trace
ITS, New user session denied due to memory bottleneck.
ITS, User session could not be created
Transaction Canceled ITS_P 027 ( )
Failed to activate authorization check for user SAPSYS
Transaction Canceled 00 560 ( SAPSYS 000 )
Please let me know if you need any other info.
Thanks for the help.
Regards,
Ravikanth -
ITS, New user session denied due to memory bottleneck
Dear Friends,
We were facing the following issues
1) when we access Shopping cart functionality (using Internal ITS)
through web and it is given error
500 SAP Internal Server Error (Error: New session was refused due to
memory bottleneck). For every error in web, we could find the entry
in SM21 as mentioned below,
10:39:35 DIA 000 300 PHG02777 W0 D ITS, New user
session denied due to memory bottleneck.
10:39:35 DIA 000 300 PHG02777 W0 3 ITS, User
session could not be created
10:39:35 DIA 000 300 PHG02777 D0 1 Transaction
Canceled ITS_P 027 ( )
2) ST22 Dumps: SYSTEM_NO_SHM_MEMORY
We have followed SAP note #Note 1232973 - SYSTEM_NO_SHM_MEMORY short
dump and increased the parameter abap/shared_objects_size_MB from 320
to 640.After that we have not any SYSTEM_NO_SHM_MEMORY error and we
monitored in SHMM transaction about the free memory and
available. Before this change, we used to clean manually the ICF shared
memory when it got accumulated with high value. This implies that the
problem regarding SYSTEM_NO_SHM_MEMORY is solved.
But still we were facing issues mentioned in point no 1). When we have
more than 100 sessions. This is occurring more from 8:00 CET to 12:00 CET
(peak load)
Later we changed the value of abap/shared_objects_size_MB from 640 to
1664 and also we reduced em/initial_size_MB from 12Gb to 11Gb (since we
are not using full amount of em initial size).
****Important *****
after this change we are facing more often related to point no 1).
Moreover, We could find the following in the trace file of W0 as,
Trace file of W0 is showing,
Tue Apr 14 12:38:42 2009
WARNING => ipl_MemAvail already 80 % memory used (itsp:
highwater = 80 %) [itsplmem.c 534]
***LOG W0D=> NULL& [itspxx.cpp 697]
ERROR => itsp_OpenSession failed rc = 1, send icf error page
[itsplxx.c 878]
***LOG W03=> [itsplxx.c 879]
ERROR => ipl_OpenSession returns 1(ITSPE_FAILURE) [itsplxx.c
881]
ERROR => Raise Last error:[27 from: itspxx.cpp :699]
[itsplxx.c 1214]
ERROR => RaiseError(sapdext) ITS_P:27 [itspxx.cpp 699]
Since the parameter itsp/max_eg_mem_percent was set to 80.
It is not clear that from which memory layout the eror is occuring.
According to note :Note 785365 - Extended Global Memory (EG) increased
from 2 GB to 8 GB
we could see that The size of the EG is obtained from the total of the
parameter values em/global_area_MB and abap/shared_objects_size_MB
We would like you check the system and update us about the memory
layout defined in our system, more specically em/global_area_MB (we are
planning to increase the value according to note SAP Note 742048) from
896 (current) to 1200 (10 % of em/initial_size_MB) and reduce the
abap/shared_objects_size_MB from 1664 to 640 .
Any help will be highly appreciated.
Thanks
Venkatto 1)
You can monitor the ITS memory usage in transaction SITSPMON, but you are on the right track with increasing em/global_area_MB.
If you see its sessions lasting for a long time, then you might need to adapt the session timeout to save memory (TIMEOUT of your icm server port). Have a look at note [885580 - Integrated ITS: Configuration Parameters|https://service.sap.com/sap/bc/bsp/spn/sapnotes/index2.htm?numm=885580] for details.
Regards, Michael -
New session rejected due to memory bottleneck in testing proxy2proxy
Hi all!
i am testing abap proxy2proxy on the client 105 in help varient 5 of simple use cases docu.
even though i got sending successful from SXIPATT1 on the client 105, i got the following error.
my server has RAM 2GB and have four client(100,105,106,107), and only i use for testing, NOT another person, so i do not think memory bottleneck issue.
checked list.
1. SXMB_MONI, i could see inbound message(SENDER) <b>only.</b>
from 105 to XI, no problem I thought, but very strange there, becasue there is only inbound message(sender).
2. status flag on sxmb_moni
Message Recorded (Commit follows) (TO BE DELIVERED)
does anyone experience such issue?
do i have to up physical memory?
Error when processing your request
What has happened?
The URL http://sapxi.hh.net:8000/sap/bc/gui/sap/its/webgui/! was not called due to an error.
Note
The following error text was processed in the system XID : <b>New session rejected due to memory bottleneck</b>
The error occurred on the application server SAPXI_XID_00 and in the work process 0 .
The termination type was: ABORT_MESSAGE_STATE
The ABAP call stack was:
Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
Form: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system XID in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server SAPXI_XID_00 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server SAPXI_XID_00 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http-c:105-u:XISUPER -l:E-s:XID-i:SAPXI_XID_00 -w:0-d:20060410-t:195211-v: ABORT_MESSAGE_STATE-e:
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Teamdid you have this entries in SXMB_ADM of XI server
catgory:RUNTIME parameter:ENGINE_TYPE value: HUB
catgory:RUNTIME parameter:IS_URL value:http://server:port/sap/xi/engine?type=entry -
New session rejected due to memory bottleneck
Dear All,
I have creating and working on BSP aplication that calls the webGui, ie abap trnasaction on internet explorer.It worked onced but then i get the error.
New session rejected due to memory bottleneck :
The URL http://XXXXXX.YYYYYY:8000/sap/bc/gui/sap/its/webgui/! was not called due to an error.
In Sicf the service for Its/webgui is activated, i deactivated and activated it again, deleted local cokkies, but no success.
Can any one suggest a way out.
The Error in detail is:-
The following error text was processed in the system : New session rejected due to memory bottleneck
The error occurred on the application server XXXXXX and in the work process 0 .
The termination type was: ABORT_MESSAGE_STATE
The ABAP call stack was:
Function: ICF_ATTACH_ITS_PLUGIN of program SAPLHTTP_RUNTIME
Form: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
Regards,
Anirban.Hi,
Try running the <b>program RSMON000_ALV</b> instead.
I am not in basis either but :
- if it is really an insufficient number of Work process
- if it is not a one-time event (meaning, this problems occurs repeatedly)
Then the only solution I can think of is increasing them (and take care to add CPU and memory accordingly)
You should check with your basis guys.
Also, check the <b>transaction ST22</b> for more explanations about the possible Dump that got created.
Best regards,
Guillaume -
Hello everyone,
Somebody knows about this dump:
New session was refused due to memory bottleneck
It's happening when I try log on the system.
This dumb doesn't make a log in the ST22
What I have to do?
Regards,
Pedro MarquesHi,
This error is definitely due to insufficient memory. But I will give you a solution though not a permanent one , will help you carry your activities using SRM system. Using transactionSITSPMON go to template and mime cache tab and invalidate template caches by selecting on this application server and then invalidate mime cache by clicking system wide.
Regards,
RRK.
Please do reward points if it helps you. -
Hello everyone,
I have the following scenario:
We're using "Oracle SOA Suite 11g 11.1.1.7.0" (Patched w/ 17893896) mainly for a BPM/Human workflow composite. Former, we were having the error bellow:
<Mar 16, 2015 1:13:03 PM BRT> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Verification Service cannot resolve user identity. User weblogic cannot be found in the identity repository. Workflow Context token cannot be null in request.
ORABPEL-30511
When that error ocurred, no one was able to use the system (BPM/Human Workflow).
I opened an SR, and after some analysis from the support, it recommended me to set up "virtualize=true" in EM, and restarting the domain. Then it started logging the following:
connection to ldap://[10.200.10.57]:7001 as cn=Admin.
javax.naming.NamingException: No LDAP connection available to process request for DN: cn=Admin.
Looking up on support KB, I found this note Doc ID 1545680.1 and increased from Max size of Connection Pool 10 to 200. That did work successfully! Problem now is that the <SERVER>_diagnostic.log is being filled up with the following error:
[2015-03-31T16:03:46.421-03:00] [soa_server2] [ERROR] [] [oracle.soa.services.workflow.verification] [tid: [ACTIVE].ExecuteThread: '19' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: e0194e38aa6c9a2f:39fc1ff9:14c5def5247:-8000-00000000000a5653,0] [APP: soa-infra] <.> validateContextToken: workflow session was not found for given context. Create a new workflow session with token=51490173-e3d0-41dd-ae99-983915aa8454;;G;;Z+P7Oe9ABnoTUQD9ECryEW2l0/8yRcqPDyZsOWBCuzMmRgA3Qsj601TxmWQ87z2MjuwW5AH+KzgjIwkPmhJFdpc1FrE6Y/MrN1bxIDHJWu2/zP3iSNwKD07hRrh/U37Ea0TvaQyuaHJIog9y3Ptmzw==
One important point is that we're using only the embedded WLS ldap. So I am not 100% sure if we should be using the virtualize flag=true, once all docs I read point out that this should be done when using multi-ldap providers.
Also, I only got this error in the "diagnostic.log".
Although, no user has complained about using the system, I really want to work it out. Anyone has any suggestions?
Thanks in advance!I have moved your thread from Certification to SOA Suite to get proper assistance.
Thanks,
Lisa -
I cannot find my photos or contacts. Help how do I get them back after a iclound backup was done due to needed to get a new iphone. HELP
I believe I had leopard and I was having issues getting errors of system not being supported. I contacted Apple and was advised I needed to upgrade to snow leopard. My laptop is from 2009 and I haven't done anything to it till now. The apple rep also stated I should do a fresh install when putting snow leopard on so my laptop would run faster. Apple rep told me to get a external hard drive to put my info on it so the fresh install would reset everything to like it was brand new. I had someone help me with getting everything on the EHD.. doing the right format and such and then once that was done I put in the CD for snow leopard and hit install. Which brings me to now, with everything but my pictures. I have the EHD plugged in... now what? What do I do? I have looked in the EHD in iphoto and it was all standard images *not my pictures but images of a check mark or an arrow again not actual pictures. I don't see a folder pictures and i looked for images and found nothing. I have Applications, Included Free Designs, Library, System, User Guides and Information and Users, those are my options and non of those have a "pictures"
I have iPhoto '09 version 8.1.2 & Mac OS X version 10.6.3 -
Please help-I was just informed I cant activate my CS software through Adobe?!!! What a pisser-I lost my desktop to a virus, I got a new one and refuse to ever go online with it. I put @Photoshop in, it wants an authorization code that Adobe says "CS is too old so please go to our forum for help"... So I am here Ladies and Gentlemen. I really need help on how to reactivate my software and without the use of the internet (last time I tried online, ended up doing over the phone which is no longer offered...) that cost me several hundred to begin with-I am upset @Adobe won't activate it-why? I don't know. But please, if someone out there knows what I can do to overcome this, I would be very grateful. Thank you for all help and taking the time to reply.
Peace, John Sheait's your lucky day. you can upgrade to ps cs2 free.
Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3 -
AOL host was unable to start a new session
I really want to thank u barry for taking ur busy time to help me, i did like u told me download it aol 10.3.6, and delete it the previous version. and still is giving me a AOL host was unable to start a new session. maybe i missed something.
I have a speedstream ss2624 router, my safari is working perfectlly fine its just my aol. do i have to get even an older version of aol?
please guys i need a serious help, i figure must of u are very busy, but i would really appreciated.
thanks dudesWhat kind of computer are you connecting with? Imac, powerbook, other?
I am having a similar problem (same error) on a powerbook, but the problem is in my office (local network - sdsl router), and not at home (cable modem, wireless/4 port router) installed. With my office, I am having all sorts of other problems connecting to the network. I can only connect wirelessly, so I suspect that the AOL problem is linked to a larger network connectivity issue which I believe is ethernet incompatibility with the office's router. Best thing to do is take the client's machine to another location and see if it connects ok. If so, your client might be having some networking issues in his local space. -
Hi
RDP connection over server 2008 R2 standard, if I disconnect and connect the session, which was currently working will not be avialable but a new session starts.
what features should I add and how to configure so that if connection is lost the user should see the same session when they connect back.
kind Regards,
JayanthHi,
Please enable this policy and try again.
Restrict Users to a Single Session
http://technet.microsoft.com/en-us/library/cc754762.aspx
Thanks.
Jeremy Wu
TechNet Community Support -
Choice between start new session and restore previous session
I have refused to update firefox since 2.0.0.14. That's mid 2008. The reason? Because EVERY update I have seen has a critical flaw and I am sick of it never having been addressed. Oh, I have tested it many times. I am impatient in general. I have allowed it to update just now for instance with the naive hope that MAYBE you'd put it back the way it should be, and NOPE, you STILL have the critical epic fail that you introduced some time after 2.0.0.14, and I then had to uninstall firefox and reinstall my copy of 2.0.0.14 and restore my passwords and bookmarks from the key3.db and bookmarks.htm files (which also aren't compatible with the later versions, and that's bad too since it was more efficiently done and more comprehensible and more compatible with common knowledge that way, what the hell is a .json file anyway????), and I am sick of it. It's getting harder and harder to use 2.0.0.14, things constantly say snide things like 'upgrade (downgrade) to a modern browser, your browser is not supported', 'you are using md5 for certificate validation, are you insane?', that sort of thing, and things often don't work right, but it is WORTH every bit of it to avoid the critical epic fail.
Ok, enough suspense. That critical epic fail is this: when I start firefox after the previous session crashed (or was killed by the task manager), it does NOT give the NICE CHOICE 2.0.0.14 does between "begin new session" and "restore previous session". It automatically restores the previous session. Do you have any idea how many times I have gone to a webpage only to observe it is infected with a virus which it tries to put on my computer, or just a horrible page with a horrible script that seems to involve an infinite loop or at least something incredibly excessive and inefficiently coded that totally eats up the CPU processing power and I BARELY managed to KILL firefox with the task manager? Do you think I want it to go right back to loading that page when I start firefox again? Do you have the BATSH*T INSANE notion that I should always WANT to restore my previous session? Well I DON'T! I killed it with good reason in the first place. 100% of the time mozilla gets killed by the task manager and 90% of the time it crashes, I don't WANT to restore my previous session. Is there some secret hidden feature representing providing this choice that 2.0.0.14 provided that is by default DISABLED that I can maybe enable, or do I have to continue using 2.0.0.14 and watch as more and more and more things refuse to work with it?
Also, you need to have the "stop" button within reach of the bookmarks and the left side of the address bar, not on the far right of the screen. And I'd also rather not have it be in the same place as the refresh button, though I understand the justification for having the stop button become the refresh button. Is there any way I can also have the "forward, back, stop, refresh" buttons all together and in the most convenient place as they were in 2.0.0.14 while I'm at it?Set the pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox.
*http://kb.mozillazine.org/browser.sessionstore.max_resumed_crashes
That will allow you to deselect the tab(s) that you do not want to reopen, but will allow to reopen other tabs.
See:
* http://kb.mozillazine.org/Session_Restore#Restoring_a_session_after_a_crash
* http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes -
Report (uses LDB's) giving dump due to memory problem
Hi,
I have a report which is giving dump in production due to memory problem.
Memory is increased from basis part,but still getting same error.
the report uses Logical DataBases.
Can anyone suggest solution to solve this problem.
regards
MallikHi Amit,
thanks for ur quick reply and ur idea "make changes in development and write the logic to read records in chunks".
I have n't worked on LDB's till now.So i Don't know how I can read the data in chunks from LDB's.
Can u Plz give some idea how to read data in chunks.
Iam also sending the code,if possible ,plz go thru it and give me some idea.
Hope u will help me.
CODE.
REPORT ZAROP028
ABLES: PROJ, " Project definition
PRPS_R, " WBS element
PRPS, " WBS elements
TJ02T, " System Status Values
TCJ1, " Project Types
JEST, " Active System Status
COSP1, " cost totals - external postings
COSS1, " cost totals - internal postings
COVP11, " Line Items by Prd & Doc Header
COVP12, " Line Items by Prd & Doc Header
BHDGD, " Page heading table.
AUFK, " Order Master Data for WBS (LDB)
ANEP, " Asset line item
COBRB, "Distribution Rules Settlement Ru
SETHIER, "Hierarchy Structure
TKA02, "Controlling Area Assignment
CEPC, "Profit Center Master Data
PSDYPD, "Dummy struct for GET proj late
PSDYPR, "Dummy struct for GET PRPS_R late
PSDYNP. "Dummy struct for GET AUFK late
CONSTANTS:
C_E TYPE C VALUE 'E',
C_I TYPE C VALUE 'I',
C_N TYPE C VALUE 'N',
C_X TYPE C VALUE 'X',
C_Y TYPE C VALUE 'Y',
C_NE(2) TYPE C VALUE 'NE',
C_EQ(2) TYPE C VALUE 'EQ',
C_USD(3) TYPE C VALUE 'USD',
C_04(2) TYPE C VALUE '04',
C_I0046(5) TYPE C VALUE 'I0046'
various working storage
DATA:
W_TXT04(4) TYPE C. " make status uppercase
DATA: ACTIVE(1) TYPE C VALUE 'A', " type for status_flag
INACTIVE(1) TYPE C VALUE 'I', " type for status_flag
STATUS_FLAG(1) TYPE C VALUE 'I', " wbs active or inactive?
INACTIVEDT LIKE SY-DATUM, " inactive date for wbs
REC_FLAG TYPE C VALUE 'N', " records retrieved?
DAYS_INACTIVE TYPE I, " days wbs has been inac
W_LOWINACT TYPE I, " smallest inactive days
WBS_CNT TYPE I, " cnt for wbs in status
W_AUC_COST TYPE P DECIMALS 2, " unsettled auc cost
W_VNAME LIKE PRPS_R-VNAME. " venture number storage
DATA: BEGIN OF ITAB OCCURS 0, "MELI-5F2KMH
COMPCODE LIKE PROJ-VBUKR, " company code
PLANT LIKE PROJ-WERKS, " plant
PROJECT LIKE PROJ-PSPID, " project
NAME LIKE PROJ-POST1, " project description
DINACT TYPE I, " days proj inactive
PRCTR LIKE PROJ-PRCTR, " profit center
SETID LIKE SETHIER-SETID, " level 2 pc hier
DESCRIPT LIKE SETHEADERT-DESCRIPT,
VERNA LIKE PROJ-VERNA, " person responsible
AUC TYPE P DECIMALS 2, " AUC unsettled amount
END OF ITAB.
DATA: BEGIN OF I_INACT OCCURS 0,
STAT LIKE JEST-STAT,
INACT LIKE JEST-INACT,
END OF I_INACT.
DATA: EQ_FLAG TYPE C, " system status flag
NE_FLAG TYPE C. " system status flag
TYPES: BEGIN OF T_COSTS,
PSPID LIKE PROJ-PSPID,
BUDAT LIKE COVP11-BUDAT,
END OF T_COSTS.
DATA: I_PROJ LIKE PROJ OCCURS 0 WITH HEADER LINE,
I_PRPS_R LIKE PRPS_R OCCURS 0 WITH HEADER LINE,
I_COSTS TYPE T_COSTS OCCURS 0 WITH HEADER LINE.
DATA: W_RECORDS TYPE I.
DATA: FOUND_FLAG TYPE C. " CHAD-4PRPDE
DATA: BEGIN OF I_HIER OCCURS 0. "FEAT-5BNRRP
INCLUDE STRUCTURE SETHIER. "FEAT-5BNRRP
DATA: END OF I_HIER. "FEAT-5BNRRP
RANGES: R_TJ02T FOR TJ02T-ISTAT.
DATA: W_LVL2 LIKE SETHIER-SETID. "MELI-5F2KMH
SELECTION-SCREEN BEGIN OF BLOCK PROJECT WITH FRAME TITLE TEXT-B01.
PARAMETERS: P_BUDAT LIKE COVP11-BUDAT,
DAYINACT(3) TYPE N DEFAULT '090'.
SELECTION-SCREEN SKIP. "FEAT-5BNRRP
PARAMETERS: P_PC-SET LIKE CEPC-KHINR OBLIGATORY "FEAT-5BNRRP
DEFAULT 'SCH_STREAM'. "FEAT-5BNRRP
SELECTION-SCREEN END OF BLOCK PROJECT.
SELECTION-SCREEN BEGIN OF BLOCK SORT WITH FRAME TITLE TEXT-B02.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(13) TEXT-C01.
SELECTION-SCREEN POSITION 15.
PARAMETERS: P_PLANT RADIOBUTTON GROUP SORT DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(13) TEXT-C03. "FEAT-5BNRRP
SELECTION-SCREEN POSITION 15.
PARAMETERS: P_PRCTR RADIOBUTTON GROUP SORT. "FEAT-5BNRRP
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(13) TEXT-C04.
SELECTION-SCREEN POSITION 15.
PARAMETERS: P_DAYS RADIOBUTTON GROUP SORT.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK SORT.
AT SELECTION-SCREEN OUTPUT.
PERFORM USER_PARM_INIT.
AT SELECTION-SCREEN.
PERFORM CHECK_PROJ_CRITERIA.
START-OF-SELECTION.
PERFORM BUILD_PC_HIER USING P_PC-SET.
Project Definition *
GET PROJ.
MOVE-CORRESPONDING PROJ TO I_PROJ. "MELI-5F2KMH
APPEND I_PROJ. "MELI-5F2KMH
CLEAR I_PROJ.
WBS element table
GET PRPS_R.
MOVE-CORRESPONDING PRPS_R TO I_PRPS_R.
APPEND I_PRPS_R.
CLEAR I_PRPS_R.
GET all order and cost objects associated with order and elements
GET AUFK.
GET COSP1.
CHECK COSP1-WRTTP EQ C_04. " check if value type '04'
Get last date that the wbselement was updated and determine status
GET COVP11.
MOVE PROJ-PSPID TO I_COSTS-PSPID.
MOVE COVP11-BUDAT TO I_COSTS-BUDAT.
APPEND I_COSTS.
CLEAR I_COSTS.
Loop through Internal cost statements
GET COSS1.
CHECK COSS1-WRTTP EQ C_04. " if value type is 04
Get last date that the wbselement was updated and determine status
GET COVP12.
MOVE PROJ-PSPID TO I_COSTS-PSPID.
MOVE COVP12-BUDAT TO I_COSTS-BUDAT.
APPEND I_COSTS.
CLEAR I_COSTS.
END-OF-SELECTION.
PERFORM BUILD_TABLE.
DELETE ITAB WHERE DINACT < DAYINACT.
DESCRIBE TABLE ITAB LINES W_RECORDS.
IF W_RECORDS = 0.
MESSAGE I024.
ENDIF.
PERFORM WRITE_REPORT.
FORM CHECK_PROJ_CRITERIA *
This form verifies correct selection criteria has been entered from *
the selection screen inputs. If incorrect data has been entered the*
valid information messages are displayed. *
FORM CHECK_PROJ_CRITERIA.
check for either posting date or inactivity criteria but not both
IF NOT P_BUDAT IS INITIAL AND NOT DAYINACT IS INITIAL.
MESSAGE E119.
ENDIF.
IF NOT DAYINACT IS INITIAL. "check s/o day inactive
IF NOT DAYINACT <= 998.
MESSAGE E018.
ELSE.
INACTIVEDT = SY-DATUM - DAYINACT.
ENDIF.
if days inactive is initial set INACTIVEDT using the posting date
ELSE.
INACTIVEDT = P_BUDAT.
ENDIF.
ENDFORM. " CHECK_PROJ_CRITERIA
FORM GET_AUC_COSTS *
This form retrieves AUC costs for records based on AUFK2 where they *
meet project criteria. This pulls the unsettled amount on a AUC as *
a settlement receiver. *
FORM GET_AUC_COSTS USING F_OBJNR F_BUKRS.
CONSTANTS:
C_SETLEMENT_ANNUAL LIKE COBRB-PERBZ VALUE 'JHR', "Annual Settlement
C_DEP_AREA_STD LIKE ANEP-AFABE VALUE '01'. "Std depreciation
DATA: L_ANLC LIKE ANLC OCCURS 0 WITH HEADER LINE,
L_ANLCV LIKE ANLCV OCCURS 0 WITH HEADER LINE,
BEGIN OF L_COBRB OCCURS 0, "SRIN-6ZNEAR
ANLN1 LIKE COBRB-ANLN1,
ANLN2 LIKE COBRB-ANLN2,
END OF L_COBRB,
F_H_COST TYPE P DECIMALS 2.
SELECT ANLN1 ANLN2 FROM COBRB
INTO TABLE L_COBRB " SRIN-6ZNEAR
WHERE OBJNR = F_OBJNR
AND PERBZ = C_SETLEMENT_ANNUAL.
IF SY-SUBRC NE 0. " gary-463qbd
EXIT. " gary-463qbd
ENDIF. " gary-463qbd
LOOP AT L_COBRB. " gary-463qbd
CLEAR: F_H_COST.
SELECT SINGLE * FROM ANLC
INTO L_ANLC
WHERE BUKRS = F_BUKRS AND
ANLN1 = L_COBRB-ANLN1 AND
ANLN2 = L_COBRB-ANLN2 AND
GJAHR = SY-DATUM(4) AND
AFABE = C_DEP_AREA_STD AND
ZUJHR = '0000' AND
ZUCOD = '0000'.
IF SY-SUBRC = 0.
CALL FUNCTION 'FI_AA_VALUES_CALCULATE'
EXPORTING
I_ANLC = L_ANLC
IMPORTING
E_ANLCV = L_ANLCV.
F_H_COST = L_ANLCV-BCHWRT_LFD.
ENDIF.
ADD: F_H_COST TO W_AUC_COST.
ENDLOOP. " gary-463qbd
ENDFORM. " GET_AUC_COSTS
FORM CHECK_INACTIVE_DATE *
This form checks the computed inactive date based on the formal *
parameter DAYS_INACTIVE. If DAYS_INACTIVE is more current than the *
current lowest inactive date W_LOWINACT then W_LOWINACT is replaced *
with this value. *
FORM CHECK_INACTIVE_DATE USING DAYS_INACTIVE.
IF DAYS_INACTIVE < W_LOWINACT.
MOVE DAYS_INACTIVE TO W_LOWINACT.
ELSEIF W_LOWINACT EQ 0.
MOVE: DAYS_INACTIVE TO W_LOWINACT,
W_LOWINACT TO ITAB-DINACT.
ENDIF.
ENDFORM. " CHECK_INACTIVE_DATE
FORM build_table *
collect fields to the internal table ITAB *
FORM BUILD_TABLE.
SORT I_COSTS BY PSPID ASCENDING BUDAT DESCENDING.
LOOP AT I_PROJ.
CLEAR W_AUC_COST.
READ TABLE I_COSTS WITH KEY PSPID = I_PROJ-PSPID
BINARY SEARCH.
IF SY-SUBRC = 0.
ITAB-DINACT = SY-DATUM - I_COSTS-BUDAT.
ELSE.
ITAB-DINACT = SY-DATUM - I_PROJ-ERDAT.
ENDIF.
LOOP AT I_PRPS_R WHERE PSPHI = I_PROJ-PSPNR AND
BELKZ = 'X'.
IF NOT I_PRPS_R-IMPRF IS INITIAL.
PERFORM GET_AUC_COSTS USING I_PRPS_R-OBJNR
I_PRPS_R-PBUKR.
ELSE.
CONTINUE.
ENDIF.
ENDLOOP.
ITAB-COMPCODE = I_PROJ-VBUKR.
ITAB-PLANT = I_PROJ-WERKS.
ITAB-PROJECT = I_PROJ-PSPID.
ITAB-NAME = I_PROJ-POST1.
ITAB-PRCTR = I_PROJ-PRCTR.
ITAB-VERNA = I_PROJ-VERNA.
ITAB-AUC = W_AUC_COST.
IF ITAB-DINACT > DAYINACT.
PERFORM GET_HIER_INFO.
ENDIF.
APPEND ITAB.
CLEAR ITAB.
ENDLOOP.
ENDFORM. " BUILD_TABLE
FORM STATUS_CHECK *
Checks the active status of the project definition for the *
parameter values assigned. *
FORM STATUS_CHECK USING F_OBJNR.
begin of GARY-463QBD
CLEAR: I_INACT.
REFRESH: I_INACT.
MOVE: C_N TO EQ_FLAG,
C_Y TO NE_FLAG.
retrieve status for a given record
SELECT STAT INACT
INTO TABLE I_INACT
FROM JEST
WHERE OBJNR EQ F_OBJNR AND
INACT NE C_X.
sort internal status entered by user
SORT R_TJ02T BY OPTION DESCENDING.
check all current object statuses meet user entered criteria
LOOP AT R_TJ02T WHERE OPTION EQ C_NE.
check for user selected options
READ TABLE I_INACT WITH KEY STAT = R_TJ02T-LOW.
IF SY-SUBRC EQ 0.
MOVE C_N TO NE_FLAG.
EXIT.
ENDIF.
ENDLOOP.
LOOP AT R_TJ02T WHERE OPTION EQ C_EQ.
check for user selected options
READ TABLE I_INACT WITH KEY STAT = R_TJ02T-LOW.
IF SY-SUBRC EQ 0.
MOVE C_Y TO EQ_FLAG.
EXIT.
ENDIF.
ENDLOOP.
check for no statuses entered as EQ option
LOOP AT R_TJ02T WHERE OPTION EQ C_EQ.
EXIT.
ENDLOOP.
if so move c_y to eq_flag
IF SY-SUBRC NE 0.
MOVE C_Y TO EQ_FLAG.
ENDIF.
if both eq_flag or ne_flag are true(c_y) move true to valid_flag
IF ( EQ_FLAG EQ C_N OR
NE_FLAG EQ C_N ).
REJECT 'PRPS_R'.
ENDIF.
end of GARY-463QBD
ENDFORM. " STATUS_CHECK
Form WRITE_REPORT
FORM WRITE_REPORT.
IF P_PLANT EQ 'X'.
SORT ASCENDING BY ITAB-BUSAREA "FEAT-5BNRRP
SORT ITAB ASCENDING BY PLANT
PROJECT.
ELSEIF P_PRCTR EQ 'X'.
SORT ITAB ASCENDING BY PRCTR "FEAT-5BNRRP
PROJECT.
ELSE.
SORT ITAB ASCENDING BY DINACT
PROJECT.
ENDIF.
FORMAT COLOR COL_BACKGROUND INTENSIFIED ON.
"MELI-5F2KMH
LOOP AT ITAB. "MELI-5F2KMH
WRITE: / ITAB-COMPCODE,
9(4) ITAB-PLANT,
17(12) ITAB-SETID,
33(40) ITAB-DESCRIPT,
77(10) ITAB-PRCTR,
91(24) ITAB-PROJECT,
119(40) ITAB-NAME,
163(25) ITAB-VERNA,
192(15) ITAB-AUC CURRENCY C_USD,
211(8) ITAB-DINACT.
ENDLOOP.
ENDFORM. " WRITE_REPORT
Form USER_PARM_INIT
Initializes user parameter settings
FORM USER_PARM_INIT.
ENDFORM. " USER_PARM_INIT
At top of every page, generate Amoco-standard header.
TOP-OF-PAGE.
MOVE: '0' TO BHDGD-INIFL,
SY-LINSZ TO BHDGD-LINES,
SY-UNAME TO BHDGD-UNAME,
SY-REPID TO BHDGD-REPID,
SY-TITLE TO BHDGD-LINE1,
SPACE TO BHDGD-DOMAI,
SPACE TO BHDGD-SEPAR,
SPACE TO BHDGD-MIFFL.
IF P_PLANT EQ 'X'.
MOVE TEXT-H01 TO BHDGD-LINE2.
ELSE.
MOVE TEXT-H03 TO BHDGD-LINE2. "FEAT-5BNRRP
ENDIF.
temporarily clear sy-mandt to remove "europe" from header "FEAT-5BNRRP
DATA: W_MANDT LIKE SY-MANDT.
BHDGD-BUKRS = SPACE.
W_MANDT = SY-MANDT.
CLEAR SY-MANDT.
FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
PERFORM BATCH-HEADING(RSBTCHH0).
FORMAT RESET.
reset sy-mandt "FEAT-5BNRRP
SY-MANDT = W_MANDT.
PERFORM PGH_WRITE_HEADING USING TEXT-003 INACTIVEDT. "MELI-5F2KMH
SKIP 1.
ULINE.
write heading info
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE: /1(5)'CCode',
9(5)'Plant',
17(12)'Level 2 Node',
33(40)'Level 2 Node Description',
77(10)'Profit Ctr',
91(18)'Project Definition',
119(19)'Project Description',
163(18)'Person Responsible',
192(15)' AUC Unsettled',
211(13)'Days Inactive'.
end FEAT-5BNRRP
BEGIN FEAT-5BNRRP NEW FORMS
FORM BUILD_PC_HIER
FORM BUILD_PC_HIER USING SETID.
DATA: W_SETID LIKE SETHIER-SETID,
W_NEWSETID LIKE SETHIER-SETID.
CONCATENATE '0H' SETID INTO W_SETID.
CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
EXPORTING
SHORTNAME = W_SETID
TABNAME = 'GLPCT'
SETCLASS = '0106'
SUPRESS_POPUP = 'X'
OLD_SETID = W_NEWSETID
IMPORTING
NEW_SETID = W_NEWSETID.
CALL FUNCTION 'G_SET_TREE_IMPORT'
EXPORTING
CLIENT = SY-MANDT
LANGU = SY-LANGU
SETID = W_NEWSETID
TABNAME = 'GLPCT'
TABLES
SET_HIERARCHY = I_HIER
EXCEPTIONS
SET_NOT_FOUND = 1
ILLEGAL_FIELD_REPLACEMENT = 2
ILLEGAL_TABLE_REPLACEMENT = 3
OTHERS = 4.
CLEAR I_HIER.
ENDFORM.
FORM GET_HIER_INFO
FORM GET_HIER_INFO.
DATA: W_SETID LIKE SETHIER-SETID,
W_KHINR LIKE CEPC-KHINR,
W_INDEX TYPE I.
CLEAR: W_SETID,
W_KHINR,
W_INDEX.
DETERMINE PROFIT CENTER NODE
SELECT SINGLE KHINR
FROM CEPC
INTO W_KHINR
WHERE PRCTR EQ ITAB-PRCTR.
CONCATENATE '0106' I_PROJ-VKOKR W_KHINR
INTO W_SETID.
READ TABLE I_HIER WITH KEY
SETID = W_SETID.
IF SY-SUBRC EQ 0.
W_INDEX = SY-TABIX.
DO.
READ TABLE I_HIER INDEX W_INDEX.
IF W_INDEX = 0.
ITAB-SETID = 'Not Found'.
EXIT.
ENDIF.
IF I_HIER-LEVEL = 1.
ITAB-SETID = I_HIER-SETID+8(12).
ITAB-DESCRIPT = I_HIER-DESCRIPT.
EXIT.
ENDIF.
IF I_HIER-LEVEL = 2.
ITAB-SETID = I_HIER-SETID+8(12).
ITAB-DESCRIPT = I_HIER-DESCRIPT.
EXIT.
ENDIF.
W_INDEX = W_INDEX - 1.
ENDDO.
ELSE.
ITAB-SETID = 'Not Found'.
ENDIF.
ENDFORM.
END FEAT-5BNRRP NEW FORMS
*& Form PGH_WRITE_HEADING WR MELI-5F2KMH
FORM PGH_WRITE_HEADING USING L_V1 L_V2.
DATA: L_LINSZ LIKE SY-LINSZ.
DATA: L_TITLEL LIKE SY-TABIX.
DATA: L_START LIKE SY-TABIX.
DATA: L_DATE LIKE SY-DATUM.
DATA: L_FORMATTED_DATE(10) TYPE C.
DATA: L_TITLE(27) TYPE C.
MOVE L_V2 TO L_DATE.
WRITE L_DATE TO L_FORMATTED_DATE.
CONCATENATE L_V1 L_FORMATTED_DATE INTO L_TITLE
SEPARATED BY SPACE.
L_LINSZ = SY-LINSZ.
L_TITLEL = STRLEN( L_TITLE ).
L_START = ( L_LINSZ / 2 ) - ( L_TITLEL / 2 ) - 2.
NEW-LINE.
POSITION L_START.
WRITE: L_TITLE.
regards
Mallik -
New session is creating in ECC on each new window open
Hi Experts,
I have configured Transaction iViews to call the t-codes in ECC. I have only one portal user logged in one machine, but on right clicking on the link opening the new window without re login.
But in the AL08 transaction I could see number of sessions created (equivalent to number of windows opened) which is creating the memory bottleneck .
Is there any way either restricting in opening the new window, or limit the number of sessions per user in EP/ECC.
Thanks
Murthy.Hi Puneet,
Thanks for the reply.
This note says to create service of type Web GUI. So for for what ever the Transaction iView I have, I have to create services first and then service iViews for all.
Instead of that either we can change the standard WebGUI service, so for all the Transaction iView of type Web GUI Html these properties applies, or if we can create a new service and specify the transaction iView to use the newly created service instead of WebGUI. But I don't know where to set this.
For now I have added the below parameter to the WebGUI.
~WEBGUI =1
~THEME = sl
~RECORD= 1
~WEBGUI_SIMPLE_TOOLBAR = 160
~SINGLETRANSACTION= 1.
Through this it will not let me open the window with right click.
I haven't log any OSS message yet.
Thanks
Murthy
Maybe you are looking for
-
Query tuning help required:
I have a query which is taking long time. Is there any way I can improve the query to shorten its time of execution. I have given below the details of it. SQL> set pagesize 1000; SQL> set linesize 170; SQL> alter session set events '10046 trace name
-
Itunes 10.5 freezing and taking ages to back up
whan im backing up my ipod touch 4g to itunes it freezes or stops and wont turn off im usind windows 7 and intel pentium plz help it will eventually sync but i have to turn my computer off like 5 times and it is very annoying i have tried to run it a
-
Hi, Our requirement is to send mails, the content of which will be stored in SO10. However in SO10 the tex can be stored in various formats (bold, underlines etc.) How do we capture this information and send via mails? Will the function module \ SO_
-
Serial number invalid since this morning
Since this morning my Adobe CS 6 Master Collection serial number is suddenly invalid. So all my Suite programs start up in a trial version... In "My adobe"> "my products" it does display the serial# under "products in use" but when I enter this it sa
-
while partitioning, after clicking install i am getting the message..."The installer disc could not be found." when i ve already put in the dvd with windows 7 in it...