Report linking  Delivery , Receipts , Purchase Return & Sales Return Entry

We have Service Contract for Supplying Inventory to Our Indirect Customer.
For Example:We have signed service contract with  IBM whose customer is Bank of India, now once Bank of India logs any complaint call to IBM for faulty part, IBM ask us to supply new part from our inventory to Bank of India and collect faulty part from Bank of  India, after inward of faulty part from bank of India we then send same faulty part to IBM against which IBM send us the new part hence the cycle gets completed and our inventory regain its level after four transaction.
Each of Inventory in this transaction is managed serially
To cater to this business scenario, we prepared Delivery Transaction against Bank of India(Bank of India is defined as customer)(For Serial no abcd1234) and prepared  sales return entry of faulty from Bank of India (For serial no pqrs6789), then prepared goods return entry (For Serial no pqrs6789) against IBM (IBM is defined as vendor) and in last prepared GRPO entry for inward of Inventory from IBM.
In this scenario any transaction can be initiated first.
Across all this transaction one No (RMA no  a UDF) is common same for all transaction
So to have complete tracking of this we want to linked all this transaction i.e for one RMA no report should show all transaction linked in single row including serial no of item.
Satish

Hi
Pls find the below query which i have used
{select * from (select 'GRN' as doc_type,a.docdate,a.docnum,a.u_rmano,a.numatcard,a.cardcode,a.cardname,a.docstatus,c.itemcode,c.itemname,
c.whscode,b.quantity,status,case when c.direction=0 then 'Inward' when c.direction=1 then 'Outward' end as direction ,d.intrserial,d.suppSerial,d.Batchid
from opdn a inner join pdn1 b on a.docentry=b.docentry
inner join (select * from sri1 where basetype=20) c
on a.docnum=c.basenum and b.itemcode=c.itemcode
inner join (select * from osri where basetype=20) d
on a.docnum=d.basenum and b.itemcode=d.itemcode
where not a.u_rmano is null) grn
left outer join
(select 'DC' as doc_type,a.docdate,a.docnum,a.u_rmano,a.numatcard,a.cardcode,a.cardname,a.docstatus,c.itemcode,c.itemname,
c.whscode,b.quantity,status,case when c.direction=0 then 'Inward' when c.direction=1 then 'Outward' end as direction ,d.intrserial,d.suppSerial,d.Batchid
from odln a inner join dln1 b on a.docentry=b.docentry
inner join (select * from sri1 where basetype=15) c
on a.docnum=c.basenum and b.itemcode=c.itemcode
inner join (select * from osri where basetype=20 or basetype=58 or basetype=16 or basetype=67 or basetype=15 ) d
on c.sysSerial=d.sysSerial and c.itemcode=d.itemcode
where not a.u_rmano is null) dc
on grn.u_rmano=dc.u_rmano
left outer join
(select 'SR' as doc_type,a.docdate,a.docnum,a.u_rmano,a.numatcard,a.cardcode,a.cardname,a.docstatus,c.itemcode,c.itemname,
c.whscode,b.quantity as  srqty,status,case when c.direction=0 then 'Inward' when c.direction=1 then 'Outward' end as direction ,d.intrserial,d.suppSerial,d.Batchid,1 as [quantity]
from ordn a inner join rdn1 b on a.docentry=b.docentry
inner join (select * from sri1 where basetype=16) c
on a.docnum=c.basenum and b.itemcode=c.itemcode
inner join (select * from osri where basetype=20 or basetype=58 or basetype=16 or basetype=67 or basetype=15 ) d
on c.sysSerial=d.sysSerial and c.itemcode=d.itemcode
where not a.u_rmano is null
) sr
on grn.u_rmano=sr.u_rmano
left outer join
(select 'PR' as doc_type,a.docdate,a.docnum,a.u_rmano,a.numatcard,a.cardcode,a.cardname,a.docstatus,c.itemcode,c.itemname,
c.whscode,b.quantity as prQty,status,case when c.direction=0 then 'Inward' when c.direction=1 then 'Outward' end as direction ,d.intrserial,d.suppSerial,d.Batchid,1 as [quantity]
from orpd a inner join rpd1 b on a.docentry=b.docentry
inner join (select * from sri1 where basetype=21) c
on a.docnum=c.basenum and b.itemcode=c.itemcode
inner join (select * from osri where basetype=20 or basetype=58 or basetype=16 or basetype=67 or basetype=15 ) d
on c.sysSerial=d.sysSerial and c.itemcode=d.itemcode
where not a.u_rmano is null) pr
on grn.u_rmano=pr.u_rmano}

