Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTTS not downported correctly #3507

Closed
pokrakam opened this issue Dec 16, 2024 · 2 comments
Closed

RTTS not downported correctly #3507

pokrakam opened this issue Dec 16, 2024 · 2 comments
Assignees

Comments

@pokrakam
Copy link
Contributor

pokrakam commented Dec 16, 2024

This one is easy to work around in the source so not too urgent, but a bit more lengthy to troubleshoot the downport. Might be multiple issues?

  DATA(structure) = cl_abap_structdescr=>describe_by_name( 'TADIR' ).
  DATA(table) = cl_abap_tabledescr=>get( CAST #( structure ) ).

Downport v1 (playground):

  DATA(structure) = cl_abap_structdescr=>describe_by_name( 'TADIR' ).
  DATA temp1 TYPE undefined.
  temp1 ?= structure.
  DATA(table) = cl_abap_tabledescr=>get( temp1 ).

Downport v2 (real code, edited), no more undefined type:

    DATA temp2 TYPE REF TO cl_abap_typedescr.
...
      structure = cl_abap_structdescr=>describe_by_name( table_name-tabname ).
      temp2 ?= structure.
      table = cl_abap_tabledescr=>get( temp2 ). "<-- "TEMP2" is not type-compatible with formal parameter "P_LINE_TYPE".
@larshp
Copy link
Member

larshp commented Dec 17, 2024

@pokrakam try again, open-abap/open-abap-core#915 merged

@pokrakam
Copy link
Contributor Author

Ah, much simpler cause than the symptoms, should have been able to spot/fix that myself. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants