Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9169

how to join OCPR table with SAP B1 default Crystal Report for Purchase Order

$
0
0

Hello,

 

I am trying to use the default "AP Purchase Order (Item) - CR (GB) (System)" Crystal report layout to make the Purchase Order in SAP Business One.

The problem is that this template does not has the table of OCPR ( which is the contact person details like First Name, last Name, Telephone 1 etc ).

 

I tried from my end by going to database expert and then selecting the OCPR table but after i connect and regenerate the report there is no data coming and the whole template is becoming blank.

 

In SQL I am able to link OPOR and OCPR table with the below query but I am not able to link the same in "AP Purchase Order (Item) - CR (GB) (System)" layout.

 

SELECT T0.[DocNum], T1.[CardCode], T1.[Name], T1.[Position], T1.[Tel1], T1.[FirstName], T1.[MiddleName], T1.[LastName] FROM OPOR T0  INNER JOIN OCPR T1 ON T0.[CntctCode] = T1.[CntctCode]

 

Please advise how can i connect OCPR table to this template.

 

Kind Regards,

Ravi


Viewing all articles
Browse latest Browse all 9169

Trending Articles



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