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 Team
did 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
Similar Messages
-
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 -
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 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 -
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 TeamHi ,
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 -
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. -
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. -
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 -
Create a new session when calling a new/different transaction
Hello Everyone,
I have a dialog program in which I have a button that calls a different transaction. I would like for this transaction to open in a new session. This can be easily done (and there are several posts on this) with FM's TH_CREATE_MODE or ABAP4_CALL_TRANSACTION. Additionaly it can be done by remote enabling a custom FM and have the transaction call within your custom FM.
My issue is that I want to pass the transaction a table so that it fills a select-options table at the selection screen. Then of course I want to skip the selection screen and execute the transaction. I can pass data if the selection field is a parameter field, but I need to pass the new transaction a table so that a select-options field can be filled. Does anyone know how to do this and could recommend a proper approach?
Best Regards,
ScottIt seems that you want to start of a new report by calling the ABAP4_CALL_TRANSACTION. There is a parameter USING_TAB which you can use to fill up the data (must be BDC data) to be able to pass to called transaction. Since you are dealing with the select-options this is not a good idea.
I would suggest:
From your Module pool,
Fill the select option table and export it to ABAP memory using EXPORT
Now,
1. Create a dummy program ZDUMMY to SUBMIT your report ZREPORT.
2. IMPORT the exported select option table from memory in ZDUMMY
3. SUBMIT report ZREPORT with the select option
4. Attach transaction code say ZDUMMY.
In your module pool, after exporting the memory call the FM ABAP4_CALL_TRANSACTION with ZDUMMY transaction.
Regards,
Naimesh Patel -
For a long time my chosen websites appeared as thumbnail images on the new tab page when I began a new session, maybe since about FF15, I don't recall for sure. Recently, however, whilst using FF20.0.1 this behaviour stopped and none of the thumbnail images for my selected websites opened up, although the links to them remained and this behaviour has continued to FF21, which I have been using since yesterday (19th May). This is not a serious issue, but I do like things to work properly and to understand why they don't. I don't know why there should be a relationship between the two events, but the problem began after having opened the new tab page and before the images opened up I clicked on one of the links - where the thumbnail image would normally be - to go to the website; thereafter FF failed to retain a memory of the thumbnail images from one session to the next. By the way, I never empty my history cache only my main web cache that has previously had no effect on my new tab thumbnails, not since about FF15 or so anyway.
Cor-el, hi.
When I opened FF about ten minutes ago I noticed that the new tab thumbnail image I had brought up from my previous session had been remembered, so I opened some of the other websites listed to bring back their images too; I then shut FF down, re-opened it and the new tab page to find all the images had been recalled. Next, I shut down the computer to determine whether or not the images were getting lost that way; on rebooting the computer and launching FF I again found the images were still there. Now I closed the new tab and emptied the main cache (43 MB); on opening the new tab the images were still opening (you will recall that when the new tab thumbnails first came out they disappeared on emptying the main cache). Bearing all this in mind I have not yet tried your suggestion of temporarily disabling the add-ons in safe mode because if the thumbnail images came up that would not currently tell me anything. Also, the problem I described in my first post does not remotely coincide with the installation of any add-ons, which have not been recent. Given then that my thumbnails are appearing after the cache has been cleared where does FF get them from now? I still don't understand this recent behaviour and why for the moment the problem is not occurring. Thanks again. -
SAPGUI (new session) button disable in Netweaver
Hi all,
I have a few users where their SAPGUI's "New Session" button is disable if they launch it via Netweaver (single-sign on). However, if they sign in to another computer, this issue did not arise.
Likewise, any user that sign in to this particular PC will have it's "Net Session" button disabled.
They are using Internet Explorer 7 version 7.0.5730.13
My Netweaver version is SAP Netweaver 7.0 (2004s) SPS 15 (Release March 2008)
I'm just wondering (confirming) if the reason behind this is because of compatibilty between Netweaver and Internet Explorer (similar to compatibility issue between Netweaver & Internet Explorer 8 earlier this year)?
Or could it be due to a different (older) version of Java Runtime Environment that is installed onto the user's computer?
Thank you.Hello,
I think that SAP Note 1258154 - "EP 7.0: Different behavior for SAP WinGUI in the portal " could help :
https://service.sap.com/sap/support/notes/1258154
The related note "631198 - Behavior of SAP GUI for Windows in SAP Workplace/Portal" would be useful too.
https://service.sap.com/sap/support/notes/0000631198
Regards -
NEW SESSION - Firefox, IE and GLASSFISH
Hi all,
Here is my issue:
I have One application on Glassfish using EJB3,JPA and JSF.
Users can log to this application and have severals sessions opened simultanoulsy as each session is having a connection to its own database
How do I force a new session (particularly in Firefox as IE<=8 has no issue) and have the user using the same application but different databases in different tabs or windows of Firefox.
I tried almost all and get blocked
Many thanks in advance for your answers
NicogHi BalusC
Great Blog by the way...
Let me explain.
My architecture is as follows: using JSF, Glassfish and ...SQL Server!! (! i know but this is mandatory requirement as our application is full web version of an existing ERP application already sold and installed by more than 1000 of our customers...
I am using
JSF-->JSF Managed Bean (Session for some and Request for almost all when logged )-->EJB Interface-->EJB Impl-->Entity-->Database
I have a persistence Unit (using JTA and CMP) per database , each using a connection pool managed by Glassfish.
At the begining of my application, the user (when logging), choose a database, ...enter logging info and connect.
All databases have the schema but not the same data
You have to see in our case, a database as a company with particular configuration, customers, orders, invoices, contacts....
Our application is ERP that our customers uses to managed several companies simultanously .
Also, I need Session Scope as there is configuration data that I need to keep over all pages.
This configuration data is depending on the database connected to.
When selecting the database (company) for combo in logging form, The only way I found is fisrt to check is database(company) exists and can be connect to using at first begining Persistence.CreateEntityMangerFactory.. (i know that this is not J2EE and CMP but merly used in Java SE environments..).
This step is only used for checking database
Then, if creation did not generate a Persistence Exception , I can the use CMP and an EnityManger in EJB by JNDI lookup (as DI is not possible because you need constant in unitName)
ex :
@PersistenceContexts({
@PersistenceContext(name="pu/SOCIETE1", unitName="SOCIETE1"),
@PersistenceContext(name="pu/SOCIETE2", unitName="SOCIETE2"),
@PersistenceContext(name="pu/SOCIETE3", unitName="SOCIETE3"),
@PersistenceContext(name="pu/SOCIETE4", unitName="SOCIETE4"),
@PersistenceContext(name="pu/SOCIETE5", unitName="SOCIETE5"),
@PersistenceContext(name="pu/GENESYS_EXEMPLE", unitName="GENESYS_EXEMPLE")
@Stateless
public class SomeEJB extends CommonEjbImpl implements SomeEJBLocal {
private EntityManager em;
@PostConstruct
public void init() {
String puName = (String) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("database"));
em = (EntityManager) new InitialContext().lookup("java:comp/env/pu/"+puName);
@PreDestroy
public void cleanup() {
if (em != null && em.isOpen()) {
em.close();
}All works perfectly under IE6,IE7 and IE8 (forcing some parameter at launch of IE8).
But due to session management of Firefox (sharing session cookie among all exe or tabs)...session data is kept when opening a new tab.
What I did to avoid confilcts, is to clear FacesContext SessionMap when redirecting to Login page ...but i still can NOT log to multiple PU simultanously....
I do not see where DAO pattern could help me ...
Am I missing something here?
Many thanks in advance for your quick answer
Regards,
Nicog -
BigPond - Mail from your ISP is temporarily rejected due to DNS Block List
I've been trying to send mail to people who have Bigpond.com email addresses and received the following message concerning the unable to deliver the emails. For some reason, Mac.com is being seen as a spam address and is currently blocked.
Who at Mac.Com can following the instructions below to resolve the problem which are relatively straight forward, but it's not a specific mac issue, but their mail servers
Anybody through any light on how to get Mac.com to investigate the problem?
----- Transcript of session follows -----
... while talking to extmail.bigpond.com.:
MAIL From:<[email protected]> SIZE=318276
<<< 451 Mail from your ISP is being temporarily rejected due to a DNS block list. Your ISP can resolve this issue. More information is here <a class="jive-link-external-small" href="http://">http://bigpond.custhelp.com/cgi-bin/bigpond.cfg/php/enduser/stdadp.php?pfaqid=12829
<[email protected]>... Deferred: 451 Mail from your ISP is being temporarily rejected due to a DNS block list. Your ISP can resolve this issue. More information is here http://bigpond.custhelp.com/cgi-bin/bigpond.cfg/php/enduser/stdadp.php?pfaqid=12829
Warning: message still undelivered after 4 hours
Will keep trying until message is 4 days old

Reporting-MTA: dns; smtpoutm.mac.com
Arrival-Date: Sun, 30 Sep 2007 03:12:48 -0700 (PDT)
Final-Recipient: RFC822; [email protected]
Action: delayed
Status: 4.3.0
Diagnostic-Code: SMTP; 451 Mail from your ISP is being temporarily rejected due to a DNS block list. Your ISP can resolve this issue. More information is here http://bigpond.custhelp.com/cgi-bin/bigpond.cfg/php/enduser/stdadp.php?pfaqid=12829
Last-Attempt-Date: Sun, 30 Sep 2007 08:07:49 -0700 (PDT)
Will-Retry-Until: Thu, 4 Oct 2007 03:12:48 -0700 (PDT)Resolving such issues can be complex. It is important to recognize that you've done nothing wrong.
The bounces occur because your ISP has chosen to subscribe to a blocking list maintained by one of several such services. In your case, BigPond is querying the Trend Micro MAPS RBL list each time it receives inbound smtp transactions, and for some reason, addresses or address ranges assigned to .Mac mail for such traffic have been added to this MAPS RBL.
BigPond can do nothing, really, but sever its link to MAPS, and is highly unlikely to do so. Beyond reporting the issue to Apple as indicated above via .Mac support using the web form located here, there is really nothing you can do. It is up to MAPS to remove the block based upon a request from Apple.
This sort of relative stupidity occurs quite frequently. We have chosen to use the services of spamhaus.org to limit SPAM on our internally operated mail server, and face the same issue with mail originating through domains maintained by T-Mobile, who has unfortunately found themselves on the Spamhaus PBL, or policy block list. I haven't been able to locate someone at T-Mobile responsible for resolving the issue, so mail originating outside our domain via T-Mobile HotSpots or the T-Mobile cellular data network—traffic that is legitimately relayed through our server to users outside our subnet—is blocked.
While I generally applaud the efforts of SPAM blocking services like MAPS and Spamhaus, I am beginning to believe that the unintended consequences of their services negate the value they otherwise provide. And, they operate with impunity and are unwilling to talk to affected users or notify sanctioned providers on behalf of affected users. They simply add the offending addresses to their many block lists, and leave it to others to correct what they see as a violation. -
App rejected due to microphone prompt issues??
Apple app submission issues again!
This time I really can't understand what on earth they are referring to. I have a VERY simple iphone app waiting for launch and it was rejected due to this, I guess some random setting or bit of code I have no idea about. Can anyone give me some insight into this?
This is what they said:
"During review we were prompted to provide consent to use the microphone, however, we were not able to find any features or functionality that use the microphone for audio recording. The microphone consent request is generated by the use of either AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord audio categories. If you do not intend to record audio with your application, it would be appropriate to choose the AVAudioSession session category that fits your application's needs or modify your app to include audio-recording features."
Is this a setting I can control from Flash/AIR? I have no idea!
Thanks very much,
FionaHi Pahup
Just wondering, in my case where I do use the microphone and I have it set in my app.xml under InfoAdditions UIRequiredDeviceCapabilities,
could it be (hopeful here) that the next Air version prompt for the permission on first app launch?
At the moment, the prompt is only coming up when I use the microphone and because I want that to happen earlier, the only way I can think of doing this is by faking the need for mic at app start.
Thanks!
Melissa
Maybe you are looking for
-
[Solved]Can I install arch without a swap partition ?
I only have one primary partition free to install arch, with 3 primary partition and 1 extend partition, I have no other choice except install without swap partition. Is there any suggestion? I will try it until I get a U storage to write .img in. La
-
Data Type Compatibility - Excel as a database
Post Author: hollyschulz CA Forum: Data Connectivity and SQL Hello, I put together a quick excel sheet to serve as an extra database, mainly to elaborate on specific users. I could link the "last name" fields from each table, but this doesn't work i
-
Printing graphics (via SmartForms?)
Hello, I have problem with printing images via SmartForms. I know that I must firstly import graphics using SE78 transction and then use it in SmartForms. We would like to print small jpg images which represents rough preview of product in invoices,
-
I created a links page and I had set the links to show an underline when you hover over them. However some links show the underline and some don't. I want them all to show underline on hover. Not sure how to fix it. I checked all the links manually a
-
Opening CS3 files from CS6 InDesign
We are looking to upgrade the office from CS3 to CS6 Creative Suite. Can InDesign files from CS3 be opened in straight into CS6? If not, what is the best way to access the CS3 files from CS6?