Similar Messages

  • Material return(sales return)-default stock updation

    Daer Gurus
    While material return(sales return), default stock updation is possible through Transfer posting or some other transcation...pls help me to give a Soln
    Regards
    Ragesh

    If a customer returns goods , you must first determine whether or not a returns delivery exists for the returns in the Sales (SD-SLS) component. You then enter the return with or without a returns delivery.
    Since returns from the customer are usually examined, the quantity returned is first posted to blocked stock returns. As is the case with goods receipt blocked stock, blocked stock returns are neither valuated nor do they count as unrestricted-use stock.
    If an examination proves that the returned quantity should be taken over into unrestricted-use stock, you enter the transfer to unrestricted-use stock in a second step. It is at that time that the valuation of the goods receipt occurs.
    If a returns delivery exists, the return should be posted in the Sales (SD-SLS) component, not in the Inventory Management component.
    Depending on how Customizing for Sales is configured (the movement type is configured in the step Define Schedule Line Category), the delivery is posted to the following stock:
    Blocked stock returns (non-valuated, not unrestricted-use) (movement type 651)
    Unrestricted-use stock (movement type 653)
    Quality inspection stock (movement type 655)
    Blocked stock (movement type 657)
    If the given quantity is posted to blocked stock returns first, you can make a manual goods movement posting in the Inventory Management component to transfer the quantity to valuated stock.
    If blocked stock returns are to be transferred into your company's own stock, you enter the transfer as a transfer posting. Choose movement type 453 (to unrestricted-use stock), 457 (to stock in quality inspection stock), or 459 (to blocked stock.
    If helps rewards points.
    Regards
    TAJUDDIN

  • Cancel a Goods Return/Sales Return Based on a GRPO

    Hello Experts,
    A wrong Sales Return document has been registerd, this document is based on a GRPO.
    What is the best way to supress the Sales return and cancel it's effect on the system. (SAP 2007 A Pl 41)
    Thanks in advance.
    Amin

    hi,
    Below statement is correct ????
    A wrong Sales Return document has been registerd, this document is based on a GRPO.
    What is the best way to supress the Sales return and cancel it's effect on the system. (SAP 2007 A Pl 41)
    Apply authorization to Sales Return as Read only / No authorization.
    To cancel effect of sales return,Create a delivery document,this will issue stock & correct JE postings
    created by sales return.
    Edited by: Jeyakanthan A on Jun 11, 2009 2:34 PM

  • Trying to link Goods Receipt Purchase Order (OPDN) to Landed Cost (OIPF)?

    Hi Everyone,
    I am wondering what the link is between a Goods Receipt Purchase Order and a Landed Cost. Here is a diagram of the link that I am trying to determine.
    According to the Database Tables Reference there is a link between OPDN (Goods Receipt Purchase Order) and OIPF (Landed Costs) called 'ImportEnt', as shown below -
    However I can't work out what 'ImportEnt' links to on the OPDN (Goods Receipt Purchase Order) side.
    Any advice concerning how to link OPDN to OIPF will be greatly appreciated.
    Kind Regards,
    David

    Hi Nagarajan,
    Thank you for the helpful response. The key to fixing my query was in the code below (which you kindly shared) -
    LEFT JOIN PDN1 T2 ON T1.[BaseEntry] = T2.[DocEntry] AND T1.[LineNum] = T2.[BaseLine]
    Kind Regards,
    David

  • Excise duty credit in custmore sales return

    Hi Experts
    When we receive the sale return from customer we follow the below process.
    Create sales order with order type sales return
    Create return delivery. It create stock for return material.
    VF01 Accounting entry pass in customer account.
    J1IH for cenvat credit.
    My question is that can we take this cenvat with reference to VF01 document  or any other document. I don't want to do J1IH. I I get cenvat by J1IH it show excise invoice due list.
    Regards
    Parkash

    Hi Parkash,
    Please go through the below links there are lot of threads on sales returns excise capturing.
    Go through the forum rules of engagement.
    Excise duties not flowing while creating return excise invoice
    SALES RETURN J1IH
    Excise Returns
    Sales return excise invoice
    Regards,
    S.Himavanth.

  • Sales Return Process in Excise

    Hi,
    Can any one explain me the Sales Return Process with Excise Details.
    How to deal with excise when sales are return from customer.
    Please explain me if customer returns complete material what will be the process.
    In case if customer Returns partial quantity how to process
    How will be the excise implications.
    Can u please explain me the above 2 process.
    Thanks.

    Please make a search in the forum as this question has been answered many times.  Check some of those threads
    [Excise return in Sales Return   |Excise return in Sales Return]
    [Sales return delivery process wtih Excise   |Sales return delivery process wtih Excise]
    [return in excise   |return in excise]
    [Excise Return   |Excise Return]
    [Excise Invoice Selection in Return Delivery   |Excise Invoice Selection in Return Delivery]
    thanks
    G. Lakshmipathi

  • How to make query base delivery monthly report  link with delivery return

    Hi,
    I have facing some problem in Sales delivery report monthly. Problem is:
    1) When i make Monthly query delivery report without any delivery return and AR Credit memo, it is Fine.
    2) When i make Monthly query delivery report with any delivery return and AR Credit memo, it is not showing proper. Its showing in report including return quantity or AR Credit memo quantity.
    So, How to make query base delivery monthly report  link with delivery return and AR Credit Memo?
    Please help me regarding this.
    Mizan
    Edited by: mizan700 on Dec 18, 2010 2:50 PM
    Edited by: mizan700 on Dec 18, 2010 2:50 PM

    Hi,
    try this.
    SELECT DISTINCt T1.CARDCODE, T1.CARDNAME , T1.DOCNUM DELIVERY#,T1.DocStatus 'DELIVERY STATUS', T1.DOCDATE 'DELIVERY Date', T1.DocTotal 'DELIVERY Total', T3.DOCNUM Return#,T3.DocStatus 'Return Status', T3.DOCDATE 'Return Date', T3.DocTotal 'Return Total',T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date', (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due', T7.DOCNUM AS 'CREDIT MEMO#', T7.DOCDATE
    FROM DBO.DLN1 T0
    INNER JOIN DBO.ODLN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.RDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.ORDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.INV1 T4 ON T4.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OINV T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RIN1 T6 ON T6.BASEENTRY = T5.DOCENTRY
    LEFT JOIN DBO.ORIN T7 ON T7.DOCENTRY = T6.DOCENTRY
    WHERE  T1.DOCDATE >= [%0] AND  T1.DOCDATE <= [%1]
    Thanks,
    Joseph

  • Delivery Related Billing rather than Order Related Billing in Return Sales

    Hi
    There is a requirement from the client that the Returns Invoice (RE) generated must be related to LR Delivery Type rather than Return Sales Order Type(RE).
    I have maintained the Copy Control from LR (Returns Delivery Type) to RE(Returns Invoice Type).
    Then Changed the billing relevance of REN (Item Category ) from - 'B' Relevant for order-related billing - status acc.to order qty
    to A     Delivery-related billing document.
    When i create the Returns Invoice, it is allowing me to create the Invoice even before the Post Goods Receipt of the LR Returns Delivery Document.
    It should allow me to create the invoice only after Post Goods Receipt.
    Can any one share their inputs.
    Regards
    Mohan

    Dear Kandy Sreekanth ,
    PLEASE READ THR RULES OF ENGAGEMENT BEFORE REPLYING TO POSTS / POSTING ISSUES
    Do not ask for points - This forum should be firstly about information exchange; points are an incentive and a way of saying thanks.
    Asking for points is like asking someone to say "thank you": The only time we do this in real life is when teaching a child good manners. Saying it to an adult is insulting, so why do it in the forums? If someone keeps asking questions without awarding points, simply stop answering them or use the abuse button to report it.
    Thanks & Regards,
    Hegal K Charles

  • Return Sales process, Posting billing document before return delivery

    Hello SAP Experts,
    Please guide me to map the Return Sales process scenario.
    I need this to map a scenario for Return Sales from one country to other country.
    Scenario is as follow:
    u2022     I had created return delivery directly without any previous sales order. (VA01)
    u2022     I want to return money in advance to customer before return deliver. (I donu2019t know whether it is debit memo or credit memo) (VF01)
    u2022     Return delivery.(VL01N)
    Please help me to map this scenario.
    If possible please send the document to create Billing document before delivery against sales order and also configuration document for the same?
    Thanks in advance.
    Waiting for reply.
    Best regards,
    Mahesh

    Hello Lakshmipathi,
    Thanks for reply.
    Scenario is as Below
    Customer in Belgium wants to return some material which he has purchased from Vendor in South Korea in month Jan 2010.
    Customer in Belgium has created Return Purchase order and Goods return document with movement type 161.
    Vendor in South Korea has Created Return Sales order with Z document type.
    As per standard process Customer in Belgium need to create Credit Memo after Goods Return by 161 movement, but canu2019t do that because some legal implications and so canu2019t send the Credit memo to customer in South Korea.
    So Customer in Belgium is expecting Credit Memo first from Vedor.
    So Vendor in South Korea, need to Create Credit Memo first before creating Return delivery.
    Hopes this clears exact scenario.
    Please advice how to create Credit memo first after Return sales order. If configuration is necessary for this, please advice to do it.
    In brief, Vendor in South Korea, has Created Return Sales order and he want to create Credit memo before creating Return Delivery without Credit Memo from customer.
    Best regards,
    Mahesh

  • About reversal of Outbound delivery generated from Project system due to sale return

    Hi SAP Expert ,
    We have made delivery from project system using t.code CNS0 and billing document is generated with reference of sales order. Now Goods is return by customer due to some technical reason, We created return sales order with reference of billing document  and Credit memo with reference of Return sales order.
    What is T.code for making return delivery or reversal of  Delivery /PGI generated from Project system in sap r/3 ?
    Pls. suggest to me.
    regards
    VKM

    Hello,
    it depends whether in the billing document the material codes identifies the goods delivered and to be returned or not.
    If it's so, you can create a Return Sales Order with reference to the billing document, create the return delivery, and then the credit memo.
    If it's non so, you can create a Return Sales Order with reference to the billing document (but without copying the material items, and entering manually material code and quantity to be returned), then create the return delivery. Then you can create a Credit memo request with reference to the Billing Document or with reference to the Return Sales Order.
    To create the return delivery, you can run VL01N with reference to the Return Sales Order (just like for outboud deliveries), or from VA02, following the menu path "Sales document --> Deliver".
    Best regards,
    Andrea

  • Can we create Return Sales Order with Ref to Delivery

    Dear Friends,
    Can we create a Return sales order (RE) with reference to Delivery (LF)?
    If yes,how?
    If not,why?
    Regards,
    Shrikant

    Hi there,
    As per the standard process we donot refer RE with LF. 1 reason may be coz for returns order, we need to copy pricing either from OR or F2. Coz in LF pricing is not copied from OR. If you check the copy control from OR to LF in VTLA, at item level, you will not have any control for pricing type.
    In most of the cases we refer returns to F2 sothat it will be easy to raise a credit memo to refund the customer. This is also because not all items in the order are delivered & invoiced (in partial delivery scenarios when all items are not confirmed)
    Regards,
    Sivanand

  • Error during sales return Delivery

    Dear Friends,
    I am Getting error while doing sales return processing in VL01n - Goods Issue.
    Error Message - Status of Inspection Lot 0600000002 / Partial Lot does not allow Goods issue.
    I have already done the settings in config, Assign Inspection Lot Origin to Delivery Type
    Also material code has been activated with the inspection type 06.
    What could be the reason for the error for goods issue for sales return?
    Regards,
    Anil

    Dear Anil,
          According to me - you have an QM activated so the stock sits in the QM stock when you create a return order. so before delivery QM has to verify the returned stock and has to transfer the stock to returnable stock / into unrestricted stock. SO consult with you QM Module person and do the return delivery.
    regards,
    Sudhir

  • Goods Issue for a Return Outbound Delivery for both Sales Returns

    Hi gurus..
    tell me the approch for the following development....
    custom transaction to perform a Goods Issue for a Return Outbound Delivery for both Sales Returns and Consignment Returns (Pickups) process within a lean warehouse in SAP.
    it is vry urgnt
    thnks

    I seem to have found the information I required here:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Simulating+the+Sales+Cycle+with+BAPI's
    I'm going to keep this post active because I'd still like answers to my questions and any advice that you might be willing to share in regards to what I am trying to do.
    Edited by: Mikael Nensén on May 18, 2011 3:52 PM

  • How to create delivery for return sales order?

    Hello
    I'd like to create a delivery for a return sales order, I used transaction VL01N to do that, but error message said no delivery-relevant item in this order. Can transaction VL01N be used for this step?
    Nicole

    Hi,
    We can create the delivery in Return process with the transaction code VL01N as in the normal process. The following are some imp points we need to remember before performing returns order process.
    1. We must make sure that a RE document type must be created and assigned .
    2. Subsequent delivery document LR must be created and assigned to order type RE.
    3. We must make sure whether the item for which we are creating a return delivery is it relevant for return process.Means that in the control data of item category  REN 'Return item' indicator need to be activated.
    Once all these settings are fulfilled then only we can perform the return delivery successfully.
    If you are using any other documents rather than standard documents please check for those configuration settings that are applicable for return process.
    Regards,
    Revan

  • Automatic return Delivery after return Sales Order

    Hello Experts,
    Is there any setting to do in order to create automatically a return delivery, when saving the return sales order?
    Thanks
    Regards

    Hi Moomoz,
    In the sales document type you have controls.
    In the VOV8 transaction, for the required order type, in the shipping data, you need to have the value "X" or "A" assigned to the field immediate delivery.

Maybe you are looking for

  • Book table of contents

    How can I make a table of contents when making a book in iphoto?  I am using the folio theme book and I don't see a page layout for a table of contents.  Please help! Lauren

  • Help! TV Connection.

    Hi, hope somebody can help me. For the past four years i've been using a 12inch G4 Powerbook and for the last two years i've been connecting it to my TV to watch films etc via this cable - http://store.apple.com/uk/product/T4503ZM/A - with zero probl

  • Transferring to a replacement S4

    Only 4 questions My old LCD screen is broken;  black but power to the phone still works.  How can I do a hard reset on the old phone if I cannot see the screen? I moved the SIM card from the old phone to the new phone but my pictures didn't transfer

  • FM/Bapi for ME12 transaction

    Hi All, Is there any FM/Bapi for creating new validity periods for the existing Info record. By using the FM RV_CONDITION_COPY, i'm able to add new validity periods in the info record. But i'm unable to add price if the condition type contains scalin

  • How to list the umages from server system

    Hi, I am using tomcat. while clicking on a link in my application it will invoke the swing file. in that file i have to list out the images from my server. While accessing our application it retrives from the local system images not from server... Wh