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

Similar Messages

  • Error in LSMW in Uploading Inspection Plan in QP01

    Hi All,
    I am facing problem when executing LSMW, I am Uploading Inspection Plan in QP01 transaction using Direct Input methos. The problem is on 13th step :Error that I get is 'No profile with entry tool for task list / / / in session INSPECTION_OBJ', here INSPECTION_OBJ is the name of the session. I have given the constant value of field profile (BIPKO-PROFIDNETZ) in mapping step and also activated check box 'entry tool' under profile to remove this error. But in  that case i can pass only the header data while processing the session and control does not get into Operation and characteristic screen.
    Can anyone pls help me..
    Thanks in advance...

    You might need to redo the recording all over again, BDC has plentty of scenario for screen selection to go wrong, so can't really tell what cause your problem based on your desc.  I have been stop using BDC to uplaod material since 5 years ago, I always use Direct input in LSMW and it works much better. I recomend you try the Direct input method instead of BDC if still getting problem.

  • How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

  • LSMW with BAPI for BAPI_CONTRACT_CREATE

    Hi,
    I am using LSMW with BAPI for creating purchasing contract.
    I got status of the Idoc as " 64 " means Idoc is ready to transferred to application but when i go to next step ...
    I am getting dump when I executing the step  "Start Idoc Processing"
    The errors shows like this: - "Object cannot be assigned to null"
    Any help on this:-

    yes ..
    I can see the data into the idoc.
    But when processing this idoc into application...then going into dump.
    Any ideas...Please let me know.

  • Long text problem while uploading Inspection plan through BDC.

    Hi,
    I am facing some problem while uploading the inspection plan. There are few MICs for which we are having long text, while uploading the inspection plan through BDC - some other long text is getting copied into the MIC's long text. After checking I came to know that in function module, read_text - some text which is stored in ABAP memory is getting copied into the inspection plan.
    I am working in SAP release 4.7. I have checked with SAP notes: 97419, but it is also not satisfying.
    Waiting for quick solution.
    Thanks in advance.
    Fahié

    Hi a®s,
    Thanks a lot for your kind reply.
    My requirement is I want to maintain long text for few MICs (which are not having long texts at MIC level) in inspection plan (QP01).
    When I am trying to manually assign the MIC's to inspection plan (QP01), long text is copied whereas I am not clicking the long text icon in (QP01). Long text is not maintained in MIC level, still some long text is copied to this MIC. This was also happening while uploading the inspection plan thro' BDC.
    I believe what you have mentioned about function module SAVE_TEXT cannot be used here since long text is already copied before we pass the long text. Also if we pass some long text, still apart from the long text what we have passed there is some other long text copied (extra long text).
    Waiting for quick solution.
    Thanks in advance.
    Fahié

  • Best Way to upload Inspection plan

    Dear all,
         Which is best way to upload inspection plan.
    Thanx & Regards,
    Harish Parab.

    Hi Harish,
    The Best Method is BDC as posted by others in the thread.
    Please also go through the below thread for approach for Master Data Migration as discussed earlier.
    [Link|Extension of Quality/Inspection Plan;
    Thanks,
    RKM.

  • LSMW used only for master data upload?

    Hi
    Can you please let me know if LSMW is used only for master data upload or we can also use it for transaction data ?

    Hi Christino.
    I have come across a standard SDN thread which deals with the uploading master data, refer it:
    [SDN Reference for uploading master data using LSMW|how can we upload master data by using LSMW;
    [SDN reference for which uploading is preferred (Master data or Transaction data)|Which one is better for uploading data LSMW or ECATT ?;
    Good Luck & Regards.
    HARSH

  • Error while uploading Inspection plan

    Dear Friends,
    I am creating inspection plans using BDC. The MIChas 2 versions. When i am using version 1, the inspection plan is created. Whereas when i am using MIC version 2 i am getting error "error occured while checking type group".Kindly let me know how do i resolve this.
    Regards
    Vivek

    Hi,
    Thanks for the reply. when i am trying to create a inspection plan in other plant, we have 4-5 sampling procesures to select from. But for this perticular plant where we are having problem, its showing only one. How do i get more options?How do i extend a sampling procedure to a new plant.
    Vivek
    Edited by: vivek mankad on Feb 23, 2010 7:57 AM

  • BAPI for deletion of a requirement plan

    Hi,
    Is there a BAPI to delete a requirement plan (created through TCODE MD61).
    I have found BAPIs for creation and modification of those requirements:
    BAPI_REQUIREMENTS_CREATE,  BAPI_REQUIREMENTS_CHANGE ...
    but none for the deletion.
    Thanks & regards

    The BAPI BAPI_REQUIREMENTS_CHANGE will be helpful to delete the PIR,     
    please go the transaction BAPI and find it for detail information, you   
    can check the documentation of it.            
    Later you ahve to run MD74/75 and 76 to delete completely form the database.                                                                               
    best regards

  • Inspection plan QP01

    Please advise do we need to prepare the insp plan for raw materials as well as for fert materials using qp01 t-code?. Because for fert materials, we need to assign the MICu2019s in routing, so do we need to prepare qp01 for fert materials? Please advise whether we should create qp01 for raw materials and as well as for fert materials in case we need 01 and 03 insp types.

    HI
    1. You have to create inspection plan in QP01 for Raw materials with inspection type 01
    2. You have to create inspection plan for FERT with inspection type 03 in Routing only.
    3. For the FERT material with inspection type 04, you need to crerate in QP01.
    Regards
    Bala

  • Master data changes not updated in Inspection Plan- QP01

    Hi
    We created all the QM master data . After that we did some changes in inspection chars and in the sampling master data.but the values are not reflecting in the Inspection plan . How to update the changes in the inspection plan. We are trying to find indIvidual as well as Mass update
    Any input will he highly appreciated
    Thanks
    JJ

    Dear JJ
    Another easy method will be maintaining MIC as referenced mic. instead of maintaining it as complete copy model you can make it referenced. any changes in the mic can be updated automaticalyin the inspection plan using the referenced functionality.
    The issue being wherever the mic goes will be changed,
    Regards
    gajesh

  • LSMW with BAPI for Person's Qualification Profile - BAPI_QUALIPROF_CHANGE

    All,
    I tried to use BAPI 'BAPI_QUALIPROF_CHANGE' to upload the qualification profile for an employee. The corresponding object type for the function module is BUS7017 (& the method is CHANGE). But in standard SAP, in the initial LSMW attributes screen, it supports only those objects with an ALE interface. But, BUS7017 does not have an ALE interface.
    It is possible to create an ALE interface for a BAPI in the transaction 'BDBG'. After creating an interface, I get the business object in the F4 help for the Business object (LSMW attributes screen). But, I get an error in the step 'Maintain structure relations'. It is saying 'target structure could not be found'.
    Can you please tell me what I am missing here. Also let me know how to generate a function module for the inbound/outbound processing of an ALE with BAPI?
    Thanks in advance.
    Regards,
    Parvath.

    Hi,
      Did u get any solution to this . I am trying to upload cost centers and facing the same problem. If you have found any solution , please pass it.
    Sutapa

  • BAPI for Source List Upload ( ME01 )

    Hi All..
    Is there any BAPI available for uploading source list for a material??
    Transaction involved - ME01.
    Thanks & Regards,
    Nidhi

    Hi,
    Try the below function module ME_UPDATE_SOURCES_OF_SUPPLY which is being used by standard transaction ME01.
    sample code
    REPORT ZTEST.
    DATA: BEGIN OF XORD OCCURS 50.
    INCLUDE STRUCTURE EORD.
    DATA: UPDKZ,
    END OF XORD,
    YORD type table of EORD with header line.
    clear xord.
    clear yord.
    xord-MATNR = '100-100'.
    xord-WERKS = '3000'.
    xord-ZEORD = '00001'.
    xord-ERDAT = '20080403'.
    xord-ERNAM = 'SAPDEV02'.
    xord-VDATU = '20080403'.
    xord-BDATU = '20100510'.
    xord-LIFNR = '0000001000'.
    xord-FLIFN = 'X'.
    xord-EKORG = '1000'.
    xord-UPDKZ = 'U'.
    append xord.
    move-corresponding xord to yord.
    append yord.
    CALL FUNCTION 'ME_UPDATE_SOURCES_OF_SUPPLY' IN UPDATE TASK
    EXPORTING
    I_CHANGEDOCUMENT = 'X'
    TABLES
    XEORD = XORD
    YEORD = YORD.
    COMMIT WORK.
    Cheers,
    vasavi.v

  • Bapi for sfg dependent dem,snp planned order qty, and ppds planned orde qty

    Hi Gurus,
    I am not much familiar with APO, so please help me,
    Input details:
    Field                         Value     
    Planning Version     000     
    Source Location *     1001     Single/Multi Value
    Product *                          1000061     Single/Multi Value
    Production Planner *     PRC     Single/Multi Value
    Start Date *          
    End Date *          
    o/p:
    Source Location     Date     Semi-Finished Material     Material Description     SFG Dependent Demand     SNP Planned Orders qty     PPDS Planned order Qty     Total SFG Variance due to Lot size     Total SFG Variance reference to dependent demand
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT     340     412     420     8     80
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT                         
    1001     15-Jul-10     1000041PP     PRIMARY FF MILK  3% FAT                         
    Is there any bapi to fetch the data as shown in o/p.
    Thanks

    Hi Phani,
    Tryout the below BAPIs
    IF10503 (object)
    BUS10503
    Regards
    R. Senthil Mareeswaran.

  • LSMW for Inspection Plan

    Hi Sapiens,
    I am a requirement to upload the Quality Management data through LSMW.
    1) Quality Info Recrod
    2) Inspection Plan
    For the first one, I could able to create Project in LSMW and successfully do for over 200 customers.
    I am saying problem in creating and uploading the Inspection Plan data.
    I created one inspection plan with a material in QP01 (Tcode), and assigned one customer in "Material Assignment".
    We have only hand full of materials (6-10 max) with MICs (10 - 15 max). So I using the same Inspection plan for material and I want to assign all the customer in Inspection plan at "Material Assignment". But at "Run Batch Input Record" in LSMW, it is failing. due to the below errors.
    1) Field MAPL-PLNAL(2) is not an input field
    2) Field MAPL-MATNR(2) is not an input field
    3) Field MAPL-WERKS(2) is not an input field
    I understand that these fields are repeating, as these fields are required in "Material Assignment" tab, where I will mention Counter, Matl, Plant and Customer. but it is saying these fields are not for input. If I dont use these fields in Field mapping then it will throw an error during actual recording.
    So, I need some inputs on it and all of your suggestions will be valuable.
    Awaiting of your reply on this soon.
    thanks,
    Mukesh

    Hi Mukesh,
    I would suggest to go for BAPI instead of LSMW for the inspection plans, if possible.
    Regards,
    Rahul

