Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

Former Member
0 Likes
546

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?

1 REPLY 1
Read only

christian_wohlfahrt
Active Contributor
0 Likes
353

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