Diff ws and gui upload
difference between ws_upload and gui_upload
hi sunil,
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
Instead of using the function modules, you can use the static methods GUI_UPLOAD and GUI_DOWNLOAD of the global class CL_GUI_FRONTEND_SERVICES.
~~Guduri
Similar Messages
-
HI all pls give me diff btwn upload ws_upload and GUI Upload
HI All,
pls give me difference between
upload
ws_upload and
GUI Upload
Thanks & regards .
Bharat KumarHi,
WS_* Function modules are replaced by GUI_* FMs from 4.7 SAP version.
GUI_* modules have additional parameters when compared with WS_* FMs.
Both FM are used for uploading data .
But ws_upload is obsolete now .
WS_UPLOAD and WS_DOWNLOAD, the function modules used until now are not part of the standard set of ABAP commands. They are used to display the file interface on the presentation server. WS_UPLOAD and WS_DOWNLOAD are not compatible with USs and have been replaced by GUI_UPLOAD and GUI_DOWNLOAD.
The new function modules, GUI_UPLOAD and GUI_DOWNLOAD, have an interface that also allows you to write Unicode format to the local hard drive. For a description of these interfaces, refer to the documentation for each function module, available under SAP Easy Access " Development " Function Builder " Goto " Documentation.
WS_UPLOAD, GUI_UPLOAD FMs are used in BDCs.
WS_UPLOAD loads files from the Presentation Server to Internal ABAP Tables.
This is used upto SAP 4.6 version.
GUI_UPLOAD is used to loads a file from the PC to the server. The data can be
transferred in binary or text format. Numbers and data fields can be
interpreted according to the user settings.
You can check this for some info
http://help.sap.com/saphelp_erp2005/helpdata/en/79/c554a3b3dc11d5993800508b6b8b11/frameset.htm
http://www.sapdevelopment.co.uk/file/file_otherpc.htm
Regards,
Priyanka. -
Problem while uploading data with GUI UPLOAD Function
Hi,
I am facing problem while uploading data with FM GUI UPLOAD in out text file there are 7 row but after the FM GUI UPLOAD there are 14 entries are coming in Internal table and each alternate row is coming as blank with 0000 in some column in internal table first row is proper and second line is blank so on.
what can be the problem .
The program in which we are using this we are using it from last 2 year but we are facing problem today only.
regards,
zafarHi,
The file formate is same as it is from last two years it is automatically generated by one another bar code server and there is no change in the file formate.
So waht can be the problem to check any inconsistancy in system i have develop a samll program fro uploading a text file with same function module , but it is working fine.
regards,
zafar -
HI ,
I am using GUI upload function and i get the data into table and i want to move this data to field type string how can i do that ?
Regards
Joy
DATA: gt_itab TYPE STANDARD TABLE OF char2048.
START-OF-SELECTION.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = gs_file
CHANGING
data_tab = gt_itab
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.Hi,
Refer following code
types : BEGIN OF ty_s_download,
data TYPE string, "Tax Data
END OF ty_s_download.
G L O B A L D A T A D E C L A R A T I O N S
*Global Internal tables
DATA : gt_download TYPE STANDARD TABLE OF ty_s_download. "Download data
LOOP AT gt_tax_data INTO ls_tax_data.
Pass All the tax data to screen output table
ls_output-bukrs = ls_tax_data-bukrs.
ls_output-state = ls_tax_data-state.
ls_output-store = ls_tax_data-store.
ls_output-tax_type = ls_tax_data-tax_type.
ls_output-tax_rate = ls_tax_data-tax_rate.
ls_output-discount_amount = ls_tax_data-discount_amount.
lv_discount = ls_tax_data-discount_amount.
lv_tax_rate = ls_output-tax_rate.
Calculate Gross tax due
ls_output-gross_due = ls_tax_data-report_amount.
lv_gross_due = ls_output-gross_due.
IF NOT ls_tax_data-tax_rate IS INITIAL.
Calculate Taxable Purchase
ls_output-purchase = ls_output-gross_due / ls_tax_data-tax_rate.
ELSE.
ls_output-purchase = 0. "Default it to zero if the tax_rate is zero.
ENDIF.
lv_purchase = ls_output-purchase.
Calculate Net Tax Due
ls_output-net_due = ls_output-gross_due - ls_tax_data-discount_amount.
lv_net_due = ls_output-net_due.
Concatenate all field values
CONCATENATE ls_output-bukrs
ls_output-state
ls_output-store
ls_output-tax_type
lv_purchase
lv_tax_rate
lv_gross_due
lv_discount
lv_net_due
INTO ls_download-data
SEPARATED BY lc_tab.
Append all the downloaded tax data
APPEND ls_download TO gt_download.
Clear work areas
CLEAR : ls_output,
ls_tax_data,
ls_download,
lv_purchase,
lv_discount,
lv_tax_rate,
lv_net_due,
lv_gross_due.
ENDLOOP.
Regards,
Prashant -
How to upload (.txt) file by using GUI Upload?
I tried to upload .csv file in using GUI upload and it works.
THIS IS MY SAMPLE CODE.
CLEAR w_rawfile.
DESCRIBE TABLE i_rawfile LINES v_read. "Counter for records read
Condense w_rawfile-field.
Separate header record from detail records
LOOP AT i_rawfile INTO w_rawfile.
IF sy-tabix = 1. "header is always the first record
SPLIT w_rawfile-field AT ' ' INTO
w_header_file-name1
w_header_file-name2
w_header_file-name3
w_header_file-cntry
w_header_file-address1
w_header_file-address2.
APPEND w_header_file TO i_header_file.
CLEAR: w_header_file.
ELSE. "succeeding records are detail records
SPLIT w_rawfile-field AT ',' INTO
w_inputfile-nachn
w_inputfile-vorna
w_inputfile-nach2
w_inputfile-land1
w_inputfile-stras
APPEND w_inputfile TO i_inputfile.
ENDIF.
IF i try to replace my file into a .txt format. An error occurs. Please kindly give me the code to do this correctlt. ThanX!Reading Data from Presentation Server (Dialog)
To read data from the presentation server into an internal table with a user dialog, use the function module UPLOAD. The most important parameters are listed below. For more information, refer to the function module documentation in the Function Builder (Transaction SE37).
Important Import Parameters
Parameters
Function
CODEPAGE
Only for upload under DOS: Value IBM
FILENAME
Filename (default value for user dialog)
FILETYPE
File type (default value for user dialog)
ITEM
Title for dialog box
Use the FILETYPE parameter to specify the transfer mode. Possible values:
BIN
Binary files
ASC
ASCII files: Text files with end of line markers.
DAT
Excel files, saved as text files with columns separated by tabs and lines separated by line breaks.
WK1
Excel and Lotus files saved as WK1 spreadsheets.
Important Export Parameters
Parameters
Function
FILESIZE
Number of bytes transferred
ACT_FILENAME
Filename (as entered in the user dialog)
ACT_FILETYPE
File type (as entered in the user dialog)
Tables Parameters
Parameters
Function
DATA_TAB
Internal table (target for the import)
Exceptions Parameters
Parameters
Function
CONVERSION_ERROR
Error converting data
INVALID_TABLE_WIDTH
Invalid table structure
INVALID_TYPE
Incorrect FILETYPE parameter
Suppose the presentation server is running under Windows NT, and contains the following Excel file:
If this table is saved as a text file "D:\temp\mytable.txt" with tabs between the columns, the following program can read the table:
PROGRAM SAPMZTST.
DATA: FNAME(128), FTYPE(3), FSIZE TYPE I.
TYPES: BEGIN OF LINE,
COL1(10) TYPE C,
COL2(10) TYPE C,
COL3(10) TYPE C,
END OF LINE.
TYPES ITAB TYPE LINE OCCURS 10.
DATA: LIN TYPE LINE,
TAB TYPE ITAB.
CALL FUNCTION 'UPLOAD'
EXPORTING
CODEPAGE = 'IBM'
FILENAME = 'd:\temp\mytable.txt'
FILETYPE = 'DAT'
ITEM = 'Read Test for Excel File'
IMPORTING
FILESIZE = FSIZE
ACT_FILENAME = FNAME
ACT_FILETYPE = FTYPE
TABLES
DATA_TAB = TAB
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3.
WRITE: 'SY-SUBRC:', SY-SUBRC,
/ 'Name :', (60) FNAME,
/ 'Type :', FTYPE,
/ 'Size :', FSIZE.
SKIP.
LOOP AT TAB INTO LIN.
WRITE: / LIN-COL1, LIN-COL2, LIN-COL3.
ENDLOOP.
The program displays the following dialog box:
Here, the user can change the default values. When the user chooses Transfer, the system imports the data from the file D:\temp\mytable.txt into the internal table TAB.
The output appears as follows:
SY-SUBRC: 0
Name : d:\temp\mytable.txt
Type : DAT
Size : 69
Billy the Kid
My Fair Lady
Herman the German
Conan the Barbarian
The contents of the internal table TAB are exactly the same as the contents of the original Excel table. -
hi,
when i upload a file using gui upload Function module , the dot in the excel sheet gets converted into 'e' . is there any other Function module i can use to do that .
Thanks,
AmitHI,
You need to USe the FM <b>'ALSM_EXCEL_TO_INTERNAL_TABLE'</b>
*& Report UPLOAD_EXCEL *
*& Upload and excel file into an internal table using the following *
*& function module: ALSM_EXCEL_TO_INTERNAL_TABLE *
REPORT UPLOAD_EXCEL no standard page heading.
*Data Declaration
data: itab like alsmex_tabline occurs 0 with header line.
* Has the following format:
* Row number | Colum Number | Value
* i.e. 1 1 Name1
* 2 1 Joe
TYPES: Begin of t_record,
name1 like itab-value,
name2 like itab-value,
age like itab-value,
End of t_record.
DATA: it_record type standard table of t_record initial size 0,
wa_record type t_record.
DATA: gd_currentrow type i.
*Selection Screen Declaration
PARAMETER p_infile like rlgrap-filename.
*START OF SELECTION
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
filename = p_infile
i_begin_col = '1'
i_begin_row = '2' "Do not require headings
i_end_col = '14'
i_end_row = '31'
tables
intern = itab
exceptions
inconsistent_parameters = 1
upload_ole = 2
others = 3.
if sy-subrc <> 0.
message e010(zz) with text-001. "Problem uploading Excel Spreadsheet
endif.
* Sort table by rows and colums
sort itab by row col.
* Get first row retrieved
read table itab index 1.
* Set first row retrieved to current row
gd_currentrow = itab-row.
loop at itab.
* Reset values for next row
if itab-row ne gd_currentrow.
append wa_record to it_record.
clear wa_record.
gd_currentrow = itab-row.
endif.
case itab-col.
when '0001'. "First name
wa_record-name1 = itab-value.
when '0002'. "Surname
wa_record-name2 = itab-value.
when '0003'. "Age
wa_record-age = itab-value.
endcase.
endloop.
append wa_record to it_record.
*!! Excel data is now contained within the internal table IT_RECORD
* Display report data for illustration purposes
loop at it_record into wa_record.
write:/ sy-vline,
(10) wa_record-name1, sy-vline,
(10) wa_record-name2, sy-vline,
(10) wa_record-age, sy-vline.
endloop.
See the Below wxamples to uploa the excel file
http://www.sapdevelopment.co.uk/file/file_upexcel.htm
http://www.sap-img.com/abap/upload-material-master-finish-goods.htm -
Hi Guys,
I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
AlexMany thanks.
With those symptoms, I'd try the following document:
Apple software on Windows: May see performance issues and blank iTunes Store
(If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.) -
I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id
I am trying to insert rows for alert_id 22 with diff abc_id and xyz_id
these inserts will store in two tables that I have to join in the cursor.
I have written cursor without passing cursor parameters. but here i need to pass acb_id and xyz_id along with alert_id.
then if these are saticified with alert_id 22 then I want to stop the loop run, else i need to continue the loop. bcause the abc_id and xyz_id are diff for alert_id 22
This is the issue I am facing!
Please let me know if you have any idea. Let me know how to use cursor parameters here and in loop.
Sample proc like this::
Declare
main_cursor
another_cur
alert_cur
begin
need to check first abc_id,xyz_id is already exist with alert_id 22
if this set of records already exists then
exit from the loop
else
continue with
loop
here coming the insert statements with different condition getting from first two cursors.(this part is ok for me)
end loop
end if
Please write the logic if any idea on this.
-LRKI want to stop if already alert_id is exist!
-
I can't get Mozilla Drag and Drop Uploader to work. Suggestions for troubleshooting?
I have a recurring need to post 100's of photos from "My Pictures" to a web site. I currently click on "Browse", up pops the photo file, and I then must manually select the proper photos and double click them to move them to the web site.
A colleague who has the same recurring need has told me to download Firefox as my browser, then download and install the "Drag and Drop Uploader". By doing this, I should be able to simply highlight the proper photos from 'My Pictures" and drag them to the correct box on the web site.
I have seen him do this on his computer, so I know it is possible. I'm guessing the problem I am having lies in having downloaded incompatible versions.
Help?Support for that extension is here: <br />
http://www.teslacore.it/wiki/index.php?title=DragDropUpload -
I have created my site with Muse and have uploaded to an external ftp hosting, now my secure log in will not work because I am not using BC. Is there a way to create a secure log in that will work with out being forced to use BC?
Hi
Secure Zone login feature will only work if you host your website with Business catalyst.
Please take a look to this as an alternative
Password Protect Pages Widget for Adobe Muse
Also, check this thread,
Re: Can I create a login/password protection in Muse for a HTML5 page or two? -
I have a separate apple id and my daughter bought a song using my ID rather than hers. She was playing on my computer and bought it, thinking it would download to her phone through the cloud. Now I've got this song that I don't care for and have no use for. Is there a way to get it to her ID short of burning it on to CD and then uploading it to her phone?
sure pretty simple. make a backup of your current settings
http://support.apple.com/kb/HT1766?viewlocale=en_US
then restore device from old backup you need pics off of
then import pics to computer
http://support.apple.com/kb/HT4083
you may need to save pics to camera roll first
then restore the new backup and sync pics back to phone via itunes
Peace, Clyde -
How do I convert a word document into a pdf and then upload it to a web site
How do I convert a word document into a pdf and then upload it to a web site so people can read it from my
site with Dreamweaver 4?. How can I do this? Can anyone please help? I'm only a newbie. Thanking you in anticipation.First you need to install a means of printing to pdf from word. I like cutepdf writer ( http://cutepdf.com/Products/CutePDF/writer.asp ). Once installed you will print the doc in word and under the printer selection you choose pdf.
Once you have the file you put it in your local site folders and upload it using Dreamweaver. Be sure to link to it from a page so users can get to it and I would recommend giving the link a target of _black so it will open in a new window (see the properties inspector in DW). -
Can I record sound using a microphone and then upload it to server?
Hello guys I thank you in advance for reading this. What I want to know is if it is possible to record a sound clip using a microphone and then upload it to the server using a swf applet in a webpage. Im an experienced java/javascript programmer but just starting out with flash/action script. What technologies will I need to do this? Can I do this simply using simply an swf file and an apache/php or jsp page? Again, thanks alot for your help.
-BeWilledYou can Microphone class in Flash to record the sound and it will directly upload to FMS server .
Use the Microphone class to capture audio from a microphone attached to a computer . Use the Microphone class to monitor the audio locally. Use the NetConnection and NetStream classes to transmit the audio to Flash Media Server. Flash Media Server can send the audio to other servers and broadcast it to other clients running Swf files .
Below link might help you in doing this : http://www.adobe.com/devnet/air/flex/articles/using_mic_api.html -
I just got tOhe iPhone 4Gs today and had contacts and photos uploaded from another phone synced new phone with iTunes for music and accidentally restored it so all my old iPhone stuff is on the new one is there any way to fix this ?! Please help !!!!
Could you be more specific about what exactly do you want to fix now?
-
I recently upgraded my MacBook from 10.5.8 to 10.6.8 Snow Leopard. Now when I create a song in Garage Band 2008, I cannot save the volume adjustment when I share back to iTunes, which is now version 11.1.1, and ultimately upload to YouTube. The volume reverts back to a default? low level. How can I retain the volume I assign in Garage Band, so that when the song moves to iTunes it doesn't revert?
I recently upgraded my MacBook from 10.5.8 to 10.6.8 Snow Leopard. Now when I create a song in Garage Band 2008, I cannot save the volume adjustment when I share back to iTunes, which is now version 11.1.1, and ultimately upload to YouTube. The volume reverts back to a default? low level. How can I retain the volume I assign in Garage Band, so that when the song moves to iTunes it doesn't revert?
Maybe you are looking for
-
A single Form containing two colums
Hi In Flex 3 is there any way to build a Form with two columns. I want to lay out a Form to look nice. The following structure seems to end up with the FormItems losing their alignment. I've simplified the structure to keep the concept simple. <Title
-
500 null error trying to run JSP
I installed Coldfusion Developer Edition, which I understand can run JSP files with JRun. When I try to do so, however, I receive a "500 null" JRun Servlet Error. The file can be completely empty and I'll get this same error. As you can imagine, this
-
quick question... if i delete the aperture program on my mac pro, will the aperture library of pictures be deleted as well? i plan on re-installing. of course all my pictures are already backed up but it would save me a ton of time re-uploading them.
-
Government Securities - SAP Treasury Securities
Government Securities Government security INR 100000 Government Securities Maturity Period: 3 years from the date of subscription i.e. Jan 2014 Interest on Government Securities: 8% Interest frequency: Bi-annual (june 30, Dec 31) Here, what are the
-
HT1688 iphone plays recent podcast after phone call. this is after recent update.
iphone reverts to last played podcast after making a phone call. I thought this was fixed by last update, but apparently not - is there a fix?