Error in BAPI_BATCH_SAVE_REPLICA  With valid Material / Plant combination .

Hi,
I am running a background job with around 3 laks records; Out of which for one record this bapi is giving an error while assinging Batch type . If i go with this single record it will get executed properly.
In every run with complete file a single record is getting errored out with msg as "Batch is alredy assigned ".
For non of the records we have changed the Batch num..then why this alone record is getting errored out.
Or else please tell me How to get this error while executing the BAPI in fore ground so i can debuug and find it ourt...
Please help me..in finding this one..
Thanks ,
Ravi...

Hi,
I am running a background job with around 3 laks records; Out of which for one record this bapi is giving an error while assinging Batch type . If i go with this single record it will get executed properly.
In every run with complete file a single record is getting errored out with msg as "Batch is alredy assigned ".
For non of the records we have changed the Batch num..then why this alone record is getting errored out.
Or else please tell me How to get this error while executing the BAPI in fore ground so i can debuug and find it ourt...
Please help me..in finding this one..
Thanks ,
Ravi...

Similar Messages

  • Table to see all screens for particular material, plant combination

    Hi,
    Anyone can help me to in which table i can find all screens(like basic data,purchasing..etc) for particular material, plant combination?
    Regards,
    Praba

    Look into field PSTAT in table MARA, this should tell you in general which views are created.
    Each characters represents a view.
    which character is for vwhich view can be obtained in MM50, hit F4 for the field maintenance status.
    A different view on the same kind of information is with SE16 for table MSTA

  • Payment Term in PO based on Vendor / Material / Plant Combination

    Hi,
    The payment terms in Purchase Order are defaulted from the payment terms maintained in Vendor Master. Hence, if we order any material on vendor, then also, the same payment term gets copied to Purchase Order.
    We have set different Payment Terms with Vendor based on the material which we purchase from him. For example - For some materials, we have set payment terms as 30 Days Credit & for other materials, we have set payment terms as 60 Days Credit.
    Presently the concerned buyers are changing the conditions manually while creating the purchase order. We would like to have this defaulted in the purchase order based on Vendor / Material / Plant combination.
    Can we use 'Condition Group' in Purchasing Info Record for this purpose?
    If yes, how can we default the payment term from Purchasing Info Record to Purchase Order?
    Regards,
    Prashant Kolhatkar

    Hi,
    Thanks for your reply.
    In this case -
    1) I create the info record manually for vendor / material / plant combination.
    2) Create PO for this combination.
    3) After PO is created, then the payment term can be maintained in Info Record.
    Is this correct?
    If so, then where can we maintain this Payment Term in Purchasing Info Record?
    If maintained, then for further POs, should this get copied from the Info Record instead of Vendor Master?
    Regards,
    Prashant

  • Function module to get the BOM details for a material-plant combination

    hi
    Is there any function module to get the BOM details such as
            BOM Usage       -STLAN
            Alternative BOM -STLAL
            Items                -POSNR
            Required Quantity-EMENG
            Resulting Quantity-MENGE
            Unit of measure    -BMEIN
            Base unit of measure-MEINS
    for a given material-plant combination
    if so please suggest me some FMs.................
    Awaiting for ur reply..............

    try the below fm it may be useful for you
    DATA : BEGIN OF I_BOM OCCURS 0.
            INCLUDE STRUCTURE STPOX.
    DATA : END OF I_BOM.
    CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          CAPID                 = 'PP01'
          DATUV                 = SY-DATUM
          MEHRS                 = 'X'
          MTNRV                 = P_MATNR
          WERKS                 = P_WERKS
        TABLES
          STB                   = I_BOM
        EXCEPTIONS
          ALT_NOT_FOUND         = 1
          CALL_INVALID          = 2
          MATERIAL_NOT_FOUND    = 3
          MISSING_AUTHORIZATION = 4
          NO_BOM_FOUND          = 5
          NO_PLANT_DATA         = 6
          NO_SUITABLE_BOM_FOUND = 7
          CONVERSION_ERROR      = 8
          OTHERS                = 9.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
    Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
    regards
    shiba dutta

  • Purchase Rebate Process with Vendor - Material Group combination in SAP

    Hi Guru's,
    I have done with Purchase Rebate Process with Material in SAP by doing following steps,
    Created Agreement Type with Material Rebate
    Created Rebate Pricing Procedure
    Created Schema Group, Vendor
    Maintained  Purchase Rebate Agreement via MEB1 and created a Purchase Order where I could able to view the Rebate condition type gets determined based on the rebate agreement which has been created for a specific material.
    Now from experts I would like to know the Volume based rebate arrangements Purchase Rebate Process with Vendor - Material Group combination in SAP .
    If required provide with detail steps explaining what configuration and master data to be in place to complete this process.
    Following thread I got it from SCN.SAP forum,
    http://scn.sap.com/thread/3663225
    Where it has been discussed this type of requirement Purchase Rebate Process with Vendor - Material Group combination would be a GAP.
    Kindly throw some ideas on this process to carryout from my end.
    Regards,
    Kumar.S

    Experts,
    Please respond if post is not clear then let me know.
    Regards,
    Kumar.S

  • How can i find if a BOM Application exists for a Material-Plant combination

    Hi All,
    I need to find out if a BOM application (CAPID) exists for a Material-Plant combination. Which tables can i refer to find that.
    Thanks in advance.
    chetan vishnoi

    Hi Chetan
      Please check w.r.t tables: <b>MAST-> T416-> TC04</b>.
    Kind Regards
    Eswar

  • Invoices Posted for a material plant combination

    Hi Experts
    I need to get the list of invoices posted for a material-plant combination.
    Is there any reports available or which table i can check this?
    Thanks
    Raja

    Hello Raja,
    Use the table RSEG  - Document Item: Incoming Invoice
    Fields:
    BELNR - Accounting Document Number
    GJAHR - Fiscal Year
    EBELN - Purchasing Document Number
    EBELP - Item Number of Purchasing Document
    MATNR - Material Number
    WERKS - Plant
    Regards
    Gregory Mathews

  • Two Purchase Info Records for Same Material & Plant Combination

    Hi,
    2 Purchase Info Records are there for Same Material & Plant for 2 Different Vendors & Net Price is maintained in both Info Records
    1. Material M1 - Plant 1000 - Vendor A - Net Price Rs.4
    2. Material M1 - Plant 2000 - Vendor B - Net Price Rs.3
    Vendor A is Regular Vendor
    (Tick as Regular Vendor is his Purchase Info Record)
    It is observed that Rs.3 is picked up for Costing Purposes
    Requirement is that - Net Price within Pur. Info Record of Regular Vendor i.e Rs. 4 must be picked up always for Costing Puposes.
    Is this possible???
    What Logic system uses while picking up the Price in case where there are 2 Pur. Info Records for same Material & Plant???
    Thanks & Regards...
    Ameya...

    Hi,
    1. Material M1 - Plant 1000 - Vendor A - Net Price Rs.4
    (Validity - 28.04.2008 To 31.12.2008)
    2. Material M1 - Plant 1000 - Vendor B - Net Price Rs.3
    (Validity - 01.01.08 To 31.12.2008)
    Thanks & Regards...
    Ameya...

  • Call BMBC with specific material plant and batch

    Hi, ive searched and tried several option to call t-code BMBC Batch Cockpit from a report with a specific material, plant and batch and untill now i was unable to do this.
    Is my last option a batch input?
    It seems that all those subscreens make BI my last resource.
    Thanks for your help.

    Hi,
    For,
    Step 2 :- Check your Data type of Characterstic.It should be Numeric.
    Step 3:- First you have to assign Organization Area in Class Header then only you will find that field active in Characteristic screen.
    Regards,
    Dhaval

  • While creating SO with BOM material, plant is getting grayed out.

    Hi,
    I am trying to create a sales order with BOM material.
    As soon as I give the material, sub items are getting added but I am not able to modify the plant for main item, fields such as plant, item category are gettinh grayed out.
    Is this related to item category or any other setting,
    Please help me.
    Thanks,
    Pramod.

    Hi,
    The field is getting greyed, because you created BOM for perticular plant and it's unique.
    Second is about to item category, when explode bom in sales order then main item become HIGHER LEVEL ITEM,and all other are child or sub item,once it is at higher level it is in display mode,
    Kapil

  • Error tabular form with validation

    Hi everyone,
    I have built a tabular form with the wizard and I every time a validation check is done and fails,
    getting an error in the place where the tabular form should be. I get to see the tabular form again when pressing the cancel button or refreshing the page.
    I'm not quite able to reproduce this error, but I was wondering if anyone knows of this error and a workaround for it.
    The error that's displayed is: report error: User-Defined exception
    using Apex version 4.1.1. I've already tried building a new tabular form, but that didn't seem to resolve the issue.
    I would appreciate the help.
    Kind regards,
    Cleopatra

    Possible solution?
    Validation returns : no data found + unhandled user-defined exception
    See post by user 794496 there.

  • How to create the Access sequence for the Vendor+material+plant combination

    Hi all
    Please let me know How to create the Access sequence for the Vendormaterialplant combination..
    Whats the use? What its effect in purhcase and taxe..
    brief me please

    Hi,
    you are asked to maintain the access sequence for the tax condition for which you are putting 7.5%.
    goto OBQ1 or img..financial accounting new...global settings.... taxes on sales and purchases ......basic settings.....
    find the tax condition type. see in it which access sequence is attached.
    if there is none then use JTAX used for taxes in India.
    or you can create the similar one for your.
    to create the same goto OBQ2.
    new entry or copy JTAX.
    and assign the access sequence to condition type.
    this will resolve your problem if you just need to assign the access sequence.
    regards,
    Adwait Bachuwar

  • "No valid material component found" when Routing upload using LSMW RCPTRA02

    I want to upload routings through LSMW RCPTRA02 incluing routing headers, sequences, operations and component allocations. But systems appears error CM 101 "No valid material component found" . Does anybody occurs the same error before?
    The materials truly exists in BOM component.
    Sincerely thanks,
    Alina

    Hi,
    What is the status of the BOM? There should not be any problem if the material BOM exists.
    Regards,
    Krishnendu.

  • User Exit to check whether chapter id for Material and Plant combination is maintained while creating sales order

    Hello all,
    my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
    please suggest the user exit.

    Hi
    CASE 1 : All Plants are excisable.
    In Material master , Foreign Trade data tab-  mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
    CASE 2 : Few Plants are excisable
    In the Case 2 you need to go for Enhancement
    Program Name : MV45AFZB 
    User Exit:            USEREXIT_CHECK_VBAP ( Item Level Check )
    By using above user exit you write a logic with the help of ABAPer
    Plant and Chapter ID combination table : J_1IMTCHID

  • How to post return stock to unrestricted stock for only Plant & Material Type combination?

    Hello Everyone,
    At present, whenever the stock is returned then it posted through 655 movement type. So, material is posted as quality stock.
    Now, the requirement is to post the stock to unrestricted stock for Plant and Material type combination only. Which means, if the plant is 1413 and the material type is ERSA, VERP, and HIBE then for return sales order system post the stock directly to unrestricted stock, instead of quality stock.
    So, is there any standard way of configuring the above scenario without going for validation (Z Fields)?
    Regards
    Anwar

    Dear Mohammed ,
    as per your scenario , there is two movement type has to trigger in the Delivery level according to the plant and material combination .
    as per my knowledge it will not configurable in standard process . this will possible with user exit logic only .
    follow the below logic to achieve your issue .
    you have to create two item categories and two schedule lines with (655 &653) , that means your movement type has to trigger at sales order level only . write a logic in the user exit - MV45AFZZ -USEREXIT_MOVE_FIELD_TO_VBAP , if this combination matches then automatically item category has to over write other wise it will copy the existing item category .at delivery level you can see two movement types in item level.
    wait for other experts solution , if any standard is possible or not  .
    Regards,
    C.B Reddy.

Maybe you are looking for