BAPI to read inspection lot ATPCAT 'BU'

Hello All,
I need a BAPI or FM to read inspection lot in APO.
The ATPCAT for the same is 'BU'.
I have tried following BAPIs but of no use as of now:
1. BAPI_MOSRVAPS_GETLIST2
2. BAPI_STSRVAPS_GETLIST2
3. BAPI_POSRVAPS_GETLIST3
second bapi is for stock so i am almost sure it is of no use.
I guess first or third should work but it is giving no results.
in both the BAPIs i am passing product,location,location type and atp category as well.
Please let me know if there is any other FM/BAPI to look into for reading ATPCAT 'BU' .
Regards,
Mukesh Pandey

Hi Mukesh,
Contrary to your thoughts, if any BAPI could be relevant, it might be the stock BAPI. Did you already try using it?
I do not have inspection lot in APO, but can you try the following (I am assuming that you did not try this stock BAPI till now)?:
Try using the BAPI BAPI_STSRVAPS_GETLIST2 with the selection in STOCK_TYPE_SELECTION  as "14" (This stands for "Stock in Quality Inspection (Relevant to Planning)').
Other selection that you have to maintain is:
PRODUCT_SELECTION + LOCATION_SELECTION + LOCTYPE_SELECTION (optional)
or
PRODUCT_LOCATION_KEYS
You were already using these, so this should not be an issue. Try using product, location and Stock_type as selection.
Alternatively, see if this FM is useful - /SAPAPO/DM_STOCK_GET.
Before using this, run the FM /SAPAPO/RRP_SIMSESSION_CREATE, and pass on the SIMID and SIMSESSION to the FM /SAPAPO/DM_STOCK_GET.
Thanks - Pawan

Similar Messages

  • BAPI to create inspection lot

    Hi,
    Someone know if exists an standar BAPI or function to create an inspection lot?
    Many thanks!!

    Hi,
    try these....
    Function group                 Function group short text
    Function Module Name           Short text for function module
    COQM                           Create inspection lot from order
    CO_QM_INSPECTION_LOT_CREATE    Create inspection lot from order
    CPCC_BUS1191                   BAPIs for Inspection Plan
    ALE_INSPECTIONPLAN_CREATE
    BAPI_INSPECTIONPLAN_CREATE     Create Inspection Plan
    CPDMDATACOLLECTOR2
    C_PDM_INSPECTIONPLAN_CREATE
    QMHU
    QMHU_INSPECTION_LOT_CREATE
    QPL1
    QPL1_INSPECTION_LOT_CREATE
    QPLEXT
    QPLEXT_INSPECTION_LOT_CREATE
    Arunima

  • Reading QM inspection lots

    Hello all;
    Is there a fast way to read inspection lot results instead of using fm BAPI_INSPOPER_GETDETAIL. With this fm it takes quite a long time to read the values. Whivh tables should be read, eg. QALS, QAPP etc ?
    Thx in advance,
    Ali

    Check the tables:
    QALS Inspection lot record 
    QAMV Characteristic specifications for inspection processing
    TQ30 Inspection types 
    TQ30T Texts for inspection types 
    QALT Partial lot

  • Bapi or FM to read data for inspection lot

    Hi Experts
    I need bapi or FM that will read all specifications and result value for entered inspection lot
    the data that we also got in transaction qa13
    I need exactly that data
    Thanks
    Taran

    hI,
    Check the below bapi's
    GetDetail : Load detail data for inspection lot [ BAPI_INSPLOT_GETDETAIL ]
    GetList : Select inspection lots [ BAPI_INSPLOT_GETLIST ]
    GetOperations : Select inspection operations for inspection lots [ BAPI_INSPLOT_GETOPERATIONS ]
    SetUsageDecision : Make automatic usage decision [ BAPI_INSPLOT_SETUSAGEDECISION ]
    StatInterface : QM-STI Interface [ BAPI_INSPLOT_STATINTERFACE ]
    Reward if helpful.
    Regards,
    nagaraj

  • BAPI for Creation of inspection lot

    I have two scenario:-
    1.Can any body help to find BAPI for creation of Inspection lot for the material under PO envisaged for PDI.
    2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
    My objective is to creation inspection lot without assigning Inspection type of Z01SI01 or Z01SI02 and so on in the material code under a respective Plant 1004 or 1005 0r 1006 so on.
    In my Z Development for creation of inspection lot BDC is run for QA01 as this code created inspection lot on when material code has inspection type Z01SI01 i.e. location of source inspection and vendr code particular classification under 010 vendor class inspection type Z01SI01. System search both the inspection type for both material and vendor then create inspection lot in QALS table by assiging inspection matching inspection on the lot.
    I want to get rid of assignment of inspection on the materilal. If any BAPI or FM is avalable for creation of inspection without assigning inspection type on material code. I want to create inspection lot in which Inpsection type assignment can be done based on vendor class only.
    YPB

    2. Can any body find me a BAPI or FM which can creates inspection lot in QALS table without inspection lot origin under 01 i.e. 0101 or Z01SI01.
    I am very sure that this is not possible.You can not create inspection lot without inspection lot origin or inspection type.
    Regards
    Sujit

  • BAPI or FM for changing usage decision on Inspection lot

    Hi,
    Does anyone know of any BAPI or FM which can change usage decision on inspection lot. I'm already aware of BAPI_INSPLOT_SETUSAGEDECISION. This only works when there is no UD on inspection lot.
    Thanks for your help.
    Stephen

    hi peter,
    BAPI_INSPCHAR_SETRESULT Confirm Inspection Results. BAPI_INSPLOT_GETDETAIL Load Detail Data and Usage Decision for Inspection Lot
    see this link for list of bapis....
    http://www.sapbapi.com/bapi-list/
    thanks
    sagar
    reward me points if usefull

  • BAPI for Inspection lots

    Hi,
    I'm executing the following steps in development:
    Goods Receipt
    (Transfer Order Creation)
    Transfer Posting
    (Transfer Order Creation)
    The goal is to receive the goods in an "external" Storage Location and then repost it in an "internal" Location. The TOs are automatically generated per Customizing of the Movement Types.
    I'm using the BAPI  BAPI_GOODSMVT_CREATE.
    In case of automatical Inspection Lots (Material master, view Quality management) the Express document lands in my Wokplace Inbox with the following error message:
    Error during creation of transfer orders for material document 5000002931
    Date: 10.03.2009
    Time: 13:13:42
    Transf.reqmnt CP1 8000000325
    TRs relevant for inspection lots cannot be processed using this func.mod.
    By pressing 'Ctrl + F6', you can directly trigger subsequent processing
    Is anyone aware of the BAPI, which will work with the inspection lots?
    Thanks,
    Taras

    Hi,
    you should be able to create inspection lots when executing                 
    BAPI_GOODSMVT_CREATE. See for example the attached note 536769 that         
    is about wrong status in the inspection lot created in this way.                                                                               
    Please review your data used for testing this BAPI. 
    Best Regards,
    Arminda Jack

  • What is the BAPI for Inspection lot change - QA02??

    Hi Guys,
    Can anyone tell me plese, What is the BAPI for Inspection lot change - QA02?
    Thanks

    Hello,
    This BAPI suppose to be able to do that for you:
    BAPI_INSPLOT_SETUSAGEDECISION
    Best regards,
    Marcin

  • Bapi- inspection lot create

    hi everyone
    i look for a BAPI to create inspectionlot anybody knows this badi
    thanks
    Eyal_Rosenfeld

    Hi , The BAdI: INSPECTIONLOT_UPDATE is called when inspection lots are created and changed, and usage decisions are made and changed.
    Please do let me know wether you were able to proceed or not .I hope you can do it .
    cheers
    kp

  • Bapi to create quality notification with inspection lot and defects of char

    Hello experts,
    Can any body tell me how to create notification using inspection lot.
    regards
    Narendranath Reddy

    Hi Narendranath,
    Have you tried BAPI_QNOTIFICAT_CREATE? Based on inspection lot data, you should have the data you need to create a quality notification.
    Good luck.
    Best regards,
    Guus
    Edited by: Guus Jansen on Feb 2, 2011 10:05 AM

  • QM Scenario for Automatic Data Transfer to Inspection Lot

    Hi Experts,
    I have explained one QM scenario below. And also mentioned queries that I have in this. Could you please help me out on the same?
    There are 2 SAP systems, A and B.
    Process works as follows:
    -Delivery is created at A with B as recipient.
    -Automatically an IDOC is being created and send out with the quality data of the batch/inspection lot (electronic COA)  
    -In the background a workflow is triggered which transfers the data to the goods receipt from production inspection lot.
    In the system B, a subcontracting plant (DE08) will be created. During the subcontracting the materials provided to the subcontractor in real-life, however in SAP it will be brought to the subcontracting plant on a storage location specific to the subcontractor.
    Now the subcontracting service itself will be simulated by a process order (own order type is ZSUB). During the creation of the process order, a service purchase requisition will be automatically created which is connected to the process order. This purchase order will be transferred to A.
    After processing the purchase order, A will send service to B. B will do the process order confirmation. After process order confirmation an Inspection lot of type 04 will get generated automatically.
    Once the service delivery from A to B is done, the IDoc incl. the QM-data will arrive. Workflow will be triggered by inspection lot status CNF (Confirmed) – I0009. Now the workflow needs to identify the 04-'Goods receipt from production' of the process order and transfer the data into this inspection lot. The connection for this would be the purchase requisition number which is included in the process order. So the connection would be from purchase order number- purchase requisition-process order-inspection lot.
    Workflow template: WS03100078
    Business Object: BUS2045
    I have following queries. 
    1. Do I need to create Z-business object or the standard one will do the job?
    2. If I need to create Z-business object, then what changes will be required in coding?
    3. If I am using standard one, what all settings need to be done?
    4. What configuration needs to be done in the workflow template?
    Thanks & Regards,
    Mrunal

    Dear Swarup,
    The standard BAPI 's BAPI_INSPECTIONPLAN_CREATE Or ‘QAPP_CUST_IP_CREATE are not fulfilling my requirement .I need to create inspectiontion lot in R/3 system , which will invoke a process for creation of sample in another subsystem.But it is not very clear to me what a sample really means in QM, as i am an XI consultant .should a sample contain the recently generated Inspection lot number and its corresponding datas  ?

  • Table for Inspection Lot status

    Hi,
    In which table is the inspection lot status stored?
    Kindly suggest.

    Bapi
    BAPI_INSPLOT_GETSTATUS
    Tables
    JEST
    TJ02T
    1. Goto table QALS with PRUEFLOS = inspection lot
    2. Goto table JEST with OBJNR = QALS-OBJNR
    You will receive one or more records of status. Then - table TJ02T.

  • FM to create inspection lot same as in QA01

    Hi Experts,
    I need a function module to create inspection lot as in QA01.  Can you please help?
    Thanks,
    Vitz

    Hi vitish I will refer you to this wiki ..  created by Arpit shah
    http://wiki.sdn.sap.com/wiki/display/Snippets/FMforAutomaticInspectionLot+Creation
    According to the wiki
    the FM you are looking for is
    QPL1_INSPECTION_LOT_CREATE
    Also a BAPI for the same
    CO_QM_INSPECTION_LOT_CREATE.
    Also a forum entry for the same
    Inspection Lot creation Problem using FM QPL1_INSPECTION_LOT_CREATE
    Br
    Manthan.

  • Cancelled inspection lot (LTCA) field

    Hi,
    I have cancelled an inspection lot.I need the TABLE AND FIELD for status text.
    I found the structure is RMQEA and the field STATUSTEXT.But unable to find the table .
    Can help on this.
    Thank You,

    Use the following code as per ur requirement. I also had the same problem and i didnt find any table and field for that. But using this BAPI FM we can get the status of the lot......
    DATA: STAT LIKE BAPI2045SS OCCURS 0 WITH HEADER LINE,
            USTAT LIKE BAPI2045US OCCURS 0 WITH HEADER LINE,
            LANG LIKE BAPI2045LA OCCURS 0 WITH HEADER LINE,
            LOT TYPE QALS-PRUEFLOS.
    SELECT QUERY FOR QALS----
    LOT = ITAB-PRUEFLOS.
      LANG-LANGU = 'E'.
      CALL FUNCTION 'BAPI_INSPLOT_GETSTATUS'
                EXPORTING
                  NUMBER              = LOT
                  LANGUAGE            = LANG
              IMPORTING
                RETURN              =
                TABLES
                  SYSTEM_STATUS       = STAT
                  USER_STATUS         = USTAT
      IF STAT-SY_ST_TEXT = 'LTCA'.
        CONTINUE.
        ENDIF.
    Hope it will solve ur problem..........

  • Usage decision thru QA11 for forcibly give the UD code on a inspection lot

    All,
    I am trying to do an usage decision through QA11.Where in Batch for respective Inspection Lot we have to find the PD,SLED and NID there .
    when i forcibly give the UD code  on a inspection lot  and save this it will calculate the NEXT inspection Date.But some times the NID value is greater than SLED value after the UD.
    My requirment if NID is greater than SLED after UD then give a waring message.
    Any suggestions would be appreciated.
    Regards,
    Sanjit

    Hi Sanjit,
    You can just try the BAPI: BAPI_INSPLOT_SETUSAGEDECISION
    for more help, check the following helpful link:
    Re: Stock posting through mb1b
    Hope this will help you.

Maybe you are looking for