Data entrying via Web-Dynpro
Dear All!
Can somebody help me to relaize the following requirement:
Through WebDynpro (Internet Browser) data entrying. Suppose there
are couples of input fields due to these fileds the user can entry
datas into the system.
Regards
Ilhan Ertas
Hi,
Pl go through the following liniks
Webdynpro Links
Programming UI and Navigation
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9214b1e5-0601-0010-fdb0-ec32d43b06e0
Webdynpro for Java
http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
Webdynpro Samples
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20sample%20applications%20and%20tutorials.htm
Web Dynpro User Interface
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
PDf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaverdevelopersguide2004s/sap%20netweaver%20developer's%20Guide%202004s/UsingJava_00_PDFsList.ca
SAP Netweaver Application Server eLearning Catalog
https://www.sdn.sap.com/irj/sdn/elearn?rid=/webcontent/uuid/b1203f5e-0501-0010-bb88-915402c954f2 [original link is broken]
DTR
http://help.sap.com/saphelp_nw04/helpdata/en/88/cb0b405bacdd5fe10000000a155106/frameset.htm
Regards
Ayyapparaj
Similar Messages
-
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
Unable to upload File to DMS (Document Managemt Sys) Via web Dynpro App
Hi .
I want add file to DMS i,e, SAP Document Management System .
I first tried calling BAPI : BAPI_CREATE_DOCUMENT2 in Report and I was successfull.
I am trying out same thing via Web Dynpro Application but I am getting error in Return of BAPI .Error is Error while checking in and storing: C:\Documents and Settings\Desktop\Hi.doc.
I am pasting code I have written on click of Upload .
method ONACTIONON_UPLOAD .
implicitly available data objects
wd_Context type ref to if_wd_context_node.
wd_This type ref to if_FileUpload.
DATA: gv_documento TYPE draw-doknr ,
gv_clase TYPE draw-dokar VALUE 'Z99' ,
gv_version TYPE draw-dokvr VALUE '00',
gv_part TYPE draw-doktl VALUE '000',
gv_descripcion TYPE drat-dktxt VALUE 'Description111',
gv_return TYPE bapiret2,
filename(60) type c ,
lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
ls_documentdata LIKE LINE OF lt_documentdata,
lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
ls_documentfiles LIKE LINE OF lt_documentfiles ,
lv_content type xstring ,
size type i.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_filename LIKE ls_context-filename.
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `FILENAME`
IMPORTING
value = lv_filename ).
ls_documentdata-documenttype = 'Z99'.
ls_documentdata-documentversion = '000'.
ls_documentdata-documentpart = '00'.
ls_documentdata-description = 'Test Document Created Parag'.
ls_documentdata-STATUSEXTERN = 'WR'.
ls_documentdata-USERNAME = 'I046361'.
ls_documentdata-WSAPPLICATION1 = 'DOC'.
ls_documentdata-DOCFILE1 = lv_filename.
ls_documentdata-DATACARRIER1 = 'DEFAULT'.
ls_documentfiles-wsapplication = 'DOC'.
ls_documentfiles-docfile = lv_filename.
ls_documentfiles-storagecategory = 'DMS_C1_ST'.
ls_documentfiles-checkedin = 'X'.
APPEND ls_documentfiles to lt_documentfiles.
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_documentdata
pf_http_dest = 'SAPHTTP'
IMPORTING
return = gv_return
TABLES
documentfiles = lt_documentfiles.
IF gv_return-type CA 'AE'.
WRITE gv_return-message.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF .
endmethod.
Now Can anyone tell
In case of Web Dynpro what Is this code right ?
Do I need to change value of Parameters I have Set ?
Do i need to some change as I am trying to Upload file Via WebApplication ?
Do I have to change data Carrier ?
Please let me know urgently .Points will be surely Given ...
Regards ,
ParagHi ,
Finally I was successfull in Uploading Docs.It seems I was not getting right Parameters ..anyways correct code is as follows ...
method ONACTIONON_UPLOAD .
implicitly available data objects
wd_Context type ref to if_wd_context_node.
wd_This type ref to if_FileUpload.
DATA: gv_documento TYPE draw-doknr ,
gv_clase TYPE draw-dokar VALUE 'Z99' ,
gv_version TYPE draw-dokvr VALUE '00',
gv_part TYPE draw-doktl VALUE '000',
gv_descripcion TYPE drat-dktxt VALUE 'Description111',
gv_return TYPE BAPIRETURN ,
gv_return TYPE BAPIRET2 ,
gv_ruta TYPE bapi_doc_files2-docfile VALUE 'C:\BAPI_DMS.doc' ,
filename(60) type c ,
lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
ls_documentdata LIKE LINE OF lt_documentdata,
lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
ls_documentfiles LIKE LINE OF lt_documentfiles ,
lv_content type xstring ,
size type i ,
lt_binary TYPE TABLE OF sdokcntbin ,
ls_binary LIKE LINE OF lt_binary ,
lv_size TYPE I ,
ls_doc_status TYPE CVAPI_DOC_STATUS ,
ls_API_ctrl TYPE CVAPI_API_CONTROL ,
l_MSG TYPE MESSAGES ,
lt_files type STANDARD TABLE OF CVAPI_DOC_FILE ,
lt_drao TYPE STANDARD TABLE OF DRAO ,
ls_drao LIKE LINE OF lt_drao ,
lv_documenttype TYPE DRAW-DOKAR ,
lv_documentnumber TYPE DRAW-DOKNR ,
lv_documentversion TYPE DRAW-DOKVR ,
lv_documentpart TYPE DRAW-DOKTL ,
lv_text TYPE string .
FIELD-SYMBOLS <fs> TYPE ANY.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_filename LIKE ls_context-filename .
get element via lead selection
lo_el_context = wd_context->get_element( ).
get single attribute
lo_el_context->get_attribute( EXPORTING name = `FILENAME` IMPORTING value = lv_filename ).
lo_el_context->get_attribute( EXPORTING name = `FILECONTENT` IMPORTING value = lv_content ).
CONCATENATE lv_text 'by' sy-uname 'cretaed at ' sy-uzeit INTO lv_text .
ls_documentdata-documenttype = 'Z99'.
ls_documentdata-documentversion = '00'.
ls_documentdata-documentpart = '000'.
ls_documentdata-description = 'Test Document Created in Web Dynpro ABAP '.
ls_documentdata-STATUSEXTERN = 'WR'.
ls_documentdata-USERNAME = 'I046361'.
ls_documentdata-WSAPPLICATION1 = 'DOC'.
ls_documentdata-DOCFILE1 = lv_filename.
ls_documentdata-DATACARRIER1 = 'DEFAULT'.
ls_documentfiles-DOCUMENTTYPE = 'Z99'.
ls_documentfiles-WSAPPLICATION = 'DOC'.
ls_documentfiles-DOCUMENTVERSION = '00'.
ls_documentfiles-DOCUMENTPART = '000'.
ls_documentfiles-DOCFILE = lv_filename.
ls_documentfiles-description = 'Test Document Created in Web Dynpro ABAP '.
ls_documentfiles-CREATED_BY = sy-uname.
ls_documentfiles-CHECKEDIN = 'X'.
ls_documentfiles-DOCFILE = lv_filename.
APPEND ls_documentfiles to lt_documentfiles .
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_documentdata
pf_http_dest = 'SAPHTTPA'
IMPORTING
DOCUMENTNUMBER = lv_DOCUMENTNUMBER
return = gv_return
TABLES
documentfiles = lt_documentfiles.
IF gv_return-type CA 'AE'.
WRITE gv_return-message.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING wait = 'X'.
get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = lo_message_manager
CLEAR lv_text .
CONCATENATE 'Dcoument ' lv_filename 'Successfully stored with Document No. ' lv_DOCUMENTNUMBER INTO lv_text .
report message
CALL METHOD lo_message_manager->REPORT_SUCCESS
EXPORTING
MESSAGE_TEXT = lv_text
PARAMS =
MSG_USER_DATA =
IS_PERMANENT = ABAP_FALSE
SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW =
SHOW_AS_POPUP =
CONTROLLER_PERMANENT_MSG =
MSG_INDEX =
CANCEL_NAVIGATION =
ENDIF .
endmethod. -
Display Pre-Formatted HTML via Web Dynpro
Hi,
Does anyone know of a way to display preformatted HTML via web dynpro, can any of the standard UI elements do this?
Thanks in advance,
SimonHi,
can you explain what do you mean by HTML string? is it binary data that you have?
if it is a binary data i.e. in bytes then you can do this way also..
Store the binary data in a context varaible named Data and to store the url to be generated, create another context variable Url;
String formattedStr = wdContext.currentContextElement()
.getData();
try
IWDCachedWebResource resource = WDWebResource.getWebResource
formattedStr.getBytes("UTF-8"),
WDWebResourceType.HTML
resource.setResourceName("<Give a filename>");
resource.setAttachement( false );
resource.setReadOnce( false );
wdContext.currentContextElement().setUrl
resource.getAbsoluteURL()
catch (Exception ex)
wdComponentAPI.getMessageManager()
.reportException( ex.getMessage, false );
Set source of the Iframe as context variable Url.
regards,
Mahesh -
Error executing Webservice for Process Start via Web Dynpro
Hi Community,
I have a strange issue when executing a webservice that starts a process using web Dynpro. I have configured, the Service Group, the Communication profile.
When I try to execute the Service via Web Dynpro, I get the following exception which is in my opinion fully missleading and does not make sense to me. As the Authentication Profile and the Communication profile allow the same Authentication Methods.
com.sap.esi.esp.lib.mm.config.exceptions.TechnicalException: Failed to create Logical Port for Service Reference with id [YourID here].
Reason for the failure is that no one of the following Authentication Methods [None], [SAP Logon Ticket], or [SAML Assertion] is allowed in the related Communication Profile.
Such an Authentication Method is needed as the Authenticaton Profile is [businessOrTechnicalUser] and no User Account is assigned, so the Authenticaton Profile is considered to be noAuthentication or businessUser.
Related Communication Profile is [SAP_DEFAULT_PROFILE 1] and it allows Authentication Method(s) [User Name/Password (Basic), X.509 Client Certificate, SAP Logon Ticket, SAML Assertion, X.509 Certificate Doc.Auth., User Name/Password Doc.Auth.]
Thanks for your support.
Best Regards NicolasHi Nicolas,
make sure you have
- assigned a communication profile (with no- or basic authentication) to the provided service
- created a provider system with a similar profile
- assigned the provider system to the (consumer) service group
For a full guide on service configuration please check this article:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40dabb46-dd66-2b10-1a9a-81aa620098b3
Best Regards,
Christian -
How to get the ep user information data in the web dynpro?
Hi all
I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.Lin,
Two steps to achieve this:-
<b>Step 1:</b> Add the following code in your view Controller:-
IWDClientUser user = WDClientUser.getCurrentUser();
IUser objUser = user.getSAPUser();
wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
wdContext.currentContextElement().setYYYY(objUser.getFirstName());
wdContext.currentContextElement().setZZZZ(objUser.getLastName());
where XXXX, YYYY , ZZZZ are the context names.
getUniqueName : Gives Login id of Portal user.
getFirstName : Gives First Name of the Portal user.
getLastname : Gives Last Name of the Portal user.
<b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
The external jars are :
<b>com.sap.security.api.jar
com.sap.security.api.perm.jar</b>
Finally rebuild your project and deploy.
Regards,
<b>Chintan Virani.</b> -
What kind of data types in Web Dynpro can be bound to Interactive Form?
Hello
Apparently it is not possible to bind a Web Dynpro Context variable of type boolean to a checkbox in an interactive form. We get the PDF Document Render Exception until the data type is changed to string, then the generation seems to work. Does anyone know what data types in Web Dynpro other than String can be bound to an Interactive Form Document? Is there any information about this in help.sap.com/adobeforums.com/elsewhere? I have researched a bit, but couldn't get a general statement on this topic.
Thank you for your help!
Kind regards
Bettina HeppHi,
You can Bind the Boolean type of webdynpro to the CheckBox in Adobe Interactive Form.
Just define the value Attribute in the Context of type Boolean and bind the Checkbox in Aif with this attribute.
Sample Code:
if (wdContext.currentContextelement.reason == true)
ur validations.....
Regards
Mustafa -
Are ZCI interactive forms available via Web Dynpro for ABAP?
Note 955795 talks about ZCI forms available via Web Dynpro for Java. Is this kind of forms also available via Web Dynpro for ABAP?.
Do ZCI interactive forms work via Web Dynpro for ABAP without the need of ACF?
If available, which support package levels are required?
RegardsHi Mahamed,
I got your problem. You have not done anything wrong.
It is WebAS version which is not supported for this functionality.
But there is solution to this problem
Please refer to the SAP Note number - 1055738.
I think you will get the answer and the scenario described there will match your requirement.
This is a know issues with WebDypro ABAP but this works fine for Java Web Dynpro.
I have also tried for 2 months but finally came to know about it.
Regards
Satya -
EXCEL Web Query - load into SAP via Web dynpro or standard ABAP
Hi everybody
I was wondering if you can run an EXCEL WEB Query from abap and then upload the data retrieved from the web into SAP using either a web dynpro application or standard SAP.
For standard ABAP one could probably run the EXCEL web query by executing some code such as
call method cl_gui_frontend_services=>execute
exporting
document = 'your excel web query file'.
You could then save the data and using GUI_UPLOAD get it into sap.
I'd really like to do it via a web dynpro application.
Any ideas anyone.
For guys who've never used EXCEL web queries --quite easy.
Open EXCEL
go to Import External Data
Choose New web query
Enter URL of where you want to retrieve your data from such as YAHOO finance etc.
For example to get the components of the Dow Jones Composite Index (^DJA) use this url
http://finance.yahoo.com/q/cp?s=%5EDJA
click the yellow arrow on the table data you want to import. The arrow will turn Green and press IMPORT
Then enter the cell number where you want to start importing data
Hey presto you've got your data from the web.
Cheers
jimbowhen you create a new webquery, in the properties, you can set when the page should refresh (data fetch to happen), you can set that to refresh at file open.
then you can use either OLE or gui_upload to upload the excel to read the data.
have couple of question:
why do you want to choose excel webquery ?=> is it because the ability to get unstructured data from the web?
what sort of data you are trying to read from the web?=> most of data centric sites (forex, stock quotes) will have either RSS feeds or some web APIs to get data which can be easily consumed by ABAP
Regards
Raja -
Display a photo via web dynpro (jpg files)
Hi
I have photo's of employees which I would like to display via my Web dynpro (it is jpg files). I was able to do it using an Interactive form element, but then I cannot resize the photo; it is to big. I was hoping to display it via an Image element, but then I only see the icon, but not my photo.
Could someone please assist me in helping to display my photo better?
Regards
DebbieHi Debbie,
Below is the code to generate the URL using ICM cache
"l_image is the variable that has your image in XSTRING format.
DATA:gx_mimetype TYPE string VALUE 'JPG'.
****Create the cached response object that we will insert our content into
DATA: cached_response TYPE REF TO if_http_response.
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
TRY. " ignore, if compression can not be switched on
CALL METHOD cached_response->set_compression
EXPORTING
OPTIONS = cached_response->co_compress_based_on_mime_type
EXCEPTIONS
OTHERS = 1.
CATCH cx_root.
ENDTRY.
****set the data and the headers
DATA: l_app_type TYPE string.
DATA: l_xstring TYPE xstring,
i_cache_timeout TYPE i VALUE '300'.
cached_response->set_data( l_image ).
l_app_type = gx_mimetype.
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = l_app_type ).
****Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
****Set the Cache Timeout - 60 seconds - we only need this in the cache
****long enough to build the page and allow the Image on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
DATA: r_url TYPE string.
DATA: i_path TYPE string VALUE '/sap/public',
i_format TYPE string VALUE 'JPG'.
****Create a unique URL for the object
DATA: guid TYPE guid_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE i_path '/' guid '.' i_format INTO r_url.
****Cache the URL
cl_http_server=>server_cache_upload( url = r_url
response = cached_response ).
" bind the generated url with the image uielement attribute
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_url LIKE ls_context-url.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* set single attribute
lo_el_context->set_attribute(
EXPORTING
name = `URL`
value = r_url ).
Hope this helps!
Radhika -
Exchanging data between a Web Dynpro application and SAP Web Shop
I'll try to keep this as clear as possible:
1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
If this is a glaringly obvious question to Java programmers, my apologies!
- Tony.Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
- Tony -
Updated data in a web dynpro application
hi
when we develop a web dynpro application using a model from an R/3 as a backend access system , how is the data updated in the application, in the portal whenever there is a change in the source OLTP data tha we used?
thanks in advance
krishna chaitanyaHi,
Do you want to change the message server name thriugh coding then use the below code.
Store the message server name in a customizing table.
use the below code to replace the MS name:
DATA lv_temp_str TYPE char255.
DATA lv_split1 TYPE char255.
DATA lv_split2 TYPE char255.
DATA : lv_string TYPE string,
lv_application TYPE string.
DATA lv_dns_str TYPE /mrss/t_rm_dns_str.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = lv_application " webdynpro application name
IMPORTING
out_absolute_url = lv_string."url of the application.
lv_dns_str = message server name form the customizing table
lv_temp_str = lv_string.
SPLIT lv_temp_str AT '//' INTO lv_split1 lv_split2.
CLEAR lv_split1.
lv_temp_str = lv_split2.
SPLIT lv_temp_str AT '.' INTO lv_split1 lv_split2.
lv_temp_str = lv_split1.
REPLACE lv_temp_str IN lv_string WITH lv_dns_str.
Regards,
MAdhu -
Download data entered via web to a text file.
Hello,
I'm developing a very simple BSP aplication in which the user enters via web some data in some fields. This data is store in an internal table. This table is an attribute in the application class. In this class there is a method to save the data to a file in presentation server. I've tried using WS_DOWNLOAD and GUI_DOWNLOAD but these function modules don't work. I would like to know if there some function modules or methods to download data to a file and that can be used in a BSP aplication.
Thank you very much,
Carlos
Details:
1-Layout
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
Carga ficheros
generar_fichero
exporting nombre_fichero = fichero.
3- Method generar_fichero
method GENERAR_FICHERO .
***Opción 1: emplear una instancia de una clase y llamar a su método
data: file type ref to CL_GUI_FRONTEND_SERVICES.
create object file.
data l_filelength type i.
call method file->gui_download
exporting filename = nombre_fichero
importing filelength = l_filelength
changing data_tab = m_tabladatos
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 ne 0.
raise error_fichero.
*else.
**borrar cookie
*endif.
***Opción 2: llamada directa a la función ws_download_wan "FALLA:
***********************************************"no deja rastro del fallo
data l_filename(128).
write nombre_fichero to l_filename.
*CALL FUNCTION 'WS_DOWNLOAD_WAN'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = l_filename
FILETYPE = 'ASC'
MODE = 'A'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = m_tabladatos
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8
*IF SY-SUBRC <> 0.
raise error_fichero.
*else.Hallo Carlos,
Welcome to the forum. As with all things new in life, one does not know where to start immediately. I would like to recommend the <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">Getting Help</a> guide as first interesting article to read.
Specifically you are interested in the section for searching this forum. Use keywords such as download or GUI_DOWNLOAD. Also consider to look at keyword Excel. Although not exactly on topic, the Excel discussions does address this partly. All of this has been discussed many time before.
Finally, consider to read <a href="/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents">BSP Programming: Handling Of Non-HTML Documents</a>. This will really show you some different techniques to download files onto the computer.
brian -
Hi all,
I'm new to web dynpro, i ve to develop web dynpro appliation which has to interact to oracle database(read/write). For example, if i give certain search criteria the application should display matched data in table format. I dont know how to start & where to start. Please help me out.
thnx regards
ilanHi
You can use the Table UIElement for this
1.Create a node with cardinality 0..n
2.Create attributes with the same type of database.
3.Bind the node attributes with the database values
4.bind the node to the Table UI Element
See this thread
Re: problem with displaying records from the database in a table ui element
See this sample application and help
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
Kind Regards
Mukesh -
Hey people!
Im pretty new in web dynpro, and i want to store the data i input in the inputfields somewhere.. either in a database (oracle) or xml file.. someone got any tips? and if i choose to go for oracle, do i have to create an EJB as well? or could i just write the connections and queries in the views?I think that suggested way is to use SQLJ in a EJB and then use that EJB in your web dynpro project.
Check out this thread.
Accessing Dictionary devlopment component in Web dynpro component
Regards,
Rich Heilman
Maybe you are looking for
-
Can't download boot camp for Mac Air A1466
Hi, I bought a Macbook air yesterday, which I guess could be the newest version. After I got home, I'm trying to install windows on this Air. But when I try to download the Windows Support from boot camp Assistant, Its' showing the following message:
-
I am looking for help! My planned workflow is as follows: Footage recorded on Canon Rebel T3i ---> Edited on Final Cut Pro 6 (sequence compression is apparently H.264 according to the browser) ---> Compressed with Compressor (ver 3.0.5) in origin
-
How do i copy my iphoto pics to a hard drive
I have a ton of pictures on iphoto and I want to transfer them onto an external hard drive to save space on my iMac. Is there a easy way to mass transfer them like on a windows based PC?
-
IPAD 16 GB HOW TO CLEAR MEMORY
IPAD 16 GB HOW TO CLEAR MEMORY ios7
-
Hi All, I am currently implementing Multi-currency in our system. Whenever I change my Document currency, it will prompt me with an error saying the Invoice Currency Exchange rate needs to be updated. I am pretty sure I done this. Then, I simply have