2014 Oct 17 1:14 PM
Hi All,
I am new to ABAP and I am working on implementing the following
Now inside the BADI Z_CTS_REQUEST_CHECK - method CHECK_BEFORE_RELEASE I have certain values inside the Request variable.
I want to use the same data inside this variable in the SCI_CHECK method.
Overall the question would be if I can declare a variable at some public section and then use them wherever inside the BADI?
Appreciate your help.
Best regards,
Elena
2014 Oct 17 1:35 PM
i do not have the badi in my system, however for a similar purpose i found already implemented by previous developer this trick:
1->under Attributes in your ZCL... class that implements the badi declare an INSTANCE ATTRIBUTE with the structure/tipe you need
2->Fill it in method CHECK_BEFORE_RELEASE
3->You should access your attribute even in SCI_CHECK
As i told, i do not have the badi on my system so i do not know which is the sequence of the calls for the methods
2014 Oct 17 2:02 PM
Hi Elena
Keep in mind this picture you even can declare an atribute in your ZCL_ class as static attribute.