Maybe you are looking for

  • Unable to Change Key Figure in DP

    Hello Experts, I am facing an error in Demand Planning.  There is an existing Key figure in which I need to change the Type/Data type from Number to Quantity wherein it is showing Grey(uneditable) even in Change mode.  The other tabs like Aggregation

  • Bug in my code or strange memory behavior ?

    Hi, Guys ! It's been a while since I post something in this forum - trying to use your help when it's really needed. So, here we go ... (we use Oracle 8.1.7 on Unix box and SQL * Plus 8.1.6) While back I wrote "core" PL/SQL package that resides in le

  • How to preserve metadata when exporting non-jpgs from iPhoto?

    I have a problem with an iPhoto library, and need to move the photos to an undamaged library.  (I have been able to confirm that the problems are specific to the library and not to individual images or with other iPhoto libraries on the same computer

  • Aliases Mobile Me Vs Icloud - Unexpected result.

    Hi! I just migrated from Mobile Me to icloud.  I was using all available alias spots (let's call them 1,2,3,4 for the order they were created). I understood that existing Mobile Me accounts could keep their aliases.  I can receive email to all of my

  • Accordéon Spry avec données dynamiques.

    Bonsoir. J'ai créé une base de données avec des news et je souhaiterais, à l'aide de Dreamweaver et la librairie Spry, réaliser un accordéon dynamique, affichant le titre de la new dans le bandeau cliquable, et le texte de la new dans le content. J'a