cancel
Showing results for 
Search instead for 
Did you mean: 

Modify XML file in MIME Repository

0 Kudos

Hi Experts,

In my Web-Dynpro component I have uploaded a MIME file(.XML file). I want to read this file during runtime and modify the contents of the xml file. Could you please help me out how I can achieve this? I have tried the following: (I first right click on the WD Component and upload the file 'Test.xml' to the mime repository). In the WDDOINIT of the view I do the following:

DATA: lr_mime_repository type ref to if_mr_api,

content type xstring.

lr_mime_repository = cl_mime_repository_api=>if_mr_api~get_api( ).

lr_mime_repository->get( exporting i_url = `/sap/bc/WebDynpro/sap/zteam_monthly/Test.xml` importing e_content = content ).

But I do not get any content during runtime(where 'zteam_monthly' is my WD Application and corresponding node in SICF exists). I am not sure if I am missing something. Could you please provide some guidance ?

Best Regards,

Viqar.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Experts,

Any inputs on this? I have not been able to figure out a solution yet. Any guidance is highly appreciated.

Best Regards,

Viqar.