BAPI_INSPECTIONPLAN_CREATE

Hi All,
I am using BAPI_INSPECTION PLAN_CREATE to create some inpection plans. BAPI is running successfully. I am passing the following values in to the bapi.
Task and Operations
When i execute the BAPI it is returning message type S(successful) but i am not able to see the records for Operation in PLPO table while in PLKO table i am able to see the Task Header records.Can you pls help me out in this problem
Thanks,
Nirnay

Hi Nirnay,
After the BAPI has been executed succesfully you should call BAPI_TRANSACTION_COMMIT to commit the changes to the database.
Regards,
John.

Similar Messages

  • 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

  • Using the bapi BAPI_INSPECTIONPLAN_CREATE

    Hi ,
      I am using the bapi BAPI_INSPECTIONPLAN_CREATE to create inspection plans.
      Here I am facing one issue, as a part of this creation in inspection characteristics, I am not able to
      handle all the control indicators.
      In this control indicators under Results confirmation block I dont see fields in the BAPI to handle   
      radiobuttons for 1. Required Char  2. Optional Char 3. After Accep. 4 After Rejection
    If anybody is familiar with this BAPI, please help me.
    Thanks,
    Ravi

    Hi Neha,
       Sorry to say this, It does not answers my question. I am having the program created by someone else. The issue is the program is not able to populate the control indicators as specified in the file. Because the programmer has not populated those values in the BAPI, even the program you had given is not having those fields. Also I am not able to find the correct fields to populate the values into the BAPI. If you know this specific thing please help me out.
    Thanks,
    Ravi.
    Edited by: ravi itekala on Dec 4, 2008 1:51 PM

  • File format for multiple characteristics using BAPI_inspectionplan_create

    Hi ,
    I am trying to upload/create inspection plan through the BAPI_INSPECTIONPLAN_CREATE and would need to upload multiple operations , multiple inspection characteristics . Can someone help me in the how would be the file format structure to be used . I have multiple characteristics for a single operations.
    << Moderator message - Please do not promise points >>
    Many thanks in advance.
    Edited by: Rob Burbank on May 16, 2011 12:35 PM

    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

  • Issue with the BAPI_INSPECTIONPLAN_CREATE

    Hi,
      I am using the bapi BAPI_INSPECTIONPLAN_CREATE, to create inspection plans. But it is giving an error with the message " Vendor xxxxxxxx does not exist", where the vendor exist in the system. Please let me know why it is giving the error. I did lot of debugging, but I am not able to find the exact reason.
    Thanks,
    Deepak.

    Please post your code
    Regards,
    Ajay

  • BAPI_INSPECTIONPLAN_CREATE..issue

    Hi Experts,
    I am using BAPI , BAPI_INSPECTIONPLAN_CREATE..Its creating inspection plane..THe only issue is its creating below mentioned locks.
    Lock mode Table name Lock Argument
    E OPR_CLASS_LOCK 796Q51999002########00000157
    E OPR_CLASS_LOCK 796Q51999002########00000158
    S PLKO 796Q51999002##########
    E SEQ_CLASS_LOCK 796Q5199900202000000
    E TSK_CLASS_LOCK 796Q5199900202
    I had tried FMS...DEQUEUE_ARRAY..but still not able to clear locks..
    the lock object I am passing to above fm is ENQARRAY.
    Please advise
    Thanks in advance

    Then how do you call that BAPI? Do you just load data from somewhere and then call that BAPI? If you are pretty sure that those records are not blocked by other transaction/application/FM then I would open OSS ticket and ask SAP why it does not release locks. You can also try to use FM DEQUEUE_ALL.
    Cheers

  • Error Returned From Bapi 'BAPI_INSPECTIONPLAN_CREATE'

    hi
    I am using 'BAPI_INSPECTIONPLAN_CREATE' for creating inspection plan in QM.the bapi is returning error"Inspection characteristic cannot be uniquely assigned to one operation".I am using one operation and one characteristic.I am also providing operation id in both the structures for operation and characterisitcs.Can anyone suggest what the problem is?
    Edited by: abapuser on Oct 10, 2009 5:12 AM

    Hi
    There is Activity Field in BAPI1012_OPR_C  sturcture...
    Similay there is also activity field  BAPI1012_CHA_C sturcture.....
    assign same Activity No in Both sturcture...
    Check this Link  https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Program%20to%20upload%20QM%20Inspection%20Plan%20Using%20BAPI
    Regards
    ABG...

  • Issue with BAPI_INSPECTIONPLAN_CREATE   (new)

    Hi,
    I'm trying to create inspection plan using BAPI_INSPECTIONPLAN_CREATE. I'm passing the following parameters for the tables in BAPI.
    Profile = 0000001
    1)Task.
    I.     change_no                    
    II.     task_measure_unit   
    III.     lot_size_to         
    IV.     plant               
    V.     description         
    VI.     task_list_status    
    VII.     lot_size_from       
    VIII.     valid_from          
    IX.     planning_work_center
    X.     task_list_usage
    2)MATERIALTASKALLOCATION
    I.     material  
    II.     change_no      
    III.     plant          
    IV.     valid_from
    3)operation
    I.     change_no             
    II.     activity              
    III.     control_key           
    IV.     plant                 
    V.     operation_measure_unit
    VI.     denominator           
    VII.     nominator             
    VIII.     base_quantity         
    IX.     description           
    X.     valid_from            
    XI.     work_cntr           
    XII.     insp_point_complt_flow_variant
    XIII.     operation_id       
    4)INSPCHARACTERISTIC
    I.     activity              
    II.     operation_id           
    III.     change_no              
    IV.     inspchar               
    V.     pmstr_char             
    VI.     pmethod                
    VII.     smpl_unit              
    VIII.     smpl_quant             
    IX.     cha_master_import_modus 
    X.     characteristic_name    
    XI.     sampling_procedure_ind 
    XII.     scope_ind              
    XIII.     confirmation_category  
    XIV.     change_documents_req   
    XV.     print_ind              
    XVI.     docu_requ              
    XVII.     valid_from             
    XVIII.     mstr_char              
    XIX.     method                 
    XX.     char_descr        
    for quantitative char, i'm sending the below additional information
    I.     quantitative_ind      
    II.     meas_value_confirm_ind
    III.     dec_places            
    IV.     meas_unit             
    V.     target_val            
    VI.     up_tol_lmt            
    VII.     lw_tol_lmt            
    VIII.     smpl_procedure        
    IX.     smpl_unit             
    X.     smpl_quant                
    XI.     target_val_check_ind
    XII.     up_tol_lmt_ind
    XIII.     lw_tol_lmt_ind 
    for qualitative char, i'm sending the below additional information
    I.     attribute_required_ind
    II.     sel_set1              
    III.     psel_set1             
    IV.     smpl_procedure        
    V.     smpl_unit             
         Vi.    smpl_quant   
    But I'm still getting the follwing errors.
    BAPI     001
    CP     458     You cannot enter an activity type for standard value Mach. Dep
    CPCL     203     Consistency check not successful when creating operation
    CQCL     008     Inspection characteristic cannot be uniquely assigned to one operation
    CQCL     026     Data import mode N does not apply to a master inspection characteristic
    Please help me... Let me know if i have to give any additional information
    thanks in advance
    Vishnu
    Edited by: Vishnu080 on Jun 30, 2009 5:00 PM

    Dear Vishnu
    Please check this link. It might help you in the program and please check for other links in this forum for the same BAPI
    Link: [https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtouploadQMInspectionPlanUsingBAPI]
    Regards
    Gajesh

  • Issue with BAPI_INSPECTIONPLAN_CREATE

    Hi, I'm trying to create inspection plan using BAPI_INSPECTIONPLAN_CREATE. I'm passing the following parameters for the tables in BAPI.
    Profile = 0000001 .
    1)TASK table. I. change_no II. task_measure_unit III. lot_size_to IV. plant V. description VI. task_list_status VII. lot_size_from VIII. valid_from IX. planning_work_center X. task_list_usage
    2)MATERIALTASKALLOCATION I. material II. change_no III. plant IV. valid_from
    3)OPERATION table.  I. change_no II. activity III. control_key IV. plant V. operation_measure_unit VI. denominator VII. nominator VIII. base_quantity IX. description X. valid_from XI. work_cntr XII. insp_point_complt_flow_variant XIII. operation_id
    4)INSPCHARACTERISTIC table. I. activity II. operation_id III. change_no IV. inspchar V. pmstr_char VI. pmethod
    VII. smpl_unit VIII. smpl_quant IX. cha_master_import_modus X. characteristic_name XI. sampling_procedure_ind
    XII. scope_ind XIII. confirmation_category XIV. change_documents_req XV. print_ind XVI. docu_requ
    XVII. valid_from XVIII. mstr_char XIX. method XX. char_descr.
    For quantitative char, i'm sending the below additional information I. quantitative_ind II. meas_value_confirm_ind III. dec_places IV. meas_unit
    V. target_val VI. up_tol_lmt VII. lw_tol_lmt VIII. smpl_procedure IX. smpl_unit X. smpl_quant XI. target_val_check_ind XII. up_tol_lmt_ind XIII. lw_tol_lmt_ind.
    For qualitative char, i'm sending the below additional information I. attribute_required_ind II. sel_set1 III. psel_set1 IV. smpl_procedure
    V. smpl_unit Vi. smpl_quant.
    But I'm still getting the follwing errors.
    BAPI 001 CP 458 You cannot enter an activity type for standard value Mach. Dep
    CPCL 203 Consistency check not successful when creating operation
    CQCL 008 Inspection characteristic cannot be uniquely assigned to one operation
    CQCL 026 Data import mode N does not apply to a master inspection characteristic.
    Please help me... Let me know if i have to give any additional information thanks in advance Vishnu

    Hi,
    Please check the given link, hope It will help you.
    BAPI_INSPECTIONPLAN_CREATE
    Thanks & Regards,
    Shamma
    Edited by: Shamma Firdous on Jul 1, 2009 12:18 PM
    Edited by: Shamma Firdous on Jul 1, 2009 12:19 PM

  • PLPOD-qkzprfrei radio button in BAPI_INSPECTIONPLAN_CREATE

    Hello Folks,
                i am using BAPI_INSPECTIONPLAN_CREATE for creating a data upload program, but i have a requirement to set PLPOD-QKZPRFREI field, but BAPI is not having that field. This field is actually a radio button on actual Transaction for "No Relation".Can somebody have any idea how to set this particular radio button using this bapi.
    Regards
    Animesh Sundriyal

    Hi Prajwal,
    Please check this link
    RFC and BAPI Interfaces to SAP Systems
    http://help.sap.com/saphelp_45b/helpdata/en/cf/8ccab761ea11d2804a00c04fada2a1/content.htm
    BAPI's are the remote enabled Function modules which are defined in the Business Object Repository (BOR) as the methods of the business objects.I can say BAPI is the subset of RFC. RFC connects to the other system via BAPI and vice versa.
    BAPI methods are RFC enabled function modules. The difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call.Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.BAPI is having all Key fields, methods, interfaces etc.
    Best regards,
    raam

  • 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

  • BAPI_InspectionPlan_Create-Create Operation based on First Operation

    Hi All,
    I am uploading inspection Plan using BAPI_Inspectionplan_create method.For This one operation had already been created.I need to create the next operations as a copy of first operation except for the change in operation description.
    Could someone help me with some sample code
    Thanks & Regards,
    Neelima S

    Hi All,
    I am uploading inspection Plan using BAPI_Inspectionplan_create method.For This one operation had already been created.I need to create the next operations as a copy of first operation except for the change in operation description.
    Could someone help me with some sample code
    Thanks & Regards,
    Neelima S

  • Problems occured when using BAPI_INSPECTIONPLAN_CREATE

    hi,guys!
    please help!
    problems occurred when using BAPI_INSPECTIONPLAN_CREATE to create inspection plans.
    problems as belows:
    This inspection point completion is not possible for task list type Q;
    Consistency check not successful when creating operation;
    Inspection characteristic cannot be uniquely assigned to one operation.

    Hi Alex,
    There must be some data issue.
    Just try to create the Inspection plan without BAPI i.e. using the transaction for the data you have and see whats happening.
    Regards,
    Atish

  • Upload program using BAPI_INSPECTIONPLAN_CREATE

    Hi,
    we are having some difficulties in loaing data through LSMW -Direct input method.
    I want to use BAPI_INSPECTIONPLAN_CREATE for uploading my data.
    I am new to this type of loads.Any ideas?
    regard
    Praveen

    Hi
    This message is due to selection of Inspection point completion.
    You have selected inspection point say 100 then............
    go to operation overview & Check the entry " Quntity ,valuation& comfirmation(Production)" under QM:Inspection point.
    Check following.....
    This inspection point completion is not possible for task list type Q
    Message no. QP259
    Diagnosis
    A quantity assignment and confirmation are not possible for this task list type:
    Procedure
    Use one of the possible inspection completion variants:
    Valuation
    Automatic inspection point valuation
    Regards
    Sujit

  • BAPI_INSPECTIONPLAN_CREATE -Program for uploading data

    Hi,
    we are having some difficulties in loaing data through LSMW -Direct input method.
    I want to use BAPI_INSPECTIONPLAN_CREATE for uploading my data.
    I am new to this type of loads.Any ideas?
    regard
    Praveen

    Hello,
    i see YSCI_MAEX_UPLOAD_R3 dveloped report by you. (starting with Y*)
    When you directly updates tables you wont get any log, as soon as you report wont generate them.
    Usually report should (after executed) generate spool when "WRITE" command is present.
    Check when executed in background whether it does generate spool.
    TA: SM37 in the "job log" check for spool.
    @Anyway, standard log can be seen in GTS in TA: SLG1 (but this is not the case).
    Best regards,
    Gabriel.
    @Spool can be easily downloaded to PC.

  • BAPI_INSPECTIONPLAN_CREATE problem

    Hi Guys,
    I have to load the QM Inspection Plan data. I have tried to use the standard program in LSMW to load it but not able to figure out how to use that program.
    I have also tried the BAPI_INSPECTIONPLAN_CREATE, but not able to make it work. BAPI is returning with the following errors:
    "Enter unit of measure" I have enter the unit of measure                       
    "Create task list: Consistency check was not successful"
    Will appreciate you guys input.
    Thanks
    Rohit

    Problem with the input data

Maybe you are looking for

  • Blackberry Desktop SW fails to start

    I have just downloaded Desktop Software for PC from the website and installed it but when it tries to start the application I get an error message "BlackBerry Desktop Software has encountered a problem and needs to close.  We are sorry for the inconv

  • Is the data plan required?

    I'm currently planning on purchasing an iPhone, but am just wondering whether the extra data plan charge(I'm currently an AT&T customer) is required to use the phone. I don't plan on using it for the internet or email, since I can just do that at hom

  • Error during install os x lion

    When I go to install lion, I get the following error "The software could not be verified. It may have been corrupted or tampered with during downloading" - I've been having issues updating os x 10.6.7 so I thought I would just update to lion. any sug

  • Extracting Hierarchies

    I am new to EBS... I need to extract hierarchies from EBS to build an Essbase cube and load GL data. I can see the hierarchies in the ' Application Object Library ', FND. Is this the best place to go and get the hierarchies? I would have thought they

  • How to upload linux file to DB depending on Column name

    Hi , ii'm using Oracle Database 11g R2 need to upload Telecom CDRs to the database on daily basis , it's huge data and changeable , an example of my file in linux Redhat 5 server as below , INDRtotalduration = 00:00:00 origin_matrix = 4186603ec003ef0