Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Connect two tables

$
0
0

Hi Experts,

 

I am new to ABAP. The dump shows that the mistake in the select statement, I checked few codes, I think it is right but still giving dump of dbif_rsql_invalid_rsql. Please guide me where I am lacking.

 

The requirement is that I need to get tcode field from bkpf table so I have connected it to bsak. Is the connection wrong?

 

select bukrs

          lifnr

          budat

          wrbtr

          belnr

          shkzg

          zuonr

          umskz

          sgtxt

          gjahr

     from bsak

     intotable it_bsak

     where bukrs in s_bukrs and lifnr in s_lifnr and budat in s_date.

 

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.

 

 

 

Regards

Mani


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>