Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8382583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:57:41+00:00 2026-06-09T16:57:41+00:00

I want to receive data from an internal table which is a dynamic one.

  • 0

I want to receive data from an internal table which is a dynamic one.

For example, internal table has two fields: numbers – names

And it is filling with informations like:

enter image description here

How can I get only same datas? I want to get data base on numbers. I want to color the same numbers. I mean keyid’s 1, 2, 6 are red, 3 and 4 are blue and 5 is yellow. Because of the internal table is dynamic I can’t be sure there is always 1 into numbers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:57:43+00:00Added an answer on June 9, 2026 at 4:57 pm

    I’m assuming you mean you don’t know if your dynamic table always has the column you’re looking for.

    Use the Runtime Type Services (RTTS) to determine the structure of the dynamic table. The following bit of data will determine if your structure has a field called ‘NUMBER’. You can use table lt_component to check which component you need to read ( ASSIGN COMPONENT number OF STRUCTURE <fs_line> TO <fs_field> ).

    DATA:
        lr_tabledescr TYPE REF TO cl_abap_tabledescr,
        lr_datadescr  TYPE REF TO cl_abap_datadescr,
        lr_structdescr  TYPE REF TO cl_abap_structdescr,
        lr_typedescr    TYPE REF TO cl_abap_typedescr,
        lt_component    TYPE TABLE OF abap_componentdescr.
    
    DATA tab TYPE TABLE OF sflight.
    
    lr_tabledescr ?= cl_abap_datadescr=>describe_by_data( tab ).
    lr_typedescr ?= lr_tabledescr->get_table_line_type( ).
    lr_structdescr ?= lr_typedescr.
    lt_component = lr_structdescr->get_components( ).
    
    
    READ TABLE lt_component WITH KEY name = 'NUMBER'.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop an app which can send and receive data from a
I want to receive data from a client. To be precise, all data the
I want to receive data from a socket in native part and then read
My application has to connect and receive data from RFID reader for every 2
I have a application which uses socket connection to send and receive data from
I have a web service from which i receive data, put it in a
I receive data from a server using JSON and I want to order them
So basically, I'm posting data with wp_remote_post, and I want to receive sent data
What i want to do: delete an image file from the private internal storage
I'm building a chart and I want to receive data for each month. Here's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.