Quantcast
Channel: SCN : Discussion List - SAP Business Warehouse
Viewing all articles
Browse latest Browse all 6437

generic extraction using function module error

$
0
0

In generic extraction using function module when I use the tables like MARA and LFA1  like this its  not working  I am not getting the data

 

SELECT MARA~MATNR  MARA~ERSDA  MARA~ERNAM  MARA~LAEDA  MARA~AENAM  LFA1~LIFNR

LFA1~LAND1  LFA1~NAME1  LFA1~NAME2

FROM MARA

INNER JOIN LFA1 on LFA1~LIFNR = MARA~MATNR

WHERE MARA~MATNR IN L_R-MATNR

 

 

I think I have to correct at   INNER JOIN LFA1 on LFA1~LIFNR = MARA~MATNR   please tell me.

 

My question is when I want to do generic extraction using function module when there is no relation ship on tables like mara and lfa1 how to write the select statement?  If i do not have common field join relation ship  then what to do?

 

 

 

 

for example if i use this In generic extraction using function module when I use the tables  like  vbak and vbap  which have common field vbeln this its working fine as we know  for this alreay join relation ship exits...

 

SELECT VBAK~VBELN VBAK~ERDAT VBAK~NETWR VBAP~MATNR

VBAP~POSNR

FROM VBAK

INNER JOIN VBAP on VBAK~VBELN = VBAP~VBELN

WHERE VBAK~VBELN IN SDNO.


Viewing all articles
Browse latest Browse all 6437

Trending Articles



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