Application Development 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: 

How to call class in BW transformations

Vincent801
Explorer
0 Kudos
434

Hi ABAP Cloud Experts.

I would like to know, How to call Class in the BW transformations. I have created a class where it will give the output as Current date. I would like to use this class in BW transformations and along with other data, System date should display for all records.

Please find the sample code.

CLASS zsample11 DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .

PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.

CLASS zsample11 IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
out->write( cl_abap_context_info=>get_system_date( ) ).
ENDMETHOD.
ENDCLASS.

Thanks.

1 REPLY 1

Vincent801
Explorer
0 Kudos
340

Dear BW Experts,

It will be great, if you share some sample code on how to call class in BW transformations of the AMDP method.

THanks,