cancel
Showing results for 
Search instead for 
Did you mean: 

Using Long BYTE string (LRAW) type field in BAPI parameter..

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Unfortunately you can not use types with variable length in BAPI definitions. Use tables instead.