How to save file in km using web dynpro abap
Hi Experts,
We have a requirement that file should be saved in a folder in km, the name of the folder should be the employee number.
Could you please tell me how to create folder with employee number in KM and store file in it using web dynpro abap.
Thanks and Regards,
Santhoshi.
Thanks Naga Raju Meesala.
How come all these methods are deprecated...getEP5User
Also, since I am building a weddynpro DC, what is the proper way to include these jar files as Used DCs?
Now proceed in the same way with the variable PORTAL_HOME and add the following .jar files:
u2022 \lib\prtapi.jar The portal runtime APIs
u2022 \portalapps\com.sap.portal.usermanagement\lib\com.sap.security.api.ep5.jar The user management APIs of the Enterprise Portal 5.0 are deprecated, but still in use in SAP NetWeaver 04
u2022 \portalapps\com.sap.netweaver.bc.rf\lib\bc.rf.framework_api.jar KM Repository Framework APIs
u2022 \portalapps\com.sap.netweaver.bc.rf.service\lib\bc.rf.global.service.urlgenerator_api.jar Repository Framework Utility: URL Generator
u2022 \portalapps\com.sap.netweaver.bc.sf\lib\bc.sf.framework_api.jar Repository Framework: Repository Services
u2022 \portalapps\com.sap.netweaver.bc.util\lib\bc.util.public_api.jar Repository Framework Utilities
Similar Messages
-
Upload file into KM using Web Dynpro ABAP
Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.
Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ. Any help on how to do this would be very much appreciated. Thanks.
-
How to display the data of CJ2C(T-CODE) using web dynpro abap
Hi all:
How to display the data of CJ2C(T-CODE) using web dynpro abap.
CJ2C used to display a Gantt Chart.
Thanks.Hi,
Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
On action place the code and Deploy the application
byte[] bytes = new byte[ 1024];
FileOutputStream out = new FileOutputStream( new File( <path in server>));
InputStream in = resource.read( true);
int len;
while( ( len = in.read( bytes)) > 0)
out.write( bytes, 0, len);
in.close();
out.close();
Regards
Vinod V -
File Upload In DMS Using Web Dynpro ABAP
Hi,
I have a requirement to upload files in DMS using Web Dynpro. I have written the code by the hint of the following thread:-
scn.sap.com/thread/1865934
My code is uploading all files but when I try to view them from CV03N only txt files are displaying , Images and PDF files are not
showing there.
Please help me. It's urgent requuirement.
Thanks
AmitTYPES : BEGIN OF zst_ts_raw_line,
line TYPE orblk,
END OF zst_ts_raw_line.
DATA : ls_draw TYPE draw ,
ls_api_ctrl TYPE cvapi_api_control,
ls_message TYPE messages,
lv_documentnumber TYPE draw-doknr,
it_objectlinks TYPE STANDARD TABLE OF dms_db_drad,
ig_objectlinks TYPE dms_db_drad ,
it_documentdescriptions TYPE STANDARD TABLE OF bapi_doc_drat,
ig_documentdescriptions TYPE bapi_doc_drat ,
it_originals_of_doc TYPE STANDARD TABLE OF cvapi_doc_file,
ig_originals_of_doc TYPE cvapi_doc_file ,
lv_storage_cat TYPE cv_storage_cat,
lv_size TYPE i ,
lt_bindata TYPE STANDARD TABLE OF zst_ts_raw_line," STANDARD TABLE OF zst_ts_raw_line,
ls_bindata TYPE zst_ts_raw_line ,"SOLISTI1,"sdokcntbin ,
ls_drao TYPE drao,
lt_drao TYPE TABLE OF drao,
lt_DRAT TYPE TABLE OF DMS_DB_DRAT,
ls_DRAT TYPE DMS_DB_DRAT,
lt_files TYPE cvapi_tbl_doc_files,
ls_files TYPE cvapi_doc_file,
l_string TYPE string.
DATA : ex_pf_ftp_dest TYPE rfcdes-rfcdest.
DATA : ex_pf_http_dest TYPE rfcdes-rfcdest.
DATA lo_nd_upload TYPE REF TO if_wd_context_node.
DATA lo_el_upload TYPE REF TO if_wd_context_element.
DATA ls_upload TYPE wd_this->element_upload.
DATA lo_nd_upload1 TYPE REF TO if_wd_context_node.
DATA lo_el_upload1 TYPE REF TO if_wd_context_element.
DATA ls_upload1 TYPE wd_this->element_upload1.
DATA lo_nd_upload2 TYPE REF TO if_wd_context_node.
DATA lo_el_upload2 TYPE REF TO if_wd_context_element.
DATA ls_upload2 TYPE wd_this->element_upload2.
* navigate from <CONTEXT> to <UPLOAD> via lead selection
lo_nd_upload = wd_context->get_child_node( name = wd_this->wdctx_upload ).
lo_el_upload = lo_nd_upload->get_element( ).
lo_el_upload->get_static_attributes( IMPORTING static_attributes = ls_upload ).
* navigate from <CONTEXT> to <UPLOAD1> via lead selection
lo_nd_upload1 = wd_context->get_child_node( name = wd_this->wdctx_upload1 ).
lo_el_upload1 = lo_nd_upload1->get_element( ).
lo_el_upload1->get_static_attributes( IMPORTING static_attributes = ls_upload1 ).
* navigate from <CONTEXT> to <UPLOAD2> via lead selection
lo_nd_upload2 = wd_context->get_child_node( name = wd_this->wdctx_upload2 ).
lo_el_upload2 = lo_nd_upload2->get_element( ).
lo_el_upload2->get_static_attributes( IMPORTING static_attributes = ls_upload2 ).
DATA : lv_file_name TYPE filep.
ls_draw-dokar = 'Document Type'.
ls_draw-dokvr = '00'.
ls_draw-doktl = '000'.
ls_draw-dwnam = sy-uname.
lv_storage_cat = 'Storage space'.
ls_DRAT-doknr = 'Document Type'.
ls_DRAT-dokvr = '00'.
ls_DRAT-doktl = '000'.
ls_DRAT-dktxt = 'Test Document'.
ls_drat-dktxt_uc = 'Test Document'.
append ls_drat to lt_drat.
ls_api_ctrl-tcode = 'CV01N'.
ls_api_ctrl-commit_flag = 'X'.
ls_api_ctrl-save_flag = 'X'.
ls_api_ctrl-api_mode = 'X'.
ls_api_ctrl-no_update_task = 'X'.
ls_draw-filep = ls_upload-filename. "l_string. *
ig_objectlinks-dokar = doc type
ig_objectlinks-dokvr = '00'.
ig_objectlinks-doktl = '000'.
ig_objectlinks-dokob = 'LFA1'.
ig_objectlinks-objky = lifnr.
APPEND ig_objectlinks TO it_objectlinks.
CALL FUNCTION 'CVAPI_DOC_CREATE'
EXPORTING
ps_draw = ls_draw
*• PF_STATUSLOG = ' '
*• PF_REVLEVEL =
ps_api_control = ls_api_ctrl
*• PF_FTP_DEST = ' '
*• PF_HTTP_DEST = ' '
*• PF_HOSTNAME = ' '
*• PF_CONTENT_PROVIDE = ' '
IMPORTING
psx_message = ls_message
*• PFX_DOKAR =
pfx_doknr = lv_documentnumber
TABLES
pt_drad_x = it_objectlinks
pt_drat_x = lt_drat
* pt_files_x = lt_files.
* documentdescriptions = it_documentdescriptions.
IF sy-subrc NE 0.
WRITE: 'no number'.
ENDIF.
IF ls_message-msg_type CA 'EA'.
ELSE.
ls_draw-doknr = lv_documentnumber.
COMMIT WORK.
ENDIF.
DATA lv_count TYPE i.
DO 3 TIMES.
REFRESH : lt_files,lt_bindata,lt_drao.
lv_count = lv_count + 1.
ls_files-appnr = lv_count."'1'.
CASE lv_count.
WHEN '1'.
ls_files-filename = ls_upload-filename. "wa_general-REF_FILE_NAME1. "
ls_upload-filecontent = ls_upload-filecontent.
WHEN '2'.
ls_files-filename = ls_upload1-filename. "wa_general-REF_FILE_NAME1. "
ls_upload-filecontent = ls_upload1-filecontent.
WHEN '3'.
ls_files-filename = ls_upload2-filename. "wa_general-REF_FILE_NAME1. "
ls_upload-filecontent = ls_upload2-filecontent.
ENDCASE.
MOVE ls_files-filename TO lv_file_name.
CALL FUNCTION 'CV120_DOC_GET_APPL'
EXPORTING
*•PF_DIALOG =
*•PF_DISPLAY =
* PF_FILE = 'DO.TXT'
pf_file = lv_file_name "wa_general-REF_FILE_NAME1 "
*•PF_TYPDT =
IMPORTING
pfx_dappl = ls_files-dappl.
ls_files-updateflag = 'I'.
ls_files-langu = sy-langu.
ls_files-storage_cat = 'Srotage ID'.
ls_files-description = 'DMS'.
APPEND ls_files TO lt_files.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = ls_upload-filecontent "wa_general-ref_doc1 "
*• APPEND_TO_TABLE = ' '
IMPORTING
output_length = lv_size
TABLES
binary_tab = lt_bindata.
DATA : lv_zaehl TYPE obzae.
CLEAR lv_zaehl.
LOOP AT lt_bindata INTO ls_bindata.
CLEAR ls_drao.
lv_zaehl = lv_zaehl + 1.
ls_drao-orblk = ls_bindata-line.
ls_drao-orln = lv_size.
* ls_drao-dokar = ls_draw-dokar.
* ls_drao-doknr = lv_documentnumber.
* ls_drao-dokvr = ls_draw-dokvr.
* ls_drao-doktl = ls_draw-doktl.
ls_drao-zaehl = lv_zaehl.
* ls_drao-appnr = lv_count."'1'.
APPEND ls_drao TO lt_drao.
ENDLOOP.
CALL FUNCTION 'CVAPI_DOC_CHECKIN'
EXPORTING
pf_dokar = ls_draw-dokar
pf_doknr = lv_documentnumber
pf_dokvr = ls_draw-dokvr
pf_doktl = ls_draw-doktl
ps_api_control = ls_api_ctrl
pf_content_provide = 'TBL'
IMPORTING
psx_message = ls_message
TABLES
pt_files_x = lt_files
pt_content = lt_drao.
COMMIT WORK.
ENDDO. -
Adobe form to save data using Web Dynpro ABAP
Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
creating Adobe offline form using Web Dynpro ABAP same time.
I have several questions and hopefully, many gurus like you will provide answers.
I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
using interactive form. Is there any detail explanation/example on this?
I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
I am sure I didn't install/configure something correctly.
Anyone has any idea what I didn't do?
I have another question, but I will wait till later after I figure out above ones first.
Thanks for all your help in advance.
JohnHi John,
In the WD4A view, there is a button "Show/Hide Layout Preview".
Click on that button to be able to see the Layout.
Note that this button is next to the Pretty Print button.
regards,
Reema. -
Create portal user using web dynpro abap application
Dear All,
I would like to know is it possible to create portal user-id through web dynpro abap application.
My requirement is
> I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
> I will click on submit, one unique id will get created. This unique id will be the login id for portal.
I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
If it is possible to create the portal users using web dynpro abap pls share the code as well.
Regards,
Swapnil IndulkarHi swapnil,
I think by using BAPi.. BAPI_USER_CREATE1 you can create.
Please check this...
Create portal user from webdynpro abap
Creating user and assigning a group through code
user administration su01
How can i get the portal user id from logon ticket in the webdyn 4 ABAP
Cheers,
Kris.
Edited by: kissnas on May 21, 2011 8:47 AM -
Reading HTML Content using Web Dynpro ABAP
Hello,
I was wondering if it is possible to read the content (HTML) behind a given URL using Web Dynpro ABAP. If so, are there any functions available to parse the HTML ? I have been asked to develop an application that requires going to a URL, reading the content, and formatting a table from that content for presentaion within Web Dynpro ABAP. The HTML of the URL is nothing more than a "Table of Contents" to existing documentation ( Word Documents )
Thank you for any help / advice you can provide
LarryYou can get the HTML returned in a table using fm RSFO_HTML_REQUEST2.
Once you have that, you can convert it to a string using any number of methods. CL_RSR_WWW_RENDERER=>TABLE_TO_STRING should work fine.
One option for parsing it would be to get it converted into an iXML object, but you might have to do quite a bit of manipulation first depending on what the html looks like. You can see more info here on iXML classes: [http://help.sap.com/saphelp_nw04/helpdata/de/86/8280ba12d511d5991b00508b6b8b11/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/de/86/8280ba12d511d5991b00508b6b8b11/frameset.htm]
Otherwise I would just make use of find statements with regex patterns to sort through the html. -
How to put dynamic search help in web dynpro ABAP.
Hi,
I have a table element with two columns in my web dynpro ABAP.Both the columns are F4 helps.
Based on the value of the first column,the F4 help of second column must change dynamically.Kindly tell me how to do this.
Thanks & Regards,
Raji.Hi ,
Use this code to dynamically assign search help and to deactivate search helps.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131 -
How to do the feild validations in web dynpro abap
dear all,
how to do the feild validations for the screen in web dynpro abap.
thanks,
jyothi.hi jyothi,
There are diffrent ways of doing validations for fields of screen in webdynpro abap depending on the requirements.
I am giving simplest way of doing this validation(it may fullfil your requirement also)
For e.g you want that without entering value in particular field user should not proceed to submit the data in screen.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
DATA lo_api_controller TYPE REF TO if_wd_controller.
lo_api_controller ?= wd_this->wd_get_api( ).
lo_message_manager = lo_api_controller->get_message_manager( ).
DATA var1 type string.
DATA: node TYPE REF TO if_wd_context_node.
node = wd_context->get_child_node( 'DATA' ).
node->get_attribute( EXPORTING name = ' VALUE'
IMPORTING value = var1 ).
IF var1 IS INITIAL.
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Please enter the value'.
EXIT.
ENDIF.
Now in above code VALUE is the attribute with whome your input field is bound .So if user doesnt enter any value into it he will get above msg (u have to use message are ui element to use this method)
If you have any other doubt feel free to ask.
regards
Panky -
Shooping cart creation in SRM 7.0 using web dynpro ABAP classes.
Hi,
We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart.I am planning to create custom FM which will use the standard Web dynpro ABAP classes to create the shopping cart.
Could you please guide with the classes that are need to be implemented and the sequence of the classes used in the shopping cart creation.
I think these are the classes that are used in the standard web dynpro ABAP component.
CL_FPM_EVENT -> Creates an instance of this class based on an event ID.
CL_BADI_FLT_DATA_TRANS_AND_DB -> Data Handling: Transport and Database.
CL_EXITHANDLER -> Class for Ext. Services Within Framework of Exit Technique.
CL_EX_BBP_DOC_CHANGE_BADI -> BAdI Class CL_EX_BBP_DOC_CHANGE_BADI.
CL_BBP_OBJECTS_ACCESS -> Access Functions for Object Types.
/SAPSRM/CL_PDO_BO_SC -> Shopping Cart BO.
Your expert comments will be appreciated...
Regards,
NareshDear Poster,
As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
Best Regards,
SDN SRM Moderation Team -
Rules Engine using Web Dynpro ABAP
Hi,
Can we build a Rules Engine which works with Web Dynpro-ABAP? Something similar to BRM in CE-7.2.
Thanks,
PrasannaDo you mean BRM or BRF. BRF is the name of the business rules framework that is integrated in the ABAP engine. BRM is Business Rules Management and a part of NetWeaver CE - running on the Java Stack and a part of SAP NetWeaver BPM (Business Process Management).
Generally if your work is all ABAP based you would use BRF. Here is a small eLearning that shows the usage of BRF within Web Dynpro ABAP.
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/c0181bb1-28e7-2c10-538c-a093c616310e -
How to find the BADI'S in Web Dynpro ABAP
Hi Experts,
I'm new to Web Dynpro ABAP. Can any one tell me, how to find the BADI'S for standarad components like i.e DEMO_ROADMAP .Please tell me, steps/procedure to find the BADI'S in WDA.
Thanks ,
Chaitanya
Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on Jun 18, 2011 4:30 PMHi Nagaraju,
There is another fool-proof method to find BADIs while executing a transaction -
1. Goto transaction SE80
2. Select "Class / Interface", type in the class name CL_EXITHANDLER and 'Enter"
3. On the method GET_INSTANCE, create a Breakpoint just after the call to cl_exithandler=>get_class_name_by_interface at the following line -
<i>CASE sy-subrc.</i>
Once the breakpoint has been set, call the transaction you wish to find the BADI for and you will notice that the debugger opens everytime a BADI is about to be called. You could get the name of the BADI from the the value of the variable "EXIT_NAME".
CL_EXITHANDLER is a service class that is called by standard SAP code everytime a BADI is about to be called. So, setting a breakpoint here should let you know exactly which BADIs are called.
Hope this helps!
Thanks,
Rohini. -
When to use 'Web dynpro ABAP' and when to go for 'Web Dynpro Java'
Hi,
I am trying to learn 'Web dynpro ABAP' from tutorials available on SDN as i am presently working in ABAP. I am also Java learned.
Please tell me the selection criteria for using Web Dynpro component / application using ABAP or JAVA.
Regards,
TanayaHi,
Go through this
Web Dynpro: ABAP or Java?
WebDynpro for ABAP Vs Java
Re: Javascript future in Webdynpro (JAVA and ABAP)
Javascript future in Webdynpro (JAVA and ABAP)
PradeeP -
How we can done background job in web dynpro abap
Hi expert,
my requriment is how i can set background job in web dynpro .
regard's
vikashThe same way you do it in normal ABAP. There is nothing Web Dynpro ABAP specific about starting a background job.
There are API Function modules that begin with the name JOB_*. Have a look at the online help for samples:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d40543b11d1898e0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d4d543b11d1898e0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d67543b11d1898e0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d74543b11d1898e0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096d8e543b11d1898e0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm -
E-recruiting using web dynpro ABAP
Hi experts,
I am new to HR E-recruiting. I understand the concepts through SDN and [help.sap.com]. But I want to know how to develop E-Recruiting in Web dynpro ABAP. Is there any tutorial or document for this....
I cant get a clear idea till now. Please provide me with some steps,documents and procedures .
Thanks&Regards,
vinoVino,
check these links
http://help.sap.com/saphelp_erp60_sp/helpdata/en/72/c9b54015c4752ae10000000a155106/frameset.htm
EREC 600-http://help.sap.com/saphelp_erp60_sp/helpdata/en/72/c9b54015c4752ae10000000a155106/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/45/8150635e9c40c1e10000000a1553f7/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30adcac6-7a55-2a10-9fa9-a61d947f6ec9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07122ae-8216-2a10-c9a5-996717a0648b
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/24396589-0a01-0010-3c8c-ab2e3acf6fe2
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/sap%2be-recruiting
E-Recruitment-SAP E-Recruiting
Thanks
Bala Duvvuri
Maybe you are looking for
-
Need Help creating an animated GIF in Photoshop CS6 Trail version
Everyone, I am new to PS6 and reating animated GIF's and would like to get some guidance. I am trying to put the following animation together and very confused when I try to get the section and also how to add new things to it. I am running the t
-
Hi all, I'm facing problems printing some forms in SAP ECC 6.0. When we try to print in a local printer, via SAPLPD, the form is printed in a normal way, but when we choose a printer in the type device list (that is linked to the same printer), the p
-
ORABPEL- 0803 JTA Rollback - ESB Error
My scenario is as follows - I have an ESB service that is inserting data into a target database. I am pasing data into the ESB from an ochestration BPEL process. When the database is down the ESB DBadaptor fails and the ESB returns the following erro
-
Printing stopped working after 10.6.5 upgrade
Hi, after 10.6.5 upgrade I cannot print. I cannot access the printing preferences through System Preferences. So I cannot remove the printer driver. Printer is a Brother MFC-325C. Printer is not connected to the mac, but I cannot still access the pre
-
Games category in app store is missing. Any suggestions?
I have the IPAD 2 and from the very first setup the Games category in app store is missing. Even if I try to execute a game from the web (safari) it automatically opens app store and gives me a message that it cannot be downloaded. Apple support team