How to use Mime Objects in Business Graphics at run
In a web dynpro abap application, I am using a business graphic. there is a attribute called 'customizing' present in the BG UI elem.
I want to set the value of customizing at runtime. I have uploaded few XML files in the Mimes folder of my web dynpro abap application. I want to change the property 'Customizing'(which takes a xml file as its value) at runtime. I want to take the xml file form the files uploaded in the mimes folder already. How do we do this programatically.
I have already done the following things.
data : lr_bg TYPE REF to cl_wd_Business_Graphics,
lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL.
lr_bg ?= view->get_element( id = 'BGR_REMINQ' ).
lr_bg_method_handler ?= lr_bg->_method_handler.
CALL METHOD LR_BG_METHOD_HANDLER->CLEAR_DIRECT_CUSTOMIZING.
CALL METHOD LR_BG_METHOD_HANDLER->ADD_DIRECT_CUSTOMIZING
EXPORTING I_CUSTOMIZING = 'EUR.xml'.
In the above code, I am passing 'EUR.xml' to I_CUSTOMIZING property of the BG but the system is giving a error saying "The Literal 'EUR.xml' is not type compatible with formal parameter I_CUSTOMIZING". how to get rid of this error. how to reference a mime xml file in line 'EXPORTING I_CUSTOMIZING = 'EUR.xml'.