I need to create a custom BAPI to extract MSDS data ( from SAP (this data is stored as binary in hex format in DRAO table in ORBLK field). For this, I have created one RFC function module with a exporting table parameter that contains a ORBLK-type field (base type LRAW) and a preceeding INT2 field to contain the length of the internal table line data.
Now, I have tested this function module successfully in SAP system. But when I try to create the Business Object with the API Method for this BAPI function in 'SWO1' transaction, I am getting one error due to the ORBLK-type field. It says - "Field <structure name>-ORBLK is tool large to be included in container". So I am just not able to generate the Business Object and the BAPI method.
Can anyone please help me out?