02-23-2011 2:55 PM
Hi everyone!
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.
Best Regards,
Luís.
02-23-2011 3:10 PM
Hi,
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 ?
02-23-2011 3:10 PM
Hi,
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 ?
02-23-2011 4:07 PM
Hi,
Thank you for your response
Sample code:
LOOP AT c_t_data ASSIGNING variants are no longer supported in the OO context. Use dynamic variants instead.
Regards,
Luís.
02-23-2011 4:23 PM
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.
http://help.sap.com/abapdocu_70/en/ABAPAT_ITAB.htm
Thomas
02-23-2011 4:43 PM