on 11-06-2009 7:12 AM
Hi Expertrs,
I am new to webdynpro for ABAP. I have a requirement like I need to create an attachment in webdynpro screen. I have searched the forums and I got the class CL_GOS_SRV_ATTACHMENT_CREATE and method EXECUTE_ITS. but when I call this method I am getting dump in the method.
Can anybody please suggest me how to create attachment in webdynpro for ABAP?
When ever attachment is created and clicks on save button workflow will be triggered and a workitem appears portal when ever the user click on the display attachment I need to display the created attachemnt.
Please suggest me.
Thank You.
Ranganadh
hi ,
do it in this way :
1 insert a file upload UI element
2 bind the DATA property of the element with context attribute of type string
3 in the Onaction method for uplaodaing ur file element , write the corresponding code
use FM 'HR_KR_XSTRING_TO_STRING' .
to convert XSTING FORMAT DATA into STRING FORMAT.
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranga ,
http://help.sap.com/saphelp_nw04s/helpdata/en/f6/501b42b5815133e10000000a155106/frameset.htm
You can also find an example of this in the view FILEUPLOAD of web dynpro component WDR_TEST_EVENTS.
http://help.sap.com/saphelp_nw04s/helpdata/en/f6/501b42b5815133e10000000a155106/frameset.htm
FileUpload UI element can be used here. Please refer to view FILEUPLOAD of web dynpro component WDR_TEST_EVENTS for an example.
I hope it wud help u .
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You want to upload some file and show it as an attachment ?
What exactly is your req .can be more clear..
Regards,
Chaitanya Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please follow the steps below;
Follow these steps;
1.create a node 'FILEUPLOAD' with 2 attributes
a) FILECONTENT type XSTRING
b) FILENAME type STRING
2. Create a fileuplaod uielement
a) bind the data property with attribute 'FILECONTENT'
b) bind the filename property with attribute 'FILENAME'
3. Create a button 'UPLOAD'
a) create the action method for this button
Paste the following code in this method
Data l_node type ref to if_wd_context_node.
Data l_stru type wd_this->elements_cn_fileupload.
l_node = wd_context->get_child_node( 'FILEUPLOAD' ).
l_node->get_static_attributes( importing static_attributes = l_stru ).
"save l_stru-fielcontent in database. Your file will be saved in the database in XSTRING format.
Now when you want to display this file;
1. Create a Node 'FILEDOWNLOAD' with 1 attribute
a) FILE type XSTRING
2. Create a filedownload uielement
a) bind the data property with the attribute 'FILE'
Fetch the file from databased and set the File attribute of teh filedownload uielemnt to display the file.
Hope this helps!
Radhika.
Hi ,
how can we read the file content from server location .
please give the solution for this and send the code to my mail ID : ravi2389@gmail.com
Thanks in Advance it is very urgent.
Regards.
Ravi.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.