First I have to clarify that I'm not referring to the company Business Objects recently acquired by SAP. Instead I'm referring to business objects as defined in the SAP Business Object Repository (BOR), e.g. SalesOrder (BUS2032).
So what would be the preferred approach to serialize such a business object in the SAP system so that a third party system could deserialize the business object including all attributes that make up a specific business object instance?
According to this article you need to use the IF_SERIALIZABLE_OBJECT
interface. I'm guessing your business object doesn't already implement that interface so you may have to extend it to a custom business object and implement the IF_SERIALIZABLE_OBJECT
interface there.
I'd say IDocs, but I see you don't want to use the SAP generated representations. Which means you'll have to write your own implementation using ABAP. In a nutshell:
zcl_sales_order
, zcl_sales_order_position
, etc.), which you design according to your needscall transformation
statement (though this will still contain some SAP-specific formatting), or write your own serialization method (this is probably what you need)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With