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

  • SEARCH
  • Home
  • 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 6250425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:25:15+00:00 2026-05-24T13:25:15+00:00

I want make select from EPREI to ET_DATA ET_DATA have prices prices is structure

  • 0

I want make select from EPREI to ET_DATA ET_DATA have prices prices is structure what i want fill it from EPREIH…

*"----------------------------------------------------------------------
*"*"Lokálne rozhranie:
*"  IMPORTING
*"     REFERENCE(I_PREIS) TYPE  ZRT_IWP_CPREISTYP OPTIONAL
*"  EXPORTING
*"     REFERENCE(ET_DATA) TYPE  ZTT_IWPIFC_PRICE
*"  EXCEPTIONS
*"      NO_DATA_SELECTED
*"----------------------------------------------------------------------

 field-symbols: <lfs_ET_DATA> like line of ET_DATA.
 refresh ET_DATA.

 SELECT *
  FROM EPREI
  into CORRESPONDING FIELDS OF TABLE ET_DATA.

 loop at ET_DATA assigning <lfs_ET_DATA>.
   select *
 from EPREIH 
   into CORRESPONDING FIELDS OF TABLE ET_DATA-prices
   where PREIS = <lfs_ET_DATA>-PREIS
   and PREISTYP <= <lfs_ET_DATA>-PREISTYP.
 endloop.

it shows error:

"ET_DATA" is table without hedaer line and therefore have not component call prices.

How can i make this select correctly? Sorry for my english but i am so tired…

  • 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-05-24T13:25:16+00:00Added an answer on May 24, 2026 at 1:25 pm

    As the previous answer said, ET_DATA is a reference to a table type and does not have a work area.

    So if you really want to add a list of EPREIH into ET_DATA-PRICE you have to point to the work area which is assigned to your field symbol.

    Something like this:

     field-symbols: <lfs_ET_DATA> like line of ET_DATA.
     refresh ET_DATA.
    
     SELECT *
      FROM EPREI
      into CORRESPONDING FIELDS OF TABLE ET_DATA.
    
     loop at ET_DATA assigning <lfs_ET_DATA>.
       select *
     from EPREIH 
       into CORRESPONDING FIELDS OF TABLE <lfs_ET_DATA>-prices
       where PREIS = <lfs_ET_DATA>-PREIS
       and PREISTYP <= <lfs_ET_DATA>-PREISTYP.
     endloop.
    

    extra tip: try using pretty printer with “keywords uppercase” and avoid “select *” if you are not using all fields from those tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make custom select from the database table using Linq. We use
I want to make an sql statement - sqlStatement = [NSString stringWithFormat:@SELECT * FROM
I want to make this select using linq: Select cd.name from Content c, ContentDetail
Basically I want to make this SQL query with linq: SELECT * FROM Orders
I want to make a page so I can select filters in a jquery
I want to be able to make an HTTP call updating some select boxes
I want to make sure that a set of functions have the same signature
SELECT * FROM ...LIMIT 5, 10 But what if I want the total rows?
I need a query to make a Select over table1 and table2. I want
I have views which look something like this: mysql> select * from p2; +---+---------+---------+

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.