GUI_Download- Problem in Excel
Hi Experts
I am using the Function moduleGui_download to download data from internal table to excel. My issue is, internal table having 93 records. But Excel having 63 records only. other 30 records are merged into 63rd record.
Pls advise me.
Thanks
Kumar
hi,
try with this.
data: begin of i_data occurs 0,
vbeln like vbak-vbeln,
ernam like vbak-ernam,
end of i_data.
DATA: lv_filename TYPE string.
PARAMETERS: p_pcfile like RLGRAP-FILENAME.
at selection-screen on VALUE-REQUEST FOR p_pcfile.
perform getfile using p_pcfile.
lv_filename = p_pcfile.
select vbeln ernam from vbak into table i_data up to 63 rows.
perform download.
*& Form getfile
text
-->P_P_PCFILE text
form getfile using p_p_pcfile like rlgrap-filename.
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'p_p_pcfile '
IMPORTING
FILE_NAME = p_p_pcfile
endform. " getfile
*& Form download
text
--> p1 text
<-- p2 text
form download .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = lv_filename
filetype = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = i_data.
FIELDNAMES = IT_HEADER
endform. " download
reward if useful.
thanks and regards.
Edited by: hema bobbili on May 6, 2008 8:51 AM
Similar Messages
-
Problem with Excel output format
Hi Guys,
I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
Example Numeric fields --> Right Aligned, text fields --> Left Aligned
One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
Our client want excel output on priority.
Is there any limitation for excel output format of reports?
It is very urgent for us please help.
Any help would be highly appreciated.
Thanks,
Pragati
Edited by: user11237443 on Aug 27, 2009 1:22 AMHi Mahi,
Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
I have read that blog for excel limitations but i have more question?
1) What about the negative values?
if any field is displaying negative amount then excel not displaying right value for that:(
2)How can we align header or data?
Do XMLP with EBS provide any solution for formatting in excel?
3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
Here are so many formatting issues do we need to write any code in xml for that?
Please help.
Many Thanks,
Pragati -
Hi All,
I am downloading my data using GUI_DOWNLOAD FM into Excel ,
Here the issue is in excel the Arabic text is displayed as # ,
I have gone through the scn and worked on some suggestions given like to add code page
tab delimiter etc... but could get the desired output..
can anyone suggest me the way to get the Arabic text correct in Excel.
Thanks,
PavanHi Pavan,
Could you please describe shortly about how ,where is the data being retrieved to the program?
whether you are performing any conversions?
what kind of encoding used ?
it would help me to understand and give you the useful inputs to achieve the desired output
Regards,
Prakash -
Problem in Excel after extracting data from SAP Report
Hello,
I have a problem with Excel file after extracting it from one of the SAP report.
When my client extracted data from SAP in to excel he is coming across minus symbol on both sides of the number.
for ex: -447492177-
When i extracted same SAP report in to excel i didnt face any such problem.
Please share your inputs on what could be the problem.1. Make sure your client and you are using the same version of Microsoft Excel
2. Let your client try to OPEN the exported xls file from a existed workbook instead of double-clicking the file directly.
Atom -
Problem with Excel 2013 on W8 and WD NAS
With my W8 laptop, I get a lot of problem saving excel file on my NAS. I get "we can't save filename.xlsx because the file is in read-only. To keep your changes you'll need to save the workbook with a new name or in a different location..."
I'm alone using the file. Not being use by anyone else.
Exemple: load file "A" from the NAS, can't save it back on the NAS. I save it as "B" on my desktop. Open "B" do some change and try to save it... get " that someone else is using the file....
Only way is to save it one a 3rd name...
I have this issue often but not all the time..
Don't see this with W7pro laptops...
Thank youHi FGauthier,
Have you ever try to save Document ,PPT file or Text file to the NAS? Does this issue only occurs with excel file?
what will happen if you copy the file to NAS instead of use the 'save as' feature within excel?
When you open the excel file, if it flagged as read-only, try to right-click the file, check if the read-only option is ticked. Also you can try to save the file as different file format to test this issue.
Also please check if you enable the preview pane, try to disable it .
a) Open File Explorer.
b) Click on View Tab.
c) Click on Preview Pane to view\hide it.
Wind Zhang
TechNet Community Support -
Hello!
I'm doing my first steps into Xcelsius world.
But every time I try to import my excel sheets ... I get this error message "Problem accessing Excel : Exiting" and xcelsius closes.
I really don't understand what is wrong. I've read many other messages but I haven't found a solution yet.
Thanks
BR
FrancescaHi,
Following information might be helpful for resolving the issue.
This problem has to do with a conflict with the automation libraries that Xcelsius uses to interact with MS Excel. All the re-installation attempts have failed because there is likely a 3rd party process or application that is affecting these automation libraries and preventing Xcelsius from communicating with Excel.
This is usually the result of having another application installed that also interacts with Excel. This can also come from a 3rd party Office add-in that integrates with Excel.
Check your Excel add-ins and see if anything is listed there. If you see something listed that does not seem to be a default Excel add-in. Youu2019ll need to uninstall it to prevent it from conflicting with Xcelsius. Let me know your results.
Regards,
Sarbhjeet Kaur -
GUI_DOWNLOAD problem converting long numbers to exponents
hello i am using gui download to download to excel and it is converting my 25 digit number to an exponent on my excel. Is there a way around this ? Thanks.
Thanks for that tip. I haven't tried putting the asterick in the front of it, but i think using another download FM will help. But right now, I just went ahead and instead of using the format 'DAT' I used 'DBF' which ignores the conversions that excel does. So it solved my problem with excel converting my values to an exponent, but the other problem that came about was the column heading was truncated at the space! So i was messing around with the parameters of trunc_spaces = ' ', but still it didn't help.
So basically i just shorten my column headings. =) -
"Problem Accessing Excel: Exiing"
I am currently using the trial version of Xcelsius Present. My goal is to present a business case to my management team for purchasing the product. however I am getting an error stating that There is a problem accessing Excel. Then the application shuts down. Any thoughts as to what the isue is and how to resolve it? I only have 22 days left on my trail version. I would like to get something out together well within that timeframe..
Any feedback is apprecaited...
Thank you.Hi David.
1.) Go to the Task Manager and kill the excel process.
2.) Restart Xcelsius.
Xcelsius integrates and excel instance. Sometimes the excel instance is not closed properly, so you have to kill the instance manually.
Kind Regards
Ulrich -
excel problem
i have problem in excel when i write Arabic or i receive any excel file contain Arabic word it come like letters it do not come like word
my Microsoft office is 2011
what i can doMS Office for Mac does not really support Arabic. But you may just have a font problem. Disconnected letters means a Windows font is being used. Change the font to a Mac font like Geeza Pro.
For better Arabic support, try OpenOffice. -
Xcelsius displays Problem accessing excel: closing message
Hi expert,
I installed Xcelsius 2008 Engage. After that I tried to execute the program. A "Problem accessing excel: closing" message is displayed and after looking similar issues in SDN, and SAP notes... I tried following actions, as suggested::
Restart computer
To check that no MS Offices processes are being executed
No outlook is running
I uninstalled some Office 2007 extra packages
I installed Xcelsius SP1 Fix packs 1, 2 and 3.
After fix packs installation, the error message is still appearing, but now a new message also appears: "Failed to set localized string".
Does anyone have an idea about what I have to do to solve this annoying problem? I can not use Xcelsius!
There is one thing I have to check: that Excel doesn't have installed add-ins. Does anyone know if SAP Business Explorer tools, in special Excel Analyzer, can be considered as an Excel add-in? can this SAP product interfere in Xcelsius excecution, causing the message I get?
Thank you very much!Bobby,
I have none of your mentioned software, except .xla files.
These are .xla files, from SAP GUI I have installed and from SAP Business Explorer. Can theses .xla files interfere in Xcelsius? Should I uninstall this software which is by now my Daily working tools?
BExAnalyzer.xla
CRMSalesPlanning.xla
EXPTOOWS.XLA
HTML.XLAM
MAPDataLayer.xla
MAPDialogLayer.xla
sapbex.xla
sapbex0.xla
sapbexc.xla
sapbexc350.xla
sapbexc700.xla
sapbexp.xla
sapbexs.xla
sap_rpw.xla
SEM_Installation_Check.xla
I will also try to install this Xcelsius in a Virtual Machine...
Thank you very much -
2008 Installed on Vista "Problem accessing Excel: Exitiing"
I installed Xcelsius 2008 onto my new laptop that has Vista on it and it worked fine until I loaded the SP1 Hot Fix 1.
Now when I open the application I get an error stating "Problem accessing Excel: Exitiing" then the app just closes.
Please help.
Thank youThe UAC setting was the main issue I believe. I was getting many other issues also so I uninstalled and reinstalled everything very methodically with great results.
Thanks to all who posted. -
"Problem accessing excel" Error
Hi All,
I have just downloaded the trial version for Xcelsius Engage 2008. Whenver I try to launch it, I am getting an error "Problem accessing excel: exiting". I am using windows XP and excel 2007. I have checked in the windows task manager and there is no rogue Excel.exe task running in the background. Can someone please let me know what I need to do. I am very new to BO, so I have no idea on how it works.
Thanks very much,
PratikUnfortunately we had this issue too and had to reinstall both Xcelsius Engage 2008 and Microsoft Excel 2007.
We suspected something to do with the registry keys, but it works fine now.
Sorry for the all the work but I hope it works.
Xcelsius Gurus
http://www.everythingxcelsius.com
"Xcelsius Gurus share tips, reviews, tricks and much more!" -
Gui_Download export to excel delivering only one row in excel output
Hello,
I am using Vista Os with the SAP front end logon 710 and Office 2007. Also my company is using Ecc6.0 in the server.
I am able to export the Itab data to excel but all the rows are on the first row in Excel.
If i have 3 rows in ITAB then all the 3 rows are on the First row of Excel
I have supplied these parameters
filename = 'C:\ITAB2XLS.xls'
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
SHOW_TRANSFER_STATUS = 'X'
tables
data_tab = itab[]
FIELDNAMES = headingTab[]
Is anyone having the same issue like me ?
Thanks.Hi,
I tried commenting the Field seperator but it didnt change anything. I am still having the same problem.
I am pasting my code sample.
data:begin of itab occurs 0,
grp type c,
val type i,
end of itab.
data:begin of headingTab occurs 0,
TEXT(10) type c,
end of headingTab.
itab-grp = 'A'.
itab-val = 100.
append itab.
itab-grp = 'B'.
itab-val = 200.
append itab.
headingTab-text = 'GROUP'.
append headingTab.
headingTab-text = 'VALUE'.
append headingTab.
call function 'GUI_DOWNLOAD'
exporting
filename = 'C:\ITAB2XLS.xls'
FILETYPE = 'DAT'
WRITE_FIELD_SEPARATOR = 'X'
SHOW_TRANSFER_STATUS = 'X'
tables
data_tab = itab[]
FIELDNAMES = headingTab[]
I think there is some problem with the Vista / Office 2007 with SAP.
Any suggestions? -
GUI_DOWNLOAD problem... URGENT!!!
Hi experts
I'm having a problem that I need to solve urgent, the point is FM GUI_DOWNLOAD is excuted perfectly with parameters:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:test.xls'
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ti_salida2
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.
Excel output file is:
100000000000000000 BLOCK ZC01 OFICNOR
... and must be like this:
100000000000000000598 BLOCK ZC01 OFICNOR
Which parameter I must change for this? I will appreciate any helpfull information because it's urgent.
Regards
mgg
Note: Points rewardedHi Gabriel
Values of internal table were assigned correctly during debug, problem is when FM is excecuted, exactly MATNR field.
If I don't put parameter WRITE_FIELD_SEPARATOR = 'X' , value of MATNR is downloaded as I need.
Regards
mgg -
GUI_Download Japanase to Excel
Hi,
I need to download Japanese characters to Excel.
I'm using GUI_Download function module to download, when I download as text file .txt, with codepage 4110, the japanese characters are shown correctly.
But when I download as Excel file .xls, with codepage 4110, the japanese characters are shown in funny characters.
How can I solve this?This is linked to your workstation or to the codepage.
I had the same trouble with russian.
If your PC is not configurated in Japonese, you can have such a problem. To know if it's OK, you can check by connecting you in japonese, if the characters are strange, your workstation is not in japonese. You should ask a japonese to test on his workstation.
Regards,
Christophe
Maybe you are looking for
-
HI, We have created BDC program, to upload Condtion Price. Since it has large volume data we can not check it one by one. With T-code MEK1, we have uploaded data ( Through BDC program) for vendor, material, plant & condition type combination. Recor
-
Greetings, I have a cascading parameter extracted from a query. After assignment (in data filtering option) to the fields the parameter splits into parameter-field1 and parameter-field2. Parameter-field1 is a combo box and parameter-field2 is pa
-
But How i can copy video's from my pc to itunes.no any option found
But How i can copy video's or movies from my pc to itunes.no any option found
-
Register new report in GL module
Hi all Is there some some doc where i can find the steps to register a new report in oracle apps? I have to build a report from scratch, an i want to register it, in oracle apps in the GL module. Thanks in advance Soni
-
Hi, Could someone tell me what will be the role of SAP HR abap developer in SAP ECC upgrade. Specially Payroll programming. and after the upgrade is done what kind of development support is required. Many thanks Swetha