If you are using SAP_WAPI_CREATE_EVENT then all you need to do is fill the table parameter INPUT_CONTAINER.
Create a internal table and structure type SWR_CONT and move the container element name to ELEMENT field and the values to VALUE field.
Regards,
Felipe