Freight in return PO

Dear experts.. please help me from this scenario..
We got some goods in hand which need to be returned to vendor & issue debit note 
Need to use Return PO (mvt type 161) since the goods are from different purchases from the vendor
Vendor has agreed to bear the freight charges also
How to handle the freight charge in return PO
because in case of material only.. the scenario is working great..
but if i include freight charge then the freight charge is levied on the company itself and  not the vendor
Rt nw entries are as
Return PO
material cost 100 INR * 10 Nos
freight 500 INR
during GRN
INV a/c 500-
GR/IR a/c 500+
during MIRO (credit memo)
Vendor 500+
GR/IR a/c 500-
But actually what i want is
during GRN
INV a/c 1500-
GR/IR a/c 1000+
freight cleaing a/c 500+
during credir memo
Vendor 1500+
GR/IR a/c 1000-
freight a/c 500-
please give ur valuable suggestions..
also note that the return PO cant be raised with material cost inclusive of freight cost ie instead of 100 INR 150 INR
this is not accepted by company..

Hi,
During GR (MIGO), following Accounting Entry will occur.
Material Stock A/c     500.00-
GR/IR Clearing A/c     1000.00
Freight Clearing A/c     500.00-
During LIV (MIRO), following Accounting Entry will occur.
Vendor Account      500.00
GR/IR Clearing A/c     1000.00-
Freight Clearing A/c     500.00

