Assignning materials to a Inspection Plan by BAPI? QM

Dear sappers,
I a help with QP02. I need 2 Functions modules or BAPI's: 1st for assigning material-plant to an Inpection Plan and 2nd for cancelling the assignment of material-plant to the Inpection Plan automatically.
I have checked all BAPI's in SE37, but more effort is needed.
I know this is a real thread, so thanks for your help.
Does anybody have any brilliant idea?
Thanks a lot.

Hi Gerard,
I am looking for an automated way of assigning materials/plants to inspection plans and also for cancelling such assigments. I assume it is not far from the requirement you describe.
Have you found a way to solve it ?
Best regards,
Thomas

Similar Messages

  • Creating Inspection plan using BAPI

    HI all,
    I am using the FM 'BAPI_INSPECTIONPLAN_CREATE'. I am unable to update the Inspection characteristics as multiple entries. Its getting updated only the last item.
    Expecting answer from the experts.
    Ravi.

    Hi,
       you can check the BAPI_INSPECTIONPLAN_CREATE for the named purpose, the values you named are in the structure BAPI1191_CHA_C please read the BAPI documentation:
    Functionality
    You can use this function module to create inspection plans and all its subordinate objects.
    You can create a key date view and the complete history of an inspection plan. It is useful to have a history when transferring data from external systems.
    Example
    You want to create an inspection plan with operations and inspection characteristics for key date 01.01.2000. Make an entry in the following tables for each object:
    TASK
    OPERATION
    INSPCHARACTERISTIC
    If you want to assign test equipment to the inspection characteristic in field ITEM_NO_OF_PRODUCTION_RESOURCE, you must have assigned this test equipment in PARAMETER PRODUCTIONRESOURCE.
    Notes
    If no error occurs during the transfer of data, the export parameters GROUP and GROUPCOUNTER contain the key for the task list created. A COMMIT WORK must be executed for writing data to the database.
    All errors that have occured are logged in the export parameter RETURN. If there are inconsistencies, the inspection plan to be created is rejected
    <b>Reward points</b>
    Regards

  • Re assignment of material from inspection plan group

    Dear Experts,
    I have an issue, we got a material which has multiple groups assigned to it.
    How to remove the materials assignment from the inspection plan group?
    Since the group contains more than 1000 line items, it is very laborious to search every line item and delete manually.
    Is there any 1 shot way to remove the assignment?
    Please help me out in this, because of multiple assignment, the lot gets into the status of CRTD.
    Thanks in advance,
    Anitha Pauline.

    hi,
    Use CWBQM.
    Regards

  • QM_LSMW for Inspection plan by BAPI method

    Hi All,
    Does anybody has any idea about LSMW by business object method using business object BUS1191?
    can anybody give step by step procedure for the same?
    Best Regards,
    Anand Rao

    Hi All,
    Does anybody has any idea about LSMW by business object method using business object BUS1191?
    can anybody give step by step procedure for the same?
    Best Regards,
    Anand Rao

  • Report to see all materials assigned to an inspection plan

    Hi,
    Is there any way to list all materials with a inspection plan assigned to them?
    Kind regards,
    Kristoffer Pehrson

    HI,
    another way could be the use of QP03.
    Select your inspection plan. In the plan overyou press the button "material assignment". YOu should get a listof all materials that are linked to the plan. But you should keep an eye on thegroup counter, as all group counters and assignments are shown.
    Another way could be to build query with SQ01.  
    Hope that helps.
    Jens

  • Create Inspection plan at once for many materials through QP01. Possible?

    Dear Friends,
    Is it possible to create Inspection Plant for more than one material at onece through QP01 when operation activity and Characteristics are same. I will change the Characteristics specifications afterwards.

    As suggested in earlier reply you can assign multiple materials to one inspection plan.
    But you may still need more than one plan because of
    1. UOM is maintained in Inspection plan header. So you have to create different inspection plan if you receive materials in different Unit of measures.
    2. Usage is also at header level, so depending on configuration, usage for 01 inspection type may be different from usage for 0101 inspection type.
    If you like the user exit approach.
    1. Create a dummy material and assign default inspection plan to this material.
    2. In the user exit change the inspection plan assignment.  Assign inspection plan from this dummy material.
    Form us this was a very useful approach during testing or for new material where inspection plan was not created in time.
    Once this default inspection plan is assigned, inspection lot is released even without inspection plan. If we need,  we can always change the default inspection plan in QA02 transaction before RR
    AK Marwadi.

  • SAP QM Default Inspection Plan for all Inspection Lots created in the Plant

    Scenario: We have a Proto type plant in which Daily 15 to 20 materials are created every day. We have only one inspection plan for all the materials.
    Problem: We don't want to do material assignment in the Inspection Plant header every time a new material is created
    Requirement: Is there any way to default the inspection plan for all the inspection lots created in the Plant by Standard Configuration or User Exit.
    Your answers will be much appreciated and rewarded.
    Thanks in advance,
    Thiyagu

    Hi,
    In our case Creation of Inspection lots are controlled by QM View of Material Master. Our problem is to find alternative for assignment of New Materials in the Plan header in Tcode QP02, as we have only ONE INSPECTION PLAN. So our expection is all QM Inspection Lot created in the Plant should always get assigned to the SINGLE INSPECTION PLAN, with out doing any assignment of material in the Plan.
    Thanks,
    Thiyagu.

  • Inspection plan creation

    hi all,
    i am creating inspection plan using bapi 'BAPI_INSPECTIONPLAN_CREATE' . it is creating but the issue is in table 'INSPCHARACTERISTIC' there is a field 'SEL_SET1' which is getting populated automatically in transaction and i want that value to be replaced by the one i am passing in table
    'INSPCHARACTERISTIC' but it is not happening.
    Is thers any specific way to get it done through this bapi or is there any exit or badi to perform this task?
    Any pointer will be highly appreciated.
    regards
    vijay

    Yes, I have seen that field.
    You can enter a value for this field only if it is Qualitative characteristic.
    So while populating Qualitative or quantitative indicator values for
    IF INSPCHARACTERISTIC-QUANTITATIVE_IND = 'X'
    INSPCHARACTERISTIC-SEL_SET1 = 'Your value'
    ENDIF.
    If it's Quantitative Do not even pass any value for this field. Not even space.
    In debuggin you can check the INSPCHARACTERISTIC-SEL-SET1 value. It will have the value you passed.
    When I worked on it I remember that there are a whole lot of indicators which are specific to Quantitative or Qualitative. You will have to split the code for them to pass the values separately.
    Note: All the above can happen only if the SEL_SET1 is not defaulted to have a value in configuration.
    Thanks.

  • Inspection Plan

    I am creating the  Inspection Plans by using the BAPI_INSPECTIONPLAN_CREATE.
    I got the below errors please provide the solution for this.
    1)The valid-from data has been set from today's date
    2)Enter another operation number
    3)Enter another operation number

    hi rk.....
    First One is just a Information message and last two is because of invalid activity or operation id entered wrongly...
    Also u can have a look at my code for uploading inspection plan using bapi....
    [Click here to view code...|https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtouploadQMInspectionPlanUsingBAPI]
    Also take a look at the template and sample data file attached at the given link...
    Regards
    KArthik D

  • Customer specific Inspection Plan

    hi experts,
      Can any one help to create customer specific inspection plan. Our client requirements as follows,
                  In Inspection plan based on Usage we can able to assign vendor wise inspection plan for single material in material assignment, like that is it possible to assign customer name in inspection plan. so that we can choose the Inspection plan based on customer specification. any one can help me in the above requirement.
    awaiting for your replies,
    Muthamil

    Dear Muthamil
    There is no configuration setting required . A typical cusomter inspection plan can be given as
    For a material X Suppose you have Customer A, B , C, D , E. Customer . A & B have the same specification c, D,& E has a another set of specification in this case :
    QP01 > Material (X) / plant > Usage and status > material assignment > give the customer A. As you have mulitple customer ie B also with same specification then in material assignement input the same group counter in the below line of the material assignment along with /material and customer B combination.
    The give the operation details and in inspection characerisitc MIC details as you normaly give
    For the next set again goto QP01 ( for customer CDE
    QP01 > Give the same material X and Plant > Click on New entries >  Usage and status > material assignment > give the customer C.
    As you have  mulitple customer D E,  also with same specification then in material assignement input the same group counter in the below line of the material assignment along with /material and customer Dcombination and repeat the same for customer E
    By doing this system should automacticaly pick up the customer specification when sale order of Customer E is used
    hope this helps
    Regards
    Gajesh

  • How to create inspection plan in mass for material

    Dear Guru,
                    How to create inpection plan for material in MASS, usually we will create inspection plan in QP01 but in mass for more than one material how to maintaain? Please help
    Regards
    Karthik.

    Hi raja
    refer following lonks
    QM- LSMW FOR INSPECTION PLAN
    Re: CEWB:Inspection Plan upload
    bapi for qm inspection plan
    Regards
    Sujit

  • Create Inspection plan ( BAPI_INSPECTIONPLAN_CREATE )

    Hi,
    I am trying to create Inspection plan using BAPI -> BAPI_INSPECTIONPLAN_CREATE
    On executing i am getting following messages:
    E BAPI 001
    A CPCL 006 Task list Q 1 1 already exists
    A CPCC_DT 210 For further processing, the routing entry is missing
    Also same scenario i have tested in QP01 with same details that i have mentioned above. There it is working properly.
    Thanks
    Smruti Ranjan

    Hi All,
    Have any one used this BAPI, BAPI_INSPECTIONPLAN_CREATE to create Inspection Plan ?
    Can you help me on above errors?
    Thanks in advance,
    Sabu

  • Mass assignment of materials to Inspection Plan

    All,
    Is there any standard transaction or BAPI/BADI to assign multiple materials viz 1000 plus to an Inspection plan.
    Thanks
    Anup

    You have two option to upload mass materials to inspection plan.
    Option1: Go to QP02 --> Material assignment screen. Here you can assign 14 materials at a time and do page down to assign next 14 materials. This is time consuming activity.
    Option2: With help of techinical person develop LSMW/ BADI which call QP02 to update material assignment in inspection plan.
    Please find few relavent descussion below, I hope it will help you take decisioon.
    [mass assigning of inspection plans]
    [Mass Assign Material to Inspection Plan]
    [Re: Mass material assignment  in Inspection Plan.]

  • ERROR WHEN RUNNING B.D.C FOR ASSIGN OF INSPECTION PLAN TO MATERIALS

    HI GURUS,
    WHEN I RUN B.D.C TO ASSIGN INSPECTION PLAN TO MATERIAL
    I AM GETTING THE FOLLOWING ERROR.
    Error occurred when checking type  group .
    Message no. CP852
    Diagnosis
    Errors occurred when checking the routing.
    Procedure
    u2022     If the check occurred online, display the checking log and remove the causes for the errors.
    u2022     If you saved the routing, call it up again and check it online.  Display the checking log and remove the causes for the errors.
    +NOTE: THIS INSPECTION PLAN WE HAVE ASSIGN MULTIPLE+ M.I.Cs WHICH ARE SIMILAR E.g.
    CHARA180:SMS,
    CHARA:190:SMS;
    CHARA:200:HRM:
    CHARA:210;HRM
    WHEN WE RUN COPY MODULE B.D.C.WE ARE GETTING ABOVE ERROR.
    REGARDS
    AMIT

    Hi Atul,
    WHEN WE DELETE THE REPEATED M.I.Cs AND ONLY RUN THE B.D.C WITH 16 CHARACTERISTICS WHICH ARE NOT REPEATED. THE PROGRAM/RECORDING RUN SUCCESSFULLY.
    AS SOON ADDED THE M.I.CS WHICH REPEATED IN CHARA:170,CHARA:180;CHARA;190;CHARA;200;CHARA;210;CHARA220.
    WE ARE NOT ABLE TO SAVE THE RECORDING AND WE GET ABOVE ERROR.
    MY ABAPER IS SAYING ITS A FUNCTIONAL ERROR.
    REGARDS
    AMIT

  • BAPI for QP02 - to De-assign and Re-assign materials

    Hi Experts,
    Please let me know if there any BAPI available for QP02 transaction???
    My Requirement is :
    In transaction QP02, when going to the header screen, there is a button to assign materials to inspection plans. Once in that screen appears list (in my case, huge) of components. I have seen it is possible to delete them one by one by pressing the garbagge icon, but I cannnot find any way to select some of them and delete them all at once. I am speaking of deleting about 50 components of a list of 100, and that for each material in transaction QP02.
    My question is regarding the possibility of selecting all materials in a list that I want to remove and delete them leaving the list this the remainig components, all in one porcees instead of repeating it for 50 times. Is it possible to find a solution for this?
    Any inputs on this???
    Rgds,
    Lakshmiraj

    Any inputs plss???

Maybe you are looking for

  • How do I change the info on the log in screen?

    I got a new Macbook Pro at a new company I am now working for.  I migrated my profile over from my previous computer, which is great.  However, my log-in screen still has the information from my old computer.  Is there anyway to change that? 

  • Pls Help about counting the lines of the file in java

    private int GrepPBArequestLog(String STRexpression) throws IOException int totalnum = 0; try { String[] cmd = {"grep", "-ic", STRexpression, src}; System.out.println("grep, cmd " STRexpression" "+src); Process grepProc = Runtime.getRuntime().exec(cmd

  • FIle adapter Test Mode

    Hi Guys,                What are the modes available in File adapter sender and receiver mode? what is Test mode for? can you pls send me a link on file adapter attributes? XIer

  • I could not download Reader 11 en.

    I could no download Reader 11 en. During downloading, error was happend and message was " Setup has detected that you already have a more functional product installed. Setup will now terminate.

  • M-audio omnistudio usb no longer works after upgrade to mountain lion

    hello. has anyone encountered this problem. after upgrading my intel imac to 10.8, i have discovered that my m-audio omnistudio usb is no longer recognized. i have changed the usb cable and reinstalled the last current driver for the hardware, but st