BAPI INSPECTION PLAN

I am Creating the Inspection Plan by using the BAPI's but
(BAPI_INSPECTIONPLAN_CREATE) i got this error message.
here FU26FR is the INpection method and master inspection characterstic.
the error related to inspection plan charactrstics
how to over come this error please tell me.
for good answer i will give the reward points
message :
Specify a valid data import mode for master inspection characteristic FU26FR

Hi,
Check the Bapi documentation....
Enter the reference for the master inspection characteristic in the field CHA_MASTER_IMPORT_MODUS (mode for reference to the master inspection characteristic).
"L" for reference
In this case, the master inspection characteristic must be completely maintained. In parameter INSPCHARACTERISTIC, you must only enter data in the fields, in which data cannot be transferred from the master inspection characteristic.
"C" for copy (flexible reference)
In this case, the data is copied from the master inspection characteristic to the inspection characteristic.
"N" for creating a flexible reference
In this case, no data is transferred from the master inspection characteristic. You must enter all fields in parameter INSPCHARACTERISTIC.
For "L" or "C", you can copy the control indicators for the inspection characteristic directly from the master inspection characteristic. For "N" or if you do not enter a master inspection characteristic, you must enter the control indicators individually or enter a key for the control indicators in field PRESET_CTRL_INDS_KEY, if you have defined this key in Customizing.

