Application Development and Automation 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: 
Read only

ADT quick assist create method wizard error

matt
Active Contributor
826

Eclipse 2019-09 R (4.13.0),

ABAP Core Development Tools 3.6.2,

SAP_ABA 750/010

I have this code:

        INSERT VALUE #( bname = sap_data_record->bname
                        sap_gltgv = REF #( sap_data_record->gltgv )
                        sap_gltgb = REF #( sap_data_record->gltgb )
                        ad_gltgv  = REF #( ad_data_record->gltgv )
                        ad_gltgb  = REF #( ad_data_record->gltgb )
                        ccode     = REF #( ad_data_record->ccode )
                        is_internal = REF #( ad_data_record->is_internal )
                        sap_roles = REF #( sap_data_record->roles )
                        ad_roles = expand_ad_roles( ad_data_record->roles ) 
                        ) INTO TABLE user_data.

I choose create method (to create expand_ad_roles ). The wizard pops up, I adjust the parameter names to

IMPORTING imp_ad_roles.
RETURNING value (ret_result)

and click on finish.

One minor issue is that ret_result is typed in the method definition as ANY. But the bigger issue is that the field name in my statement disappears!

        INSERT VALUE #( bname = sap_data_record->bname
                        sap_gltgv = REF #( sap_data_record->gltgv )
                        sap_gltgb = REF #( sap_data_record->gltgb )
                        ad_gltgv  = REF #( ad_data_record->gltgv )
                        ad_gltgb  = REF #( ad_data_record->gltgb )
                        ccode     = REF #( ad_data_record->ccode )
                        is_internal = REF #( ad_data_record->is_internal )
                        sap_roles = REF #( sap_data_record->roles )
                        expand_ad_roles( ad_data_record->roles ) 
                        ) INTO TABLE user_data.

Easy to fix, but shouldn't be happening. Couldn't find an applicable note in support.sap.com

2 REPLIES 2
Read only

0 Likes
716

Hi Matthew,

could you please raise a ticket to get this issue solved.

Regards,
Michael

Read only

0 Likes
716

I don't have a access to an S account connected to the system this is occurring on. I'll see if I can duplicate it on a different system.