You are on page 1of 2

Vendor Debit memo Report

AS IS: No existing report for Vendor debit memo report.

TO BE: We need to develop new z program for Vendor debit memo report.

Selection Criteria:

1. Plant - Mandatory field


2. Vendor - Optional
3. PO Number - Mandatory field
4. From Date - To Date- Mandatory field

Report Logic:

Pass EBELN (Pur Doc.) & EBELP (Item) in the table RSEG/BSEG to fetch BELNR (MIRO Doc Number)
Pass EBELN (Pur Doc.) & EBELP (Item) in the table EKBZ/EKBE to fetch BELNR (MIRO Doc Number)
Compare and sort the documents as per GJAHR (Fiscal Year) and BUDAT (Posting Date) with respect to
selection criteria.

Report Output
1. Plant : EKKO _WERKS
2. Vendor(Invoicing Party):- RBKP_LIFNR
3. Vendor GSTIN Number:- RBKP_STCD3
4. MIRO Doc Number:-RBKP_ BELNR
5. Document Type :- RBKP_BLART (If BLART= KG Doc type for Vendor Credit Memo)
6. MIRO Doc Date:- RBKP_ BLDAT
7. MIRO Doc Posting Date :- RBKP_BUDAT
8. Vendor invoice number :- RBKP_XBLNR
9. Debit/Credit :- RBKP_SHKZG , If SHKZG = S (Debit) or SHKZG = H (Credit)
10. PO Number :- RSEG_ EBELN
11. Item - RSEG_EBELP
12. Material Number :- RSEG_ MATNR
13. HSN / SAC Code :- (HSN/SAC Code) HSN_SAC _BSEG
14. PO Qty - (RSEG-BSMNG )
Pass EBELN (Purchasing Doc.) & EBELP (Item) in the table EKPO to fetch PO Qty
15. GR Qty -(RSEG-BPWEM)
Pass EBELN (Purchasing Doc.) & EBELP (Item) in the table EKBE If (PO History Cat.) BEWTP = E and
(Debit/Credit) SHKZG = S fetch MENGE (Quantity).
16. IR Qty -(RSEG_RBMNG) Pass EBELN (Purchasing Doc.) & EBELP (Item) in the table EKBE If (PO History
Cat.) BEWTP = Q and (Debit/Credit) SHKZG = S fetch MENGE (Quantity).
17. UOM :- RSEG_ MEINS
18. Base Value(Price) :- RSEG_WRBTR
19. Tax Code:- RSEG_ MWSKZ
20. Tax Value :- Pass MWSK1 in table KONP to fetch KONP_ KBETR (Amount)
21. Total Value:- RSEG_ SALK3
MIRO Doc Doc MIRO Doc MIRO Doc Posting
Plant Vendor Vendor GSTIN
Number Type Date Date

1100 ABC Pvt ltd 111VFGFGRGR34 50000000055 RE 10.03.2018 10.03.2018


1100 ABC Pvt ltd 111VFGFGRGR34 50000000056 KG 14.03.2018 14.03.2018
1100 ABCDEF Pvt ltd 333GGRHTHNTT45 70000000077 KG 10.03.2018 10.03.2018
1100 ABCDEF Pvt ltd 333GGRHTHNTT45 70000000078 KG 14.03.2018 14.03.2018

Vendor invoice
Debit/Credit PO Number Item Material Number HSN / SAC Code PO Qty
number

1224343 S (Debit) 1200000 10 22222 1111 100


1224343 H (Credit) 1200000 10 22222 1111 100
5656767 S (Debit) 1400000 80 45455 2334 100
5656767 H (Credit) 1400000 80 45455 2334 100

GR Qty IR Qty UOM Tax Code Base Value(Price) Tax Value Total Value

50 50 Ea GG 1000 50 1050
50 50 Ea GG 1000 50 1050
50 50 Ea GG 1000 50 1050
50 50 Ea GG 1000 50 1050

Prepared d by

Prepared d by Lokehbabu modem SAP Logistics consultant


Approved by SAP MM Consultant SAP Logistics consultant
Report Type New

------x------

You might also like