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

Re: Connect two tables

$
0
0

Hi,

the mismatch is in this code:

 

ifnot it_bsak isINITIAL.

select bukrs belnr tcode

   from bkpf

   INTOtable it_bkpf

   FORALL ENTRIES IN it_bsak

   where bukrs = s_bukrs and belnr = it_bsak-belnr.

endif.

 

You try with this code:

ifnot it_bsak[]isINITIAL.

select bukrs belnr tcode

   from bkpf

   INTOtable it_bkpf

   FORALL ENTRIES IN it_bsak

   where bukrs IN s_bukrs

      and belnr = it_bsak-belnr

      and gjahr = it_bsak-gjahr.

endif.

 

Regards

Ivan


Viewing all articles
Browse latest Browse all 10473

Trending Articles