This website is not affiliated with, sponsored by, or approved by SAP AG.

FOR ALL ENTRIES

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

FOR ALL ENTRIES

Postby sapmanie » Wed Jul 19, 2017 2:23 am

Hi,
Does a field need to be defined in the internal table for the SELECT on matnr to work? As this gives an error.

Code: Select all
report ztest.
data: itab type table of matnr,
         istab type matnr.

istab = '1'.
append istab to itab.
istab = '2'.
append istab to itab.

select * from mara into table imat for all entries in itab [b]where matnr = itab[/b].
sapmanie
 
Posts: 481
Joined: Fri Jan 23, 2004 10:39 am

Re: FOR ALL ENTRIES

Postby Rich » Wed Jul 19, 2017 9:02 am

Yes.
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com
Rich
 
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Re: FOR ALL ENTRIES

Postby Gothmog » Thu Aug 24, 2017 7:19 am

Use:
Code: Select all
where matnr = itab-table_line
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: FOR ALL ENTRIES

Postby VLozano » Wed Aug 30, 2017 9:19 am

Gothmog wrote:Use:
Code: Select all
where matnr = itab-table_line

I will vote for define the table properly, with a BEGIN w_mat, a material field, and so.

Just for readability.
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity


Return to ABAP

Who is online

Users browsing this forum: No registered users and 5 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.