The application server is getting down
Hi all,
Installed demo of FSCM9.1 on windows-2008R2.The machine has also a system DB of the same FSCM9.1.All the three components are on the same machine.Configured application server(with large template),web server.Iam able to login to PIA successfully.But, after few minutes iam automatically signed off when iam accessing the application and iam getting the error"The application server is down".I want to tell you that my PT was on 8.51.08 before installing the demo database i.e.My PT was patched soon after the installation of system DB.So, my doubt is that whether i have to run some scripts from the patch document on the Demo DB installation?Pls help.Thanks in advance.
Hi all,
I got this fixed.The action plan was to use a different web profile other than the default(PROD) during the installation of PIA.
Similar Messages
-
The Application Server Instance is down - but it's NOT
Hi everyone,
Just yesterday, I installed the agent on a server that is running Oracle Forms and Reports Servers. In OEM, it shows that "The Application server instance is down", but when I go to the main screen for this OAS, all of the components are up. I wish I could include a screenshot to show you, but it looks like I can't.
What could be causing this? Any thoughts on how to troubleshoot?
Thanks,
BradOK, here are the last 25 (or so) lines of the OC4J~OC4J_EM~default_island~1 file:
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController.setRequestAttributes(SqlDetailController.java:780)
06/11/03 11:19:02 at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1154)
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController.handleEvent(SqlDetailController.java:2743)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
06/11/03 11:19:02 at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:174)
06/11/03 11:19:02 at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
06/11/03 11:19:02 at oracle.sysman.eml.app.Console.doGet(Console.java:318)
06/11/03 11:19:02 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
06/11/03 11:19:02 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
06/11/03 11:19:02 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
06/11/03 11:19:02 at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:88)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
06/11/03 11:19:02 at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
06/11/03 11:19:02 at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
06/11/03 11:19:02 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
06/11/03 11:19:02 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
06/11/03 11:19:02 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
06/11/03 11:19:02 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
06/11/03 11:19:02 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
06/11/03 11:19:02 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
06/11/03 11:19:02 at java.lang.Thread.run(Thread.java:534)
06/11/03 11:19:02 java.lang.NullPointerException
06/11/03 11:19:02 at oracle.cabo.share.url.EncoderUtils.encodeString(Unknown Source)
06/11/03 11:19:02 at oracle.sysman.emSDK.util.jdk.URLUtil.encode(URLUtil.java:99)
06/11/03 11:19:02 at oracle.sysman.emSDK.util.jdk.URLUtil.encode(URLUtil.java:83)
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController._setRefreshChoice(SqlDetailController.java:2303)
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController.setRequestAttributesForActivityPage(SqlDetailController.java:2168)
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController.setRequestAttributes(SqlDetailController.java:780)
06/11/03 11:19:02 at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1154)
06/11/03 11:19:02 at oracle.sysman.db.adm.inst.SqlDetailController.handleEvent(SqlDetailController.java:2743)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:577)
06/11/03 11:19:02 at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:174)
06/11/03 11:19:02 at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:114)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
06/11/03 11:19:02 at oracle.sysman.eml.app.Console.doGet(Console.java:318)
06/11/03 11:19:02 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
06/11/03 11:19:02 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
06/11/03 11:19:02 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
06/11/03 11:19:02 at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:88)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
06/11/03 11:19:02 at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
06/11/03 11:19:02 at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
06/11/03 11:19:02 at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
06/11/03 11:19:02 at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:336)
06/11/03 11:19:02 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
06/11/03 11:19:02 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
06/11/03 11:19:02 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
06/11/03 11:19:02 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
06/11/03 11:19:02 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
06/11/03 11:19:02 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
06/11/03 11:19:02 at java.lang.Thread.run(Thread.java:534) -
The application server is down at this time
I am getting the following error message when I try to access PeopleSoft via PIA:
"The application server is down at this time.
CHECK APPSERVER LOGS. THE SITE BOOTED WITH INTERNAL DEFAULT SETTINGS, BECAUSE OF: bea.jolt.ServiceException: Invalid Session"
1. In configuration.properties file, PTWEBSERVER password is encrypted, the userID is not locked-out, even the table PSOPRDEFN says the password is encrypted
2. I tried using IP address and computer name in configuration.properties file, both the ways I am not able to resolve the issue
If you have any ideas please let me know.
Jay TedlaMight sound silly , but stop webserver and appserver . Boot appserver , boot webserver using startpia.cmd to see if webserver can communicate with appserver.
-
How to see the file at the application server
HI TO ALL SDNERS ,
THIS IS MY CODE WHERE TO CHECK THE DOWNLOADED FILE AT THE APPLICATION SERVER.IN TCODE AL11 I HAVE SEEN THERE IS NO FILE GETTING CREATED.WHEN TRANSFERRING THE SY-SUBRC VALUE IS ZERO.
Program Name : ZME11_BDC.
Title : PURCHASE INFORMATION RECORD LOAD PROGRAM
Program Objective : THIS PROGRAM READS IN THE PURCHASE
INFORMATION FILE. IT CREATES A BDC SESSION TO
USE TO LOAD THE PURCHASE INFORMATION RECORDS
INTO SAP using the ME11 Transaction.
REPORT ZME11_BDC no standard page heading MESSAGE-ID ZHNC line-size 55.
constants declaration
constants: c_x value 'X',
c_sess type apqi-groupid value 'zcustomer',
c_xd01 type tstc-tcode value 'ME11'.
DECLARING VARIABLES
DATA: V_MSG(255),
V_ERREC TYPE I,"NO OF FAILED RECORDS
V_LINES."NO OF RECORDS
FLAG DECLARATIONS
DATA: FG_DATA_EXIST VALUE 'X',"CHECK FOR DATA
FG_SESSION_OPEN VALUE ''.
STRUCTURES AND INTERNAL TABLE DECLARATIONS
TYPES :BEGIN OF TY_PIR,
LIFNR TYPE EINA-LIFNR,
MATNR TYPE EINA-MATNR,
EKORG TYPE EINE-EKORG,
WERKS TYPE EINE-WERKS,
VERKF TYPE EINA-VERKF,"sales person
TELF1 TYPE EINA-TELF1,"telephone
URZLA TYPE EINA-URZLA,"country
REGIO TYPE EINA-REGIO,"region
APLFZ(5),"plan deleivery time
EKGRP TYPE EINE-EKGRP,"purchase group
NORBM(13),
NETPR(13),
END OF TY_PIR.
DATA : IT_PIR TYPE TABLE OF TY_PIR,
WA_PIR LIKE LINE OF IT_PIR.
DATA: BEGIN OF IT_BDCDATA.
INCLUDE STRUCTURE BDCDATA.
DATA END OF IT_BDCDATA.
DATA : BEGIN OF IT_BDCMSG.
INCLUDE STRUCTURE BDCMSGCOLL.
DATA END OF IT_BDCMSG.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : FNAME TYPE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION ON VALUE REQUEST
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FNAME.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = FNAME.
START OF SELECTION
START-OF-SELECTION.
PERFORM F_GET_DATA USING FNAME
CHANGING IT_PIR.
PERFORM F_GENERATE_DATASET USING FNAME
CHANGING IT_PIR WA_PIR.
*& Form F_GET_DATA
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GET_DATA USING P_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR.
DATA: LV_FILE TYPE STRING.
LV_FILE = FNAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = P_IT_PIR
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF P_IT_PIR IS INITIAL.
FG_DATA_EXIST = ''.
ENDIF.
ENDFORM. " F_GET_DATA
*& Form F_GENERATE_DATASET
text
-->P_V_FNAME text
<--P_IT_PIR text
FORM F_GENERATE_DATASET USING P_V_FNAME LIKE FNAME
CHANGING P_IT_PIR LIKE IT_PIR
P_WA_PIR LIKE WA_PIR.
MESSAGE I001(ZHNC).
*OPENING FILE AT THE APPLICATION SERVER FOR WRITING
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC EQ 0.
MESSAGE I002(ZHNC).
LOOP AT P_IT_PIR INTO P_WA_PIR.
SPLIT P_WA_PIR AT '*' INTO P_WA_PIR-LIFNR
P_WA_PIR-MATNR
P_WA_PIR-EKORG
P_WA_PIR-WERKS
P_WA_PIR-VERKF
P_WA_PIR-TELF1
P_WA_PIR-URZLA
P_WA_PIR-REGIO
P_WA_PIR-APLFZ
P_WA_PIR-EKGRP
P_WA_PIR-NORBM.
*TRANSFER THE FILE FROM INTERNAL TABLE TO APPLICATION SERVER
MESSAGE I003(ZHNC).
TRANSFER P_WA_PIR TO FNAME.
ENDLOOP.
*CLOSING THE FILE AT THE APPLICATION SERVER
CLOSE DATASET FNAME.
ENDIF.Hello,
I made a similar program. You can have a look at it.
*& Form write_to_app_server
text
--> p1 text
<-- p2 text
FORM write_to_app_server.
To get filename
PERFORM get_filename.
To write into the application server
OPEN DATASET g_filename_with_path FOR OUTPUT IN TEXT MODE.
IF sy-subrc = 0.
LOOP AT <l_table> INTO <l_line>.
TRANSFER <l_line> TO g_filename_with_path.
ENDLOOP.
CLOSE DATASET g_filename_with_path.
ELSE.
CLOSE DATASET g_filename_with_path.
ENDIF.
To send mail
PERFORM send_mail.
ENDFORM. " write_to_app_server
*& Form get_filename
text
--> p1 text
<-- p2 text
FORM get_filename.
DATA : l_log_path TYPE filepath-pathintern
VALUE 'Y28M_DOWNLOADS_BACKGROUND' .
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
client = sy-mandt
logical_path = l_log_path
operating_system = sy-opsys
file_name = p_fname
IMPORTING
file_name_with_path = g_filename_with_path
EXCEPTIONS
path_not_found = 1
missing_parameter = 2
operating_system_not_found = 3
file_system_not_found = 4
OTHERS = 5.
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. " get_filename
You may find it useful.
Regards,
Karuna. -
File from the Application server
Hi gurus,
I am working on a scenario where I need to get a file from the application server and for this I need to ask user to enter the location and that too at the selection screen and then I need to read this location using open data set and read data set in my program , once I am done with this I need to do some other validations. so can you please help me out how to achieve this.
Thanks
Rajeev GuptaHi
Declare the selection screen with file as parameter so that the user enter the application server file..
the use the OPEND DATASET as mentioned in below code and process
Refer this:
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
*& Report ZUPLOADTAB * &----
*& Example of Uploading tab delimited file *
REPORT zuploadtab .
PARAMETERS: p_infile LIKE rlgrap-filename
OBLIGATORY DEFAULT '/usr/sap/'..
DATA: ld_file LIKE rlgrap-filename.
*Internal tabe to store upload data
TYPES: BEGIN OF t_record,
name1 like pa0002-VORNA,
name2 like pa0002-name2,
age type i,
END OF t_record.
DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
wa_record TYPE t_record.
*Text version of data table
TYPES: begin of t_uploadtxt,
name1(10) type c,
name2(15) type c,
age(5) type c,
end of t_uploadtxt.
DATA: wa_uploadtxt TYPE t_uploadtxt.
*String value to data in initially.
DATA: wa_string(255) type c.
constants: con_tab TYPE x VALUE '09'.
*If you have Unicode check active in program attributes then you will
*need to declare constants as follows:
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
*START-OF-SELECTION
START-OF-SELECTION.
ld_file = p_infile.
OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
ELSE.
DO.
CLEAR: wa_string, wa_uploadtxt.
READ DATASET ld_file INTO wa_string.
IF sy-subrc NE 0.
EXIT.
ELSE.
SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
wa_uploadtxt-name2
wa_uploadtxt-age.
MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
APPEND wa_upload TO it_record.
ENDIF.
ENDDO.
CLOSE DATASET ld_file.
ENDIF.
*END-OF-SELECTION
END-OF-SELECTION.
*!! Text data is now contained within the internal table IT_RECORD
Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
Regards
Anji -
Error while accessing the application server file
Hello,
When I try to load the data from CSV file to PSA , I am getting following error message
"Error while accessing the application server file"
"Errors in source system"
I gave the right file path
I am not sure about this error message.
Thanks,Hi ram,
if you have more than one application server running in your BI system (see at transaction SM51) be aware that your infopackage will be executed on the right one. Each application server has its own file system and your job need to run on the server your file is stored on.
Also check if the os user of the SAP system itself (<sid>adm on Unix) has rights to read that file.
Bye
Frank -
Secure the password of the schema in the application server
Hi,
my application is using one schema, and the users are stored in a table within that schema. When the user run the application, the schema password is not required since it is stored in formsweb.cfg file as userid=username/password@servicename. the problem with this, is that anyone is able to know the schema password by opening the formsweb.cfg.
is there any way to make the password invisible in the application server ?
ThanxHi
1. What is the version of the Oracle Fusion Middleware you are using?
2. Why would the users have access to the formsweb.cfg file?
Please provide the above info to get further assistance.
Regards,
Durbanite -
Regarding reading data from a file in the application server.
Hello Everyone,
My question is:
The file in the application server consists of data with header, detail and trail out of which the detail contains the main information. The detail again contains the data in the form of a continuous string and again some spaces corresponding to a single record. I need to split the data in the internal table in such a way so that the first few characters get into field-1 of the target internal table. Again I need to consider the spaces for accessing the data for filling up in field-2. How do I decide on the 'Split' statement and specially when the whole string has to be taken care of as contatining data in a single string format without space and again some data after some spaces corresponding to a single record.
Your help is very much needed. Thanks to all the experts in advance.Hi
This is the sample code I was used for the similar requirement.
DATA: single_line TYPE string .
v_file_listings = pa_filn1.
IF v_file_listings IS INITIAL .
MESSAGE e039 WITH v_file_listings.
ENDIF.
*-- read file, split lines into fields and put data into table
OPEN DATASET v_file_listings FOR INPUT IN TEXT MODE ENCODING NON-UNICODE. "Opening the files
IF sy-subrc EQ 0.
DO.
READ DATASET v_file_listings INTO single_line. "Reading the content of file into line
IF sy-subrc = 0.
IF sy-index > 1. "skip header-line
SPLIT "Split the content of line into work area
single_line
AT k_split
INTO
wa_listings-kschl " Condition type
wa_listings-tabname16 " Condition table name
wa_listings-vkorg " Sales organisation
wa_listings-kunnr " sold-to party numberor ship-to party number
wa_listings-matnr " Material Number
wa_listings-kodatab " Valid-from date
wa_listings-kodatb1. " Valid-to date
APPEND wa_listings TO itab_listings. "Appending Work Area to internal table
ENDIF.
ELSE.
EXIT.
ENDIF.
v_count1 = sy-tabix.
ENDDO.
Regards,
Sreeram -
Function Module to find the Path of the file in the Application Server
Hi All,
Any function module available to find the path of the file stored in the application server. Please let me know.
Thanks.Check this code:
DATA: dl_file TYPE ibipparms-path. " File name
CONSTANTS: c_dir TYPE rlgrap-filename.
* F4 filename for Application server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
directory = c_dir
filemask = ' '
IMPORTING
serverfile = dl_file
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'Error while getting the file name'(006).
EXIT.
ELSE.
p_file = dl_file.
ENDIF.
Thanks & Regards,
Siri.
Message was edited by:
Srilatha T -
Function Module that gives the names of the file in the Application Server.
Hi Experts,
Please give me a Function Module that gives the names of the file in the Application Server.
Thanks,
Debi.Hi,
see these links
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
http://www.saptechies.com/abap-function-modules/
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
thanks
karthik -
F4 help for file path in the Application server
Hi All,
i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
Regards
ShekharHi
Copy paste the following code and see the result
Here you can see 2 types of open dialogs
1. Directory View
2. File View
Use any one as per your requirement.
DATA : l_filetable TYPE filetable,
l_rc TYPE i.
DATA: l_folder TYPE string,
l_file TYPE string.
PARAMETERS: p_folder(100) TYPE c,
p_file(100) TYPE c.
*Provide a Dialogue box for getting a folder path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
window_title = 'Select Folder Path'
initial_folder = 'D:\'
CHANGING
selected_folder = l_folder.
p_folder = l_folder.
*Provide a Dialogue box for getting a file path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select a Text File'
initial_directory = l_folder
CHANGING
file_table = l_filetable
rc = l_rc.
Reward points generously
Regards
Akshay Chonkar
READ TABLE l_filetable INTO p_file INDEX 1.
CHECK sy-subrc <> 0. -
ABAP Code for Backup the entire table data in the application server
Hello Friends,
I have to create the table data Backup and Store the entire table data in the application server and also be able to restore the data back if needed.
this should be dynamic program for any table based on the table name given on the application server.. I have developed a program for this but its having problems with the Quantity, amount. Its not writing it correctly at the application level.
ANy Suggestions on this.
Below is the program for this.
Thanks,
Ster.
* Report YWMM_TABLE_DUMP *
REPORT ywmm_table_dump .
TABLES :
dd03l.
* Type spool declaration
TYPE-POOLS:
abap, slis.
DATA: i_table_data1 TYPE REF TO data.
DATA : it_dd03l LIKE dd03l OCCURS 0 WITH HEADER LINE.
*DATA : gt_fieldcat TYPE lvc_s_fcat.
DATA : i_fcat TYPE STANDARD TABLE OF lvc_s_fcat,
l_dr_line TYPE REF TO data,
l_v_as4vers TYPE as4vers.
FIELD-SYMBOLS: <f_table_data1> TYPE STANDARD TABLE,
<f_wa_table_data1> TYPE ANY.
SELECTION-SCREEN: BEGIN OF BLOCK bl1 WITH FRAME TITLE text-001.
PARAMETERS: rb_copy RADIOBUTTON GROUP map DEFAULT 'X',
rb_rest RADIOBUTTON GROUP map.
SELECTION-SCREEN: END OF BLOCK bl1.
SELECTION-SCREEN: BEGIN OF BLOCK bl2 WITH FRAME TITLE text-002.
PARAMETERS: p_table TYPE tabname OBLIGATORY,
p_plfld TYPE dd03l-fieldname.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_bkfile TYPE localfile OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK bl2.
PERFORM get_data.
IF rb_copy = 'X'.
PERFORM backup.
ELSEIF rb_rest = 'X'.
PERFORM database_update.
ENDIF.
*& Form get_data
FORM get_data.
CLEAR i_fcat.
REFRESH i_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = p_table " Table Name
CHANGING
ct_fieldcat = i_fcat
EXCEPTIONS
OTHERS = 1.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_fcat
IMPORTING
ep_table = i_table_data1.
IF sy-subrc = 0.
ASSIGN i_table_data1->* TO <f_table_data1>.
ELSE.
WRITE: 'Error creating internal table'.
ENDIF.
IF rb_copy = 'X'.
SELECT * FROM (p_table) INTO CORRESPONDING FIELDS OF
TABLE <f_table_data1> UP TO 20 ROWS.
ELSEIF rb_rest = 'X'.
CREATE DATA l_dr_line LIKE LINE OF <f_table_data1>.
ASSIGN l_dr_line->* TO <f_wa_table_data1>.
*Get Data from Application Server
* Opening the dataset P_BKFILE given in the selection screen
TRANSLATE p_bkfile TO LOWER CASE.
OPEN DATASET p_bkfile FOR INPUT IN TEXT MODE." ENCODING DEFAULT.
IF sy-subrc NE 0.
* MESSAGE:
ELSE.
DO.
* Reading the file from application server
READ DATASET p_bkfile INTO <f_wa_table_data1>.
IF sy-subrc = 0.
APPEND <f_wa_table_data1> TO <f_table_data1>.
ELSE.
EXIT.
ENDIF.
ENDDO.
* Closing the dataset
CLOSE DATASET p_bkfile.
ENDIF.
ENDIF.
ENDFORM. " get_data
*& Form backup
* text
* --> p1 text
* <-- p2 text
FORM backup.
TRANSLATE p_bkfile TO LOWER CASE.
OPEN DATASET p_bkfile FOR OUTPUT IN TEXT MODE.
IF sy-subrc NE 0.
WRITE: text-017.
STOP.
ELSE.
LOOP AT <f_table_data1> ASSIGNING <f_wa_table_data1>.
TRANSFER <f_wa_table_data1> TO p_bkfile.
ENDLOOP.
ENDIF.
CLOSE DATASET p_bkfile.
ENDFORM. " backup
*& Form database_update
FORM database_update.
DATA : i_mara_u TYPE STANDARD TABLE OF mara WITH HEADER LINE,
i_ekpo_u TYPE STANDARD TABLE OF ekpo WITH HEADER LINE,
i_eban_u TYPE STANDARD TABLE OF eban WITH HEADER LINE,
i_resb_u TYPE STANDARD TABLE OF resb WITH HEADER LINE,
i_plpo_u TYPE STANDARD TABLE OF plpo WITH HEADER LINE,
i_stpo_u TYPE STANDARD TABLE OF stpo WITH HEADER LINE,
i_vbap_u TYPE STANDARD TABLE OF vbap WITH HEADER LINE,
i_vbrp_u TYPE STANDARD TABLE OF vbrp WITH HEADER LINE,
i_lips_u TYPE STANDARD TABLE OF lips WITH HEADER LINE,
i_afvc_u TYPE STANDARD TABLE OF afvc WITH HEADER LINE,
i_asmd_u TYPE STANDARD TABLE OF asmd WITH HEADER LINE,
* i_cooi_u TYPE STANDARD TABLE OF cooi WITH HEADER LINE,
i_qmel_u TYPE STANDARD TABLE OF qmel WITH HEADER LINE,
i_cooi_u TYPE STANDARD TABLE OF cooi WITH HEADER LINE,
i_esll_u TYPE STANDARD TABLE OF esll WITH HEADER LINE,
i_t165_u TYPE STANDARD TABLE OF t165 WITH HEADER LINE,
i_t165e_u TYPE STANDARD TABLE OF t165e WITH HEADER LINE,
i_twpko_u TYPE STANDARD TABLE OF twpko WITH HEADER LINE,
i_tpext_u TYPE STANDARD TABLE OF tpext WITH HEADER LINE,
i_ce4mxpa_u TYPE STANDARD TABLE OF ce4mxpa WITH HEADER LINE,
i_ce4mxpa_acct_u TYPE STANDARD TABLE OF ce4mxpa_acct WITH
HEADER LINE,
i_zaim_u TYPE STANDARD TABLE OF zaim WITH HEADER LINE,
i_s012_d TYPE STANDARD TABLE OF s012 WITH HEADER LINE,
i_s012_i TYPE STANDARD TABLE OF s012 WITH HEADER LINE,
i_dummy TYPE STANDARD TABLE OF mara.
CASE p_table.
WHEN 'MARA'.
* Non-Key
PERFORM move_to_table USING <f_table_data1>
CHANGING i_mara_u[]
i_mara_u.
PERFORM update_table USING i_mara_u[].
ENDCASE.
ENDFORM. " database_update
*& Form move_to_mara
FORM move_to_table USING p_tab_from TYPE STANDARD TABLE
CHANGING p_tab_to TYPE STANDARD TABLE
p_w_table.
DATA: l_wa_fcat TYPE lvc_s_fcat.
FIELD-SYMBOLS: <f_field_from> TYPE ANY,
<f_field_to> TYPE ANY.
LOOP AT p_tab_from ASSIGNING <f_wa_table_data1>.
LOOP AT i_fcat INTO l_wa_fcat.
ASSIGN COMPONENT l_wa_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field_from>.
ASSIGN COMPONENT l_wa_fcat-fieldname
OF STRUCTURE p_w_table TO <f_field_to>.
<f_field_to> = <f_field_from>.
ENDLOOP.
APPEND p_w_table TO p_tab_to.
ENDLOOP.
ENDFORM. " move_to_mara
*& Form update_table
FORM update_table USING p_table_update TYPE STANDARD TABLE.
SELECT SINGLE *
FROM dd03l
WHERE fieldname = p_plfld
AND tabname = p_table
AND keyflag <> 'X'
AND as4local = 'A'
AND as4vers = l_v_as4vers
AND ( comptype = 'E' OR comptype = space ).
IF sy-subrc = 0.
* Do update
IF NOT p_table_update IS INITIAL.
UPDATE (p_table) FROM TABLE p_table_update.
IF sy-subrc = 0.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
WRITE: text-003.
STOP.
ENDIF.
ENDIF.
ELSE.
*delete and insert.
IF NOT p_table_update IS INITIAL.
* DELETE (p_table).
IF sy-subrc = 0.
INSERT (p_table) FROM TABLE p_table_update.
IF sy-subrc = 0.
COMMIT WORK.
ELSE.
ROLLBACK WORK.
WRITE: text-018.
STOP.
ENDIF.
ELSE.
ROLLBACK WORK.
WRITE: text-018.
STOP.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. " update_table
Edited by: Julius Bussche on Jul 18, 2008 1:43 PM
Please use a meaningfull subject title!ARS,
I am struggling a bit to get this.
there is a syntax error,
Field "FIELDS_INT-TYPE" is unknown. It is neither in one of thespecified tables nor defined by a "DATA" statement.
Again you have asked to move to a diffrent table. What is that table and how to build it.
LOOP AT <f_table_data1> ASSIGNING <f_wa_table_data1>.
LOOP AT i_fcat INTO l_fcat.
IF l_fcat-inttype EQ 'P'.
ASSIGN COMPONENT l_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field>
TYPE fields_int-type
DECIMALS fields_int-decimals.
ELSE.
ASSIGN COMPONENT l_fcat-fieldname
OF STRUCTURE <f_wa_table_data1> TO <f_field>
TYPE fields_int-type.
ENDIF.
" Move <f_field> to a new table and use this table for download
ENDLOOP.
TRANSFER <f_wa_table_data1> TO p_bkfile.
ENDLOOP.
Ster -
ABAP Trial version u2013 starting the application server
Hi,
I have a problem starting the application server via the management console. After choosing action ->start I have to enter user and password. Do I have to create a new user password combination, use the OS password or try bcuser and minisap? None of these three options worked out. I always get the message 'Start failed: 2 Invalid Credentials'. Or went there something wrong during the installation?
Thanks for your help.
BirgitHey Birgit,
In my case I installed ABAP Trial version (also known as MiniSap) on my local machine (Windows).
When I turn on the machine, my Windows(OS) requires a User/Password (It was configured this way but it is possible you configure to not require a User/Password, it uses a default).
When I instaled the ABAP Trial version, I logged on with a User/Password with administrator rights (it is necessary for installation).
When, in the "Management Console", I start the ABAP (the "NSP" node), it asks me the user and password and I use the OS User/Password that I used to install ABAP Trial (above).
If you are doing the same I don't know why the message "Start failed: 2 Invalid Credentials".
Merry Christmas,
Edited by: Walmir Catunda on Dec 15, 2008 11:34 AM -
Error starting the Application Server and Deployment Tool
After installing the iPlanet Aplication Server with sp3 I get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please!Hi,
Would be more helpful if you can mention, the O/S. Also, pls mention where
you are getting this error, at kjs or kxs, or, are you able to start the server
and at which specific instance do you encounter this.
Regards
Raj
"Antonio Casqueiro" wrote:
After installing the iPlanet Aplication Server with sp3 I get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please! -
Error starting the Application Server and Deployment Tool in Windows 2000
After installing the iPlanet Aplication Server with sp3 in Windows 2000 I
get the following
errors starting the Application Server and Deployment Tool.
iAS Application Server
================
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:46:49:8] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
error: could not get context
*** Errors in initialization from registry ***
Errors in initialization, exiting ...
iAS Deployment Tool
===============
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[26/Out/2001 17:23:40:7] error: ENGINE-context_init_failed: EngineClassSpace
ContextModule.createContextInit failed:
Exception in thread "main" java.lang.NullPointerException
at com.kivasoft.util.Util.loadComponent(Unknown Source)
at
com.iplanet.ias.tools.buzz.ui.application.StartBuzz.initGDS(Unknown Source)
at com.iplanet.ias.tools.buzz.ui.application.StartBuzz.main(Unknown
Source)
Can anyone help me please!Okay, pls check that you are logged in as administrator and installed and now you are logged in as administrator and registering the iAS server. Did you get any installation failures while installing and are you able to register the server using iASAT ?
Maybe you are looking for
-
ICal week view window is gone. When selected the window disappears.
Whenever I click on view->week view (or just the "week" button on the bottom row) my ical window disappears. No idea where it is going. If I click on view->day/month the window comes back. However, after it comes back in day or month view, the info s
-
How can I discover a color saturation in an image?
My name is Eduardo, from São Paulo/Brazil. I'd like know how can I discover a color saturation in an image? For example, I open an image in photoshop CS6 and I'd like to know what a color is more saturated for after to do a treatment with color balan
-
Hi, Can someone please share what is the pros and Cons of trusting AD domain for more than 10 different AD sites into my existing single domain forest let say ParentCompany.com ? At the moment I only have one single forest AD domain with the Domain a
-
Info Record Condition record changes
Hello Experts, We have a requirement to change the % allotted to a particular condition type in Info record. there are no BAPI's available for info record change. I do not prefer BDCs. I am using 4.6c. Can you please provide me any other options for
-
Utl_http.response 32767 stops at 32767.
Hi Any help will be highly appreciated. The request works perfectly when > 32767 but the response stops at 32767. This is the function that is called. create or replace FUNCTION utl_http_request_resp(url varchar2, requestbody clob) RETURN VARCHAR2 AS