Urgent.... Help Needed for Storing file in Application Server
Hi All,
I have a requirement where in I have to save a file in Application Server.
File is of 141 Character Length, so there can be spaces left at the end.
When I am downloading the file into Application Sever and then downloading the same file from Application Server to Presentation into a notepad then the spaces at the end are truncating.
I want that the file that is generated should be of 141 character though if there may be spaces at the end.
It will be great if you can help me out in this.
Thanks in Advance.
Jayant Sahu.
when downloading to App server, you need to specify the LENGTH option on your TRANSFER ststement to keep fixed length. You must also use a STRING type variable in your transfer.
From Documentation on Transfer command:
<b>If the file was opened as a text file or a legacy text file, the trailing blank characters are deleted for all data objects, except for those of data type string. The line end marker defined when the file was opened is then added to the remaining content of the data object or to the result of the conversion, and the final result is written byte-by-byte to the file.</b>
There also used to be a problem with WS_DOWNLOAD - you had to do the following:
Maintaining Trailing spaces when downloading to PC
Before calling DOWNLOAD or WS_DOWNLOAD, do a perform SET_TRAIL_BLANKS(saplgrap) using 'X'
To set the length of each record including your blanks add this code: perform SET_FIXLEN(saplgrap) using '0' '100'
Don't think this is needed any more.
Andrew
Similar Messages
-
Program for storing files on application server
Hi,
I want to store my csv file on application sever can any one provide me the program for thisMaya,
there is no program per se for this ....
you would need to maintain the directory structure in AL11 and then if required , you can have an FTP program to push the file into that directory. Also please specify your landscape - are you on Windows / UNIX / AIX / SOLARIS... depending on that you would have to configure your FTP client...
Arun
Hope it helps... -
T-code for delete file from application server
Hi all!
Please, has any t-code for delete file from application server? For upload exist CG3Z, for download has CG3Y. And for delete? Has anyone?
I need to delete file from application server in QA system and i don't want to create a program for this because i will need to transport a request from DEV to QA.I don't have contact with basis team.
The FM EPS_DELETE_FILE support directory name with max 60 char. My dir. has more than that. I need a transaction for this.
Anybody know if this transaction exist? -
Program for uploading file on application server...
Hi,
I have created a program to upload a file from presentation server (local desktop) to application server. But in this program I have to specify the file length. What should I do in given program so that I can upload file of any length on application server ?
*& Report Z_FILE_DOWNLOAD_TO_APP_SERVER *
* This Program can be used to move flat files to application server from presentation server.
REPORT Z_FILE_DOWNLOAD_TO_APP_SERVER.
PARAMETERS: P_FILE LIKE IBIPPARMS-PATH,
P_FILE1(20000) default 'E:CONVERSIONFLAT' lower case.
DATA: WS_FILE TYPE STRING.
DATA: BEGIN OF T_DATA OCCURS 0,
RECORD(20000),
END OF T_DATA.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = P_FILE
START-OF-SELECTION.
WS_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = WS_FILE
FILETYPE = 'ASC'
TABLES
DATA_TAB = T_DATA
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.
* Creating the file at Appl server............................
OPEN DATASET P_FILE1 FOR OUTPUT IN TEXT MODE encoding utf-8.
if sy-subrc ne 0.
message e000(--) with 'Error in opening file'.
endif.
* Trasfer the records to file.............
loop at t_data.
transfer t_data to p_file1.
endloop.
close dataset p_file1.
if sy-subrc eq 0.
write: / 'Written the files at ', p_file1.
write:/ 'Goto AL11 Transaction and then click on SAP Directory DIR_SAPUSERS to look for the file'.
endif.
Please advice.
Regards,
RajeshTry declaring it as TYPE STRING. Not sure though.
There are two predefined types in ABAP with variable length:
STRING for character strings
XSTRING for byte strings
Thanks,
SKJ -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Urgent help needed for hysterical female!
I need urgent help in editing a pic that has been emailed to me, I do not know which Adobe programme to upload it too. Currently use Picasso - usually brilliant, but now gets jammed with a pop up box asking me to either accept or deny picnik. When I googled picnik, it now belongs to Google - don't know how to do a damn thing now!! Extremely Frustrated, can anybody suggest/help me
The only Adobe program I know that can edit images is Photoshop.
If you have troubles with Google software, you need to post in the appropriate Google forum. -
How to search for a file at application server?
Hi,
I need to choose one file for further processing from the directory, located into 'WORK' directory at application server. As far as I see, class CL_GUI_FRONTEND_SERVICES and FILE_OPEN_DIALOG woudn't help me - it's a 'FRONTEND_SERVICES'.... and work with directories at presentation server.
The requirement is that the user has no file sharing from his local PC to the mentioned directory at application server - this directory is visible only in the scope of the application server. I need something as flexible as CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG, if exist.
How can I achieve this?
Any help would be highly appreciated.
Many thanks in advance.
Regards,
Ivaylo MutafchievThanks to all contributors!
After short testing I found the following:
1. F4_DXFILENAME_TOPRECURSION is not what I was looking for - it doesn;t behave as expected.
2. FM EPS_GET_DIRECTORY_LISTING would help if I need the result into an internal table (thsi would be a case too), but it doesn;t prompt for selection. Helpful, anyway.
3. /SAPDMC/LSM_F4_SERVER_FILE is the closest match to the requirements.
Thanks to all.
Regards,
Ivaylo
P.S. Abhijit Dani - sorry, you were the second with the same reply, I rewarded the 1st answer as very helpful. -
How to create open file dialog for choosing file in application server?
I would like to have the same functionality as
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'NAVIGATION_FILENAME_HELP'
EXPORTING
DEFAULT_PATH = '.'
MODE = 'O'
IMPORTING
RETURNCODE = return_code
SELECTED_FILENAME = p_file.
But the above code, only allow me to choose files from local computer. How to do the same thing with the file location becomes the application server?
Thanks!Try this it will give the full directory structure.
REPORT ZTEST3460 line-count 30(2) .
PARAMETERS: FILE LIKE RLGRAP-FILENAME.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
DIRECTORY = ' '
FILEMASK = ' '
IMPORTING
SERVERFILE = FILE
EXCEPTIONS
CANCELED_BY_USER = 1
OTHERS = 2
Cheers -
Load flat files in batch without storing files on application server
Hi SDN-ers
We would like to load flatfiles into BW in batch but .... and this is the tricky part, without storing the file on the application server. We are able to call remote function modules from outside the system so maybe we can attach the file as an internal table with a remote function call and post it in PSA. Anyone ever tried this ?
Thanks,
HansHi,
I would suggest to upload the data in flat file in a Database table in BW and then
create a generic extractor on top of it to load the data into Cube or ODS . In this
way you will have a copy of the data in files.
Regards,
Prakash -
Beginner Question - Help Needed for EJB QL Sample Application
I'm working with a group of student interns, like myself, and we've been given an assignment to work with Oracle. All of us have no training or experience with this, so we're just learning as we go.
I've been trying to run the EJB QL Sample Application (http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/ejbql/Install.html), but I keep running into problems at step 3.
Now, we will deploy the sample application onto OC4J. Open another command prompt and go to the folder <OC4J_HOME>/j2ee/home and run the following commands one-by-one
> java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -deploy -file <SAMPLE_HOME>/build/ejbql.ear -deploymentName Ejbql
> java -jar admin.jar ormi://<machine_name>:<admin_port> admin <admin_pwd> -bindWebApp Ejbql ejbql-war http-web-site /ejbql
where,
<machine_name> Name of the machine where OC4J Server is running
<admin_port> Admin Port on which the OC4J server listens. This value by default is 23791 unless explicitly changed by the user
<admin_pwd> Adminstrator password to access OC4J. The default value is welcome
When I do this step I get this error:
Error: Unable to find java:comp/ServerAdministrator: Lookup error: javax.naming.
AuthenticationException: Invalid username/password for default (sds); nested exc
eption is:
javax.naming.AuthenticationException: Invalid username/password for defa
ult (sds)
com.evermind.client.orion.AdminCommandException: Unable to find java:comp/Server
Administrator: Lookup error: javax.naming.AuthenticationException: Invalid usern
ame/password for default (sds); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for defa
ult (sds)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
nsole.java:105)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
:27)
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException
: Invalid username/password for default (sds); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for defa
ult (sds) [Root exception is javax.naming.AuthenticationException: Invalid usern
ame/password for default (sds)]
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
nsole.java:102)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
:27)
Caused by: javax.naming.AuthenticationException: Invalid username/password for d
efault (sds)
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
... 2 more
---- Embedded exception
javax.naming.AuthenticationException: Invalid username/password for default (sds
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2410
at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2226
at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:727)
at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminCo
nsole.java:102)
at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminConsole.java
:27)
Any suggestions to fix this error?
Thanks in advance for any help.George,
The Readme.html file is available with the ejbqlsample.jar downloadable (Extract and find the doc in Ejbql\docs\Readme.html) which is printable.
Or,
If you are trying to print the file directly from OTN site, you need to set the Page-Setup Orientation to 'Landscape'.
Hope this helps.
Regards
Pushkala -
Help needed for Extending ISA Web applications
Hi All,
I am working on CRM 5.0. Need some kind of step by step guide to enhance standard Web applications. For example,
Adding a new field. Changing the Layout etc.
If some one has already done this kind of modifications, please share the same with me.
It will be of immense help to me
Please mail the same to [email protected]
Regards,
Eureka.Hi,
You need to get the development and extension guide.
Have a look at this posting for details of how to find it.
How to modify Webshop's layout, style and so on...
Hope this helps,
Gareth. -
URGENT HELP NEEDED! sort files randomly
Hi
I'm a film student and my final project needs to be finished in less than a week! I have a series of images which I need to appear in a random order in my timeline in Final Cut Express. I used Automator to add a series of numbers to the beginning of each filename corresponding to when each image was created/modified, in the hope that that would reorder them, but since they were all exported from Final Cut in the first place they were all created and modified at pretty much exactly the same time, so that didn't really help. I read somewhere that if you know AppleScript it would be a matter of minutes to write a script that could add a string of random alphanumerical characters to the beginning of a series of filenames, but I don't know AppleScript and I don't have time to learn it. Does someone out there know of a solution?
Many thanks!User Craig Smith over in the AppleScript forums provided me with this helpful little script, which solved my problem:
set a to choose folder
tell application "Finder"
set all_Files to every file in folder a
repeat with a_file in all_Files
set a_file's name to ((random number from 100 to 999) as text) & a_file's name
end repeat
end tell
Copy and paste it into Script Editor (/Applications/AppleScript), press "Compile" and then "Run", and it will ask you to choose a folder, all the files in which will then receive a random three-digit number between 100 and 999 to the beginning of their filenames. Handy!
Message was edited by: Bacchus -
Urgent help needed in creation of planning application
Hi,
Iam new to planning. I installed planning and configured(Created planning instance, Datasource). When i login into workspace and want to create new planning application. The wizard opens correctly. After giving application name, calender,currency type, Plan type, etc... when i click finish to create a new planning application, it says *"An error occured while processing this page. Check the log for detail".* But i observed one thing the application was created in Essbase without Databases and outline. So can anyone explain me wats the exact prob. where I can see the Log details. Help me.
Thanks in advance.Hi,
Databases will not be created until you created until you refresh to essbase from within planning, you are not up to that stage yet. Only an essbase application will be created.
What I suggest you do, is delete the essbase application. Then run planning from the start menu and not as a service, this will mean you will get any error messages displayed in the window.
Then try and perform the application creation again and see what errors are produced.
Cheers
John
http://john-goodwin.blogspot.com/ -
URGENT HELP NEEDED FOR GROUP BY
SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
comments, curve_currency, curve_generator, curve_interpolator, holidays,
user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
time_zone
FROM curve a
WHERE curve_date = (SELECT max(curve_date)
FROM curve b
WHERE b.curve_id = a.curve_id
GROUP BY curve_id)
I have this query ..This query does the FULL TABLE SCAN .....PLEASE Suggest some easier way to optimize this query.....I need it VERY VERY URGENTLY....SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
comments, curve_currency, curve_generator, curve_interpolator, holidays,
user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
time_zone
FROM curve
WHERE (curve_id, curve_date) IN (SELECT curve_id, max(curve_date)
FROM curve
GROUP BY curve_id)
Be sure you have statistics collected on the table. Anyway, I am not sure that Oracle will not do the FTS for this query even if curve_id and curve_date are indexed. -
URGENT : Help needed for OLAP tools selection
Hi Gurus,
Environment :
Oracle 10g
.net web application with backend as Oracle 10g server embaded with OLAP server.
Application - CRM
Feature requreid - OLAP, OLAP Reporting, Drilldown graphical analysis, US MAP view location specific queries, Ad-hoc analysis.
I have to take a descision for for the OLAP tool selection with above mention client requirement.
* Please let me know if anybody have worked on above combination for the required features and held up with any issue (if any) ?
* Please go thru Oracle options below per feature and let me know is there any issue with .NET and IIS server,Oracle 10g OLAP compatibily ? specially for following points from the below details -
4. OLAP Reporting Tool :
6. Web deployment of Cubes :
8. Graphing :
9. Geographical Map View based query :
1.Extraction Transformation and loading (ETL) Tool : Oracle Business Intelligence Warehouse Builder, tightly integrated with Database Server.
2. Analysis Tool (Multidimensional Data Analysis using cubes) : Oracle Business Intelligence Discoverer·
3. Ad-hoc query and analysis by end User :
Oracle Business Intelligence Spreadsheet Add-in.OLAP DML Regular Sql with OLAP_TABLE Function.
4. OLAP Reporting Tool : Oracle Reports 10g.
5. Multidimensional Data (Cube) Query Language OLAP DML : Regular Sql with OLAP_TABLE Function
6.Web deployment of Cubes : Available
7. Cube data export to xls, html, format : Available
8.Graphing : Oracle Reports 10g Graph Wizard for Graphical Analysis.
9. Geographical Map View based query : Oracle Locator: Location-Enabling Every Oracle Database
Please send me the relevent urls in support / issues for the above featues.
TIA,
SheileshThe only Adobe program I know that can edit images is Photoshop.
If you have troubles with Google software, you need to post in the appropriate Google forum.
Maybe you are looking for
-
Totally impressed with this device
I have to admit, initially I was disappointed that there wasn't an iPhone 5 released. I've been an apple devotee for some time, and am rarely if at all disappointed in the products they introduce. I had gone as far as to purchase a droid device for t
-
Facilitate distribution of config data in the backend system
Hi We are in the process of upgrading our backend systems to version 7.02. During test with PI we find that we now have to provide Logon Data towards the backend systems for our Business System comm. component in PI. Saphelp [http://help.sap.com/saph
-
Material Variant configuration in sales order line item from Ztable
Hello Experts, we have configurable material and and creating sales order. from sales order line item if we goto configuration we can maintain variant configurations. My requirement is that when i click on configuration after selecting a line item i
-
Deployment error: Failed to start server localhost:25848
Hello there! I used to work with NetBeans but now i am testing JSCreator. - I'm using Linux Ubuntu 7.04 - JSCreator 2 Update 1 - I 've tryied to run as root and as my user. - I am trying VehicleIncidentReport example with JSCreator - With netstat -a
-
Shockwave Flash Shockwave Flash 10.3 r181 - from file "Flash Player.plugin". Shockwave for Director Adobe Shockwave for Director Netscape plug-in, version 11.6.0 - from file "DirectorShockwave.plugin". I'm wondering if it is how Safari does not list