on 12-31-2009 10:53 AM
Hello All,
I have a requirement where user should able to attach any file in webdynpro abap. once he upload the file, he should able to see the attchment in WDABAP screen. I have tried methods of SOFM businss object for creating and displaying attachment but these are not working in WDABAP envirionment. But same thing works fine in ABAP gui. Is there any other method of creating and displayng attachment ( any ) on wdabap screen??
Regards,
Sagar
Hi,
first convert the xstring received from file upload UIElement to binary format using function module 'SCMS_XSTRING_TO_BINARY'.
get the file name
call function module 'BDS_BUSINESSDOCUMENT_CREA_TAB' to create attachment in business document service.
use transactions SBDSV1, SBDSV2, SBDSV3 to maintain the business object name use for attachment storeage.
there are some blogs on SDN which has detailed information about using the F.M to create and read attachment.
Thanks
Vishal kapoor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please use BDS. there are lots of built in classes & FMs related to this. You can save all kinds of attachments and then you can also display them for e.g by clicking on the document link & open them in a seperate Window from the WD application.
there is already existing documentation on sdn, so i am not posting any llinks. but we used BDS to store documents.
Pls letme know if you need any further help.
thanks,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Thanx for reply. but how to display the same in WDABAP on user click.
Regards,
sagar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
u can use FileUpload UI element to upload ur attachements .
refer the SAP online help :
http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/b3/be7941601b1d09e10000000a155106/content.htm
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.