ALV truncation while download using List--Save/send--File--Spread sheet
Experts,
In ALV output, I am trying to download using menu item
"List --> Save/send --> File --> Spread sheet" then in the popup appears
here if i GIVE the FILE NAME THEN,material number is getting truncated.
If I don't give any file name it is storing as ".xls" and not getting truncated.
How to correct this or avoid this truncation.
OR
If we can't do correction about truncation ...my function consultant is asking to
to disable "List --> Save/send --> File".
Thanks in advance.
Sam
Solved by my own....
We need to pass
i_fieldcat-no_zero = 'X'.
so that the zeros at the end won't get truncated.
Similar Messages
-
Avoid splitting of columns ALV report while download output to Excel sheet
Hi friends,
I have 170 columns in my ALV report
while downloading the report to Excel sheet
the column descriptions and values are splitting in two lines.
How can i avoid the problem.
before calling REUSE_ALV_GRID_DISPLAY function module in my code
for the Layout i assigned LS_LAYOUT-MAX_SIZE = 1023.
but still the problem is not solved.
Please help me in this Issue.
Thanks in Advance,
GaneshHi friends,
I dont want to use and Keyboard shiftcntrl....
or dont want to change any code in ALV report
by simply assigning some value to any of the export parameter in ALV function module
can we achieve the functionality
Thanks in Advance,
Ganesh -
Disable download (System- List- Save) from PF STATUS ?
Hi All,
We have a program with Classical Report output and would like to disable the download option
(Menu bar->System->List->Save->Local file). Is this possible?
Created a new PF Status, but it seems by default 'System' & 'Help' will always be there in Menu bar.
Is it possible to deactivate the Save->Local file option or the Menu bar completely?GO TO se80
open your program their.
Navigate to pf-status.
If you are using a standard pf then first copy it to your program and set pf-status in your program.
Then double click on your pf status
go to menu bar
click on the menu you want to disable option from.
Just delete their function code, save and activate.
You will find the option not working.
Hope this helps.
Regards,
Lalit Mohan Gupta. -
System =) List =) Save =) Local File is grayed out in ECC6
Hi experts,
I tried to search this question before posting.
Many of my reports (both standard SAP and customize) CAN NOT user function:
System>List>Save-->Local File since we updated to ECC6
Please suggest me any OSS note I can use to resolve this problem.
Thanks,
KhanhHi Vikranth,
I wrote the code as below to check download authorization:
AUTHORITY-CHECK OBJECT 'S_GUI'
ID 'ACTVT' FIELD '60'. " '61'.
if sy-subrc <> 0.
write: 'do not have authorization'.
else.
write: 'have authorization'.
endif.
Both cases the result is 'have authorization'.
Is it correct?
Thanks,
Khanh -
Why do i get an error 66 when i sent a mail use SMTP Email Send File.vi?
When i use SMTP Email Send File.vi,it works very well for some special mail sever such as the sever of my company,For others,while debugging it ,i use a free email address from 163 (http://mail.163.com/) or Sina(http://mail.sina.com.cn/) i get an error 66.I use the default sever port number(incoming mail sever(POP3):110,Outgoing mail sever(SMTP):25).
Server information for 163:
incoming mail sever(POP3)op3.163.com
Outgoing mail sever(SMTP):smtp.163.com
Server information for Sina:
incoming mail sever(POP3)op3.sina.com
Outgoing mail sever(SMTP):smtp.sina.com
Thank you!According to the LabVIEW documentation error code 66 is: "The network connection was closed by the peer", which is not very helpful. There could be a number of reasons why this happens. Could also be that the server was down. I had trouble connecting to one of the sites you listed. Does the server require authentication? I tried the links you provided, but they're in a foreign language and I can't read them, so I can't tell. If authentication is required, then the SMTP VIs provided with LabVIEW won't work since they don't handle authentication. If the server requires authentication you can try the updated OpenG SMTP VIs that I had posted in this thread.
-
Using wildcards (*) in sender file adapter - FTP type
Hi guys!
Dooes it work using wildcards in sender file adapter (FTP type(!) (filesystem obviously work))? I tried it and it failed. it works only for exact name..
I read some articles about FTP and the result is, that ftp work always only with 1 file, so I'm wondering, if this is possible.
Thanks for info!
OlianThanks for all replies..
I know of course, that * can be used, I use it in many scenarios too. But on a FileSystem. It is not working if the sender type is FTP.
*, ., *.dat, ... nothing like that works.. Just exact file name.
I am able to pick up file, if I specify it's exact name, so there should be no problem with permissions..
Please, I'd appreciate one reply with comfirmation: yes, we are using asterisk (*) , we access source files via FTP and they are processed.
Is there anybody with this experience, that it works?
Thank you!
Olian -
I had some problems with ITunes and had to uninstall but now when I reinstall iTunes after I click on download iTunes and save the File, I get this message"Thank you for downloading iTunes" and nothing else happens. I don't see any thing else. Now not sure what else I have to do.
Thanks,
RanjitSee the further information area of Troubleshooting issues with iTunes for Windows updates.
tt2 -
HT203106 Can I use AirDrop to send files from iPhone 5 to my iPad Air 2?
Can I use AirDrop to send files from iPhone 5 to my iPad Air 2?
Yes.
Use AirDrop to wirelessly share content - Apple Support -
How can I send a spread sheet from numbers to someone who does not use numbers.
I have been trying to send a spread sheet I created in numbers. I have tried email as excel and pdf. She still she cannot open. There must be a way.
Diane,
It's a rare computer user who can't open a PDF. I wonder what the problem is with your friend's system, or if you weren't really sending a PDF. Did you try to open the PDF document yourself?
Jerry -
Last digit truncates while downloading to Excel from ALV Grid
Hi All,
I have been using REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY in my report program.
While i use REUSE_ALV_GRID_DISPLAY and downloading the data to a local file(Excel) the last digit of the Vendor code is truncated. But in REUSE_ALV_LIST_DISPLAY the datas are downloaded correctly as displayed in the ALV.
I have copied the code for the reference.
REPORT zfirp001 .
TYPE-POOLS: slis.
TABLES: bsak.
SELECT-OPTIONS: s_bukrs FOR bsak-bukrs,
s_lifnr FOR bsak-lifnr,
s_blart FOR bsak-blart,
s_augdt FOR bsak-augdt,
s_zterm FOR bsak-zterm.
PARAMETERS: s_list AS CHECKBOX,
s_vari LIKE disvariant-variant.
DATA: g_ext_num(24) TYPE c.
DATA: BEGIN OF gt_bsak OCCURS 0,
bukrs LIKE bsak-bukrs,
lifnr LIKE bsak-lifnr,
augdt LIKE bsak-augdt,
gjahr LIKE bsak-gjahr,
belnr LIKE bsak-belnr,
blart LIKE bsak-blart,
zterm LIKE bsak-zterm,
END OF gt_bsak.
DATA: BEGIN OF gt_bseg OCCURS 0,
bukrs LIKE bseg-bukrs,
belnr LIKE bseg-belnr,
gjahr LIKE bseg-gjahr,
wrbtr LIKE bseg-wrbtr,
projk LIKE bseg-projk,
shkzg LIKE bseg-shkzg,
hkont LIKE bseg-hkont,
END OF gt_bseg.
ALV
DATA: gt_fieldtab TYPE slis_t_fieldcat_alv,
g_save(1) TYPE c,
g_variant LIKE disvariant.
DATA: BEGIN OF gt_result OCCURS 0,
bukrs LIKE bsak-bukrs,
lifnr LIKE bsak-lifnr,
name1 LIKE lfa1-name1,
augdt LIKE bsak-augdt,
gjahr LIKE bsak-gjahr,
belnr LIKE bsak-belnr,
blart LIKE bsak-blart,
zterm LIKE bsak-zterm,
wrbtr LIKE bseg-wrbtr,
waers LIKE bkpf-waers,
ext_num(24) TYPE c,
txt20 LIKE skat-txt20,
usr00 LIKE prps-usr00,
usr01 LIKE prps-usr01,
usr02 LIKE prps-usr02,
usr03 LIKE prps-usr03,
END OF gt_result.
CONSTANTS: c_credit(1) TYPE c VALUE 'H',
c_x(1) TYPE c VALUE 'X',
c_en(2) TYPE c VALUE 'EN',
c_mrc(4) TYPE c VALUE 'CA01'.
*====================================================
INITIALIZATION.
PERFORM initialize_variant.
AT SELECTION-SCREEN.
PERFORM pai_of_selection_screen.
*====================================================
START-OF-SELECTION.
REFRESH gt_result.
find clearing documents
SELECT bukrs
lifnr
augdt
gjahr
belnr
blart
zterm
INTO TABLE gt_bsak
FROM bsak
WHERE bukrs IN s_bukrs
AND lifnr IN s_lifnr
AND augdt IN s_augdt
AND blart IN s_blart
AND zterm IN s_zterm.
CHECK NOT gt_bsak[] IS INITIAL.
LOOP AT gt_bsak.
read WBS items
SELECT bukrs
belnr
gjahr
dmbtr
projk
shkzg
hkont
INTO TABLE gt_bseg
FROM bseg
WHERE bukrs = gt_bsak-bukrs
AND belnr = gt_bsak-belnr
AND gjahr = gt_bsak-gjahr
AND projk > space.
gt_result-bukrs = gt_bsak-bukrs.
gt_result-lifnr = gt_bsak-lifnr.
gt_result-augdt = gt_bsak-augdt.
gt_result-belnr = gt_bsak-belnr.
gt_result-gjahr = gt_bsak-gjahr.
gt_result-blart = gt_bsak-blart.
gt_result-zterm = gt_bsak-zterm.
document currency
SELECT SINGLE waers
INTO gt_result-waers
FROM bkpf
WHERE bukrs = gt_bsak-bukrs
AND belnr = gt_bsak-belnr
AND gjahr = gt_bsak-gjahr.
vendor name
SELECT SINGLE name1
INTO gt_result-name1
FROM lfa1
WHERE lifnr = gt_result-lifnr.
for each accounting document
LOOP AT gt_bseg.
convert to external WBS
CALL FUNCTION 'PSPNUM_INTERN_TO_EXTERN_CONV'
EXPORTING
edit_imp = c_x
int_num = gt_bseg-projk
IMPORTING
ext_num = gt_result-ext_num
EXCEPTIONS
not_found = 1
OTHERS = 2.
debit or credit
IF gt_bseg-shkzg = c_credit.
gt_result-wrbtr = gt_bseg-wrbtr.
ELSE.
gt_result-wrbtr = gt_bseg-wrbtr * -1.
ENDIF.
GL short Text
SELECT SINGLE txt20
INTO gt_result-txt20
FROM skat
WHERE spras = c_en
AND ktopl = 'CA01'
AND saknr = gt_bseg-hkont.
user fields
SELECT SINGLE usr00
usr01
usr02
usr03
INTO (gt_result-usr00,
gt_result-usr01,
gt_result-usr02,
gt_result-usr03)
FROM prps
WHERE pspnr = gt_bseg-projk.
append to result table
APPEND gt_result.
ENDLOOP.
ENDLOOP.
*====================================================
END-OF-SELECTION.
PERFORM initialize_fieldcat USING gt_fieldtab[].
g_variant-report = sy-repid.
g_save = 'A'.
IF s_list = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = gt_fieldtab
i_default = 'A'
i_save = g_save
is_variant = g_variant
TABLES
t_outtab = gt_result.
ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = gt_fieldtab
i_default = 'A'
i_save = g_save
is_variant = g_variant
TABLES
t_outtab = gt_result.
ENDIF.
*& Form initialize_variant
FORM initialize_variant.
g_save = 'A'.
CLEAR g_variant.
g_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = g_save
CHANGING
cs_variant = g_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
s_vari = g_variant-variant.
ENDIF.
ENDFORM. " INITIALIZE_VARIANT
*& Form pai_of_selection_screen
FORM pai_of_selection_screen.
IF NOT s_vari IS INITIAL.
MOVE s_vari TO g_variant-variant.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
i_save = g_save
CHANGING
cs_variant = g_variant.
ELSE.
PERFORM initialize_variant.
ENDIF.
ENDFORM. " PAI_OF_SELECTION_SCREEN
*& Form initialize_fieldcat
FORM initialize_fieldcat USING p_fieldtab TYPE slis_t_fieldcat_alv.
DATA: l_fieldcat TYPE slis_fieldcat_alv.
CLEAR l_fieldcat.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'BUKRS'.
l_fieldcat-seltext_L = 'Company'.
l_fieldcat-outputlen = '8'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'LIFNR'.
l_fieldcat-seltext_L = 'Vendor'.
l_fieldcat-outputlen = '10'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'NAME1'.
l_fieldcat-seltext_L = 'Name'.
l_fieldcat-outputlen = '35'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'AUGDT'.
l_fieldcat-seltext_L = 'Cleared'.
l_fieldcat-outputlen = '10'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'GJAHR'.
l_fieldcat-seltext_L = 'Year'.
l_fieldcat-outputlen = '5'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'BELNR'.
l_fieldcat-seltext_L = 'Document'.
l_fieldcat-outputlen = '10'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'BLART'.
l_fieldcat-seltext_L = 'Type'.
l_fieldcat-outputlen = '4'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'ZTERM'.
l_fieldcat-seltext_L = 'Pay Terms'.
l_fieldcat-outputlen = '4'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'WRBTR'.
l_fieldcat-seltext_L = 'Amount'.
l_fieldcat-outputlen = '13'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'WAERS'.
l_fieldcat-seltext_L = 'CURR'.
l_fieldcat-outputlen = '5'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'EXT_NUM'.
l_fieldcat-seltext_L = 'WBS'.
l_fieldcat-outputlen = '24'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'TXT20'.
l_fieldcat-seltext_L = 'Short Text'.
l_fieldcat-outputlen = '20'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'USR00'.
l_fieldcat-seltext_L = 'H/O File Ref'.
l_fieldcat-outputlen = '20'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'USR01'.
l_fieldcat-seltext_L = 'Local File Ref'.
l_fieldcat-outputlen = '20'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'USR02'.
l_fieldcat-seltext_L = 'INFORM Agree ID'.
l_fieldcat-outputlen = '10'.
APPEND l_fieldcat TO p_fieldtab.
l_fieldcat-tabname = 'GT_RESULT'.
l_fieldcat-fieldname = 'USR03'.
l_fieldcat-seltext_L = 'INFM Prim Ag ID'.
l_fieldcat-outputlen = '10'.
APPEND l_fieldcat TO p_fieldtab.
ENDFORM. " INITIALIZE_FIELDCAT
Could the experts do help to overcome the probs.
Thanks in Advance.
Regards,
Anbalagan.VHi Anbalagan,
i've tested your program - but it works fine (Rel. 4.6C,SAPKB46C30)
download is ok and direct transfer (excel inplace) is ok.
but i've a question to the selection of waers in your program -
why do you select waers from bkpf and not from bsak ?
i think sel. of bkpf is'nt necessary !
regards Andreas -
Fixing columns while downloading using GUI_DOWNLOAD!!
Hi,
I have declared an internal table which is downloaded using GUI_DOWNLOAD and after downloading the required outpout should appear in their own place for example:
MATNR MEINS PLANS
123 test1 test2
12 test3 test3
but whats actually happening ...
123test1test2
12test3test3
how to fix the columns so that field value appear in that location only and from the same postion for all the records once downloaded..
Regards
GunjanHi Gunjan,
You can try this:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = v_filename
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = ' '
For ASCII download, if you specify the field separator as spaces, then it will automatically separate fields with TABS.
Hope this helps.
Thanks,
Rajesh -
I am being prompted to download the update to a new version of Firefox. When I click on download, I receive a window to save the file. I save the file instead of canceling. After the download has been saved, my version of Firefox still has not been update. How do I apply the update?
Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.
-
How to increase the camera download speed and save binary file speed
My camera is pco dimax S1 camea. The interface is cameralink Base.
The memory is on board.
I use 1000fps@480*480 resolution to capture 1 sec.
Then download the images from the on board memory to computer.
The board in the PC side is NI-1429 board.
Theory, the cameralink transport speed should be 250MB/S
In the file format, file size should be (480(H)*480(V)*16bit*1000fps)/8=460.8 MB
Logically it should be download complete under 2 sec
But in my program, the real download speed at about 40 framess/s, (480*480*16*40)/8=18.432 MB/S
(250MB/S)/(18.432MB/S)= 13.85
The download speed is totally slower 13.8 times.
I use the SSD and RAID 0 to save the file.
I did some test as below:
1. Try to save png or binary file. The speed of binary had a litter faster, but it still doesn't close the 250MB/S.
2. I try to adjust the resolution from 16bit to 12bit or 8bit to save the image. The download speed still 40 frames/s(18.432MB/S)
3. I try to use IMAQ Sequence to save the file, but how to add in my program, can anyone help me?
On the other hand, I also guess may be the structure of my program have an problem cause the download and save speed slow.
Attached please find the program.
To see if there are other ways to increase the speed of file written!
Attachments:
Imagesavebinary.vi 91 KB
test.png 157 KBYou have to separate your step1 and step2 into two parallel loop.
If you put the two tasks in one loop, the lower speed task will affect the loop speed.
So that the program won't achieve the top speed.
Is continuous acquisition required for your application? Can sequence acquisition or finite acquisition be your workaround?
The memory handling in continuous acquisition is way a lot more difficult than finite acquisition.
I would suggest you to figure out how finite acquisition work and then jump into the continuous acquisition application. -
One day out of the blue, I started noticing that my usual downloads won't save to my designated folders, images, pdfs, and etc. Sure, the progress bar will indicate that it is being downloaded, but once it finishes it just disappears like it never existed. If I hover over the thing, it just shows "file not found." I can even see the file disappear right from the folder it was being downloaded to. I thought it was just a temporary bug since using plugin download manager like FlashGet works fine. Then I noticed even simple image with right click Save As to designated folder won't save as well. I tried looking for solutions: deleting download.rdf (not found); resetting download settings under about:config ( browser.download.dir
and browser.download.downloadDir not even found); clearing download history; delete downloads.sqlite and mimeTypes.rdf; and even running in safe mode. Nothing helped. I'm about at my wits end. I haven't changed my internet or security settings at all recently.It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.
You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
See http://kb.mozillazine.org/Unable_to_save_or_download_files (Disable virus scanning in Firefox preferences - Windows) -
Unzip file using PayloadZipBean in Sender FILE adapter
I am trying to unzip a flat file in Sender FILE adapter using PayloadZipBean.
I am getting mapping error. The problem is File adapter is reading data without unzipping. I am getting weird characters/data, so mapping error.
I searched all the blogs/ forum threads and help.sap.com, everywhere the focus is on zipping, not unzipping.
the file I have is with .gz extension, but I tried with .zip extension also.
Please help in resolving this issue.
Edited by: Gopal Janagama on May 2, 2008 11:42 PMGopal,
GZIP and ZIP format are slightly different, as stated here :
"GZIP compresses only one file and does not have a header. ZIP contains header information about what files are contained in the file."
So I'm not sure the PayloadZipBean supports GZIP format ... Try to ungzip and then zip its content and see if the bean works for it
Rgds
Chris
Maybe you are looking for
-
Help installing AMD Radeon 8490 graphic card on HP Pavilion P7-1110
Appreciate any help on this that anyone can give. I'm at a loss at the moment. Just got an AMD Radeon 8490 graphics card to put into the HP Pavilion p7-1110 desktop. I have not opened up the back of a computer for probably ten years (used to do it
-
Ipod won't sync with songs on Itunes
I just recently bought a laptop and it has Windows Vista 64 bit (Home Premium). I was able to sync the Ipod (40GB 4th Gen) with the laptop as far as transferring purchases. But I can't get the Ipod to sync as far as taking songs from Itunes and putti
-
WriteXML puts null in attribute values
How can I avoid getting nulls in my attribute values when I use the Row.writeXML function? It causes the XSL to choke. I'd appreciate your help.
-
Firefox periodically stops loading websites entirely, using 25-30% CPU
Just in the last day or so (possibly around the same time I updated to 7.0.1) I've had difficulty even using Firefox with normal use. After a very short period of time (often less than a minute), Firefox will give up on loading websites. Sometimes a
-
Messages on Mavericks won't open after 10.9.2 upgrade
Hi, I upgraded to 10.9.2 this morning and now when I try tro open Messages I get the following Box. "The last time you opened Messages, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?" How can I fix this?