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: 

AT NEW command in ABAP Objects

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

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 ?

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos

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 ?

0 Kudos

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.

0 Kudos

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

0 Kudos

Thanks!