Diff between gui_upload &? ws_upload
can any one tell me what is the difference between gui_upload and ws_upload.
Hi harish
WS_UPLOAD function module is now obsolete
from 4.7 ,gui_upload is used., this supports OOPs.
check this
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.
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.
These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.
Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:
TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2
TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2
For a detailed description, see the class documentation in the Class Builder. The following classes are available:
CL_ABAP_CONV_IN_CE
Reads data from a container and converts it to the system format. You can also fill structures with data.
CL_ABAP_CONV_OUT_CE
Converts data from the system format to an external format and writes it to a container.
CL_ABAP_CONV_X2X_CE
Converts data from one external format to another.
These classes are used to convert ABAP data from the system format to external formats and vice versa. During this conversion process, character-type data may be converted to another character set, while numeric-type data may be converted to another byte order (or endian format). You must use a container of type X or XSTRING for data in an external format.
Character sets and endian formats are also converted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. The classes described below are available for those special cases where the possibilities offered by conversion are insufficient. Since these classes work with containers of types X and XSTRING, these containers can be copied unconverted by the file interface (OPEN DATASET with new additions), RFCs, and the function modules GUI_DOWNLOAD and GUI_UPLOAD. These classes replace the following two statements:
TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2
TRANSLATE f ...FROM NUMBER FORMAT n1 ... TO NUMBER FORMAT n2
For a detailed description, see the class documentation in the Class Builder. The following classes are available:
CL_ABAP_CONV_IN_CE
Reads data from a container and converts it to the system format. You can also fill structures with data.
CL_ABAP_CONV_OUT_CE
Converts data from the system format to an external format and writes it to a container.
CL_ABAP_CONV_X2X_CE
Converts data from one external format to another.
Minimal demo report for Virus Scan Interface.
For a functionally more complete example see report RSVSCANTEST.
REPORT zvscandemo.
Selection screen
PARAMETERS:
profile TYPE vscan_prof-profile,
file TYPE localfile.
Events
AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
PERFORM file_f4.
START-OF-SELECTION.
PERFORM main.
Main program
FORM main.
IF file IS INITIAL.
MESSAGE s058(vscan) DISPLAY LIKE 'E'.
EXIT. " =================== EXIT =====================
ENDIF.
Access file and create XSTRING
TYPES:
ty_xline(1024) TYPE x.
DATA:
lf_file TYPE string,
lf_filelength TYPE i,
lt_datatab TYPE STANDARD TABLE OF ty_xline.
lf_file = file.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lf_file
filetype = 'BIN'
IMPORTING
filelength = lf_filelength
CHANGING
data_tab = lt_datatab
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
DISPLAY LIKE 'E'
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT. " =================== EXIT =====================
ENDIF.
Recombine binary data
DATA:
lf_tabline TYPE ty_xline,
lf_data TYPE xstring.
LOOP AT lt_datatab INTO lf_tabline.
CONCATENATE
lf_data
lf_tabline
INTO
lf_data
IN BYTE MODE.
ENDLOOP.
lf_data = lf_data(lf_filelength).
Get scanner instance
DATA:
lo_vsi TYPE REF TO cl_vsi.
CALL METHOD cl_vsi=>get_instance
EXPORTING
if_profile = profile
IMPORTING
eo_instance = lo_vsi
EXCEPTIONS
configuration_error = 1
profile_not_active = 2
internal_error = 3
OTHERS = 4.
CASE sy-subrc.
No error.
WHEN 0.
" Nothing to do
Profile not active. For this report, this is an information message.
WHEN 2.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
DISPLAY LIKE 'I'
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT. " =================== EXIT =====================
All other exceptions are issued as errors.
WHEN OTHERS.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
DISPLAY LIKE 'E'
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT. " =================== EXIT =====================
ENDCASE.
Perform virus scan
DATA:
lf_scanrc TYPE vscan_scanrc.
CALL METHOD lo_vsi->scan_bytes
EXPORTING
if_data = lf_data
IMPORTING
ef_scanrc = lf_scanrc
EXCEPTIONS
not_available = 1
configuration_error = 2
internal_error = 3
OTHERS = 4.
All exceptions here are errors
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
DISPLAY LIKE 'E'
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT. " =================== EXIT =====================
ENDIF.
Print return code and text
DATA:
lf_text TYPE string.
lf_text = cl_vsi=>get_scanrc_text( lf_scanrc ).
WRITE: / 'Result of virus scan: ', lf_scanrc, '(', lf_text, ')'.
IF lf_scanrc = cl_vsi=>con_scanrc_ok.
WRITE: / 'File is clean'.
ELSE.
WRITE: / 'File was either infected',
'or could not be scanned',
'or was ignored'.
'Or another problem occurred'.
ENDIF.
ENDFORM.
F4-help for filename
FORM file_f4.
DATA:
lt_filetable TYPE filetable,
lf_rc TYPE i.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
multiselection = abap_false
CHANGING
file_table = lt_filetable
rc = lf_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
DISPLAY LIKE 'E'
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
Number of selected filed must be equal to one.
CHECK lf_rc = 1.
Access selected file
DATA:
ls_file TYPE file_table.
READ TABLE lt_filetable INTO ls_file INDEX 1.
CHECK sy-subrc = 0.
file = ls_file-filename.
ENDFORM.
Similar Messages
-
i want to upload some records from the flat file to internal table. when i use GUI_UPLOAD function module in tables parameter i have given the work area. but when i use CL_GUI_FRONTEND_SERVICES-=>FILE_OPEN_DIALOG and then CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD i have given the internal table body in the changing parameters. my doubt is we have used GUI_UPLOAD in both occassions but when we use GUI_UPLOAD alone we are giving the internal table workarea but when we use it along with class CL_GUI_FRONTEND_SERVICES we are giving the internal table body. whats is the reason or logic behind this?.
Hi guys -- the answers you've given are correct but an example IMO is 100% better
go_guiobj type ref to cl_gui_frontend_services., "For Windows file dialog
form load_data using e_file type string
e_table.
field-symbols <int_table> type standard table.
assign e_table to <int_table>.
if go_guiobj is initial.
create object go_guiobj.
endif.
call method go_guiobj->gui_download
exporting
filename = e_file
filetype = 'ASC'
write_field_separator = 'X'
changing
data_tab = <int_table>.
endform
* For Directory look up service (Windows)
at selection-screen
on value-request for p_direct.
search_path = p_direct.
perform directory_lookup using search_path.
if not gv_folder is initial.
p_direct = gv_folder.
endif.
form directory_lookup using directory type string.
if go_guiobj is initial.
create object go_guiobj.
endif.
call method go_guiobj->directory_browse
exporting
window_title = 'Select Directory'
initial_folder = directory
changing
selected_folder = gv_folder.
endform. "directory_lookup
Cheers
jimbo -
Difference between GUI_UPLOAD and WS_UPLOAD
Hi,
Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??
Thanks,
SatishI would suggest to always use the GUI_UPLOAD. I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES. Really, you should probably use the class/method instead of the function module.
data: filename type string.
filename = p_file.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = filename
filetype = 'ASC'
changing
data_tab = iflatf
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
no_authority = 6
unknown_error = 7
bad_data_format = 8
unknown_dp_error = 12
access_denied = 13
others = 17.
Regards,
Rich Heilman -
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. -
How can I make a server differ between two or more clients?
How can I make a server differ between two or more clients?
The clients can connect and talk to the server fine, but how can I make the server talk to one, two or all clients? i.e. what would be a good way to implement this?
Currently, the server listens for connections like this:
while (listening) {
try {
new ServerThread(this, serverSocket.accept()).start();
I guess one way would be to add the ServerThreads to a Hashtable with the client ID as key, and then get the ServerThread with the proper client ID, but this seems unnecessary complicated. Any ideas?Complicated was perhaps the wrong word, I should have
written something like it doesn't "feel" right. Or is
this a common and good way to solve communication
between a server and multiple clients?Thats pretty much how I do it. I normally use an array or ArrayList of Sockets instead of HashTable, with [0] being the first player etc.... Then you can communicate with exactly who you want. If you want to send bytes to all of them, just send the same thing to each socket individually (or is there a better way to do this?). -
What are the Major and Minor Diffs between oracle,sql server,MSAccess
Hi all,
Can any one explain or send me all the diff between
oracle ,sql server,access..like how much data can each
support,...
ThanksDear sir,
here it is.
http://www.oracle.com/database/product_editions.html -
In LSMW, what is diff between LSMW-BAPI and LSMW-IDOC
hello all
In LSMW, what is diff between LSMW-BAPI and LSMW-IDOCHi Swamy,
The differences between IDoc and BAPI are as follows:
IDOC
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system.
Idocs are processed asynchronously and no information whatsoever is returned to the client.
The target system need not be always online. The IDOC would be created and would send the IDOC once the target system is available (tRFC concept). Hence supports guaranteed delivery.
With asynchronous links the sub-process on the client can be finished even if the communication line or the server is not available. In this case the message is stored in the database and the communication can be done later.
The disadvantage of asynchronous links is that the sub-process on the server cannot return information to the calling sub-process on the client. A special way for sending information back to the client is required. In addition, a special error handling mechanism is required to handle errors on the receiving side.
IDOCs may be more changeable from release to release.
IDOCs are poorly documented.
BAPI
BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
BAPIs are called synchronously and (usually) return information.
For BAPIs the client code needs to do the appropriate error handling.
Problems with synchronous links occur if the communication line or the server is temporarily not available. If this happens, the sub-process on the client cannot be finished (otherwise there would be data inconsistencies).
Synchronous links have the advantage that the sub-process on the server can return values to the sub-process on the client that has started the link.
BAPIs are not totally immune to upgrades.
BAPIs are reasonably well documented.
Reward points if useful.
Best Regards,
Sekhar -
Hi Experts ,
We have ECC6.04 with SRM 7.0 with Classic Scenarion
I am confused over exactly what BBP_GET_STATUS_2 do in SRM ?
I believe CLEAN_REQREQ_UP update the SC with follow on document i..e Classic PO....
and BBP_GET_STATUS_2 update the entries in BBP_DOCUMENT_TAB..but not getting exactly what is does..since if we change qty in Classic Po ..it automatically updates automatically in SC follow on document...if we Craete GR in ECC it updates automatically in SC follow on document...
Can anyone please suggest me exactly what BBP_GET_STATUS_2 do in SRM ( what is exact diff between both )?
Thanks
NAPHello,
Report : BBP_GET_STATUS_2
Function : This reports updates the requirement coverage requests (Shopping carts) to ensure that information on the status of backedn purchase requisitions, purchase orders, and reservations is up-to-date.
You should schedule this report to run daily in the SRM server system.
Report : CLEAN_REQREQ_UP
Function : Interval for update check.
Updating of documents (purchase requisitions, purchase orders, reservations) is executed asynchronously in the backend system. You can only process the requirement coverage request in the SRM server system further after the update has been carried out. At the interval defined by you in Customizing, the system checks whether the documents have been updated and thus if you can further process the requirement coverage request.You should schedule this report periodically.
Hope this helps.
Best Regards,
Rahul -
Diff between Thin client and Rich client
Hi Everyone,
Can someone give me a clear picture of the what is the diff between Thin client and Rich client.
Thanks,
KrishnaHi,
thick client (rich client) has/stores all the data inside itself
so it can do application processing without the server with data
thin client uses resources from host computer (from server)
and wihtout that you are not able to work with that kind of client
does that answer your question ?
Regards,
michal -
Diff between Seeburger Adapter and File Adapter
Hi All,
My company needs to interact with some banks and the banks are particular that they want SFTP, which is not supported by File Adapter, so we have decided to go with Seeburger adapter.
Now what are the differences between File adapter and seeburger adapter?
I believe that Seeburger adapter does not support File Content Conversion, Archiving etc.
Could you all pls put some light on the diff between file adapter and seeburger adapter when it comes to dealing with files?
XierHi
You are aware with working of File Adapter.
The most direct way of using the Seeburger adaptors is to configure the BIC as a module. There is a software component from seeburger called bicmapper which will allow you to
1. Define or import the inbound message metadefinition in various formats ( edifact, xml,...)
2. Using a mapping create an xml variant as the output metadefinition or edifact in the other direction.
3. Create a one to one mapping between input en output.
4. Export the metadata in xsd or sda format for import in XI
5. Generate an SDA which can be deployed in XI and used as a module.
Have a look here,
http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
Some Seeburger related information
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e2aeb02c-0601-0010-d680-c9be61ffa390
Go through this threads:
http://www.seeburger.com/fileadmin/com/pdf/SAP_Exchange_Infrastructure_Integratio_Strategy.pdf
Need Material on Seeburger Adapters.
Seeburger Adapter
Installing seeburger adapter
http://www.seeburger.com/xi-adapters/
Thanks -
Diff. between Tax Code and Condition Types
Hi,
What is the diff. between Tax Code and Condition Type???
Why we maintain Tax Codes under Invoice Tab in PO, when Condition Types are available for Calculation Procedure...???
Please guide..hi..
Tax code : Tax code in some what more specific for calculating the tax...some material is having 2% tax..some having 3 % tax..etc..and these are input tax...so..these tax code will be of type input tax..
now..based on the nature of tax type amount will be calculated....
suppose tax code is calculation of 2 condtion type so ..we can do it in tax code conditon record fv11 also..
so..tax code can be a combination of cond type...
where as through cond type also we can also achieve this..by using one statistical cond type...
Cond Type : cond type is for the daily pricing configuration..how system will calculate the price for a centain material we can make define the rules here...
Try this out..
Thans -
Static Tables Creation In oracle & Diff Between Static table ,Dynamic table
Static Tables Creation In oracle & Diff Between Static table ,Dynamic table
972471 wrote:
Static Tables Creation In oracle & Diff Between Static table ,Dynamic tableAll tables in a well designed application should be static tables.
Whilst it's possible to execute dynamic code and therefore create tables dynamically at run time, this is considered poor design and should be avoided in 99.99% of cases... though for some reason some people still think they need to do this, and it's never really justified.
So what issue are you facing that you need to even bother considering dynamic tables? -
Diff between oracle 10g and 11g
Can any one could tell me what is the main diff between oracle 10g and 11g ?
Thanks in Advance
VenkatHi,
You can read
http://www.oracle.com/technetwork/articles/sql/index-082320.html
http://www.oracle.com/technetwork/articles/sql/index-099021.html
Anand -
Diff.between Taxinn& taxinj
hi sap guru's
can anybody give me exect diff .between Taxinn& taxinj ?which is good? and why? give me at least 2 to 3 point
in TAXINN where we creat tax code execept FTXP
regard'sTAX INN
If you are using TAXINN procedure you have to maintain separate condition record in tcode :FV11
JM01
JM02 etc
While creating purchase order the tax will be flowing based on the condition record
For all the vendor the same taxes are applicable.
currently TAXINN is commonly used
TAXINJ
In this procedure you have to maintain taxcode in FTXP.
while creating P.O taxes will be flowing from the Taxcode.
Say for Example
V1-16 %Excise duty+4%VAT +Cess
V2-8 %Excise Duty 4% VATCess
For the same vendor you can use either the taxcode V1 (or) V2
G.Ganesh Kumar -
In GL Master- Diff between Open Item & Balance Summary
Hi Experts
In GL Master- Diff between Open Item & Balance Summary ?
Regards
RamakanthHi,
Open Item :- Select this tick if you want to see all individual line items that makes the total of the account. By selecting this tick you will be able to see both open and cleared items. GR/IR accounts should be managed on open item basis.
Line Item:- Tick this if you want to see the balance of an account by individual postings. Generally Revenue & Expense accounts should be managed on line item basis.
Hope this will help.
Regards
Valay Pandya
Maybe you are looking for
-
Satellite A500-14L: Supervisor Password Utility & Remote Command Manager
Hi, I just installed Windows 7 Home Premium *x64* on my A500-14L (PSAM3E-02N008FR) and all went smooth, even the TVAP and flashcards install. Unfortunately, I have a problem with the following utilities (latest versions found on Toshiba website) : -
-
Hello. I have noticed my time, top right of the eMac screen is one hour out, ie: time should be 11:08 and it is 10:08. I have tried re-setting it but seems to stay the one hour out. Can someone help me with this? Thanks.
-
HI ALL, Why is it necessary to "<b>Set Up Payment Methods per Country for Payment Transactions</b>", why can't this be directly created in Company code? Why SAP has provided this functionality (Payment method per country)?
-
Reg:Custom Measures 7.5
Hi Experts, I am facing a problem with custom measures,created a custom measure by program UJA_MAINTAIN_MEASURE_FORMULA (CUSTOMPER) and tried to create a report with account and time dimensions. The problem is that the Time Total(
-
Oracle on dual-/multi- processor server
I have a question regarding Oracle on dual (or multi) processor servers. I have purchased 2 copies of the standard edition. I installed it on the server with 2 processors. My question is whether or not there is something different in the installation