cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Custom CDS View for SD Document X Material X Batch X Serial Number

0 Kudos
866

Hi All,

We have a requirement from client to create a Custom Analytical Query to fetch the Batch and Serial numbers based on the Sales Document and Material. 

We did the following to create a Custom Analytical Query:

1. Created Custom CDS View to get all SD Documents with Items using I_SalesDocument and  I_SalesDocumentItem

2.Created Custom CDS View we tried to fetch the Delivery Document from the SD Document to get the Batch . using I_SalesDocument and I_SDDocumentMultiLevelProcFlow (Note: The Batch and Serial Numbers are entered only in the Delivery Document)

3.And Based on the 2nd Custom CDS View we have linked with the Delivery Document using YY1_SalesOrderListL2 and I_DeliveryDocumentItem

4.And Based on the 3rd Custom CDS View we have linked with the  Equipment Standard CDS View which is having all the Material X Batch X Serial Number using YY1_SalesOrderListL3 and I_Equipment

With this above approach we are not able to extract exact serial number and Batch from the Sales Document.

So help me if you have any other approach thanks in advance.

Thanks,

Lingaraj

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Gerad,

Thanks for asking.

This one is resolved now.

We are entering batch number and serial number in delivery level . So with the help of Material Document we tracked the exact batch and serial number for the particular Sales Order.

We have used "I_SerialNumberMaterialDocument" to get the serial numbers. In this way we have achieved client requirement.

Thanks,

Lingaraj

Answers (2)

Answers (2)

0 Kudos

Hi Joanne,

We are maintaining batch and serial in the Delivery document. For that only i have taken sales CDS view and I_SDDocumentMultiLevelProcFlow- this will give me the subsequent document (Delivery Document).

Once i get the Delivery document then i am trying to map with I_Equipment which is having Material, Batch , serial.

Thanks,

Lingaraj

GerardM
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Lingaraj - can you elaborate on this: "With this above approach we are not able to extract exact serial number and Batch from the Sales Document."

Joanne_Lysy
Advisor
Advisor
0 Kudos

Hello,

Where are you maintaining the batch determination? If it is in the delivery document, then the sales order CDS view may not be a viable approach.

Thanks,

Joanne