‎2006 Mar 01 6:59 AM
Hi all,
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 too 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?
‎2006 Mar 02 8:35 AM
Hi!
Convert the LRAW into (some) fields with smaller fixed length. When reading your data, split this before filling the output table parameter; when writing data, put the fields together to get ORBLK-typed field.
Regards,
Christian