Similar Messages

  • FM/BAPI for changing the inspection plan

    Hi,
    I need to change the inspection plan.
    Can anyone suggest any FM or BAPI please.
    When I am trying to use BAPI  BAPI_INSPECTIONPLAN_CREATE for this purpose,
    I am getting the below mentioned errors:
    E  BAPI                001
    A CPCL               006 Task list Q Q0000171 1 already exists
    A CPCC_DT         210 For further processing, the routing entry is missing
    Thanks in advance.

    Hi,
    Could you please help me with the fields that need to filled for this purpose ?
    I am currently filling the TASK and INSCHARACTERISTIC structures with the following fields filled:
    TASK:
    TASK_LIST_GROUP
    GROUP_COUNTER
    VALID_FROM
    VALID_TO_DATE
    TASK_LIST_USAGE
    PLANT
    TASK_LIST_STATUS
    TASK_MEASURE_UNIT
    LOT_SIZE_FROM
    LOT_SIZE_TO
    INSPCHARACTERISTIC:
    TASK_LIST_GROUP
    GROUP_COUNTER
    ACTIVITY
    INSPCHAR
    QUANTITATIVE_IND
    MSTR_CHAR
    PMSTR_CHAR
    CHA_MASTER_IMPORT_MODUS
    CHAR_DESCR
    UP_TOL_LMT_IND
    LW_TOL_LMT_IND
    TARGET_VAL_CHECK_IND
    TARGET_VAL
    UP_TOL_LMT
    LW_TOL_LMT
    But still I am getting the error mentioned above(previous message).
    Thanks
    Shilpika

  • 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

  • BAPI or FM to change an inspection Plan

    Hi everyone,
    I have a requirment,when a specification (Recipe managment) is changed ,the data accordingly should be updated in the inspection plan that is linked with that.
    Can you pelase let me if i have any function module or BAPI which can be used to update the existance inspection plan.
    I have a BAPI to create INSPECTION PLAN but i didn't find any bapi to change INSPECTION PALN.
    Thank you in Advance.

    Hello Parankusham,
    Unfortunately, there is no BAPI for changing the please.You can look into the engineering workbench CWBQM and which possibilities it offers you in your case.
    Thanks
    Amber

  • 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

  • Lsmw by bapi for qm to upload inspection plan qp01

    I want to upload Inspection plan by Transaction qp01
    <Edited by Moderator - Bhavesh Kantilal. Removed all Capitals post. User has been warned and request to move this thread to the appropriate forum has been raised.>
    Edited by: Bhavesh Kantilal on Dec 20, 2008 1:50 AM

    Post it here:
    ABAP Connectivity
    Also, Please do not use all CAPS.
    It is understood as shouting at people.
    Regards,
    Ravi

  • QP01 Create inspection plan BAPI

    Dear experts,
    I am trying to create Inspection plan, by using BAPI_INSPECTIONPLAN_CREATE, but it is not working always giving some error. I can create with same data manually in QP01.
    Can anyone please help.

    closed thread as no answer recvd

  • Errors while creating Inspection plan using BAPI_INSPECTIONPLAN_CREATE

    Hi All,
    I am writing an upload tool for inspection plans. In this program I use bapi: BAPI_INSPECTIONPLAN_CREATE.
    I made an extraction of a excisting inspection plan with SXDA_TOOLS which uses the same bapi and filled the bapi structures with the similar data. Now I am getting strange messeges in the return structure as below.
    1. Material is not maintained for plant NNNN. But the material is mainained for that plant.
    2. Consistency check not successful when creating operation
    3. Inspection characteristic cannot be uniquely assigned to one operation
    Let me know your suggestions
    Thanks,
    Sabu

    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

  • How to progammatically get Inspection Characteristics from Inspection Plan

    How do I programmatically get Inspection Characteristics from an inspection plan? I am currently getting inspection characteristics from inspection lots via a QM-IDI RFC call (QIRF_SEND_REQUIREMENTS_GET_DAT2), but if the Inspection Characteristic is not in an inspection lot, I don't get it via the RFC call. What BAPI/RFC/IDOCS mechanism can I use from an external subsystem (VB.NET app) to get inspection characteristics (Spec Limits, Target, Operation, Activity) associated with a material in an inspection plan?
    Thanks,
    Ed

    The problem is the SAP system that my external subsystem (VB.NET application using QM-IDI) is interfacing with does not have inspection lots (and the customer is not willing to add inspection lots), so the QM-IDI RFC that I'm using (QIRF_SEND_REQUIREMENTS_GET_DAT2) does not return the inspection characteristics (spec limits, etc) that I require. My customer creates a reference (QP11) with inspection characteristics, then attaches the reference to a Material (QP01). When I try to get the inspection characteristics for the material via QIRF_SEND_REQUIREMENTS_GET_DAT2, I don't get the inspection characteristics because there is no inspection lot associated with the material and inspection characteristics.
    The design is for my external subsystem to do the Material Inspection Characteristic valuation, and then send the valuation results back to SAP. Is there a way to get Material Inspection Characteristics and then send the results back given the SAP setup I described above?
    Thanks,
    Ed

  • QM Inspection Plans migration - How to migrate deleted plans.

    Hello All,
    I'm currently working on a migration project from 4.7 to 6.0.
    Our customer wants to migrate all QM inspection plans, including those are marked as deleted (PLKO-LOEKZ = 'X').
    I'm using BAPI_INSPECTIONPLAN_CREATE. The BAPI works fine when the inspection plan which is being loaded is not marked as deleted. But when I try to upload another one which is mark as deleted (BAPI1191_TSK_C-DEL_IND = 'X'), I get the following error from BAPIRETURN: "The object does not exist for scheduled deletion time" (Message class CPCC_DT, number 214).
    Does anybody knows if it is possible to load inspection plans marked as deleted using this BAPI?

    C N,
    The principal Idea is to migrate either
    - the original amounts, the installment plan and last the latest payments (you migrate payment history)
    - or to migrate the still open amount as one or more open items and subsequently an installment based on that amount.
    Kind regards,
    Fritz

  • 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

  • INSPECTION PLAN ALE SETTINGS

    Hi ,
    Its a Migration Project and we have to Transfer all the Inspection Plans from the Old System to a New System.
    We are tryin to go by the Idocs Approcach.
    But i donnt know the MASS SEND Prog. for the same eg. BD10(RBDSEMAT) for Material , also i am stuck in the ALE Settings too ...
    In Outbound Side Distribution Model i have added the following BAPI :
    Object name        InspectionPlan
    Method name       Create
    Object type          BUS1191
    Method                CREATE
    Description          Create inspection plan
    and in the Outbound Partner Profile :
    Message Type INSPECTIONPLAN_CREATE
    Basic type        INSPECTIONPLAN_CREATE02
    I am also not able to Find the Inbound Process Code for the message type INSPECTIONPLAN_CREATE.
    Although i guess the Inbound Function Module is IDOC_INPUT_INSPECTIONPLAN_CREA .
    Please help me with the issue.
    regards
    Vikas.

    Thanks... but i am still in need of a mass send program ... or can i send the inspection plans via change pointers ?
    while creating the entries in BD52 (Change Document Items for Message Type) i am not sure what should be added for this message type (INSPECTIONPLAN_CREATE)?

  • BDC - Creating Inspections Plans using T-Code QP01

    Hi All,
    I want to Create Inspection Plans using QP01 transaction using BDC.
    It having 4 screens. Third and Fourth screens having line item details.
    I did recording. Upto First and second screens data is populating properly, coming to third screen data is not taking even though bdctable having data (in debug mode i found). I don't know hw to resolve this problem.
    Can u please explain hw to populate line-item details, possible give some example coding .
    Regards,
    Prabhakar

    Hi,
      If you are comfortable using function modules then you will not have any difficulty in using the BAPI, only thing we need to take care of the following, refer the following this is not using the bapi for Inspection plan, this is done for different purpose, still you can refer this and use accordingly,
    Data declarations,
    DATA: TOPNODEONLY LIKE BAPICO_GROUP-TOPNODEONLY,
          RETURN LIKE BAPIRET2,
          LT_HIERARCHYNODES LIKE BAPISET_HIER OCCURS 0,
          LT_HIERARCHYVALUES LIKE BAPI1117_VALUES OCCURS 0,
          LS_HIERARCHYNODES LIKE BAPISET_HIER,
          LS_HIERARCHYVALUES LIKE  BAPI1117_VALUES,
          LV_FLAG TYPE I,FLAG.
    DATA: BEGIN OF ORDERS OCCURS 0,
          ORDER_GROUP TYPE GRPDYNP-NAME_COALL,
          DESC(30),
          ORDER TYPE GRPVALUES-VFROM,
          END OF ORDERS.
    START-OF-SELECTION.
      CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                FILENAME = FILENAME
                FILETYPE = 'DAT'
           TABLES
                DATA_TAB = ORDERS.
      SORT ORDERS BY ORDER_GROUP ORDER.
      LOOP AT  ORDERS.
        IF LV_FLAG NE 1.
          TRANSLATE ORDERS-ORDER_GROUP TO UPPER CASE.
          LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER_GROUP.
          LS_HIERARCHYNODES-DESCRIPT = ORDERS-DESC.
          LS_HIERARCHYNODES-HIERLEVEL = 0.
          LS_HIERARCHYNODES-VALCOUNT = 0.
          APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
          LV_FLAG = 1.
        ENDIF.
        CLEAR LS_HIERARCHYNODES.
        LS_HIERARCHYNODES-GROUPNAME = ORDERS-ORDER.
        LS_HIERARCHYNODES-HIERLEVEL = 1.
        LS_HIERARCHYNODES-VALCOUNT = 0.
        APPEND LS_HIERARCHYNODES TO LT_HIERARCHYNODES.
        AT END OF ORDER_GROUP.
          FLAG = 'X'.
        ENDAT.
        IF FLAG = 'X'.
    BAPI is called to create Internal Order group in the system
          CALL FUNCTION 'BAPI_INTERNALORDRGRP_CREATE'
               TABLES
                    HIERARCHYNODES  = LT_HIERARCHYNODES
                    HIERARCHYVALUES = LT_HIERARCHYVALUES.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          CLEAR :  LT_HIERARCHYNODES[], LS_HIERARCHYNODES.
          CLEAR : LV_FLAG,FLAG.
        ENDIF.
      ENDLOOP.
    Hope this helps,
    Rgds,

  • 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

Maybe you are looking for