Line Items are getting rejected in Sales Orders

Hi,
I am creating sales orders using ORDERS Message type and for this I am using the Standard SAP Inbound Function Module to create sales orders.
Idocs are getting processed successfully and sales orders are getting created, but line items in the sales order are getting rejected and hey are getting rejected with reason for rejection to be <b> No Availability Lost</b>.
So, I would like to know if this is a problem with the data furnished in the Idoc or else any custom setting have to be maintained or not?
Raghuram

The reason why they are failing is because in the user exit as per the logic present here whenever a EDI Order with customer Purchaser Order Type DFUE is to be processed ABGRU (Reason for Rejection) has been flagged equal to 01 and hence order item lines are having rejection reason.

Similar Messages

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • SCs line items are getting splitted into different POs.

    Hi Experts,
    I am using SRM 5.0 (EBP4.0) ECS.
    When operational purchaser is doing carry out sourcing then SC line items are getting splitted into different POs whereas all the criteria are same I mean all the SC line items are having same
    1.Purcg.Grp
    2.Purch.Org.
    3.Company Code
    4.Plant/Location
    5.Vendor (Preferred)
    6.All product Cat.are assigned to one system only.
    (In BBP_PD for the SC I dont see any reason for the split)
    7.Using Intended for Gouping Option also at the time of Carry out sourcing.
    Earlier also I have raised the same question but I didnt get any reply, only some hints and other reference and help bu Yann but I am still facing the same issue and Pls help me if there is any OSS note for it .
    Here I'd like to let you know that I have seen same ticket and checked all the possible cause for split but never find any reason for split in this case.Pls help me on this issue urgently.
    Brgds
    Gopesh

    Hi
    As Yann told, there might be some standard BADIs for which we need to either modify the standard code in this case.
    Has SAP replied on this problem with any comments - on your OSS message yet ?
    <u>As far as I know, the following BADIs are some how, involved in the creation of the Local SRM PO. </u> 
    <b>BBP_ECS_PO_OUT_BADI </b>
    ( ECS: PO Transfer to Logistics Backend                  )
    <b>BBP_EXTLOCALPO_BADI </b>
    ( Control Extended Classic Scenario                   )
    <b>BBP_GROUP_LOC_PO   </b> 
    ( Exit Grouping of Items for Local Purchase Orders    )
    Please send me your detailed requirements at my email id for further analysis.
    [email protected]
    Hope this will help.
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • New Line Item to be created in sale order

    Hi,
    Client requires a new line item to be created in sale order for particular regions only..
    Scenario 1 :
    For a particular region Additional Tax shud be calculated on Basic Price .
    Scenario 2 :
    For a particular region Cess on Vat need to incorporated.
    Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios,  In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
    Plz suggest...
    Thanx...

    It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
    I request you to dont do that please.

  • How many line items can be entered in sales order(maximum)

    hi,
    how many line items can be entered in sales order(maximum)
    SRK

    Hi SRK,
    The maximum number of line items in a SO or Invoice is 9999.
    Please close the thread if answered.
    regards
    Param

  • Sales order line item cannot be rejected as service order has been archived

    Iam trying to reject a line item in a sales order with a "AP cancel line item" reason, but it does not allow me saying that the service order does not exist. The service order has been archived earlier. Is there any solution or workaround of this problem ?

    Program zz_clear_aufnr can be used to resolve this.

  • XVBAP has the new line item but does not update Sales Order

    Hi
    I need to update the sales order with a new line item when the line item has a base unit of measure as the sales unit. I need to then convert the base unit to sales unit with a whole figure and the rest can be in the base unit.
    I am able to see the update in the xvbap but the line item doesn't get updated.
    I am puting this code in a perform within
    MV45AFZB  within   Form  USEREXIT_CHECK_VBAP
    But I guess I am doing something wrong can someone please take a look at it and tell me what is wrong with the coding.
    *&  Include       ZSD_CREATE_NEW_LINE_ITEM              *
    *&      Form  create_new_line_item
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_NEW_LINE_ITEM .
      CONSTANTS: C_MEINH LIKE MARM-MEINH VALUE 'CSE'.
    Variables Used
      DATA: WS_WMENG LIKE VBEP-WMENG.
      DATA: INPUT  LIKE VBAP-KWMENG,
            WS_EA  LIKE VBAP-KWMENG,
            WS_CSE LIKE VBAP-KWMENG.
      DATA: WS_MVKE_VRKME LIKE MVKE-VRKME.
    Internal Tables and Structures
      DATA: WS_XVBAP LIKE XVBAP.
    DATA:
    it_vbap  LIKE vbap OCCURS 0 WITH HEADER LINE,
    it_vbep  LIKE vbep OCCURS 0 WITH HEADER LINE,
    it_xvbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF WS_MARM,
              MEINH LIKE MARM-MEINH,
              UMREZ LIKE MARM-UMREZ,
              UMREN LIKE MARM-UMREN,
            END OF WS_MARM.
      CLEAR WS_MVKE_VRKME.
      SELECT SINGLE VRKME INTO WS_MVKE_VRKME
        FROM MVKE
        WHERE MATNR EQ XVBAP-MATNR
        AND   VKORG EQ XVBAK-VKORG
        AND   VTWEG EQ XVBAK-VTWEG.
      IF VBAP-VRKME <> WS_MVKE_VRKME.
       LOOP AT XVBAP.
          SELECT SINGLE MEINH UMREZ UMREN
            FROM MARM
            INTO WS_MARM
            WHERE MATNR = VBAP-MATNR
            AND   MEINH = WS_MVKE_VRKME.
          IF XVBAP-MEINS <> WS_MVKE_VRKME.
            IF NOT XVBAP-KWMENG = 0.
              WS_WMENG = XVBAP-KWMENG / WS_MARM-UMREZ.
              IF WS_WMENG > 1.
    This means that the line item needs to be split into CSE & EA
                  INPUT  = XVBAP-KWMENG.
                  WS_EA  = INPUT / WS_MARM-UMREZ.
                  WS_CSE = WS_EA.
                  WS_EA  = WS_CSE * WS_MARM-UMREZ.
                  WS_EA  = INPUT - WS_EA.
    Now we have the qty. split into EA & CSE. Now to
    assign it to xvbap
                  XVBAP-KWMENG = WS_EA.
                  XVBAP-VRKME  = WS_MVKE_VRKME.
              READ TABLE XVBAP WITH KEY POSNR = XVBAP-POSNR.
                MODIFY XVBAP INDEX SY-TABIX.
                  WS_XVBAP = XVBAP.
                  WS_XVBAP-KWMENG = WS_CSE.
                MOVE-CORRESPONDING WS_XVBAP TO XVBAP.
                INSERT XVBAP INDEX SY-TABIX.
              ENDIF.
            ENDIF.
          ENDIF.
      ENDIF.     " IF xvbap-vrkme 'EA'.
    ENDFORM.    " create_new_line_item

    Hi Clark,
    Pls check the Include MV45AFZZ instead of the one which you are using . Here in this include MV45AFZZ you can have access to the Header and Line items data .
    Here in this include
          FORM USEREXIT_SAVE_DOCUMENT                                   *
          This userexit can be used to save data in additional tables   *
          when a document is saved.                                     *
          If field T180-TRTYP contents 'H', the document will be        *
          created, else it will be changed.                             *
          This form is called at from form BELEG_SICHERN, before COMMIT *
    form userexit_save_document.
    Endform.
    Either you can write the code you want to update the XVABP table here or you can use the form .
          FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
          This userexit can be used to move some fields into the sales  *
          dokument item workaerea VBAP                                  *
          SVBAP-TABIX = 0:  Create item                                 *
          SVBAP-TABIX > 0:  Change item                                 *
          This form is called at the end of form VBAP_FUELLEN.          *
    form userexit_move_field_to_vbap.
    endform.
    This are the 2 performs in this include where you can do you code and it will defnitely solve your problem.
    Good Luck to you . Let me know if your problem get solved.
    Thanks & Regards,
    Naidu.

  • One line item delivery for 3rd party sales order

    Hello Experts,
    We have configured a 3rd party sales order process where the PR gets created. We are using scheduling agreement(PO) and creating Schedule line and doing a GR for partial line items.  The stock is recieved as a Sales Order stock.
    But when i create a Sales Delivery the delivery document copies all the line items (ieven for the ones which we don't have GR)  from the sales order and we have to manually delete the line items from delivery doc.
    Is there a way i can restrict the delivery document to only copy the line items from the sales order  for which the sales order stock is available? If so how can we do that?
    Appreicate your help.
    Thanks
    Arpita Rani

    Hello All,
    We have configured a 3rd party sales order process. The schedule line category is configured with account assignment categoory as "M". when we are creating GR the Moving average price of the material  is not getting updated.
    But if i replace with "E" it is getting updated, but the CO-PA is not getting generated for Profitability segment reporting.--we need profitability segment reportng.
    Can some one tell me how we can update the moving average price using acc. asssignment category type "M" at the same time the Profitability segement information is updated.
    THanks in advance
    Appreciate your help
    Arpita Rani

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • Line item wise exchange rate in sales order and same in billing

    Hi,
    The client requirement is that to have  different exchange rate at line item level in sales order, for multiple sales order, we have different exchange rate in the line items wise,  we do the collective billing through VF04.  System is picking in the billing document, but not in the accounting document.
    The accounting entry should be posted separate exchange rate wise.  How to map the same.
    Can anyone throw light on this issue.?
    Regards,
    Satya

    Go through this thread
    Difference in Billing Exchange rate(VBRP-KURSK) w.r.t OB08
    G. Lakshmipathi

  • Line item restriction after billing in sales order ?

    Hi All
    i am new to this forum and this is my first question going to put up
    After doing the billing , i am able to add another line item in the sales order via va02 , so i want know how can i restrict to add line item after completing whole cycle in sales order ?
    Regards
    Vincent

    Irrespective of whether it is an order related or delivery related, you can add en number of linei tems in sale order which is a standard functionality.  If you want to restrict, you have to go with user exit.  But there is nothing wrong in adding new line items via VA02.
    G. Lakshmipathi

  • How to read overall status of line item in Tab Status of Sales Order

    Hi Friends,
    I need to read the overall status of a sales order line item in transaction VA02.
    For example line item 00010, in its status tab under processing status there is a field overall status which has value Open, Completed etc.
    I need to read the text like open, completed etc.
    Kindly help.
    Thanks,
    Pradeep

    Hi Pradeep,
    Try these tables.
    Please have a look at below tables.
    AUSP
    Characteristic Values
    CMFK
    Storage Structure for the Error Log Header
    CMFP
    Storage Structure for Errors Collected
    FMSU
    FI-FM Totals Records
    FPLA
    Billing Plan
    FPLT
    Billing Plan: Dates
    INOB
    Link between Internal Number and Object
    JCDO
    Change Documents for Status Object (Table JSTO)
    JCDS
    Change Documents for System/User Statuses (Table JEST)
    JEST
    Object Status
    JSTO
    Status Object Information
    KANZ
    Assignment of Sales Order Items u2013 Costing Objects
    KEKO
    Product Costing - Header
    KEPH
    Product Costing: Cost Components for Cost of Goods Mfd
    KNKO
    Assignment of a Cost. Est. Number to Config. Object
    KOCLU
    Cluster for Conditions in Purchasing and Sales
    KSSK
    Allocation Table: Object to Class
    NAST
    Message Status
    SADR
    Address Management: Company Data
    VBAK
    Sales Documents: Header Data
    VBAP
    Sales Documents: Item Data
    VBEH
    Schedule Line History
    VBEP
    Sales Document: Schedule Line Data
    VBEX
    SD Document: Export Control: Data at Item Level
    VBFCL
    Sales Document Flow Cluster
    VBLB
    Sales Document: Release Order Data
    VBSN
    Change Status Relating to Scheduling Agreements
    VBUK
    Sales Document: Header Status and Administrative Data
    VBUP
    Sales Document: Item Status
    VBUV
    Sales Document: Incompleteness Log
    VEDA
    Contract Data
    Regards,
    Vijay

  • The bank GL line items are getting revaluated as per exchange rate

    We have done config for foreign currency valuation for customers and
    vendors.Earlier we did for GLs also but now that is deleted. Now an
    advance in USD is posted. The entry is there in Rs in pass book entry
    in FF67. At the time of bank reconciliation, the system revalues the
    amount so the amount in pass book and sap does not match. Knocking off
    is not possible in such case.How to knock off the amount without
    revaluation ?Please suggest.

    hjI,
    It seems that you are maintaining the bank account in local currency. But in SAP you have not maintained the gl account as balance in local curerency. Now to eliminate the difference in foreign you can use f-05. Here you can post the difference in single currency to eliminate the difference in that currency.
    Regards

  • Reason for rejection for sale order stock existing line item

    Hi,
        I am giving reason for rejection for a line item where there is already sale order stock. Then I am getting a warning message like " there is sale order stock assigned". I want this message to be as error message. Any customisation (SPRO) is there for this?
    Kindly update.
    Ratna

    Dear Rama Rao
    I think, there is no problem you can ignore the warning message and go ahead give reason of rejection and close the order
    There wont be any problem absolutely
    The reason  of warning message is, (it is sales order created with item category with special stock indicator as E )  that means the system tells you that it is extra special stock which you have created and now you are trying to reject hence it alerts you by giving a warning  message
    The item category of the items which you are trying to reject  is marked  or should have been marked with special stock indicator (you can check that in VOV7)
    By double clicking warning message if it is of V4 message class in t code OVAH you can make that as no message
    But i doubt that this is available in OVAH
    Regards
    Raja

  • Line item is getting Switched in OBD, created with ref to PO

    I have created a PO# 4500189441.
    In that PO there are two line items as below:
    Line item# 10              C792X1CG                         280
    Line item# 20              X792X1MG                         160
    But when we create an OBD with ref to this PO in VL10D, line item are getting switched as below:
    In OBD# 89490798,
    Line item# 10        
    X792X1MG                        
    160
    Line item# 20      
      C792X1CG                       
    280
    Can you please let us know the reason behind it or is there any configuration for this?
    Thanks & Regards,
    Tanmay Mondal
    SAP SD Consultant

    Hi Tanmay,
    First Check the Delivery type configuration in the Logistic Execution ---Delivery Type IMG path
    Your Delivery type should have Item Requirement as '202' and check the Default Order type assigned to it.
    Next go to the Specify Copy Control for Deliveries-----In that select the copy control from the Default sales doc. type which is assigned to the delivery type and the Delivery type which you are Using
    Select and in the Item Data click on the delivery item category which is assigned to the delivery type.
    In the details of the selection check the Item Data in the Data Transfer Block.
    The routine assigned to it should be '202'
    This will Solve your Issue.
    Regards

Maybe you are looking for

  • Time Machine doesn't seem to be working properly

    I have two 500 GB internal drives striped as one 1 GB drive and two 500 GB external drives also striped as one 1 GB drive. The external HDs are used EXCLUSIVELY for Time Machine. I just tried to temporarily store a several GB folder on the ext TM HD

  • LAN problems in bootcamp

    I've been playing Company of Heroes with several friends over LAN (3 macs and a pc), all have the latest patches to the game and are running Windows XP SP2. However, 2 of the macs seem to lag sometimes, enough that the game is almost unplayable on th

  • Workorder_goodsmvt badi for COR6n Tcode

    Hi guys,        I need to restrict the quantity field to be changed during production in COR6N.For this i found the badi workorder_goodsmvt.In that i wrote code in GM_SCREEN_LINE_CHECK method.but this method is not triggering...Can anyone please tell

  • Porting varray data from one db to another remote db using queues and jms

    We are trying to port a varray from one db to another db using queues and java jms. The varray is embedded in an object type (necessary according to oracle docs). The varray, embed object, and the queues are identical between the 2 dbs. We have used

  • Incremantal Run

    We are facing a problem regarding Incremental Run in Oracle Warehouse Builder Tool. We have created some mappings by which the data is extracted from the source and inserted into the target tables. Each time all the records are selected again and upd