Download Language file on Presentation Server.
Hii
I want to download a file which is language specific.Means the data in the internal table is in Login Language .I want to download the data as present in the internal table to a local file .
Please suggest .
Ajitabh Pradhan
Hi,
You can do that using the GUI_DOWNLOAD. but at the same time , whatever thaelogon language is that should be installed in your system, then only the proper file will be downloaded ..
Regards
Sudheer
Similar Messages
-
Download the file in presentation server while the program runs in backgrou
Hi,
Usually we will never download the file in presentation server while the job is scheduled in back ground.
But now i need to do that. I need to download the data in excel file and the same program is scheduling in background.
Can any one suggest how can we do this?
Thanks in Advance,
RaviHi,
There is an alternative provided by SAP. The program RFCEXEC has to be installed locally on the PC.
In SAP R/3 we have to define a destination link to your local PC to the RFCEXEC program. And in the ABAP program we have to invoke the connection by calling the FM RFC_REMOTE_FILE.
I havent tried this before but a detailed documentation is available in this link.
http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm
Reward if useful
Regards
Shiva -
How to schedule a program for download a file to Presentation Server
hi all,
I need to schedule a program which will download a file to presentation server. How can i handle this or is there any other to download a file during scheduling?
Points will be rewarded
Thanks in advanceHi Jayasree,
You can download your file to application server in background scheduling.
In your program use OPEN DATASET command for achieving this.
How ever, as far as i know, it is not possible to download the file to presentation server in background job.
regards,
G@urav. -
Downloading a file on presentation server
Dear All,
I have a requirement where in I need to run a custom report in the background (since it gives a short dump for max permitted time when run in foreground). However, I need to download a file with report output on the presentation server (user's desktop). Can you please help me know how can I download a file on user's desktop by running the report in background?
Thanks & Regards
SujayHi Suraj,
I had also researched a lot for this requirement for my project. This requirement, to download the file to a local system by running a job cannot be done.
But there is a work around for this requirement, you can write a program to download the data to a "AL11" active directory in your the server( using an open dataset ). This program can be executed in background too, since we are writing the file to the server directory. If its a normal .txt file, you can ask the user to check it in AL11 or you can ask the basis team to copy that file from the active directory and send it to the user.
I think this will help you a little bit.
Regards
Maneesh Chandran -
Download the file in Presentation server with TAB Delimited
Hi,
I have to download the data of the finla internal table in presentation servr.
The oup put file should be TAB Delimited. I can do the same with using LOOP.
Is there any class or FM to do the same so that the out put file can be TAB Delimited.
SandeepHI,
you can use the fm
GUI_DOWNLOAD
in that if you see the
WRITE_FIELD_SEPARATOR - the import parameter, you can use this
so that the fille will be downloaded with tab delimited.
Regards,
Venkatesh -
Error while downloading the PDF file on presentation server
Hi all,
i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows
'Access to file denied' . Can anyone tell me what may be the issue ? Below is my code
DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
DATA: ws_bin_size TYPE i.
DATA: t_otf TYPE TABLE OF itcoo,
ws_filename TYPE string.
t_otf[] = wa_job_info-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = ws_bin_size
TABLES
otf = t_otf
lines = i_lines.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = ws_bin_size
filename = 'C:\ABC.PDF'
filetype = 'BIN'
TABLES
data_tab = i_lines.Hi Sayeed,
You may not having the permissions to create files in 'C' folder. Change the path and try again. -
How to download a file from application server to presentation server
Hi experts,
I want to download a file from application server to presentaion server, file contaims three fields customer name, customer email id and status..
help me out i m new into sap.Dear Aditya,
Please check below thread
http://scn.sap.com/thread/1010164
it will help you.
BR
Atul -
Generating tab delimited file on presentation server
Hi All,
I have to generate a tab delimited file on presentation server. The file shouldn't have '#' as separator. Instead it should be separated by TAB (when you press TAB button, some spaces will come naa... like that) ' '. Please advice me how to do this...
Thanks in Advance,
Regards,
PhaniHi,
Check this example..
DATA: BEGIN OF itab OCCURS 0,
matnr TYPE matnr,
werks TYPE werks_d,
END OF itab.
itab-matnr = 'ABC'.
itab-werks = 'ASDF'.
APPEND itab.
itab-matnr = 'EFG'.
itab-werks = 'DHIS'.
APPEND itab.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\test.txt'
write_field_separator = 'X'
TABLES
data_tab = itab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
MESSAGE s208(00) WITH 'File downloaded'.
ENDIF.
Thanks,
Naren -
Reading a file on presentation server to binary data table
Hi Experts
I have to provide a 'Add attachment' functionality in my application and check in the attachments to DMS. Now the DMS check-in api expects the attachment file on presentation server in form of an internal table of binary data. Could you please suggest me any function module to read file data to a table of binary data.
Thanks and best regards
Anand.hi,
Try this FM,
C13Z_FILE_UPLOAD_BINARY Uploads a file in binary format
C13Z_FILE_DOWNLOAD_BINARY Downloads a file in binary format
Hope this helps, Do reward.
Edited by: Runal Singh on Mar 17, 2008 12:56 PM -
Copy File from Presentation Server to Application Server in Background
Hi,
I need to copy Image file from Presentation Server to Application Server.
The below given code is workking fine in Foreground but whenevr I am trying to execute in Background, the job is cancelled and I am getting a dump.
data : wa_source type string,
wa_destination type string.
wa_source = 'C:\PARBIND.BMP'.
wa_destination = 'D:\PARBIND.BMP'.
start-of-selection.
call method cl_gui_frontend_services=>file_copy
exporting
source = wa_source
destination = wa_destination
* overwrite = SPACE
* EXCEPTIONS
* cntl_error = 1
* error_no_gui = 2
* wrong_parameter = 3
* disk_full = 4
* access_denied = 5
* file_not_found = 6
* destination_exists = 7
* unknown_error = 8
* path_not_found = 9
* disk_write_protect = 10
* drive_not_ready = 11
* not_supported_by_gui = 12
* others = 13
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
In backgound Error is....
Exception condition "CNTL_ERROR" raised.*
Any solution is appreciated.
Thanks
ArbindHi Arbind,
Just realize... when you run it in foreground, you have a foreground to capture the file location. so it runs fine..
but when you are running it in background, there is no foreground to check that is no gui present... how can it check where the C:\.... location is??
no need of reading any oss note... just see.. the name is cl_GUI_FRONTEND_service.. its only for front end..
u need open dataset, read dataset, close dataset kind of things while running in background. or RFCs to read the file... (search SDN). -
How to search file from presentation server
Hi All,
In a ABAP program i want to display a dialog box which will help me to find out any file from presentation server.That dialog box should be display after clicking on parameter on selection screen.Parameter is a simple variable,not a field from any internal table. so i can not use function module F4IF_INT_TABLE_VALUE_REQUEST
Please suggest me any function module which will satisfy my requirement.
Thank you.Hi,
Check this example..
DATA: T_FILETABLE TYPE FILETABLE.
DATA: RC TYPE I.
DATA: USER_ACTION TYPE I.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = T_FILETABLE
rc = RC
USER_ACTION = USER_ACTION
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Naren -
How to get the files in presentation server while uploading?
how to get the files in presentation server while uploading?
give me the function module nameHi,
PARAMETERS: P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES. "Prsnt Srvr
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = P_FILE
MASK = ',..'
MODE = '0 '
TITLE = 'Choose File'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5. -
Urgent: loading a pdf file to presentation server at the end of the day
hi
I got a requirement like smartform will be converted into pdf file and it will loaded into application server, at the End of the day all the pdf files which are generated on that day will be loaded to in file at presentation server ,
so please help me out regarding
Thanks in advance
regards
krishnaHi Chris,
this problems are in fact new to me, but I'm just starting on a new workplace where they have these issues since forever.
I'm hoping that new point of view may find a solution to it ;-)
I'll try to watch the traffic - it could be related to the particular network we have. Will ask and post some more info tomorrow.
Thank you!
/best
/j -
Read XML file from presentation server
Hi All,
I want read XML file from presentation server currently i am using GUI_UPLOAD fm . but it is reading some junk data.
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
is there any other alternative.
Thanks
Swarup,Hi Swarup,
Use method IMPORT_FROM_FILE of class CL_XML_DOCUMENT.
A sample code snippet :-
PARAMETERS: p_filnam TYPE localfile OBLIGATORY
DEFAULT 'C:\Documents and Settings\ssaha\Desktop\test.xml'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam.
DATA: l_v_fieldname TYPE dynfnam.
l_v_fieldname = p_filnam.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = l_v_fieldname
IMPORTING
file_name = p_filnam.
START-OF-SELECTION.
TYPES:
BEGIN OF ty_tab,
name TYPE string,
value TYPE string,
END OF ty_tab.
DATA:
lcl_xml_doc TYPE REF TO cl_xml_document,
v_subrc TYPE sysubrc,
v_node TYPE REF TO if_ixml_node,
v_child_node TYPE REF TO if_ixml_node,
v_root TYPE REF TO if_ixml_node,
v_iterator TYPE REF TO if_ixml_node_iterator,
v_nodemap TYPE REF TO if_ixml_named_node_map,
v_count TYPE i,
v_index TYPE i,
v_attr TYPE REF TO if_ixml_node,
v_name TYPE string,
v_prefix TYPE string,
v_value TYPE string,
v_char TYPE char2.
DATA:
itab TYPE STANDARD TABLE OF ty_tab,
wa TYPE ty_tab.
CREATE OBJECT lcl_xml_doc.
CALL METHOD lcl_xml_doc->import_from_file
EXPORTING
filename = p_filnam
RECEIVING
retcode = v_subrc.
CHECK v_subrc = 0.
v_node = lcl_xml_doc->m_document.
CHECK NOT v_node IS INITIAL.
v_iterator = v_node->create_iterator( ).
v_node = v_iterator->get_next( ).
WHILE NOT v_node IS INITIAL.
CASE v_node->get_type( ).
WHEN if_ixml_node=>co_node_element.
v_name = v_node->get_name( ).
v_nodemap = v_node->get_attributes( ).
IF NOT v_nodemap IS INITIAL
* attributes
v_count = v_nodemap->get_length( ).
DO v_count TIMES.
v_index = sy-index - 1.
v_attr = v_nodemap->get_item( v_index ).
v_name = v_attr->get_name( ).
v_prefix = v_attr->get_namespace_prefix( ).
v_value = v_attr->get_value( ).
ENDDO.
ENDIF.
WHEN if_ixml_node=>co_node_text OR
if_ixml_node=>co_node_cdata_section.
* text node
v_value = v_node->get_value( ).
MOVE v_value TO v_char.
IF v_char <> cl_abap_char_utilities=>cr_lf.
wa-name = v_name.
wa-value = v_value.
APPEND wa TO itab.
CLEAR wa.
ENDIF.
ENDCASE.
* advance to next node
v_node = v_iterator->get_next( ).
ENDWHILE.
LOOP AT itab INTO wa.
ENDLOOP.
Regards
Abhii -
Download the file to apllication server
hai all,
My requirement is i need to download the file in application server and i need to validate the file path that file already exist or not if exist it has to give the error message
How can i do that.
Pls send the fn modules are methods which is suitable for my requirement with code.
I will reward the points,
Thanks in advance
LaxmiHI,
report zexternalfile .
tables : zzpublisher,
sscrfields.
data: it_publisher like standard table of zzpublisher,
wa_publisher like zzpublisher.
select * from zzpublisher into table it_publisher.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'C:\externalfiles\kamal.XLS'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = it_publisher
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
<b>Reward useful points,</b>
siva
Maybe you are looking for
-
Can't include C-code in objective-c project
I am having problems including a little C source code file in an existing objective-c project. The problem is that xcode spits out lots of warnings and error messages when it tries to compile the whole project or just the C file, in particular, lots
-
Rendering - Final Cut will not render clips under any of the 3 choices?
Final Cut will not render clips mov, or dv under any of the 3 choices, including stuff I have done before.
-
How to trigger workflow from WDA and read workflow container into WDAscreen
Dear Expert, Please suggest the solution for the following requirement: 1. Create 1 leave request from WDA and submit for approval 2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval . 3. W
-
Attribute override for @GeneratedValue
It seems that there's no capability to override @GeneratedValue for subclass (of mapped superclass etc.) in JPA? If this is correct then I can argue lack of design consistency. @AttributeOverride allows for column to be overwritten for property/field
-
How to interface LabVIEW to Matlab?
Hallo everyone, I have a function written in Matlab that does some calculations, the final result which is a number should be sent to LabVIEW to do something else. I want to know what is the best method to do this, ActiveX, TCP/IP or something else.