
In SAP Business One, standard marketing documents such as A/R Down Payment Request and A/R Down Payment Invoice are using the same table (ODPI and DPI1).
When you create a custom layout using Crystal Report Designer for those marketing documents, you can use only one layout with the additional query below to determine layout title in preview mode:
SELECT T0."DocNum", T0."DocDate", T0."CardCode", T0."CardName", T0."Comments", T0."DocTotal", T1."ItemCode", T1."Dscription", T1."Quantity", T1."Price", T1."DiscPrcnt", T1."LineTotal", CASE T0."CreateTran" WHEN 'N' THEN 'A/R DOWN PAYMENT REQUEST' ELSE 'A/R DOWN PAYMENT INVOICE' END AS "LayoutTitle" FROM {?Schema@}."ODPI" T0 JOIN {?Schema@}."DPI1" T1 ON T0."DocEntry"=T1."DocEntry" WHERE T0."DocEntry"={?DocKey@}



Also read:
- How to Print Login User Name in SAP Business One Crystal Report
- SAP Business One Crystal Report – Cross-Tab for Report
- Authorizations for Custom Reports with the Crystal Reports in SAP Business One
- Export Crystal Reports Layouts in SAP Business One
- Export and Import Crystal Report Files on SAP Business One