Using Gui_download for excel output
Hi,
I am using gui_download to output in excel format, my requirement is i want to start records from 3rd row in excel.
On first row first column title shoud come? Second row blank, i used fieldname for header in export paramenter from 3rd row.
Plz help me to sove this issue.
Thanks in advance.
Vishnu.
Hi vishnu,
Here is the sample code below.
*& Report ZVK_TEST1
REPORT zvk_test1.
TYPES:BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln,
bukrs TYPE ekko-bukrs,
END OF ty_ekko.
TYPES:BEGIN OF ty_fields,
field TYPE dd03l-fieldname,
END OF ty_fields.
DATA:lt_ekko TYPE STANDARD TABLE OF ty_ekko,
lt_dummy TYPE STANDARD TABLE OF ty_ekko.
DATA:lw_ekko TYPE ty_ekko.
APPEND INITIAL LINE TO lt_dummy.
APPEND INITIAL LINE TO lt_dummy.
SELECT ebeln bukrs INTO TABLE lt_ekko
FROM ekko UP TO 10 ROWS.
DATA:lt_fields TYPE TABLE OF ty_fields,
lw_field TYPE ty_fields.
lw_field-field = 'PO NUMBER'.
APPEND lw_field TO lt_fields.
lw_field-field = 'COMPANY CODE'.
APPEND lw_field TO lt_fields.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize =
filename = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
filetype = 'ASC'
CHANGING
data_tab = lt_dummy
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
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize =
filename = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
filetype = 'ASC'
append = 'X'
write_field_separator = 'X'
fieldnames = lt_fields
CHANGING
data_tab = lt_ekko
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
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Similar Messages
-
How to Design Report for Excel output?
Hello Experts...
I have both versions Crystal Report XI and Crystal 2013 at this time as we are in the process of Upgrading...
How to design for excel output with no page size limit.
I have several fields going across (crossing width of paper size 11X17 landscape) and I do not need this report output to be printed at all only for excel output.
Appreciate your time!
Thank you,
PadmaHi Padma,
You would need to increase the Page Size horizontally. Go to File > Page Setup > Check 'No Printer' > Check 'Dissociate Formatting Page Size and Printer page Size' > Increase the Horizontal value.
Also see:
http://scn.sap.com/docs/DOC-6687
and
How to WYSIWYG SAP Crystal Reports Export to XLS
Formatting a Crystal Report for Export to MS Excel
-Abhilash -
Preventing automatic scientific notation conversion for excel output?
I have a column in a report that contains a mixture of numbers and letters and hyphens. If the only letter is E, then I get scientific notation instead of the actual text when I run the report for excel output and open it in excel.
For example:
185701E-02 becomes 1.86E+03
4962E6 becomes 4.96E+09
Any ideas how to fix or work around this in the template, data definition, or excel config?
Thanks,
KevinI tried pre-pending an apostrophe in the SQL and in the rtf template to indicate to excel that it is a text field, but this just resulted (not surprisingly) in '185701E-02 instead of 185701E-02
-
Blank spaces while using GUI_DOWNLOAD for Chinese characters
Hi,
While using GUI_DOWNLOAD for chinese characters I have used a code page option of 8300 for Chinese.
The file which is getting downloaded in a notepad has some Chinese characters coming under some headings.
After that columns other columns are getting shifted towards the right.
This is working correctly for English characters.
Can someone please help me.
Now I am using CL_GUI_FRONT_END_SERVICES=>GUI_DOWNLOAD.
What special options should I pass now.
Regards,
SubhashiniHi,
I only solved my problem by using different code pages 8400 and 8300 for Chinese and Taiwanese characters.
I fixed the lengths of the fields by converting them to hexadecimal string and back to string using these function modules as below.
DATA:lv_xstring TYPE xstring,
lv_temp TYPE string.
DATA: lv_conv TYPE REF TO cl_abap_conv_in_ce.
lv_temp = p_name.
CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
EXPORTING
codepage_to = p_codepage
unicode_string = lv_temp
out_len = p_outlen
IMPORTING
xstring_stream = lv_xstring
EXCEPTIONS
invalid_codepage = 1
invalid_string = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
from_codepage = p_codepage
in_xstring = lv_xstring
out_len = p_outlen
IMPORTING
out_string = p_string.
Create a Conversion Instance
lv_conv = cl_abap_conv_in_ce=>create(
encoding = p_codepage
input = lv_xstring ).
v_conv->read( IMPORTING data = p_string ).
Regards,
Subhashini -
Use soundcard for analog output
Is it possible to use soundcard for analog output with LabView6?
nicke wrote:
> Is it possible to use soundcard for analog output with LabView6?
Have a look in the examples under Hardware Input and Output|Sound (LV6.1)
Dunno where it is under 6i, but the files are there.
Impressed the crap out of some Fortran hackers by showing them how
easy I could turn my laptop into a spectrum analyser.
Remove "spamkill." when replying to this message -
GUI_Upload & GUI_Download for excel files
Hi experts,
I want to upload excel file into sap. i am trying with GUI_Upload function module. when i see the data it is filled with # and other special char. When i save the excel file as .txt file and then read the txt file. Now i am getting correct data. Is it possible to read Excel data using GUI_UPLOAD directly without changing .xls to .txt.
Also, how to change data in second or third tab of excel file using GUI_Download.
-RKHi
Actually ur file selection s wrong.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FNAME'
STATIC = 'X'
MASK = '*.txt'
CHANGING
FILE_NAME = P_FNAME
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
Upload:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FNAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = IT_UEXBANK01
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. -
Error when trying to email report using Analyzer for Excel template
I have a report for which I have created both "RTF" and "Analyzer for Excel" based templates. I can email the report using the RTF template, but when I try to email it using the A4E template (using the 'Send' button from the report screen), it never arrives. If I schedule the report to be emailed, it fails, and I get the following error information:
oracle.apps.xdo.servlet.scheduler.ProcessingException: oracle.apps.xdo.servlet.data.DataException: Invalid format requested: html
at oracle.apps.xdo.servlet.scheduler.XDOJob.generateReport(XDOJob.java:959)
at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:404)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: oracle.apps.xdo.servlet.data.DataException: Invalid format requested: html
Ideas?HI,
Is this qury is running fine in SQL?? Have you checked this query in Sql server(Management studio) whether working or not??.
I feel there is some mismatch with relations in query.. Cross check your query once in SQL itself. once it is running well, we will take a look.
Regards,
Salah. -
Issue whith action pane when using BPC for excel in Spanish - BPC 7.5 NW
Hi experts,
We just migrated from BPC NW 7.0 to BPC NW 7.5 and we are having a situation with our BPC for excel client now that if we open it with an english instalation everything is ok but if one client with a spanish instalation opens BPC for Excel, the action pane is empty. On 7.0 version everythng worked ok on spanish. Any idea of how to solve it?
Thanks in advance.Please note that the best practice is to use one language. However, if a number of languages must be used the following solutions may be applied:
If you want end-users to see the very same descriptions in various languages, you may copy the descriptions from one language over to another in BPC Admin Client.
If you want them to see native descriptions in the language the end-user is logged on under, you may log on to BPC Admin Client in the language(spanish) the descriptions are missing for and enter them. Do not forget to process the dimension. Refresh dimension members on client side and process all the dimensions. Now, English descriptions are seen under English and Spanish under Spanish anit is the way it works because SAP has description against EN language only and not spanish
See the notes 1552856 and 1613170 which would be helpful. Thanks.
Regards,
Sanjeev -
How to use variant for diffrent output?
Hi,
I have created one report with ALV_grid_display.
when i execute this report it would show output with less detail.
I have a one checkbox at selection-screen also. My requirement is when i select this checkbox then report should show output with more detail i.e different output.
I have heared we can create variant for this.
Pls tell me how can i do this.
Correct answear will be rewarded by maximum points.
Thanks & Regards,
Gaurav.Hi Gaurav,
leave ur id i will send u the screen shot how to create the variant after getting the output list.
This is the sample programe
just go through the bold one in the coding and do modifications in ur programe,
REPORT ZVRI4E04 LINE-SIZE 250 NO STANDARD PAGE HEADING
MESSAGE-ID MSG.
TYPE-POOLS : SLIS.
TABLES DECLARATION *
TABLES: VBRK, VBRP, VBKD, KONV, KNA1.
V A R I A B L E S *
DATA : W_FIELD TYPE SLIS_FIELDCAT_ALV.
DATA : F_FIELD TYPE SLIS_T_FIELDCAT_ALV.
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
DATA : V_POS TYPE I,
LS_SORT TYPE SLIS_T_SORTINFO_ALV,
W_SORT TYPE SLIS_SORTINFO_ALV.
<b>DATA : IS_VARIANT LIKE DISVARIANT.</b>
<b>IS_VARIANT-REPORT = SY-CPROG.</b>
DATA : BEGIN OF T_VBRK OCCURS 0,
VBELN LIKE VBRK-VBELN,
FKDAT LIKE VBRK-FKDAT,
KNUMV LIKE VBRK-KNUMV,
KUNAG LIKE VBRK-KUNAG,
VKORG LIKE VBRK-VKORG,
VTWEG LIKE VBRK-VTWEG,
SPART LIKE VBRK-SPART,
END OF T_VBRK.
DATA : BEGIN OF T_VBRP OCCURS 0,
VBELN LIKE VBRP-VBELN,
POSNR LIKE VBRP-POSNR,
FKIMG LIKE VBRP-FKIMG,
NTGEW LIKE VBRP-NTGEW,
BRGEW LIKE VBRP-BRGEW,
VOLUM LIKE VBRP-VOLUM,
AUBEL LIKE VBRP-AUBEL,
END OF T_VBRP.
DATA : BEGIN OF T_VBKD OCCURS 0,
VBELN LIKE VBKD-VBELN,
BSTKD LIKE VBKD-BSTKD,
END OF T_VBKD.
DATA : BEGIN OF T_KONV OCCURS 0,
KNUMV LIKE KONV-KNUMV,
KPOSN LIKE KONV-KPOSN,
STUNR LIKE KONV-STUNR,
KSCHL LIKE KONV-KSCHL,
KBETR LIKE KONV-KBETR,
KWERT LIKE KONV-KWERT,
END OF T_KONV.
DATA : BEGIN OF T_KNA1 OCCURS 0,
KUNNR LIKE KNA1-KUNNR,
NAME1 LIKE KNA1-NAME1,
END OF T_KNA1.
DATA : BEGIN OF T_FINAL OCCURS 0,
VKORG LIKE VBRK-VKORG,
VTWEG LIKE VBRK-VTWEG,
SPART LIKE VBRK-SPART,
FKDAT LIKE VBRK-FKDAT,
VBELN LIKE VBRK-VBELN,
POSNR LIKE VBRP-POSNR,
NAME1 LIKE KNA1-NAME1,
BSTKD LIKE VBKD-BSTKD,
FKIMG LIKE VBRP-FKIMG,
NTGEW LIKE VBRP-NTGEW,
BRGEW LIKE VBRP-BRGEW,
VOLUM LIKE VBRP-VOLUM,
BASIC LIKE KONV-KWERT,
EXDUTY LIKE KONV-KWERT,
ED LIKE KONV-KWERT,
CST LIKE KONV-KWERT,
VAT LIKE KONV-KWERT,
SALTAX LIKE KONV-KWERT,
FREIGHT LIKE KONV-KWERT,
TCS LIKE KONV-KWERT,
SRG LIKE KONV-KWERT,
RATE LIKE KONV-KBETR,
END OF T_FINAL.
S E L E C T I O N - S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.
SELECT-OPTIONS: S_KUNAG FOR T_VBRK-KUNAG,
S_FKDAT FOR T_VBRK-FKDAT,
S_VKORG FOR T_VBRK-VKORG,
S_VTWEG FOR T_VBRK-VTWEG,
S_SPART FOR T_VBRK-SPART.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN .
SELECT SINGLE KUNAG FKDAT VKORG VTWEG SPART FROM VBRK INTO T_VBRK
WHERE KUNAG IN S_KUNAG
AND FKDAT IN S_FKDAT
AND VKORG IN S_VKORG
AND VTWEG IN S_VTWEG
AND SPART IN S_SPART.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'THERE IS NO RECORDS FOR THIS SELECTION CRITERIA'.
ENDIF.
START-OF-SELECTION.
SELECT VBELN FKDAT KNUMV KUNAG VKORG VTWEG SPART
FROM VBRK INTO TABLE T_VBRK
WHERE KUNAG IN S_KUNAG
AND FKDAT IN S_FKDAT
AND VKORG IN S_VKORG
AND VTWEG IN S_VTWEG
AND SPART IN S_SPART.
IF NOT T_VBRK[] IS INITIAL.
SELECT VBELN POSNR FKIMG NTGEW BRGEW VOLUM AUBEL
FROM VBRP INTO TABLE T_VBRP
FOR ALL ENTRIES IN T_VBRK
WHERE VBELN = T_VBRK-VBELN.
ENDIF.
IF NOT T_VBRP[] IS INITIAL .
SELECT VBELN BSTKD FROM VBKD
INTO TABLE T_VBKD
FOR ALL ENTRIES IN T_VBRP
WHERE VBELN = T_VBRP-AUBEL.
ENDIF.
IF NOT T_VBRK[] IS INITIAL.
SELECT KNUMV KPOSN STUNR KSCHL KBETR KWERT
FROM KONV
INTO TABLE T_KONV
FOR ALL ENTRIES IN T_VBRK
WHERE KNUMV = T_VBRK-KNUMV.
ENDIF.
IF NOT T_VBRK[] IS INITIAL.
SELECT KUNNR NAME1 FROM KNA1 INTO TABLE T_KNA1
FOR ALL ENTRIES IN T_VBRK
WHERE KUNNR = T_VBRK-KUNAG.
ENDIF.
Populating the final data *
LOOP AT T_VBRP.
READ TABLE T_VBRK WITH KEY VBELN = T_VBRP-VBELN.
READ TABLE T_VBKD WITH KEY VBELN = T_VBRP-AUBEL.
READ TABLE T_KNA1 WITH KEY KUNNR = T_VBRK-KUNAG.
T_FINAL-VKORG = T_VBRK-VKORG.
T_FINAL-VTWEG = T_VBRK-VTWEG.
T_FINAL-SPART = T_VBRK-SPART.
T_FINAL-FKDAT = T_VBRK-FKDAT.
T_FINAL-VBELN = T_VBRK-VBELN.
T_FINAL-POSNR = T_VBRP-POSNR.
T_FINAL-NAME1 = T_KNA1-NAME1.
T_FINAL-BSTKD = T_VBKD-BSTKD.
T_FINAL-FKIMG = T_VBRP-FKIMG.
T_FINAL-NTGEW = T_VBRP-NTGEW.
T_FINAL-BRGEW = T_VBRP-BRGEW.
T_FINAL-VOLUM = T_VBRP-VOLUM.
LOOP AT T_KONV WHERE KNUMV = T_VBRK-KNUMV AND
KPOSN = T_VBRP-POSNR.
IF T_KONV-KSCHL = 'ZIBP' OR T_KONV-KSCHL = 'ZIPR'.
T_FINAL-BASIC = T_FINAL-BASIC + T_KONV-KWERT.
IF NOT T_KONV-KBETR IS INITIAL.
T_FINAL-RATE = T_KONV-KBETR.
ENDIF.
ENDIF.
IF T_KONV-KSCHL = 'ZIED'.
T_FINAL-EXDUTY = T_FINAL-EXDUTY + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZIEC'.
T_FINAL-ED = T_FINAL-ED + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZIVA'.
T_FINAL-SALTAX = T_FINAL-SALTAX + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZIFD' OR T_KONV-KSCHL = 'ZID0'.
T_FINAL-FREIGHT = T_FINAL-FREIGHT + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZITC'.
T_FINAL-TCS = T_FINAL-TCS + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZITS'.
T_FINAL-SRG = T_FINAL-SRG + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZICS'.
T_FINAL-CST = T_FINAL-CST + T_KONV-KWERT.
ENDIF.
IF T_KONV-KSCHL = 'ZIVA'.
T_FINAL-VAT = T_FINAL-VAT + T_KONV-KWERT.
ENDIF.
ENDLOOP.
APPEND T_FINAL.
CLEAR T_FINAL.
CLEAR T_KONV.
CLEAR : T_VBRK, T_VBRP, T_VBKD, T_KNA1.
ENDLOOP.
POSITION DECLARATION FOR ALV OUTPUT *
V_POS = 0.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'VKORG' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'SORG'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'VTWEG' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'DCHL'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'SPART' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'DVS'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'FKDAT' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'Date'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'VBELN' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'Inv No'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'POSNR' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'Item No'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'NAME1' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'Name'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'BSTKD' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-SELTEXT_M = 'PO No'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'FKIMG' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'Quantity'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'NTGEW' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'NT WG'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'BRGEW' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'GR WG'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'VOLUM' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'Volume'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'RATE'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'Rate'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'BASIC'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'BASIC'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'EXDUTY'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'EX Duty'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'ED' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'EDUCATION'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'SALTAX'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'SALTAX'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'CST'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'CST'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'VAT'.
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'VAT'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'FREIGHT' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'FREIGHT'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'TCS' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'TCS'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
V_POS = V_POS + 1.
W_FIELD-COL_POS = V_POS.
W_FIELD-FIELDNAME = 'SRG' .
W_FIELD-TABNAME = 'T_FINAL'.
W_FIELD-DO_SUM = 'X'.
W_FIELD-SELTEXT_M = 'SRG'.
APPEND W_FIELD TO F_FIELD.
CLEAR W_FIELD.
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
<b> I_CALLBACK_PROGRAM = SY-CPROG</b>
I_STRUCTURE_NAME
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = F_FIELD
<b> IS_VARIANT = IS_VARIANT</b>
<b> I_SAVE = 'X'</b>
IT_SORT = LS_SORT
TABLES
T_OUTTAB = T_FINAL
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward points if helpful
Thanks
Message was edited by:
Pattan Naveen -
Display header for excel output using FM GUI_DOWNLOAD
Good morning experts,
I've been exporting my output in excel using the FM GUI_DOWNLOAD. The problem is, my header is not displaying. Kindly check what I've done wrong. Below is how I declared my header.
DATA: BEGIN OF header OCCURS 0,
head1(15),
head2(15),
END OF header.
*& FORM USER_COMMAND
COMMAND for ALV Grid Buttons
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
PERFORM write_header.
CASE r_ucomm.
WHEN 'XCEL'.
CONCATENATE: 'C:\' fname sy-datum INTO fname.
CONCATENATE: fname '.XLS' INTO FILENAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = jtab
FIELDNAMES = header
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.
ELSEIF sy-subrc = 0.
MESSAGE S000(38) WITH 'File ' fname 'saved in Drive C.'.
ENDIF.
ENDCASE.
ENDFORM.
*& Form write_header
text
--> p1 text
<-- p2 text
FORM write_header.
DATA: ctr(2) TYPE p.
DO 6 TIMES.
ADD 1 TO ctr.
CASE ctr.
WHEN 1. header-head1 = 'EMPLOYEE'.
header-head2 = ' NO '.
WHEN 2. header-head1 = 'EMPLOYEE'.
header-head2 = ' NAME '.
WHEN 3. header-head1 = 'LOAN'.
header-head2 = 'TYPE'.
WHEN 4. header-head1 = 'APPROVAL'.
header-head2 = ' DATE '.
WHEN 5. header-head1 = 'LOAN'.
header-head2 = 'CODE'.
WHEN 6. header-head1 = ' MONTHLY '.
header-head2 = 'AMORTIZATION'.
ENDCASE.
APPEND header.
CLEAR: header.
Please help me. All helpful advice will be rewarded points. Thanks a lot.Follow this Example. You can do it in the below manner
You need not add HEADER1 HEADER2 to the internal table. You can just declare one field like below and append all the header columns to the internal table HEADER
data : begin of IT_HEADING occurs 0,
TEXT(15),
end of IT_HEADING.
IT_HEADING-TEXT = 'Company Code'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Currency'.
append IT_HEADING.
IT_HEADING-TEXT = 'Job Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Currency'.
append IT_HEADING.
move P_FNAME to L_FNAME.
call function 'GUI_DOWNLOAD'
exporting
FILENAME = L_FNAME
FILETYPE = 'DAT'
tables
DATA_TAB = IT_FINAL
FIELDNAMES = IT_HEADING
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.
Regards
Gopi -
Converting Standard Oracle Report to XML for excel output
I have gone through the steps of copying a concurrent program for a standard report to a new program, changed the output format to xml, ran the new concurrent job, saved the output as a .xml, then using the xml publisher template builder for word (Oracle Patch 5887917) tried to modify record information so each record will be on the same line in an Excel format. I tried de-normalising the hierarchy using the ../.. syntax to traverse up the hierarchy but only the data at the lowest level displays. Has anyone else run into this issue or have any ideas on how I can fix it.
Here is the xml when I insert a table and convert the table to text just so you can see the hierarchy I'm trying to de-normalise; these are all the fields but not in the order I would want them displayed...
Source
List G Location Id
for-each G_SOURCE SOURCE
G Location Id
for-each LIST_G_LOCATION_ID
List G Exp Receipts
Location Code1
for-each G_LOCATION_ID
G Exp Receipts
for-each LIST_G_EXP_RECEIPTS
Number Release Line
List G Exp Lines
for-each G_EXP_RECEIPTS NUMBER_RELEASE_LINE
G Exp Lines
for-each LIST_G_EXP_LINES
Unit
Product Number
Item Description
Quantity Received
Quantity Billed
Ordered
Due
P Date
List G Exp Shipments
C Flex Item Disp
for-each G_EXP_LINES UNIT
PRODUCT_NUMBER
ITEM_DESCRIPTION
QUANTITY_RECEIVED
QUANTITY_BILLED
ORDERED
DUE
P_DATE
G Exp Shipments
for-each LIST_G_EXP_SHIPMENTS
Invoice Num
Invoice Amount
Invoice Date
for-each G_EXP_SHIPMENTS INVOICE_NUM
INVOICE_AMOUNT
INVOICE_DATE end G_EXP_SHIPMENTS
end LIST_G_EXP_SHIPMENTS
C_FLEX_ITEM_DISP end G_EXP_LINES
end LIST_G_EXP_LINES
end G_EXP_RECEIPTS
end LIST_G_EXP_RECEIPTS
LOCATION_CODE1 end G_LOCATION_ID
end LIST_G_LOCATION_ID
end G_SOURCE
Here is the text from Word before I convert it into a table when I try to de-normalise it...
for-each G_EXP_SHIPMENTS ../../ P_DATE
../../../../../../../../ SOURCE
../../../../ NUMBER_RELEASE_LINE
../C_FLEX_ITEM_DISP
../../PRODUCT_NUMBER
../../ITEM_DESCRIPTION
../../UNIT
../../ORDERED
../../QUANTITY_RECEIVED
../../QUANTITY_BILLED
../../DUE
INVOICE_NUM
INVOICE_DATE
INVOICE_AMOUNT
../../../../../../LOCATION_CODE1 end G_EXP_SHIPMENTSOK, figured it out... when you double click on the field to add the ../, you actually need to click on Add Help Text and add the ../ here
-
Hi all,
Please if sumone cud help,
give me a sample WORKING code for download from internal table to EXCEL (not vice versa!!).
my internal table is getting in the excelfile but all the fieldsare in 1 line..
heres my code..:
data: Lv_file type string,
Lv_path type string,
Lv_file_path type string.
call method cl_gui_frontend_services=>file_save_dialog
changing filename = Lv_file
path = Lv_path
fullpath = Lv_file_path.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = Lv_file_path
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
IMPORTING
FILELENGTH =
tables
data_tab = LIT_ORDER
FIELDNAMES =*& Report ZMR_BACKGROUND_DOWNLOAD_EXCEL
REPORT zmr_background_download_excel.
*TABLES: y001.
CONSTANTS: c_path(14) VALUE '/downloads/'.
*CONSTANTS: c_path(14) VALUE 'C:\ABAP\'.
DATA: BEGIN OF c_tab,
x(2) TYPE C VALUE '09',
END OF c_tab.
DATA : FILENAME LIKE RLGRAP-FILENAME VALUE 'EXAMPLE.TXT'.
DATA: buffer(8000),
fieldname_offset TYPE i,
fullpath(128),
fullpath LIKE sxpgcolist-parameters,
cmdfullpath(128),
cmdfullpath LIKE sxpgcolist-parameters,
cmd(40),
ibtcxpm LIKE btcxpm OCCURS 0.
DATA : BEGIN OF I_MKAL OCCURS 0,
MATNR LIKE MKAL-MATNR,
WERKS LIKE MKAL-WERKS,
VERID LIKE MKAL-VERID,
END OF I_MKAL.
DATA : WA_MKAL LIKE I_MKAL.
DATA : FLAG TYPE C.
DATA : BEGIN OF I_FINAL OCCURS 0,
MATNR LIKE MKAL-MATNR,
MAKTX LIKE MAKT-MAKTX,
WERKS LIKE MKAL-WERKS,
VERID LIKE MKAL-VERID,
ATWRT LIKE AUSP-ATWRT,
ATWRT1 LIKE AUSP-ATWRT,
END OF I_FINAL.
DATA : ZATWRT1 LIKE AUSP-ATWRT,
ZATWRT LIKE AUSP-ATWRT,
ZMAKTX LIKE MAKT-MAKTX.
DATA : LOCATION TYPE C VALUE 'A'.
Start of processing
*FUNCTION z_download.
""Local interface:
*" IMPORTING
*" VALUE(FILENAME)
*" VALUE(LOCATION)
*" TABLES
*" DATA_TAB
*" FIELDNAMES OPTIONAL
data: ws_line type i.
FIELD-SYMBOLS: <f>.
CHECK NOT filename IS INITIAL.
START-OF-SELECTION.
FORMAT COLOR COL_NORMAL.
SELECT MATNR
WERKS
VERID
FROM MKAL INTO CORRESPONDING FIELDS OF TABLE I_MKAL
WHERE SERKZ = 'X'
AND WERKS IN ('1101', '1102').
LOOP AT I_MKAL.
SELECT SINGLE ATWRT
FROM AUSP INTO ZATWRT
WHERE OBJEK = I_MKAL-MATNR
AND ATINN = '0000000019'
AND KLART = '001'.
IF SY-SUBRC = 0.
FLAG = 'X'.
ENDIF.
SELECT SINGLE ATWRT
FROM AUSP INTO ZATWRT1
WHERE OBJEK = I_MKAL-MATNR
AND ATINN = '0000000022'
AND KLART = '001'.
IF SY-SUBRC = 0 AND FLAG = 'X'.
SELECT SINGLE MAKTX
FROM MAKT INTO ZMAKTX
WHERE MATNR = I_MKAL-MATNR.
I_FINAL-MATNR = I_MKAL-MATNR.
I_FINAL-MAKTX = ZMAKTX.
I_FINAL-WERKS = I_MKAL-WERKS.
I_FINAL-VERID = I_MKAL-VERID.
I_FINAL-ATWRT = ZATWRT.
I_FINAL-ATWRT1 = ZATWRT1.
APPEND I_FINAL.
ENDIF.
CLEAR ZATWRT.
CLEAR ZATWRT1.
CLEAR ZMAKTX.
ENDLOOP.
END-OF-SELECTION.
CONCATENATE c_path filename INTO fullpath.
OPEN DATASET fullpath IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
DESCRIBE TABLE I_FINAL LINES ws_line.
IF ws_line NE 0.
PERFORM fieldnames_2_buffer TABLES I_FINAL CHANGING buffer.
fieldname_offset = STRLEN( buffer ).
TRANSFER buffer TO fullpath LENGTH fieldname_offset.
ENDIF.
LOOP AT I_FINAL.
CLEAR buffer.
CLEAR fieldname_offset.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE I_FINAL TO <f>.
IF sy-subrc NE 0. EXIT. ENDIF.
WRITE <f> TO buffer+fieldname_offset.
CONDENSE buffer.
fieldname_offset = STRLEN( buffer ).
WRITE c_tab TO buffer+fieldname_offset(1).
ADD 1 TO fieldname_offset.
ENDDO.
TRANSFER buffer TO fullpath LENGTH fieldname_offset.
ENDLOOP.
CLOSE DATASET fullpath.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZCHMOD'
additional_parameters = fullpath
TABLES
exec_protocol = ibtcxpm
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
IF SY-SUBRC = 0.
ENDIF.
CONCATENATE c_path filename '_cmd' INTO cmdfullpath.
OPEN DATASET cmdfullpath IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
CASE location. "location A, B, C, D on a network
WHEN 'A '.
BREAK-POINT.
TRANSFER 'open 192.9.200.223' TO cmdfullpath.
TRANSFER 'user ROOT ROOT123' TO cmdfullpath.
WHEN 'B '.
TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
WHEN 'C '.
TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
WHEN 'D '.
TRANSFER 'open xx.xxx.xx.xx' TO cmdfullpath.
TRANSFER 'user sapftp <pwd>' TO cmdfullpath.
WHEN OTHERS.
ENDCASE.
*start>
clear y001.
SELECT SINGLE y_path INTO y001-y_path
FROM y001 WHERE bname = sy-uname
AND y_site = location.
TRANSFER y001-y_path TO cmdfullpath.
*<end
BREAK-POINT.
concatenate 'lcd' c_path into cmd separated by space.
TRANSFER cmd TO cmdfullpath.
CLEAR cmd.
CONCATENATE 'put' filename INTO cmd SEPARATED BY space.
TRANSFER cmd TO cmdfullpath.
TRANSFER 'bye' TO cmdfullpath.
CLOSE DATASET cmdfullpath.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZCHMOD'
additional_parameters = cmdfullpath
TABLES
exec_protocol = ibtcxpm
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
IF SY-SUBRC = 0.
ENDIF.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'ZFTP'
commandname = 'ZFTP'
additional_parameters = cmdfullpath
TABLES
exec_protocol = ibtcxpm
EXCEPTIONS
no_permission = 1
command_not_found = 2
parameters_too_long = 3
security_risk = 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry = 13
jobcount_generation_error = 14
OTHERS = 15.
IF SY-SUBRC = 0.
ENDIF.
*ENDFUNCTION.
form fieldnames_2_buffer *
--> fieldnames *
--> buffer *
form fieldnames_2_buffer tables fieldnames changing buffer.
CLEAR buffer.
CLEAR fieldname_offset.
LOOP AT fieldnames.
WRITE fieldnames TO buffer+fieldname_offset.
CONDENSE buffer.
fieldname_offset = STRLEN( buffer ).
WRITE c_tab TO buffer+fieldname_offset(1).
ADD 1 TO fieldname_offset.
ENDLOOP.
fieldname_offset = fieldname_offset - 1.
IF fieldname_offset >= 0.
WRITE space TO buffer+fieldname_offset(1).
ENDIF.
ENDFORM. " -
Need help in formatting a number field with same precision for excel output
I am trying to get the same preciision for a field in RTF template when the output is in EXCEL
i.e. same number of digits after decimal. So, I would like to show 150 as 150.00 and 123.2 as 123.20 etc !! Is there a way to do it. the Built in formatting will not display 150.00 for 150 . but if i add $ symbol it will display. But i dont need $ syambol. please help.I found this on one of the forum questions.
Excel dont preserve the trailing zeros.
try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
Thanks
Swarna -
Download Header using GUI_DOWNLOAD for more than 100 fields
Hi,
I want to download data with header from a database table using the FM 'GUI_DOWNLOAD'.
I know that this can be achieved by
1. Download headers first to an internal table and call FM ' GUI_DOWNLOAD"
2. then Download data to the same file by calling FM 'GUI_DOWNLOAD' with APPEND = 'X'
But my database table has more than 100 fields, pls tell me how to download all the fields as header information.
Thanks in advance.Hi
This can be done using the FM GUI_DOWNLOAD.
Store all the field names in a internal table, pass the internal table to FIELDNAMES component of the FM. This will download the internal table with headings.
Note - To download it as excel, pass FILETYPE as 'DAT'.
Regards,
Vinod -
I don't suppose that there is any possibility that Adobe has
programmed (or hinted that they might possibly consider
programming) RoboHelp so that users can incorporate Skins into CHM
output help files yet?
I know that it is possible using the work-around that has
kindly been provided by RoboWizard - however this is something
people have been asking for for as long as I have been using
RoboHelp - at least 6 years - and probably long before that!
It was logged numerous times (by myself at least) as an
enhancement request via the provided method and still (as far as I
can see - although I am currently using v6 still) there appears to
be no sign of this being a feature of the product.
Does anyone have any updates/progress reports on this?
Thanks muchlyThanks for that - you were quick off the mark! Read my post
and responded even before I had a chance to correct the triple post
mistake!
I wonder whether it is worth adding a separate post
requesting the option to delete unwanted posts (of your own of
course) from the forums - rather than just providing the facility
for users to edit them :o)
Maybe you are looking for
-
In the second leg STO GR and IR created without doing Goods issue and IV
Hi Guru's Please can anyone tell us user is created second leg STO without doing good issue and Intercompany invoice, but he has been done GR and IR it is causing problem in MR11 report still outstanding. i asked user to do GR cancelation or reversal
-
How can I change page number to 10A, 10B?
I am trying to change the page numbers within a section. I can change the thumbnails and the footer to the correct corresponding number but it is still being recognized numerically. For instance, page 10A is 11 and 10B is 12, etc. I am trying to l
-
How do you add a playlist to your podcast
how do add a ply list from your itunes to podcast station
-
select-options : kunnr for kna1-kunnr. on the selection screen there is a data base accses for kunnr. on the selection screen if i want to have my own selected values like 100 200 300 400 500.hw to do that.
-
Problem to read/write and Analyse/Regenerate Signal
hey, i would like to do a complex platform. i have a RF signal, i would like to save it in a binary File (like TDMS file) and after that, i would like to regenerate it, but i have a problem with that. My configuration: Labview 8.5 with modulation too