Start of Content Area

Procedure documentation InfoSpoke with Transformation Using a BAdI  Locate the document in its SAP Library structure

Use

You have the option of transforming the data to be transferred using a Business Add-In (BAdI). The original structure for transfer is thereby the InfoObject list. Possible user scenarios for a transformation would be, for example, the reading of texts or a currency conversion.

For more information about using Business Add-Ins (BAdIs), read the detailed documentation for Business Add-Ins.

Prerequisites

For the Transformation tab page, set the indicator for InfoSpoke with Transformation Using BAdI so that the InfoSpoke is activated first. Then you arrive in the BAdI builder.

Procedure

The definition for the BAdI is called OPENHUB_TRANSFORM. For this, you create your implementation.

You can find detailed information about implementing a BAdI under: Implementing Business Add-Ins.

Implementing the BAdI

...

       1.      You are in the BAdI builder. Enter a short text for the implementation. The implementation name is always the same as the technical name of the InfoSpoke.

       2.      The implementation of this BAdI is always filter-dependent. Enter your InfoSpoke on the Properties tab page under Filter Specifications. You can only have one implementation for each InfoSpoke.

Caution

If you do not specify an InfoSpoke under Filter Specifications, then this implementation is valid for all InfoSpokes. This means that this is called up for all InfoSpokes during the extraction.

       3.      Activate your class.

       4.      From the Interface tab page, you arrive at the TRANSFORM method in the class builder by double-clicking. There you can enter your code:

method IF_EX_OPENHUB_TRANSFORM~TRANSFORM .

your code

endmethod.

       5.      Activate your method. Return to the BAdI builder. Return to your InfoSpoke.

Result

You can now write the data into the open hub destination using your own transformations.

 

 

End of Content Area