Is there an equivalent of the AT NEW command in abap oo? When I try to use this command inside a BAdi, I get an error message.
In OO ABAP there is no special syntax , its normal abap abap syntax only. While posting here please be more specific.
What is the error ?
Thank you for your response
LOOP AT c_t_data ASSIGNING variants are no longer supported in the OO context. Use dynamic variants instead.
You should try "AT NEW pernr" instead of "AT NEW <l_s_data>-pernr", as only the component is required.
If that's not it, please read ABAP online help, where everything and more is explained in detail.
Login to follow, like, comment, share and bookmark content.