on 02-06-2007 2:47 PM
Hi
I have a requirement to read a text file from the mime repository into my WDA component. The file contains properties for a roadmap component.
How would I achieve this?
Any help much appreciated.
Ian
Hi Ian,
Please find below an example from WDR_TEST_EVENTS/GANTT
data:
mime_repository type ref to if_mr_api,
content type xstring,
url type string value '/SAP/BC/WebDynpro/SAP/WDR_TEST_EVENTS/gantt.xml'.
mime_repository = cl_mime_repository_api=>get_api( ).
call method mime_repository->get
exporting
i_url = url
importing
e_content = content.
wd_context->set_attribute( name = 'DATA' value = content ).
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.