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,

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

  • 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

  • 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

  • Create Inspection Plan -LSMW -Direct Input -Error with Control Indicators

    Hi,
    I am creating Inspection Plans using LSMW-DIRECT INPUT Method.
    Although MIC's control indicator parameters are correct while creating a plan it is changing the control indicator parameters.
    how can we suppress this?
    I want to use MIC's default parameters.
    Regards
    Praveen

    have Lost Previous File
    what does that mean? did they lose the source that should be used to load the data from?
    without source you cannot load data.
    Had you ever got this source file? how? by mail, then check your old mails and take it from there, ask the sender to he/she checks the SENT folder in his mail system. Maybe someone has a local copy of this fille.

  • Create Inspection Plan -error in control Indicators

    Hi,
    I am creating Inspection Plans using LSMW-DIRECT INPUT Method.
    Although MIC's control indicator parameters are correct while creating a plan it is changing the control indicator parameters.
    how can we suppress this?
    I want to use MIC's default parameters.
    Regards
    Praveen

    Hi Naresh,
    QA32 screen shot suggests material has Revision level as "B".
    Now Check Revision level for Inspection plan.
    Amol.

  • 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

  • Error while creating Inspection plan

    Hi,
    While creating inspection plan in QP01, system is showing error  "Material type ZROH is not defined for task list type Q''
    Please help me to solve the error.
    Thanks
    Prasant

    Hi,
    This is due to the configuration error,
    Just use T.Code OP50
    Create an entry for task list type "Q" with material type "ZROH" and save,
    Then try creating a Quality Inspection Plan, it will work
    Regards
    Merwyn

  • 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

  • Is it possible to create  inspection plan for "Inprocess Inspection"

    Hi,
    Is it possible to create  inspection plans for "Inprocess Inspection".
    If yes , what would be the "task List Usage".Is it "1"?
    If no ,then how to map this requirment?
    Regards
    Vemula

    Hi
    Vemula
    Generally as Per SAP std Routing is used for inspection of 03 type of inspection.
    but you can also customize the Inspection task list Usage for Inprocess Inspection.
    This is possible through
    QCC0>Quality Inspection>Insp lot creation>Assign Insp type to origine>
    here informt of 03 inspection type you can assign
    Task list type:Q
    Usage:either 1(Production) or 3(Universal)
    save
    Regards
    Poonam

  • While creating Maintenance order using t-code iw31 mainwork center not pick

    Hi,
    while creating Maintenance order using t-code iw31 Maintenance work center not picking from drop down (already have in drop down)but giving manually accepting.
    --Ganesh

    Hi,
    My understanding is that the selected work center is not copied into the input field. This can be corrected with note [1451299|https://service.sap.com/sap/support/notes/1451299]. Check if the note is relevant for your system.
    -Paul

  • How to map revision level materials to already created inspection plan?

    Dear All,
    I have created single inspection plan for many existing raw materials. Now it has been found that each raw material have different revision level as well as valid from date.
    My inspection plan is created on 02.07.2014 and each raw material has different revision level with valid from date which is also very old (like 11.03.2012 for revision level 09).
    My Requirement is:  how to correct my inspection plan?,  so that it will work for each assigned raw material and there will not be any material revision level wise problem created for the inspection lot so that my inspection lot should be created in REL status in QA32 transaction i.e. inspection lot is assigned automatically as per standard SAP functionality.
    Thanks,
    Narresh

    Hi Amol,
    Thanks for your reply.
    In this business scenario, we are not creating inspection plan for each raw material because there is similarity in inspection for 40-50 raw materials and total number of raw materials are around 500. This will be very difficult and unnecessarily data creation in the system.
    As per my understanding revision level is for material master revision and if material master changes then how it affect so much on inspection plan? also is it means that for every revision in future we will have to create new inspection plan?  hence I believe that if I will make back dated inspection plan for raw materials then it may work. Is my understanding is correct?
    Expecting much better solution from QM experts.
    Thanks,
    Narresh

  • I need your help how to create service plan using programm

    Hello everybody
    I met some difficulities when writing a programm which is used to create service plan.
    I used the function module 'crm_order_maintain'.
    Can you tell me how to set the parameters:
       IT_SERVICEPLAN_I
       IT_SERVICEPLAN_IE
    The two parameters is used as cycle data.
    I'm waiting for your help.
    If you have any idea,please apply to my message .Thank you very much. ^ ^

    Hi,
    I think there is standard way of creating service plans using actions..
    The standard method used is CREATE_ORDER_SRVPLAN.
    Regards,
    PePe

  • Error while creating the Inspection plan by T.C QP01

    Hello Friends,
    In QP01, When i am trying to create a inspection plan system throwing the error message "The inspection plan identifier exists already. Enter another."
    Message no. QP054
    But in QP02, When i checked  for that material, Plant, Group Number, Group counter, Usage, Status, i didn't find the entry over there.
    Actually my requirement is to create a inspection plan for a material and plant combination with speicfic Usage as 61(customer requirement and status 4) but when i am trying to create that system throwing the error message explained above.
    Thanks and Regards,
    Jitendra Chauhan.
    Edited by: jitendra chauhan on Jun 1, 2010 4:28 PM

    Hello Friends,
    Thanks for your valuable answers.
    I checked in table MAPL, for a particular material, Plant, Group Number and Group Counter, there is no entry.
    Where as in table PLKO, for a particular Group Number and Group Counter, entry is there. Actually this Inspection Plan Group Number and Group Counter is assigned to multiple materials through Material Assignment. If i delete the entry for this in table PLKO, than for all rest of the materials also entry will be deleted.
    Hence how to resolve this?
    Actually for other material number, same plant, same group number and same group counter, entry exist. So can i simply go in the inspection plan of other material,same plant,same group number,same group counter and than inside the material assignment to assign the required  material code, plant and the group counter number?
    Looking ahead for valuable inputs from the genius.
    Thanks and Regards,
    Jitendra
    Edited by: jitendra chauhan on Jun 2, 2010 8:09 AM

  • 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.

Maybe you are looking for

  • How fix error 2009 on iTunes for iPod touch 3G

    Hello, I tried a several times restore the iPod but always appear this error message, I have the newest version of iTunes but problem continue. Somebody have any idea to restore this kind of issue? After this error the iPod is flashing and appear the

  • Passing Argument from Execute Process Task (SSIS) to an .exe file

    Hi, I am developing a SSIS package, where I want to execute exe file using Execute Process Task. The parameter for the ,exe file is the output of the SQL query from database. I am not knowing how to pass the output of the SQL query to the parameter o

  • Unifying Clouds, MobileMe, and iTunes?

    Hello:      Can someone please help. I am lost in the CyberSpace if not lost in the clouds. I had been using MobileMe and iTunes fine without any problems until Yesterday. Recently I bought an iCloud account, in which I was given a different email ad

  • Reporting in Flex

    Hi, I am new to Flex and I have been assigned to work on some reporting task (web user should be able to download the reports in pdf, excel and word). I was wondering if flex has any inbuilt support for reporting. If no i want to use jasper reports b

  • How do I set a home page in Firefox for Android

    I want iGoogle to open when I load Firefox.