Billing document should not be cancelled after creating return sales order

Hi All,
Billing document should not be cancelled after creating return sales order with reference to billing document. Please suggest configuration settings on the same.
Sudheer.

Hi,
In SAP, when the sub-sequent document is existing , we can not cancel the preceeding document. Therefore if you want to cancel the billing document you need to calcel the documents which are created with reference to that.
Check and confirm.
Regards,
Ravi Duggirala

Similar Messages

  • Free of goods should come automatically back when creates return sales order

    Dear sd experts
    I Know one thing that free goods wont come back ,, for ex when we create return sales order free goods wont come bz in VTAF copy requirement 302
    it means dont copy free goods
    Now i went VOV7--- for item category TANN-- i have maintained billing relevance A it means free goods items will come in to billing
    now when i am creating return sales order with reference to billing Free goods are not coming
                  My doubt is suppose if  my clinte asks free goods   will come automatically when creates returns how to do it ?

    Hi Ali,
    I just checked and understand in the below way:
    When I Do the PGI system is posting say 50 USD to COGS. But, when I do the Invoice ( 100 USD is credited to sales account and 100 is debited to discount account) So at the end 100 is getting Nullified. But, when we see P&L account you will COGS of 50 USD.
    I checked along with my FI consultant and she confirmed that its posting as per expected way only.
    Let me know if you need more details here.
    Regards, Sai Krishna.

  • Not be able to create a sales order if credit insufficient

    Hello Gurus
    how can I block a sales order (not delivery ) if credibility is not sufficient for a customer (credit block on sales order). Thus it should not be able to create a sales order.
    what is a stepwise method here ?
    Kind Regards

    hi manjoy,
    i understood ur query in this way.
    you dont want to take sales orders from a cusotmer whose credit history is not good. u dont want to allow the system to create orders for this customer. if my understanding is right , u can block this customer in transaction fd32. there is a field " block customer" in fd 32 transaction. if u check this field  system will not allow to create any orders for this customer.
    Let me know if i misunderstood ur query

  • Billing documents should not be created when it is not released to accounti

    Hi SD gurus,
    In some situation, billing documents are generated but it is not released to accounting which results in mismatch between FI value and SD value. We go to VFX3 and see the list of billing documents and take corrective action.
    Our requirement is that the billing document should not be generated when system is not releasing this billing document to accounting.
    Please suggest a solution for this.
    Regards,
    Senthil.

    Thanks giri.
    For the following reasons, the billing documents are not released to accounting.
    1. If the user wrongly chosen the billing type for the delivery.
    2. After creating condition type, it has to be assigned in COPA. If we forgot to do it, billing doc will not released.
    Our requirement is that if the billing document is not able create accounting document, the billing document itself should not be generated.
    Hope this will be suffice to understand my issue and suggest a suitable solution.
    Points will be rewarded.
    Regards,
    Kumar.

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • Create return sales order

    Hi, I met some issue needs your help!
    I use BAPI to create return sales order, Return an error message "Unpermitted combination of
    business object bus2032 and sales doc.category H".
    Can anyone suggest me any solution for this problem?
    Thanks is advance,
    Rory

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • Price is not being updated when creating a sales order using DTW oOrders

    Hello experts,
    When I create a sales Order using DTW (oOrders), the information in the input files document.csv and document_lines.csv is updated with no problem, except the price. The price is being ignored from the input files.
    Is there something that I must considered when trying to update the price of a sales order using the DTW?
    The field "price" was mapped in the source and target fields in DTW.
    Here is the document_lines.csv
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    RecordKey,LineNum,AccountCode,Address,ItemCode,LineTotal,Price,Quantity,ShipDate,WarehouseCode,TaxCode
    1,1,_SYS00000000059, ,30PA08-0360-25,1,11.2,3,20110702,V08,A5
    1,2,_SYS00000000059, ,30PA08-0707-25,1,15.2,3,20110702,V08,A5
    1,3,_SYS00000000059, ,30PA08-0707-22,1,18.3,3,20110702,V08,A5
    And the document.csv:
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    RecordKey,DocEntry,CardCode,DocDate,DocDueDate,DocTotal
    1, ,c-6167,20110702,20110702,2
    Thank you for your help
    Jorge Manzo

    Hi,
    Try to re-create your dtw using my template,and use text tab when saving your template.
    SO-Header
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    RecordKey     CardCode     CardName     Comments     DocDate     DocDueDate     DocNum
    1     24-25 MANUFACTU     24-25 MANUFACTURING          4/5/2010     4/15/2010     11142
    SO-LINE
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    RecordKey     linenum     itemcode     qty     uom      PriceAfterVAT      Price     SalesPersonCode
    1     0     SHAFT HEX 7/8"     1     pc     4536     4050     CRIS
    Note : Line -(LINE NUM and QTY is important upon computation of Price if SO is ITEM TYPE Document.
    hope this will help you!
    Regards,
    Darius

  • Condition Type to be excluded whil creating Return sales Order from invoice

    Hi Frnds,
    I have the following requirement.
    Sales order order is created and its delivered and invoiced too. This sales order has some freight pricing condition types (RCD1, RCD2...)included since its shipped to customer.
    When the customer wants to return the goods, there is a return sales order is created with reference to the invoice created above. Now, the RCD1 and RCD2... should not get copied to return sales order.
    How do i achieve this? Please let me know any user exit, BAdi or Enhancement spot where i can add code to avoide these condition types from being picked up.
    SAP system is ECC 6.0
    Regards.,
    Karthick C

    It can be achieved by implementing a custom requirement routine. If you go to the the transaction VOFM, you will find "requirement" in MENU. You select 'Pricing' on drilling-down it. Following document may help you in creating requirement routine..
    http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
    All requirement routines has similar pattern of writing... Your code may look like as follows:
    FORM KOBED_901.
    sy-subrc = 4.            "By deault condition is false.
    If NOT XKOMK-AUART = 'RE'.                   "RE is returing order type.
       sy-subrc = 0.        "This means For other than returning orders all others condition is true.
    endif.
    ENDFORM
    Once you activate routine, ask functional consultant to attach this to the Condition RCD1 and RCD2. Then, You'll not get RCD1 and RCD2 for Return sales Order.
    Please check and confirm and revert back if you want further details..
    Edited by: Pikle Audumbar on Oct 17, 2009 1:09 AM

  • 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

  • Items not getting picked up in Return sales order

    Dear all,
    I am creating a return sales order with reference to a sales order.
    In my delivery doc the items can be categorised into 3 types:
    1- Picking done; Movement type determined
    2- Picking done; Movement type not determined
    3- Picking not-done; Movement type determined
    In the return order, only the items of 1st type are coming. Why others not getting picked up? Can they be entered manually?
    regards
    Sapshed

    Dear Hrishikesh,
    Thats Ok. Picking is done only for those items for which Relevant for Picking is ticked.
    What I want to know is that, for items that have either their picking not done or Goods movement not determined, they are not getting automatically picked up while I create a Return order w/r to a sales order.
    thanks
    Sapshed

  • Foreign trade--Billing document should not be created with missing data

    Hi,
    We have foreign trade set up. In that we defined incompletion schema at line item level with commodity code and country of origin as "Field ready for input - Incompletion check active".
    Can anybody tell me that, in the above setup,  is it possible to avoid the creation of billing document with missing above data.
    Generally ,  system will go for the accounting status for block with foreign trade data missing.  But our users don't want to create the billing document if the data is missing.
    Can any body suggest us.
    Rajesh.

    Hi Rajesh
    You have to set up a new subroutine or you have to copy the standard subroutine and include the logic that it should read the foreign  trade details at both sales order and delivery levels.you need to assign the subroutine in both  VTFL and VTFA copy controls (header and item levels)
    Another option is you have to go with user exit RV60AFZZ.Please refer this link,hope it should solve your problem
    http://forums.sdn.sap.com/thread.jspa?threadID=1361141&tstart=3735
    Regards
    Srinath

  • After creating new sales order through BAPI, it is not showing in VA03

    Hi Experts
    I am developing one program to create sales order using FM BAPI_SALESORDER_CREATEFROMDAT2. In output screen it is showing that the new sales order number created with new sales order number. But whenever I want to display the newly created sales order via VA03 it shows an error message SD document 10007547 is not in the database or has been archived but in program output it shows that 10007547 is created. This is in DEV server. Document numbers are generated by the system sequencially, but it is not reflected in database.
    I am also attaching my code below.
    REPORT  z_bapi_salesorder.
    DATA : gt_header LIKE bapisdhd1,
           gt_item TYPE TABLE OF bapisditm,
           gt_itemx TYPE TABLE OF bapisditmx,
           gt_partner TYPE TABLE OF bapiparnr,
           gt_return TYPE TABLE OF bapiret2.
    DATA : gs_item LIKE LINE OF gt_item,
           gs_itemx LIKE LINE OF gt_itemx,
           gs_partner LIKE LINE OF gt_partner,
           gs_return LIKE LINE OF gt_return.
    DATA : v_vbeln TYPE vbeln_va.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 2(30) ord_type FOR FIELD p_auart.
    PARAMETERS : p_auart TYPE auart OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS       : p_vkorg TYPE vkorg OBLIGATORY,
                       p_vtweg TYPE vtweg OBLIGATORY,
                       p_spart TYPE vbak-spart OBLIGATORY,
                       p_sold TYPE kunnr OBLIGATORY,
                       p_ship TYPE kunnr OBLIGATORY,
                       p_matnr TYPE matnr OBLIGATORY,
                       p_menge TYPE kwmeng OBLIGATORY,
                       p_plant TYPE werks_d OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK b1.
    INITIALIZATION.
      ord_type = 'Order Type'.
    START-OF-SELECTION.
    *Header information data.
      gt_header-doc_type = p_auart.
      gt_header-sales_org = p_vkorg.
      gt_header-distr_chan = p_vtweg.
      gt_header-division = p_spart.
    *Partner information data.
      gs_partner-partn_role = 'AG'.
      gs_partner-partn_numb = p_sold.
      APPEND gs_partner TO gt_partner.
      CLEAR gs_partner.
      gs_partner-partn_role = 'WE'.
      gs_partner-partn_numb = p_ship.
      APPEND gs_partner TO gt_partner.
      CLEAR gs_partner.
    *Item data
      gs_item-itm_number = '000010'.
      gs_itemx-itm_number = 'X'.
      gs_item-material = p_matnr.
      gs_itemx-material = 'X'.
      gs_item-plant = p_plant.
      gs_itemx-plant = 'X'.
      gs_item-target_qty = p_menge.
      gs_itemx-target_qty = 0.
      APPEND gs_item TO gt_item.
      APPEND gs_itemx TO gt_itemx.
      CLEAR : gs_item, gs_itemx.
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
      SALESDOCUMENTIN               =
          order_header_in               = gt_header
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
       IMPORTING
         salesdocument                = v_vbeln
        TABLES
         return                       = gt_return
         order_items_in               = gt_item
         order_items_inx              = gt_itemx
         order_partners               = gt_partner
      ORDER_SCHEDULES_IN            =
      ORDER_SCHEDULES_INX           =
      ORDER_CONDITIONS_IN           =
      ORDER_CONDITIONS_INX          =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
      ORDER_TEXT                    =
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
      IF v_vbeln <> space.
        COMMIT WORK.
        WRITE :/ 'Document', v_vbeln ,'created'.
        CLEAR : v_vbeln, gt_header.
        REFRESH : gt_partner, gt_item, gt_itemx.
      ELSE.
        WRITE :/ 'Error in creating document'.
      ENDIF.
    Please give the possible solutions for this. What is reason for that update termination.

    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
        EXPORTING
          ORDER_HEADER_IN           = ORDER_HEADER_IN
      WITHOUT_COMMIT            = ' '
      CONVERT_PARVW_AUART       = ' '
       IMPORTING
         SALESDOCUMENT             = SALESDOCUMENT
      SOLD_TO_PARTY             =
      SHIP_TO_PARTY             =
      BILLING_PARTY             =
         RETURN                    = RETURN
        TABLES
          ORDER_ITEMS_IN            = ORDER_ITEMS_IN
          ORDER_PARTNERS            = ORDER_PARTNERS
      ORDER_ITEMS_OUT           =
      ORDER_CFGS_REF            =
      ORDER_CFGS_INST           =
      ORDER_CFGS_PART_OF        =
      ORDER_CFGS_VALUE          =
      ORDER_CCARD               =
      ORDER_CFGS_BLOB           =
         ORDER_SCHEDULE_EX         = ORDER_SCHEDULE_EX
    use bapi_transaction_commit.
    Regards,
    Venkat

  • VPRS cond type is not appearing after creating a sales order

    Dear Friends,
    I have copied pricing procedure from Std pric procedure i.e from RVAA01.
    In Material master in Accounting 1the following things are maintained,
    Valuation Class--7920 ( Finished products)
    VC Sales Order Stock--7920 ( Finished products)
    Pricing Control-V ( Moving average Price/Periodic unit price)
    Standard Price--- Blank
    Price Unit--1
    Total stock--100
    In Pricing procedure VPrS cond type is included and settings are as follow,
    Statistics---Relevant
    Subtotal-- B ( carry over value to KOMP-WAVWR (cost))
    Requirement--4
    Item Catg is TAN and in Business data it is relevant for Determine Cost.
    Activated cost determination for item categ TAN
    But when I am creating sales order VPRS cond type is not appearing.
    Analysis is saying
    The requirement 004 is assigned to this condition in the pricing procedure. This requirement was not met and so the condition was excluded from further processing.
    Can anybody tell me where I am going wrong?
    Regards,
    Shrikant

    Hi Friends,
    Thanks for your reply as per your instruction I have maintained cond type and also in Pric procedure I removed 4 from Requirement column.
    Now I am getting following error,
    Diagnosis
    This condition has not been determined using condition records. The amount or value should be determined from another data source. For cost (condition category 'G') it is read using conditions from the material valuation segment, for a cash discount condition it is read using conditions from the terms of payment table.
    In this transaction an error occurs - the material valuation segment or the terms of payment table could not be read or a currency translation has failed.
    System Response
    The condition has been provided with the deactivated indicator 'X'.
    Procedure
    Refer to the messages in the status line of the condition overview screen.
    Regards,
    Shrikant

  • Credit block should not require for Credit card paid sales order

    Dear friends,
    my client want that sales oder with credit card payment should not block sales order for credit management reasons. Hoe can it be configured.
    Regards
    rdc

    Are you using credit card processing in SAP to get the authorization?
    If you are then the authorization should not block the order.
    Or are you using credit card as a form of payment (without authorization) in which case this needs to be put on the customers account as a payment and then the order entered.
    Where are you holding the credit card details?

  • Billing Doc should NOT generate until you do PGI.....

    Hi,
    Please help me for the below Scenario:
    I have an Issue which is, Billing document should not generate until and unless you do PGI in Delivery.
    Can anyone tell me CONTROL PARAMETERS for this issue.
    Thanks in Advance.
    Raj

    Hi there,
    Standard SAP willnot allow invoice unless delivery is PGI'ed.
    Check the copy control routines in VTFL at header level. Check if the requirement assigned in copy control from LF to F2 is 011 Head.dlv-rel.w/o GI. If yes, change it. 011 will allow F2 to be created without PGI. Change it to 3 which is Header/dlv.-related & try it.
    Regards,
    Sivanand

Maybe you are looking for