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

Select Statement

Former Member
0 Likes
732

HI Experts,

My issue is i need to select data from marc table.

Example:

select matnr prctr from marc into corresponding fields of table it_marc

where matnr in so_matnr and

prctr is not initial. <----


My issue is i need to make sure prctr field dont have any value during my selection.

Thank you very much.

6 REPLIES 6
Read only

Former Member
0 Likes
700

Hi

Try this....

select matnr prctr from marc into corresponding fields of table it_marc

where matnr in so_matnr and

prctr NE ' ' .

Read only

Former Member
0 Likes
700

Hi Saravannan

select matnr prctr from marc into corresponding fields of table it_marc

where matnr in so_matnr and

prctr is not initial. <----


You can use...

SELECT matnr prctr FROM marc

INTO TABLE it_marc

WHERE matnr IN so_matnr

AND prctr eq ' ' .

Read only

Former Member
0 Likes
700

Hi,

>

> HI Experts,

> My issue is i need to select data from marc table.

> Example:

>

> select matnr prctr from marc into corresponding fields of table it_marc

> where matnr in so_matnr and

> prctr is not initial. <----


>

> My issue is i need to make sure prctr field dont have any value during my selection.

>

> Thank you very much.

in select query you mentioned prctr is not initial,and you are saying it should not contain any value during the selection.

i didnt get you, can you explain?

Read only

Former Member
0 Likes
700

Hi,

First collect data with check PRCTR. Next use read itab check PRCTR <> ' '.and move other internal table.

Regards

Md.MahaboobKhan

Read only

Former Member
0 Likes
700

select matnr prctr from marc

into corresponding fields of table it_marc

where matnr in so_matnr and

prctr EQ SPACE .

Read only

Former Member
0 Likes
700

Thanks a lot friends.i managed to solved that.