Similar Messages

  • Credit memo with freight on returns PO using MRRL

    We are trying to achieve the below solution for a returns PO, created 2 condition types, assigned to the pricing procedure to achieve the GR posting. When we use MRRL to create a credit memo for both the material and the freight. the system creates a credit memo for the material and an invoice for the freight. Can someone tell me, what drives the credit memo generation for both freight and material
    GR
    Cr INV
    Dr GRIR
    Dr Freight clrg
    Cr Freight
    Credit Memo/ERS settlement/ MRRL
    Dr Vendor
    Cr GRIR
    Cr Freight Clrg
    We were able to create the GR side of the entry, using two other condition types on the PO.
    Now when we do ERS settlement,
    the system creates a credit memo for the INV line item and an invoice for the freight line item.
    Both the freight and the material is charged to the PO vendor, we dont charge separate to the freight vendor at this point.
    Any help will be appreciated.
    Thanks

    Hi,
    user entered 4 credit memos as
    highlighted in yellow for a total of $798.00.  The amount that I have
    circled $499.79 is what ERS deducted leaving a difference of $296.97. 
      For me yellow color values are qty not amount? Am I right?

  • Charge freight for returning material to vendor

    Hi,
    I am having an issue in vendor returns.
    The material is rejected, and i have made returns to vendor in MIGO using 122.
    But the problem is I have to charge freight cost to vendor account which will occur to send material back .
    how to solve this issue??

    Hi,
    1. Pass JV of Credit memo with FB60 to Stock GL if freight is alreday post to inventory(if you want to reverse) or any other account
    2. Pass subsiquent credit entry in MIRO.
    Regards,
    Pardeep Malik

  • Can we have -ve freight value for return Purchase order

    Hi All,
    we have a scenario for returns PO where we need to reverse the freight.
    Please suggest if SAP supports this in standard,
    We tried to influence it though condition routine, but the value get updated in table KONV without negative sign.
    Please suggest.
    Thanks and regards,
    Vithalprasad

    Dear Umakanth,
    I'm actually struggling to solve this issue that you've discussed here. Because the vendor is agreed to allow us to reclaim the freight charges. Our user is requested to show the "freight charges return" in the "PO return". I've tried couple of ways to work on the condition type. But, it doesn't give me what I wanted. e.g. The amount for the cost of material to be returned is $100 and the freight charges is $20. We are actually expecting to have the PO return's total net value at $120 instead of $80. However, no matter how I tried, the system either give me $80 or if I managed to enter and got the value at $120-, but the system will throw me an error message of "PO item does not accept any negative value for delivery cost".
    What should be the right way or the best practice to handle this issue?
      1. Shall I enhance any specific characteristic in the condition type? or;
      2. Shall I create another PO line item purely for the freight charges (reclaim)? If so,  
          shall I post to item category "K"? or;
      3. Shall I let the FI to handle the credit memo manually (meaning the freight charges do 
          not capture in the PO return at all)
    I'm so sorry to disturb you via your email. However, I'm new to this forum and I finally found your valuable recommendation to one of this question. I do need more info on your suggestions urgently.
    Thank you so much for your time. Appreciated.
    Regards,
    Edwin Fu
    [email protected]

  • Cannot add or update this document; rows are missing [Return - Freight ]

    Hello Experts,
    I am using 8.8 PL15 I have implement Approval Procedure on every Return Document.After approval when I tried to add document using Logistic user it creates following error message.
    Cannot add or update this document; rows are missing [Return - Freight - Freight Code][line: 0]  [Message 131-198]
    There is no any additional freight on Return & Delivery.There is no freight on base document also.
    When i add same document through manager then it add successfully to system.
    Regards,
    Chetan

    hi,
    There may be two reason for this...
    1. Freight accounts are not mapped . Doesn't matter you are using or not these in document .
    2. Check items are not in negative ?
    regards
    Deepak Tyagi

  • Why do we use getExtensionData()

    Can anybody tell me what we are doing here...
    String totalDueStr = (String)headersalesdocument.getExtensionData("ZZTOTAL_DUE");
    Why do we use getExtensionData().

    Headersalesdocument
        Class:        HeaderSalesDocument
        Copyright (c) 2001, SAP AG, All rights reserved.
        Author:       SAP AG
        Created:      11.4.2001
        Version:      1.0
        $Revision: #12 $
        $Date: 2003/01/02 $
    package com.sapmarkets.isa.businessobject.header;
    import java.util.ArrayList;
    import java.util.List;
    import com.sapmarkets.isa.backend.boi.isacore.ConnectedDocumentData;
    import com.sapmarkets.isa.backend.boi.isacore.ShipToData;
    import com.sapmarkets.isa.backend.boi.isacore.ShopData;
    import com.sapmarkets.isa.backend.boi.isacore.order.HeaderData;
    import com.sapmarkets.isa.backend.boi.isacore.order.PartnerListData;
    import com.sapmarkets.isa.backend.boi.isacore.order.PaymentData;
    import com.sapmarkets.isa.backend.boi.isacore.order.PaymentTypeData;
    import com.sapmarkets.isa.backend.boi.isacore.order.TextData;
    import com.sapmarkets.isa.businessobject.BusinessObjectBase;
    import com.sapmarkets.isa.businessobject.ConnectedDocument;
    import com.sapmarkets.isa.businessobject.ShipTo;
    import com.sapmarkets.isa.businessobject.Shop;
    import com.sapmarkets.isa.businessobject.order.PartnerList;
    import com.sapmarkets.isa.businessobject.order.PartnerListEntry;
    import com.sapmarkets.isa.businessobject.order.Payment;
    import com.sapmarkets.isa.businessobject.order.PaymentType;
    import com.sapmarkets.isa.businessobject.order.Text;
    import com.sapmarkets.isa.core.TechKey;
    Common Header Information for all objects of the bo layer that are considered
    to be sales documents.
    @author SAP AG
    @version 1.0
    public class HeaderSalesDocument extends BusinessObjectBase
            implements HeaderData, Cloneable {
    Constant defining a document that is in the completion status OPEN.
        public static final String DOCUMENT_COMPLETION_STATUS_OPEN      = "open";
    Constant defining a document that is in the completion status COMPLETED.
        public static final String DOCUMENT_COMPLETION_STATUS_COMPLETED = "completed";
    Constant defining a document that is in the completion status PARTLY_DELIVERED.
        public static final String DOCUMENT_COMPLETION_STATUS_PARTLY_DELIVERED = "partlydelivered";
    Constant defining a document that is in the completion status CANCELLED.
        public static final String DOCUMENT_COMPLETION_STATUS_CANCELLED = "cancelled";
    Constant defining a document that is in the completion status INPROCESS.
        public static final String DOCUMENT_COMPLETION_STATUS_INPROCESS = "inprocess";
    Constant defining a document that is in the completion status ACCEPTED.
        public static final String DOCUMENT_COMPLETION_STATUS_ACCEPTED = "accepted";
    Constant defining a document that is in the completion status RELEASED.
        public static final String DOCUMENT_COMPLETION_STATUS_RELEASED = "released";
    Constant defining a document that is in the completion status INQUIRYSENT.
        public static final String DOCUMENT_COMPLETION_STATUS_INQUIRYSENT = "inquirysent";
    Constant defining a document that is in the completion status QUOTATION.
        public static final String DOCUMENT_COMPLETION_STATUS_QUOTATION = "quotation";
    Constant defining a document that is in the completion status REJECTED.
        public static final String DOCUMENT_COMPLETION_STATUS_REJECTED = "rejected";
    Constant defining a document that is in the completion status READY TO
    PICKUP
         public static final String DOCUMENT_COMPLETION_STATUS_READY_TO_PICKUP = "readytopick";
        private boolean changeable;        // Document changeable in general (R/3 documents are not changeable yet)
        private String changedAt;
        private String createdAt;
        private String currency;
        private String description;
        private String division;
        private String disChannel;
        protected String documentType;
        private String freightValue;
        private String grossValue;
        private String netValue;
         private String netValueWOFreight;   
        protected PartnerList partnerList = new PartnerList();
        private String processType;
        private String processTypeDesc;
        private String salesDocNumber;
        private String purchaseOrderExt;
        private String postingDate;
        private String salesDocumentsOrigin;
        private String salesOrg;
        private String salesOffice;
        private String reqDeliveryDate;
        private Shop shop;
        private String shipCond;
        private String status;
        private String taxValue;
        private Text text;
        private Text textHistory;
        private String validTo;
        private ShipTo shipTo;
        private boolean purchaseOrderChangeable;
        private boolean purchaseOrderExtChangeable;
        private boolean quotationExtended;
        private boolean salesOrgChangeable;
        private boolean salesOfficeChangeable;
        private boolean reqDeliveryDateChangeable;
        private boolean shipCondChangeable;
        private boolean descriptionChangeable;
        private String ipcHost;
        private String ipcPort;
        private String ipcSession;
        private String ipcClient;
        private TechKey ipcDocumentId;
        private Payment payment;
        private String statusDelivery;
        private ArrayList predecessorList = new ArrayList();
        private ArrayList successorList = new ArrayList();
        protected boolean isDirty = false; // must header be read from backend ?
    Drops the state of the object. All reference fields, except partnerList, are
    set to null, all primitive types are set to the default values they would have
    after the creation of a new instance. Use this method to reset the state to the
    state a newly created object would have. The advantage is, that the
    overhead caused by the normal object creation is omitted.
        public void clear() {
            changedAt                   = null;
            createdAt                   = null;
            currency                    = null;
            description                 = null;
            division                    = null;
            disChannel                  = null;
            documentType                = null;
            freightValue                = null;
            grossValue                  = null;
            netValue                    = null;
            partnerList.clearList();
            processType                 = null;
            salesDocNumber              = null;
            purchaseOrderExt            = null;
            postingDate                 = null;
            salesDocumentsOrigin        = null;
            salesOrg                    = null;
            salesOffice                 = null;
            reqDeliveryDate             = null;
            shop                        = null;
            shipCond                    = null;
            status                      = null;
            statusDelivery              = null;
            taxValue                    = null;
            text                        = null;
    //        techKey                     = null;
            validTo                     = null;
            shipTo                      = null;
            ipcHost                     = null;
            ipcPort                     = null;
            ipcSession                  = null;
            ipcClient                   = null;
            ipcDocumentId               = null;
            payment                     = null;
            purchaseOrderChangeable     = false;
            purchaseOrderExtChangeable  = false;
            quotationExtended           = false;
            salesOrgChangeable          = false;
            salesOfficeChangeable       = false;
            reqDeliveryDateChangeable   = false;
            shipCondChangeable          = false;
            descriptionChangeable       = false;
            changeable                  = false;
            removeExtensionDataValues();
            predecessorList.clear();
            successorList.clear();
            isDirty = true;
    Creates a new <code>Text</code> object casted to the backend enabled
    <code>TextData</code> interface. This method is normally only used
    by backend implementations as a factory method to get instances of
    business objects.
    @return a newly created <code>Text</code> object
        public TextData createText() {
            return (TextData) new Text();
    Get the host the IPC runs on.
    @return hostname of the host the IPC runs on
        public String getIpcHost() {
            return ipcHost;
    Sets the host the IPC runs on.
    @param ipcHost the hostname of the ipc host
        public void setIpcHost(String ipcHost) {
            this.ipcHost = ipcHost;
    Get an identifier for the current IPC session.
    @return identifier for the current IPC session
        public String getIpcSession() {
            return ipcSession;
    Sets the identifier for the current IPC session.
    @param ipcSession the identifier for the current IPC session to be set
        public void setIpcSession(String ipcSession) {
            this.ipcSession = ipcSession;
    Get the port number of the IPC server.
    @return the port number of the IPC server
         public String getIpcPort() {
            return ipcPort;
    Set the port number of the ipc server.
    @param ipcPort the port number of the IPC server to be set
        public void setIpcPort(String ipcPort) {
            this.ipcPort = ipcPort;
    Get the IPC client.
    @return the IPC client
         public String getIpcClient() {
            return ipcClient;
    Set the IPC client.
    @param ipcClient the IPC client to be set
        public void setIpcClient(String ipcClient) {
            this.ipcClient = ipcClient;
    Get the IPC document id.
    @return the IPC document id
        public TechKey getIpcDocumentId() {
            return ipcDocumentId;
    Set the IPC document id.
    @param ipcDocumentId the IPC document id to be set
        public void setIpcDocumentId(TechKey ipcDocumentId) {
            this.ipcDocumentId = ipcDocumentId;
    Get the requested delivery date.
    @return the requestet delivery date
        public String getReqDeliveryDate() {
            return reqDeliveryDate;
    Set the requested delivery date.
    @param reqDeliveryDate the requested delivery date to be set.
        public void setReqDeliveryDate(String reqDeliveryDate) {
            this.reqDeliveryDate = reqDeliveryDate;
    Get the business partner list
    @return PartnerList list of business partners
        public PartnerList getPartnerList() {
            return partnerList;
    Set the business partner list
    @param PartnerList new list of business partners
        public void setPartnerList(PartnerList partnerList) {
            this.partnerList = partnerList;
    Get the business partner list
    @return PartnerListData list of business partners
        public PartnerListData getPartnerListData() {
            return partnerList;
    Sets the business partner list.
    @param list list of business partners
        public void setPartnerListData(PartnerListData list) {
            partnerList = (PartnerList) list;
    Get the date, the document was changed the last time.
    @return the date, the document was changed the last time
        public String getChangedAt() {
            return changedAt;
    Set the date, the document was changed the last time.
    @param changedAt the date, the document was changed the last time
        public void setChangedAt(String changedAt){
            this.changedAt = changedAt;
    Get the date, the document was created.
    @return date, the document was created
        public String getCreatedAt() {
            return createdAt;
    Set the date, the document was cerated.
    @param createdAt the date, the document was cerated
        public void setCreatedAt(String createdAt){
            this.createdAt = createdAt;
    Get the currency used for this document.
    @return the currency used for this document
        public String getCurrency(){
            return currency;
    Set the currency used for this document.
    @param currency the currency used for this document
        public void setCurrency(String currency){
            this.currency = currency;
    Get description added on the header level.
    @return description
        public String getDescription(){
            return description;
    Sets the description on the header level.
    @param description the description
        public void setDescription(String description){
            this.description = description;
    Get the devision.
    @return the devision
        public String getDivision(){
            return division;
    Set the devision.
    @param devision the devision to be set
        public void setDivision(String division){
            this.division = division;
    Get the distribution channel.
    @return distribution channel
        public String getDisChannel(){
            return disChannel;
    Set the distribution channel.
    @param disChannel the distribution channel to be set
        public void setDisChannel(String disChannel){
            this.disChannel = disChannel;
    Get the price for the freigth of the order.
    @return the price for the freight of the
        public String getFreightValue(){
            return freightValue;
    Set the price for the freight of the order.
    @param freightValue the price for the freight
        public void setFreightValue(String freightValue){
            this.freightValue = freightValue;
    Get the price including all taxes but not the freight.
    @return the value
        public String getGrossValue(){
            return grossValue;
    Set the price including all taxes but not the freight.
    @param grossValue the price to be set
        public void setGrossValue(String grossValue){
            this.grossValue = grossValue;
    Get the net price
    @return the price
        public String getNetValue(){
            return netValue;
    Set the net price
    @param netValue the price to be set
        public void setNetValue(String netValue){
            this.netValue = netValue;
    Get the net price without freight.
    @return the price
         public String getNetValueWOFreight(){
              return netValueWOFreight;
    Set the net price without freight.
    @param netValue the price to be set
         public void setNetValueWOFreight(String netValueWOFreight){
              this.netValueWOFreight = netValueWOFreight;
    Get the process type of the document.
    @return process type
        public String getProcessType(){
            return processType;
    Set the process type of the document.
    @param processType the process type to be set
        public void setProcessType(String processType){
            this.processType = processType;
    Get the number of the sales document the header belongs to.
    @return the number of the sales document
        public String getSalesDocNumber(){
            return salesDocNumber;
    Set the number of the sales document the header belongs to.
    @param salesDocNumber the number of the sales document
        public void setSalesDocNumber(String salesDocNumber){
            this.salesDocNumber = salesDocNumber;
    Get the external pruchase order number.
    @return the purchase order number
        public String getPurchaseOrderExt(){
            return purchaseOrderExt;
    Set the external purchase order number.
    @param purchaseOrderExt the number to be set
        public void setPurchaseOrderExt(String purchaseOrderExt){
            this.purchaseOrderExt = purchaseOrderExt;
    Get the date the order was created from the customer's point of view.
    @return the posting date
        public String getPostingDate(){
            return postingDate;
    Set the date the order was created from the customer's point of view.
    @param postingData the date to be set
        public void setPostingDate(String postingDate){
            this.postingDate = postingDate;
    Get the sales organization for the document.
    @return the sales organization
        public String getSalesOrg(){
            return salesOrg;
    Set the sales organization for the document.
    @param salesOrg the sales organization.
        public void setSalesOrg(String salesOrg){
            this.salesOrg = salesOrg;
    Get the sales office.
    @return the sales office
        public String getSalesOffice(){
            return salesOffice;
    Set the sales office.
    @param salesOffice the sales office
        public void setSalesOffice(String salesOffice){
            this.salesOffice = salesOffice;
    Get the shop the document belongs to.
    @return the shop
        public ShopData getShop(){
            return (ShopData)shop;
    Set the shop the document belongs to.
    @param shop the shop to be set
        public void setShop(ShopData shop){
            this.shop = (Shop)shop;
    Get the shipping conditions for the document.
    @return the shipping conditions
        public String getShipCond(){
            return shipCond;
    Set the shipping conditions for the document.
    @param shipCond the shipping conditions
        public void setShipCond(String shipCond){
            this.shipCond = shipCond;
    Get the taxes that have to be paid for the document.
    @return the taxes
        public String getTaxValue(){
            return taxValue;
    Set the taxes that have to be paid for the document.
    @param taxValue the taxes to be set
        public void setTaxValue(String taxValue){
            this.taxValue = taxValue;
    Get text on the header level of the document.
    @return the text
        public TextData getText() {
            return text;
    Set the text on the header level of the document.
    @param text the text to be set
        public void setText(TextData text) {
            this.text = (Text) text;
    Get text history on the header level of the document.
    @return the text history
        public TextData getTextHistory() {
            return textHistory;
    Set the text history on the header level of the document.
    @param text the text history to be set
        public void setTextHistory(TextData text) {
            this.textHistory = (Text) text;
    Get the date, the document is valid to.
    @return the date
        public String getValidTo(){
            return validTo;
    Set the date, the document is valid to.
    @param validTo the date to be set
        public void setValidTo(String validTo){
            this.validTo = validTo;
    Check whether or not the document is changeable.
    @return <code>true</code> if the document is changeable,
            otherwise <code>false</code>.
        public boolean isChangeable(){
            return changeable;
    Set whether or not the document is changeable using a String parameter.
    @param changeable <code>" "</code> or <code>""</code> indicates that the
                      document is changeable, all other values that it is
                      changeable.
        public void setChangeable(String changeable){
            if (changeable.equals("") || changeable.equals(" ")) {
                this.changeable = false;
            } else {
                this.changeable = true;
    Set whether or not the document is changeable.
    @param changeable <code>true</code> indicates that the document is changeable,
                      <code>false</code> indicates that it is not.
        public void setChangeable(boolean changeable){
            this.changeable = changeable;
    Sets all changeable flags for the different fields of the header in
    on step.
    @param purchaseOrderChangeable <code>true</code> indicates that the
           purchase order information is changeable
    @param purchaseOrderExtChangeable <code>true</code> indicates that the
           external purchase order information is changeable
    @param salesOrgChangeable <code>true</code> indicates that the
           sales organization information is changeable
    @param salesOfficeChangeable <code>true</code> indicates that the
           sales office information is changeable
    @param reqDeliveryDateChangeable <code>true</code> indicates that the
           requested delivery date is changeable
    @param shipCondChangeable <code>true</code> indicates that the
           shipping conditions are changeable
    @param descriptionChangeable <code>true</code> indicates that the
           description is changeable
        public void setAllValuesChangeable(
                 boolean purchaseOrderChangeable,
                 boolean purchaseOrderExtChangeable,
                 boolean salesOrgChangeable,
                 boolean salesOfficeChangeable,
                 boolean reqDeliveryDateChangeable,
                 boolean shipCondChangeable,
                 boolean descriptionChangeable) {
            this.purchaseOrderChangeable     = purchaseOrderChangeable;
            this.purchaseOrderExtChangeable  = purchaseOrderExtChangeable;
            this.salesOrgChangeable          = salesOrgChangeable;
            this.salesOfficeChangeable       = salesOfficeChangeable;
            this.reqDeliveryDateChangeable   = reqDeliveryDateChangeable;
            this.shipCondChangeable          = shipCondChangeable;
            this.descriptionChangeable       = descriptionChangeable;
    Checks whether or not the purchase order information is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isPurchaseOrderChangeable() {
            return purchaseOrderChangeable;
    Checks whether or not the external purchase order information is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isPurchaseOrderExtChangeable() {
            return purchaseOrderExtChangeable;
    Checks whether or not the sales organisation is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isSalesOrgChangeable() {
            return salesOrgChangeable;
    Checks whether or not the sales office is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isSalesOfficeChangeable() {
            return salesOfficeChangeable;
    Checks whether or not the requested delivery date is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isReqDeliveryDateChangeable() {
            return reqDeliveryDateChangeable;
    Checks whether or not the description is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isDescriptionChangeable() {
            return descriptionChangeable;
    Checks whether or not the shipping condition is changeable.
    @return <code>true</code> indicates that the information is changeable,
            <code>false</code> indicates that the information cannot be changed.
        public boolean isShipCondChangeable() {
            return shipCondChangeable;
    Get the origin of the sales document.
    @return the origin of the sales document
        public String getSalesDocumentsOrigin(){
            return salesDocumentsOrigin;
    Set the origin of the sales document.
    @param salesDocOrigin the origin to be set
        public void setSalesDocumentsOrigin(String salesDocOrigin){
            this.salesDocumentsOrigin = salesDocOrigin;
    Set the dirty flag
    @param isDirty must the header be read from the backend true/false
        public void setDirty(boolean isDirty){
            this.isDirty = isDirty;
    get the dirty flag
    @return isDirty must the header be read from the backend true/false
        public boolean isDirty(){
            return isDirty;
    Get OVERALL status. Might be different from DELIVERY status.
    @return one of the possible status values represented by the constants
            defined in this class with the names <code>DOCUMENT_COMPLETION_*</code>.
        public String getStatus() {
            return status;
    Set OVERALL status to open
        public void setStatusOpen() {
            status = DOCUMENT_COMPLETION_STATUS_OPEN;
    Set the status to whatever passed through
        public void setStatusOther(String status) {
            this.status = status;
    Determines whether or not, the document's status is OPEN.
    @return <code>true</code> if the object is in status OPEN, otherwise
            <code>false</code>.
        public boolean isStatusOpen() {
            return (status == DOCUMENT_COMPLETION_STATUS_OPEN);

  • Attempting to test Function with Bind Variable --- What am I doing wrong?

    When I try to test a function (ComputeFreight) with a bind variable, I get an error, returned.....
    "SQL> EXEC :ComputeFreight :=V_ComputeFreight;
    BEGIN :ComputeFreight :=V_ComputeFreight; END;
    ERROR at line 1:
    ORA-06550: line 1, column 25:
    PLS-00201: identifier 'V_COMPUTEFREIGHT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    What am I doing wrong?
    Below is my code with description ----
    create or replace function "ComputeFreight"(p_ORDERNUMBER IN C_ORDER.ORDERNUMBER%TYPE) -- Passing Ordernumber into Function
    return NUMBER
    is
    -- Declaring Variables
    v_ComputeFreight NUMBER(10,2);
    v_low number (10,2) := 0.05;
    v_high number (10,2) := 0.07;
    v_SUBTOTAL NUMBER(10,2);
    begin
    -- Computing order subtotal (Retrieving Item cost and qty from two different tables, multiplying and adding total order cost)
    SELECT SUM(O.QUANTITY * I.ITEMPRICE) INTO v_subtotal
    FROM ORDER_LINE O JOIN INV_ITEM I
         ON (O.ITEMNUMBER = I.ITEMNUMBER)
    WHERE O.ORDERNUMBER = P_ORDERNUMBER;
    -- Testing to see which freight charge rate to use
    IF
    v_subtotal < 300.00 THEN
    v_computefreight := v_subtotal * v_low;
    ELSE
    v_computefreight := v_subtotal * v_high;
    END IF;
    -- Returning Freight Charge
    RETURN v_ComputeFreight;
    end "ComputeFreight";
    -----------------------------------

    You have made at least 2 errors.
    The first one is the name of your function:
    create or replace function "ComputeFreight" (You use double quotas and the mixed case in the function name - it means you
    make your function name case-sensitive. In the call of your function you have to use double-quoted form "ComputeFreight", nothing else.
    If you your function name has to be case-insensitive, don't use double quotas or
    use upper-case form: "COMPUTEFREIGHT".
    The next mistake is how your call you function. You have to do the following:
    var V_ComputeFreight number
    EXEC :V_ComputeFreight := <your function name>
    V_ComputeFreight is a bind variable and you have to read more about this.
    Rgds.
    P.S. and as Dave fairly remarked above you have to pass the argument into the function.
    Message was edited by:
    dnikiforov

  • Freight on credit memo for returns PO

    We are trying to achieve the below solution for a returns PO, created 2 condition types, assigned to the pricing procedure to achieve the GR posting. When we use MRRL to create a credit memo for both the material and the freight. the system creates a credit memo for the material and an invoice for the freight. Can someone tell me, what drives the credit memo generation for both freight and material
    GR
    Cr INV
    Dr GRIR
    Dr Freight clrg
    Cr Freight
    Credit Memo/ERS settlement/ MRRL
    Dr Vendor
    Cr GRIR
    Cr Freight Clrg
    We were able to create the GR side of the entry, using two other condition types on the PO.
    Now when we do ERS settlement,
    the system creates a credit memo for the INV line item and an invoice for the freight line item.
    Both the freight and the material is charged to the PO vendor, we dont charge separate to the freight vendor at this point.
    Any help will be appreciated.
    Thanks

    Ganesh,
    Thx for the reply!!
    We did that before as well, Even as we select it, it creates 2 documents
    1. credit memo for the inventory to the vendor
    2. invoice for the freight to the same vendor
    I guess i am missing some config piece that makes the freight on the PO to be also a credit memo while doing the MRRL
    i am using 2 condition types FRA1 and a ZFR1 (mimicking FRA1 with a negative sign)
    i have assigned 2 diff (ActKey/Accrual Key) combination to each one of them
    FRE/FR1 and FRE/ZR1(Mimicking FR1) respectively.
    I am not sure which config drives the freight as a credit memo on the MRRL side.

  • Freight in case of Return PO

    Dear All,
                 i have maintained 100 rs as PO.my condition for freight is value.when i am doing 122 (Vendor Return).then freight is also reversing.
    can anybody tell me any solution for this.
    Thanks & regards.
    Pavan

    do not return using the movement type 122, but create the return po and then create the return delivery and post the goods.

  • PO return with freight reclaim from supplier

    Dear gurus,
    I intend to create a PO return with the freight charges agreed to
    refund by the vendor. I've set the indicator for return in PO and
    it works perfectly but how do I add in additional freight
    charges condition type with the proper value (to indicate the amount for refund from the vendor)? E.g. My PO item
    return value is $100 and the cost for freight is $10. The system
    will show me $90 as net value instead of $110. Is there anyone
    out there has experienced the similar case? Alternatively, shall
    I split out the claim in another PO line item or shall I handle
    it separately by waiting for the credit note from the vendor (which will be handled by the FI). What is
    the best practice? What happen if my end user wanted to show the freight charges to be captured in the PO return. How could I do that in PO return?
    Appreciate for your help as it is very urgent.
    Thank you.
    Regards,
    Edwin Fu

    Dear Ranganath,
    Thank you so much for your useful advice. Appreciated very much. This is my first time to award you with points. Hopefully, I've allocated the point correctly to you as I'm not too sure how to assign the point. What I've done was just clicked on the optional button to choose the point only.
    Many thanks to you.
    Regards,
    Edwin.

  • Freight to be taken negative on Returns PO

    Dear all
    I have a scenario of returns PO in which the freight is to be borne by the vendor .
    I want to take the freight as negative , system does not allow this way as it indicates the freight value can't be  negative .
    If i take the calculation type in condition  as Freight itself the the Freight value gets posted along with the material value .
    How we can tackle this so as that Freight value should  hit the freight and Vendor accounts only.
    Kindly throw light on this and valid points are welcome .
    Regards
    R.Rajaram

    Normal procedure is for the freight for the return delivery
    raise DEBIT note for the amount from you end.
    G.Ganesh Kumar.

  • Freight charges on return delivery

    Hi,
    How freight chargers are reversed while doing 161 mvt type.
    Is there any separate mvt required to return freight charge.
    How do we handle this plz clarify me....
    BR
    Vel
    Note :Please search forum,subject is widely discussed in various threads in this forum
    Edited by: Jeyakanthan A on Jun 7, 2011 8:20 AM

    Ajay and Shailendar,
    thanks for your replies. Sorry for the delay in getting back on this issue. Our users want to see the freight charges on a separate cost component line in the CK11N. So I created a cost component for Freight. However, I do not know how to get the value into this Freight cost component line. When I tried to add the freight charges through CK74N, they are going into overhead as I was using overhead cost element in CK74N. Users do not want this as the overhead costs are inflated because of the freight addition to the overhead. Any ideas how to get the freight charges only into the cost component?
    Thanks in advance.

  • Copying of freight conditions from billing document to return order

    Hi,
    I have a scenario of returns with reference to the billing document. In earlier billing documents the conditions like freight, insurance etc., are maintained. While creating the return order with reference to the preceding billing document, system is copying the freight, insurance conditions also, which I donu2019t require in case of returns scenario. Can anyone help me to come out from this problem?
    Thanks
    Srinivas

    Hi
    In VTAF choose your source billing type and target sales type and choose your item category
    In that i think in your case D is set
    You can define a new pricing procedure for your return order and make the necessary settings in OVKK by leaving out all freight conditions
    After this In VTAF choose your source billing type and target sales type and choose your item category
    In pricing type you can set it to B so that a new pricing is carried out without the unwanted condition types when you make the return order referencing the billing doc
    Alternatively you also try with pricing type H in that pricing type that is freight gets redetermined
    Regards
    Raja
    Edited by: ramanathan raja on Nov 20, 2008 8:57 PM

  • Purchase Returns Freight Recovering accounting entries

    HI,
    We have Scenario where
    1. We are returning the material to vendor with the help of Purchase returns PO, with 161 mvt type.
    2. we need the accounting entries as follows.
    PO:
    Base Price: 100
    Freight: 10
    Insurance: 10
    Tax:2
    Gr:
    Stk A/C 122....Cr
    Gr/IR a/c 112...Dr
    Freight A/c 10.. Dr
    IR/Credit Memo:
    Vendor 122... Cr
    Gr/IR   112...Dr
    Freight A/c 10...Dr
    Here we are recovering the Freight and insurance Amounts incurred when Purchasing happened.
    Thanks in advance
    Ravi Kumar

    Hi Ravikumar,
    Would be helpful, if you can throw some light on the solution.
    We are kinda stuck in a similar situation, below is our requirement
    returns PO
    GR
    Cr         INV
    Dr         GRIR
    Dr         Freight clrg
    Cr         Freight
    Credit Memo/ERS settlement/ MRRL
    Dr Vendor
    Cr GRIR
    Cr Freight Clrg
    We were able to create the GR side of the entry, using two other condition types on the PO.
    Now when we do ERS settlement,
    the system creates a credit memo for the INV line item and an invoice for the freight line item.
    Both the freight and the material is charged to the PO vendor, we dont charge separate to the freight vendor at this point.
    Would be helpful.
    Thanks

  • Freight Cost not reflecting in MIRO for Return PO

    HI MM Experts,
    In standard Return Process we used to enter all the freight charges + base Price in the base Price only but we have a requirement where we have to show these freight charges (-100 INR) seperately other than base Price (-1000 INR) and the net price must appear as -1100 INR in PO.
    I have a business scenario in hand where in Return PO different condition types like Insurance, Octroi and Freight cost are not reflecting while creating Credit Memo in MIRO.
    I have created different condition types as mentioned above and Condition category as "F- Freight" is used and also used a routine 164 in Calculation type  in Schema against these conditions to make the conditions negative (to make sure that all the above mentioned conditions must be added in base Price in PO).
    In PO, all conditions are reflecting correctly and adding to the base Price. In GR also Return accounting is also happening correctly but in MIRO when i am trying to make credit memo then system only showing base price and taxes it is not reflecting other condition types (Insurance, Octroi and Freight ) in MIRO.
    If anyone have any idea how to get these freight cost, insurance and octroi cost in MIRO then please reveret back.
    Regards,
    Neeraj

    Hi Neeraj,
    Before to answer this, once you are in MIRO, into the "PO reference" tab, do you have selected the option: 3 Good/services items + planned delivery costs?
    This option is in the top on this tab in the right side.
    Please, let me know your feedback.
    Kind regards,
    Sandra

Maybe you are looking for

  • I deleted a contact from my iPhone but it is still stored in iMessage. How do I delete this?

    The contact no longer appears under contacts. Yet, when I go to compose a text, their name comes up as a suggested contact to send the text to. I have updated my iCloud and cannot seem to get these deleted contacts out of my iMessage. Help?

  • HT3728 Does factory reset go back to latest firmware update.

    I have resently updated my airport express to latest firmware. The airport express is configured as an extension to my wifi with an Extreme as main device. Shortly after the firmware update (1-2 days) the express stopped working and status light turn

  • Issue related to the Credit memo and S.O.

    Hi, I have one issue related to the Credit memo and S.O. We have a network of Dealers and Dealer inventory is linked with our system. When user creates S.O for Dealer1.If the item is not avail in our inventory and it is avail in any other Dealer inve

  • Good color/contrast cs4 Bridge; in Camera Raw files are overexposed...

    flat, and color is distorted. When files are opened into photoshop cs4, they appear as they do in Camera Raw, awful. I have re-downloaded cs4 from the adobe site, but the problem still persists. Any thoughts? Thank you for all response.

  • Difficulty coming out of sleep

    very new mac mini using 30 cinema display quite often the system will have a difficulty waking up from sleep key strokes seem to do nothing short pressing of the mac mini power button sometimes wakes it up sometimes this requires several attempts the