2007 Oct 03 5:33 AM
hello gurus,
i have Report. i am using that to download data from standard tables and custom tables. here i maitained fieldtables name as headerlines in downlaod files.
that means each file is downloading with fielad lables as like this
name age place
a 20 Bangalore
b 21 Hyderabad
for above format i used GUI_DOWNLOAD FM in my report.I used perametes filename, fieldnames, datatab in that FM.
now my client is asking that the header lines should be generated dynamically
and english speaking colleague should get english headers a german speaking colleague the german headers.
That is my problem, please help me it is very urgent
2007 Oct 03 5:39 AM
Hi Mahesh,
For this you will have to write your own FM where you can get the Language field as an additional attribute and then depending on that input, prepare the Fieldname table and send it to the GUI_DOWNLOAD function module.
i hope this will help you.
~Ramanath.
2007 Oct 03 6:50 AM
hello Ramanath ,
Thanks for your quick reply i want to know how to do it if possible can you tell some what clearly.
Regards
Mahesh
2007 Oct 03 5:54 AM
For the language specific column headers the FM
LVC_FIELDCATALOG_MERGE should be of help.
In the code you would get the field catalog using the above mentioned FM. You can then use the short/long/medium text based on the requirements given to to you.
2007 Oct 03 6:51 AM
2007 Oct 03 7:05 AM
hi mahesh,
u mean the header should be language dependednt?
only the header,?
check the functon module
G_SET_CHANGE_LANGUAGE , this may help u.
call this function module befor gui_download
Message was edited by:
Hymavathi Oruganti
2007 Oct 03 7:16 AM
hello Hymavathi,
i should display the headers dynamically in the downloading files, in my report there are 14 files are downloading while i am executing, i am displaying all headers respective data into file.
but my client is asking that i should display the headers dynamically and if english speaking colleague should get english headers a german speaking colleague the german headers.
2007 Oct 03 7:31 AM
Hello Hymavathi ,
this code i am using to doanload data with headers,now my client is asking that header should be generated dynamically.one more thing is english speaking colleague should get english headers a german speaking colleague the german headers.
Code here i used for download data into file 4.
c_path = p_path.
concatenate c_path 'STOER_4' into c_path separated by '\'.
itab_headbemerk-LABLE = 'Meldung'.
APPEND itab_headbemerk.
itab_headbemerk-LABLE = 'Format'.
APPEND itab_headbemerk.
itab_headbemerk-LABLE = 'Bemerk'.
APPEND itab_headbemerk.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = c_path
FILETYPE = 'DAT'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_EOL = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab_bemerkung[]
FIELDNAMES = itab_headbemerk[]
Regards
Mahesh