Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Error in SELECT return

$
0
0

Hi Joao,

 

IF so_konzs IS NOT INITIAL.

     SELECT * INTO TABLE gt_lfa1 FROM lfa1 WHERE konzs IN so_konzs.

ENDIF.

 

 

IF so_konzs[] IS NOT INITIAL. " Write the [ ] along with internal table

     SELECT * INTO TABLE gt_lfa1 FROM lfa1 WHERE konzs IN so_konzs.

ENDIF.

 

Because when u create the Select option it automatically create workarea for the same name same name with the  internal table name. so with internal table write the explicitly [ ]  along with the internal table.

 

Regards.

Nishant Bansal.



Viewing all articles
Browse latest Browse all 9052

Trending Articles