FM to select the file path for download into application server
Hello,
I need a FM to select the file path for download into application server. It is a F4 help .
Its functionality should be simmilar to the one used for presentation server i.e. as fol
CALL METHOD cl_gui_frontend_services=>file_save_dialog
Hello,
What about F4_DXFILENAME_TOPRECURSION? You can check other FMs of the group DX_FILE.
BR,
Suhas
PS: I think these FMs are not released by SAP, so need to be cautious while using these
Similar Messages
-
How to validate the file path when downloading.
Hi
How to validate the file path when downloading to Presentation or application Server.hiii
you can validate file path by following way
REPORT zvalidate.
TYPE-POOLS: abap.
DATA: w_direc TYPE string.
DATA: w_bool TYPE abap_bool.
w_dir = 'c:\Myfolder\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = w_direc
RECEIVING
result = w_bool
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
IF NOT w_bool IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
regards
twinkal -
What are the files needed for downloading the MSS -BusinessPackage
Dear Gurus,
Any body can give me a suggestion for downloading the MSS -BusinessPackage ,and also what are the files needed for the deployment -its in a urgent basis and reward points welcome!
regards,
S.RajeshkumarHi Rajesh,
You have to download and deploy the following through SDM (for NW04s/EP7),
1. Business Package for MSS (contains roles,worksets for your Business Package)
2. PCUI_GP (WebDynpro Component)
3. SAP_MSS (WebDynpro Coponent - your MSS application files)
To use ESS and MSS in Conjunction, you also have to deploy Business Package for Common Parts.
Backend SAP systems should have SAP HR and SAP FIN configured.
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm</a>
Thanks,
Vamshi -
How do I get iTunes to show the file path for music
I am trying to get iTunes to show me where songs are located on my computer, Hoiw do I get this to show up in iTunes? Thank you
PTIIIk wrote:
I am trying to get iTunes to show me where songs are located on my computer, Hoiw do I get this to show up in iTunes? Thank you
Right-click the track in the library, and choose Show in Windows Explorer.
If you were hoping to get the file path displayed in a column, as is possible in Windows Media Player, note that iTunes does not have that ability. -
Problem in uploading the file of internal table into appliaction server
i want to send the data of internal table to application server through selection screen and in selection screen and in selection screen parameter it should show the path of application server and through that path internal table data should go to application server , if possible give the code
Hi,
form download_file_appl_server.
open dataset p_dlf2 for output
in text mode encoding default .
if sy-subrc ne 0.
message:i005 with text-415 text-407.
endif.
loop at i_final into wa_final.
transfer wa_final to p_dlf2.
endloop.
close dataset p_dlf2.
endform. " OPENDATA_CLOSE
where p_dlf2 is the seelction screen parameter which give the application server file path
You can use this code for ur purpose.
Reward if useful.
Regards
Shibin -
How to delimited text file data being downloaded in Application server
Hi All,
How to delimited or having a tab between each fields in the data being downloaded to Application server. Please provide an example of code or how i should make changes to my below coding. Thanks.
eg. the out file in application server.
Field1#Field2#Field3
what I currently get was as below:-
Field1Field2Field3
My coding:
FORM download_outfile.
DATA : xfer(400).
IF rb_locl EQ 'X'.
DESCRIBE TABLE itab LINES sy-tfill.
IF sy-tfill GT 0.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_table_width = 4
invalid_type = 5
no_batch = 6
unknown_error = 7
OTHERS = 8.
IF sy-subrc EQ 0.
WRITE : / 'download done.
ELSE.
WRITE : / '4)Error occured'.
ENDIF.
ENDIF.
ELSE.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE.
DATA : l_subrc LIKE sy-subrc.
LOOP AT itab.
MOVE itab TO xfer.
TRANSFER xfer TO p_file.
IF sy-subrc NE 0.
l_subrc = sy-subrc.
ENDIF.
ENDLOOP.
IF l_subrc EQ 0.
WRITE :/ 'download done.
ELSE.
WRITE :/ 'error occurred.
ENDIF.
CLOSE DATASET p_file.
ENDIF.
ENDFORMHi,
Please check this sample codes.
OPEN DATASET P_DOWN FOR OUTPUT IN TEXT MODE. " P_DOWN is the file to download
IF SY-SUBRC = 0.
CLEAR V_STRING.
*-- Download to the file
LOOP AT IT_DOWN.
CONCATENATE IT_DOWN-DISTTYPE
IT_DOWN-O_CITY
IT_DOWN-O_REGIO
IT_DOWN-O_PSTLZ
IT_DOWN-O_CTRY
IT_DOWN-D_CITY
IT_DOWN-D_REGIO
IT_DOWN-D_PSTLZ
IT_DOWN-D_CTRY
IT_DOWN-DISTANCE
INTO V_STRING
SEPARATED BY '09'. " here 09 is the tab delimeter
TRANSFER V_STRING TO P_DOWN.
CLEAR V_STRING.
ENDLOOP.
Regards,
Ferry Lianto -
Want to know the file path for application server in upload program
Iam doing upload program(i,e)uploading from application server,iam getting run time error while executing the following piece of code
"OPEN DATASET '/usr/sap/SPE/DVEBMGS00/work/ZPSPAR35_PERS_UP.txt' FOR OUTPUT
IN TEXT MODE
ENCODING DEFAULT."
if the above code is wrong can u mention the correct one.hi,
<b>Note: 699267</b>
<b>Symptom</b>
a) When downloading to the application server a short dump occurs with the error 'UC_OBJECTS_NOT_CHARLIKE'.
b) When downloading to a presentation server from an SAP system running on Unicode, only half the data is actually transferred to the downloaded file.
or
*)When downloading from an SAP system running on an application server with an EBCDIC-type code page, an incorrect code '0A' is written for the LINE FEED character
<b>
Pre-requisite</b>
a) The output file is opened 'in text mode' which does not allow to write non-character-like structures to the file via the TRANSFER command.
b) The file is downloaded in the internal representation which uses two bytes per character in a Unicode system. The number of bytes to download is determined from the number of characters in the SAP system, however.
or
*)The code of the LINE FEED character is incorrectly programmed.
<b>
Solution:</b>
You need to put some support packs attached with this note. For that you definitely need to ask YOUR FRIENDS WHO HAVE AN S-USER id at your WORK PLACE.
<b>Note: 879598</b>
<b>Reason and Prerequisites</b>
The file is downloaded in the internal representation which uses two bytes per character in a Unicode system. The number of bytes to download is determined from the number of characters in the SAP system. Hence when the download happens the data has to be converted to the required format.
<b>Solution</b>
Apply the corresponding support package or manually implement the changes described in the correction instructions.
Hope this helps.
Regards
ak.
PS: Reward useful answers with points. -
Changing the File path for SQL Loader Recognition
I am learning how to create a control file. The names.ctl file was placed in "Names" folder in my "C:\Windows" file.
I get the following error when trying to run the script for sqlldr:
Sql*Loader-500 Unable to open file.
Sql*Loader-553 file not found
Sql*Loader-System error: the system cannot find the specified file.
The path on the folder in c:\Windows\names\names.ctl
How do I make SQL Loader recognize it?Pl post details of OS and database versions. Have you tried this ?
sqlldr CONTROL=c:\Windows\names\names.ctl ...HTH
Srini -
Can you specify a new file path for album artwork in iTunes?
I want to store my music and the iTunes program on a drive other than my C Drive. I moved Windows' "My Music" folder from the "My Documents" along with the iTunes program and all my music to the new drive. I've changed the file path for the iTunes music folder location, but when I update my library iTunes creates the "My Music" folder in "My Documents" and downloads the album artwork there. How can I change this so iTunes will save the album artwork in the same place it saves the music? Is this possible?
Hi,
The column's style classes will be added on the <td> elements, not the header sadly. So for your use case you'll have to place the class on the table itself then use the selector
af|table.MyStyleClass af|column.formHeader::header-text{}Sadly this will affect all columns, not just one so I don't know if it's going to fir your need.
Regards,
~ Simon -
Search c:\ drive and return file path for winword.exe and save as variable
Hi all, here is what I'm trying to do;
1. Search C:\ drive for winword.exe
2. take the file path and save it as a variable.
3. Then based on the path value, use the switch statement to run "some command"
Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry. I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
now look for all versions of word and set the right file path so I can make the right registry changes.This should get you started:
http://ss64.com/ps/get-childitem.html
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
How to set the file path dynamically based on sytem, username, and date
Hi All,
My requirement is upload the data into one structure like xyz that is related to t.code MCSZ.
file will be in UNIx SERVER .
PATH IS: /sapif
file name is xy789 load .txt
I have to write code in one user-exit
how can i set the file path for this.
shall i put hard code file path?
because i have to writecode in user-exit.
plz tell me how to set the file path based ons syetem, username, date
Thanks in advance
Ram.AConcatenate the field SY-SYSID, SY-UNAME and SY-DATUM for the file path
-
Hi all!
Currently I want to allow user to select the file path using those file dialog like JFileChooser/FileDialog... So that there's an input field that accepts a file name... Then another text field which will display the path that the user chose... I need to do that separately to write a .wav file... How do I do it?
I tried using JFileChooser and set this... (.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);) It only shows the directories, yes... But if I open a directory... without anymore directories in it... When I click on the "OK" button... It does not allow me to go on...
CozelHow about this???
import java.io.*;
public class MyFileChooser extends javax.swing.JDialog {
private javax.swing.JPanel cntrPnl;
private javax.swing.JFileChooser chsr;
private javax.swing.JButton cancelButton;
private javax.swing.JButton svButton;
private javax.swing.JTextField dirField;
private java.io.File selFile = null;
public MyFileChooser(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
private void initComponents() {
chsr = new javax.swing.JFileChooser();
cntrPnl = new javax.swing.JPanel();
dirField = new javax.swing.JTextField();
svButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
closeDialog(evt);
chsr.setControlButtonsAreShown(false);
chsr.setDialogType(javax.swing.JFileChooser.CUSTOM_DIALOG);
chsr.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
chsrActionPerformed(evt);
chsr.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
public void propertyChange(java.beans.PropertyChangeEvent evt) {
chsrPropertyChange(evt);
getContentPane().add(chsr, java.awt.BorderLayout.CENTER);
dirField.setEditable(false);
dirField.setMargin(new java.awt.Insets(0, 5, 0, 5));
dirField.setPreferredSize(new java.awt.Dimension(200, 30));
cntrPnl.add(dirField);
svButton.setText("SAVE");
svButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
svButtonActionPerformed(evt);
cntrPnl.add(svButton);
cancelButton.setText("Cancel");
cancelButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cancelButtonActionPerformed(evt);
cntrPnl.add(cancelButton);
getContentPane().add(cntrPnl, java.awt.BorderLayout.SOUTH);
pack();
private void chsrPropertyChange(java.beans.PropertyChangeEvent evt) {
dirField.setText(chsr.getCurrentDirectory().getAbsolutePath());
private void svButtonActionPerformed(java.awt.event.ActionEvent evt) {
selFile=chsr.getSelectedFile();
this.hide();
private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {
selFile = null;
this.hide();
private void chsrActionPerformed(java.awt.event.ActionEvent evt) {
dirField.setText(chsr.getCurrentDirectory().getAbsolutePath());
private void closeDialog(java.awt.event.WindowEvent evt) {
setVisible(false);
dispose();
public static void main(String args[]) {
MyFileChooser fc = new MyFileChooser(null, true);
fc.show();
File f = fc.getSelFile();
if(f!=null)
System.out.println("Selected File is: "+f);
fc.dispose();
System.exit(0);
public File getSelFile() {
return selFile;
}walker -
Changing File path for different TIFF files in a For loop
Hi dear users:
I am using "IMAQ write TIFF File.vi" that basically writes a TIFF file to a specified file path. However, I would like to CHANGE the file path for each TIFF file i save in a for loop. The reason for this is that the File path has to include the file name and I do not want to write over the same file name all the time in a for loop. What I would like to have are sequential TIFF images. So if the file name would be "Image", I would like the result to be Image0, Image1, Image2 and so forth when I run my For loop. Can anyone help me with this?
ThanksUse the "Format Into String" and the "Build Path" functions:
Message Edited by smercurio_fc on 06-26-2007 05:16 PM
Attachments:
Example_BD.png 3 KB -
How to change the excel file name which is in Application server...
hi friends,
my requirement is getting failed, when i'm trying to change the file name which is in Application server using the FM: SXPG_COMMAND_EXECUTE.
when i execute above FM, i can see all my required details in SM69 like:
COMMAND NAME: ZSPOOL_TEST1
OS: Windows NT
TYPE: Customer
OS COMMAND: cmd rename Y:\OBRZ.PDF OBRZ38582.PDF
once the above FM is executed, i'm getting SY-SUBRC = 2 (exception: COMMAND_NOT_FOUND).
so, can any one guide me how to resolve this issue or is there any other way to rename the file which is in AS?
thanks in advance...Hi ,
First you can tranfer the AS server file to a new application server file.
Then you delete the original file .
To do that you can write code as follows --
DATA : w_file(8) TYPE c VALUE 'FILE_NAM', " your present AS file name
w_new(8) TYPE c VALUE 'NEW_FILE',
fs_itab(255) TYPE c,
t_itab LIKE TABLE OF fs_itab.
OPEN DATASET w_file FOR OUTPUT IN BINARY MODE.
DO.
READ DATASET w_file INTO fs_itab. " Reading value from the AS file to field string
IF sy-subrc NE 0.
EXIT.
ELSE.
APPEND fs_itab TO t_itab. " Populating internal table form the file value
ENDIF.
ENDDO.
OPEN DATASET w_new FOR INPUT IN BINARY MODE. " creating a new file if that does not exist
LOOP AT t_itab INTO fs_itab.
TRANSFER fs_itab TO w_new. " Transfering to file
ENDLOOP.
CLOSE DATASET w_file..
DELETE DATASET w_file. " Dleting the old file
CLOSE DATASET w_new. " Closing the final file
Regards
Pinaki -
Transfer file from UNIX to windows application server G:\ drive
Dear Expert,
Really need some help on this, very urgent !
The download program schedule in background to allow file store in unix.
Can we do a unix command in abap program to transfer the file from unix to windows application server G:\ drive.
The gateway for that application server is ukblmqg02.emea.astrazeneca.net .
Anyone have the sample source code ?
Thanks®ards
NislinaHi,
1.
There is a FM 'ARCHIVFILE_SERVER_TO_CLIENT'.
If the requirement need not necessarily require a FM to transfer a file, then you can also use transaction 'CG3Y' to transfer a file
from application server to presentation server.
2.
Try to use FM DOCFILE_SERVER_TO_CLIENT. I am using it to download a file from SAP application server to desktop.
Source path should be application server file path along with file name i.e. /tmp/sample.xls.
Target path should be something like c:\file.xls.
Best regards,
Prashant
Maybe you are looking for
-
I am reinstalling W7 on my iMac and keep getting the black screen. I had installed W7 before when using Snow Leapord but W7 doesn't want to install with the latest drivers (v4.0). W7 was working with Lion but I had to uninstall W7 and now I cannot re
-
Is there an adapter to hook a video projector to my iMac G5. The projector attached to my old powerbook via SCSI. Thank you, Linda
-
How can I set up week duration fom Monday up to Sunday?
Hi to all! I have a problem. When I'm trying to approve Sunday's working time in MSS I don't see right full hours for the past week for my subordinates. In my opinion this is because I've got week duration from sunday up to suturday in my SAP HR cust
-
Bulk Pricing condition record upload
can any body help out for , Is there any transaction code for uploading the pricing condition record in BUlk. Ex: 1000 condition records upload for condition type PR00.. Ragards
-
HT3946 LX3 RAW files very dark after updating to Aperture 3.3.2
Since updating to version 3.3.2 my RAW files from my lumix LX3 appear very dark and with a green caste in both thumbnail and full views. My Nikon NEF files are fine. Anybody else had this problem?