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

Similar Messages

  • FBE2: BAPI or FM for Changing and Deleting Payment Advice

    Hi,
    I am looking for BAPI or FM for changing & deleting payment advice as we can accomplish from FBE2.
    This is EC 6.0 upgrade issue for not be able to post using CALL TRANSACTION in background mode.
    I tried the below FM's in the Function group  FARMATCH, but all have them have the follwing code to select payment advice Header Table [AVIK].  
    SELECT * FROM AVIK INTO TABLE LT_AVIK WHERE (LT_WHERE) AND
                                                  AVSID LIKE '09%'.    "This is not the case for my requirement
    FARMATCH_CHANGE_PAYMENT_ADVICE               
    FARMATCH_DELETE_PAYMENT_ADVICE               
    I found another set of FM's  REMADV_CHANGE  &  REMADV_DELETE but I am not sure if i can
    achieve the same functionality of change and delete that we can do using FBE2.
    If anyone had similar scenario, Appreicate your feedback.

    Below is a sample code.
    I am able to delete the details....
    Take a look...:)...imp to add wait for few seconds
    REPORT z.
    PARAMETER: vbeln TYPE vbak-vbeln.
    PARAMETERS: fplnr TYPE fplnr.
    DATA: t_zfpla TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_zfplt TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    DATA: t_fpla_new TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_fpla_old TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_fplt_new TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    DATA: t_fplt_old TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    *DATA fplnr TYPE fplnr.
    IF NOT vbeln IS INITIAL.
      SELECT SINGLE rplnr INTO fplnr FROM vbak WHERE vbeln = vbeln.
    ENDIF.
    CALL FUNCTION 'BILLING_SCHEDULE_READ'
      EXPORTING
        fplnr = fplnr
      TABLES
        zfpla = t_zfpla
        zfplt = t_zfplt.
    LOOP AT t_zfpla.
      MOVE-CORRESPONDING t_zfpla TO t_fpla_old.
      t_fpla_old-updkz = 'D'.
      APPEND t_fpla_old.
    ENDLOOP.
    LOOP AT t_zfplt.
      MOVE-CORRESPONDING t_zfplt TO t_fplt_old.
      t_fplt_old-updkz = 'D'.
      APPEND t_fplt_old.
    ENDLOOP.
    BREAK-POINT.
    *CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
    TABLES
       fpla_new = t_fpla_new
       fpla_old = t_fpla_old
       fplt_new = t_fplt_new
       fplt_old = t_fplt_old.
    DATA fpltr TYPE fpltr.
    CALL FUNCTION 'BILLING_SCHEDULE_MAINTAIN'
      EXPORTING
      I_FPLA           =
      I_FPLT           =
       i_upd_fpla       = 'X'
       i_upd_fplt       = 'X'
        i_fplnr          = fplnr
    IMPORTING
      E_DATALOSS       =
      E_UPD_FPLA       =
      E_UPD_FPLT       =
       e_fplnr          = fplnr
       e_fpltr          = fpltr
    TABLES
        fpla_new = t_fpla_new
        fpla_old = t_fpla_old
        fplt_new = t_fplt_new
        fplt_old = t_fplt_old.
    WAIT UP TO 2 SECONDS.

  • Change Usage Decision

    Hi erybody.
    I need to change the Inspection Stage for several Inspection Lots. But this Field is disable.
    This is my scenario.
    Problem:
    1. The supplier create ASN's with lead time around 6 weeks. This
    material is shipped by sea.
    2. The inspection lot is created with actual Inspection Stage
    (IMR). "Skip Lot Automatic"
    3. Several Inspection Lots were created by the same way
    4. The last Inspection Lot is created urgently and is shipped by air.
    5. For the last Inspection Lot was made the Good Receipt from the
    warehouse.
    6. The material is rejected in Production Line.
    7. The quality level is changed in order to check all the pending
    Deliveries.
    8. But for all lots that was created the Inspection Stage is not
    changed.
    How can I change the Inspection Stage for pending Deliveries?
    Thanks in advance.

    As Inspection lots are already created, SAP will not change the stage for them. Any new inspection lot created will go though stage change based on DMR.
    For existing inspection lots
    Add un-planned  MIC in QE02 transaction, This will prevent Auto-UD for skip lots.

  • Automatic TO Creation for QM Usage Decision

    Dear Gurus
    We all know WM TO to releasing stock from QI to UU or return goods to vendor can be created automatically,
    My question is, when the usage decision is split into two, some material going into stock, and some returned to vendor. for return to vendor, SAP will do automatic transfer, but for material go into stock, SAP is not release Q status in WMS to unrestricted (blank), I have set the movement 321 to create TO automatically and post into same bin.
    FYI, if the transaction is separated, SAP perform well (transfer Q to unrestricted done automatically and return to vendor also done automatically)
    Is there any solution for this problem?
    Thanks and Regards
    CJ Lee

    Hi,
    In case of a usage decision for a partial quantity, it is not possible to create the TO for the generated posting change notice automatically. This is only possible when the full quantity is released. The same happens if you release a partial quantity and post the rest using a different stock posting. The reason is, there needs to be a user decision, which part of the quantity has to be posted, this is necessary for example when the quantity is distributed in the warehouse over many storage bins. But even if the full quantity is on one storage bin, there is no automatic TO creation. You can see this also in the online processing LT05), in case of partial quantities you have to enter the selected quantity in the quant list, for a full posting this is not necessary.
    Hope this helps.
    Regards,
    Sinéad Curran

  • Unable to change stock posting date at usage decision while inspecting HUs

    If we were using materials without WMS it's simple: thereu2019s a button in the screen for stock posting by which we're able to change document date and posting date; but we're using WM and the screen is slightly different: the button I'm referring it's gone!
    So, how to change the posting date at posting stock in QA11 when we're using handle units? Some end-user told me that in version 4.7 this was possible. I don't think so ...unless there was something customized at WM IMG...or maybe they were using a USER EXIT to bring a pop-up window for this (I'm starting to believe that this was implemented..). This is the first time I work with HUs, so I don't know how to manage this.
    Anyone?
    Seba
    Edited by: Sebastian Sniezyk on Apr 3, 2009 10:16 AM

    I solved it in this topic: Changing posting date at usage decision for handle units. How?

  • BAPI or FM for changing Purchase Order

    Hi,
    Does anybody know a BAPI or FM to change Purchase Order item details. I looked for  a BAPI but only found for creating and listing.
    thanks.

    I think this is becuase the BAPI for PO change has not been "released". If you use transaction BAPI, then click the filter button, then select "All", the PO change bapi will appear int he MM-> purchasing-> purchase order hierarchy. (BAPI_PO_CHANGE)
    Although it is not officially "released", neither is the function module to do the same task. We use the BAPI on a regular basis, and it works fine. I think unreleased just means you will get no support if you use it, and SAP can change it at any time.
    I am not sure what makes a BAPI go from un-released to released...

  • BAPI or FM for CHANGING Internal Order

    Hi all,
    I am looking for a BAPI or Function module for changing a End of Work field (DATE field) for that Internal Order.  Transaction for internal order KO02
    Please suggest.
    Edited by: Anu on Jul 6, 2009 3:30 PM

    Look at [BAPI_INTERNALORDER_SAVEREPLICA|https://forums.sdn.sap.com/search.jspa?objID=c42&q=BAPI_INTERNALORDER_SAVEREPLICA] (parameter MASTERDATA field DATE_WORK_ENDS)
    Regards,
    Raymond

  • Bapi/Fn Module for changing Routing

    Hi All,
    Currently I am working on creation and change of Routing using BAPI's . I could find the routing create bapi BAPI_ROUTING_CREATE and it is working fine.
    Can some one help in identifying the BAPI/Function Module for modifying /changing the Routing. For changing details in routing currently we are using t code CA02.
    Thanks ,
    Vengal Rao.

    Hi Joerg,
    Thanks for the function module. A small issue I am facing. when executing it some data in it I am getting error message
       as follow: HIGH_MSGTY   -   E , ERROR_FROM     -   1, ERROR_TO       -      1, OBJ , D_IND         -  0000000001 .
    Please guide me how to identify this error message.
    Thanks,
    Vengal Rao.

  • BAPI or FM for changing billing plans of a sales order

    Hi guys,
    I tried the FMs BILLING_SCHEDULE_SAVE and BILLING_SCHEDULE_MAINTAIN for updating the billing plan of an SO but it doesn't work. Tried adding coomit work after calling the FMs but didn't affect the results.
    Can anyone provide me with a BAPI or FM for updating the billing plan?

    Below is a sample code.
    I am able to delete the details....
    Take a look...:)...imp to add wait for few seconds
    REPORT z.
    PARAMETER: vbeln TYPE vbak-vbeln.
    PARAMETERS: fplnr TYPE fplnr.
    DATA: t_zfpla TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_zfplt TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    DATA: t_fpla_new TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_fpla_old TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
    DATA: t_fplt_new TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    DATA: t_fplt_old TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
    *DATA fplnr TYPE fplnr.
    IF NOT vbeln IS INITIAL.
      SELECT SINGLE rplnr INTO fplnr FROM vbak WHERE vbeln = vbeln.
    ENDIF.
    CALL FUNCTION 'BILLING_SCHEDULE_READ'
      EXPORTING
        fplnr = fplnr
      TABLES
        zfpla = t_zfpla
        zfplt = t_zfplt.
    LOOP AT t_zfpla.
      MOVE-CORRESPONDING t_zfpla TO t_fpla_old.
      t_fpla_old-updkz = 'D'.
      APPEND t_fpla_old.
    ENDLOOP.
    LOOP AT t_zfplt.
      MOVE-CORRESPONDING t_zfplt TO t_fplt_old.
      t_fplt_old-updkz = 'D'.
      APPEND t_fplt_old.
    ENDLOOP.
    BREAK-POINT.
    *CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
    TABLES
       fpla_new = t_fpla_new
       fpla_old = t_fpla_old
       fplt_new = t_fplt_new
       fplt_old = t_fplt_old.
    DATA fpltr TYPE fpltr.
    CALL FUNCTION 'BILLING_SCHEDULE_MAINTAIN'
      EXPORTING
      I_FPLA           =
      I_FPLT           =
       i_upd_fpla       = 'X'
       i_upd_fplt       = 'X'
        i_fplnr          = fplnr
    IMPORTING
      E_DATALOSS       =
      E_UPD_FPLA       =
      E_UPD_FPLT       =
       e_fplnr          = fplnr
       e_fpltr          = fpltr
    TABLES
        fpla_new = t_fpla_new
        fpla_old = t_fpla_old
        fplt_new = t_fplt_new
        fplt_old = t_fplt_old.
    WAIT UP TO 2 SECONDS.

  • Usage decision and inspection plan

    Hi,
    1. Once Usage decision has been done, can we still change it? how can i set that it can be changed?
    2.Is it possible to create an Inspection plan for a group of material? for example, I just need to maintain 1 Inspection plan for 30 material. something like it can be group like reference operation set? if yes how? if no, why?
    Thank you so much,
    raymond

    Hi
    Hi,
    1. Once Usage decision has been done, can we still change it? how can i set that it can be changed?
    Yes UD  can be changed anytime but you can not change the stock postng.Also for history in QM view tick on "document req"
    2.Is it possible to create an Inspection plan for a group of material? for example, I just need to maintain 1 Inspection plan for 30 material. something like it can be group like reference operation set? if yes how? if no, why?
    Yes this is possible through QP01/02 --->in header there is one tab"Material assignment" here you can enter
    Group conter (same say "1" ) material & plant.
    Same Inspection plan is reffered to the multiple materials.You can add as materials possible.
    But remember that Unit of measurement of all materials must be same.
    Sujit

  • Change the status of inspection Lot from 'Created' to 'Released'.

    Hi,
    I am having the below scenario.
    We have QM active in our plant. In the material master records we assign two inspection types '01' - Goods receipt insp. for purchase order &  '08'- Stock transfer inspection. I didn't make any inspection plan (QP01).
    We make a Purchase order ( say Qty=10)with excisable tax code. While doing GR (MIGO) for the purchase order, we capture and post Excise Invoice. Later, Usage Decision is done using QA11(7 qty to unrestricted stock type & 3 Qty to Blocked Stock). Later, i want to send the blocked stock to the vendor, I am transferrring the material from Blocked stock to QI stock type using MT349. But, system is showing the below warning message : 'Preparation for the quality inspection could not be comleted. -Message no. QA187'.
    Please let me know how we can change the status of the inspection lot from 'Created' to 'Released' so that I can proceed further making the Return delivery to vendor using T.Code: MIGO.
    Thanx in advance.
    Regards,
    Phani

    Hi
    Check the Usage of the Task list.
    Check the date of creation of task list must be prior to creation of lot.
      Go to QA02
    Inspection specification > Assign task list by click on Task/ specification
    Go to Sample, do the SAmple calculation
    Save
    Check whether lot status is Rel
    Regards
    Sujit

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

  • Need bapi or FM for changing rebate agreement stats in MEB3

    Hi All,
    I s there any Bapi's or Function modules which are used to change status in MEB3 field Agreement Status from open to " Settlement is being checked for release"
    Thanks in Advance.
    Venkat

    Hi Venkat,
    Try using FM SD_BONUS_STATUS_SET.
    Regards,
    Babul.

  • Details for Physical Sample drawing against inspection lots

    Dear Gurus,
    Is there any report available to show when sample was created and when released(drawn).
    Regards,
    Varma

    You can use QPRS table.
    if you want T code then create Querry using SQVI  make a T code

  • Usage Decision : Mov 102

    Hello.
    When i do an usage decision in inspection lot,  can i do movement 102 to return goods. ?
    I have a problem: when i receive goods from vendor, and i do migo to enter goods.. In QM will generate inspection lot.
    But after, the employes review goods, and sometimes some handle units are wrong, and we have to reject this HU.
    Is it possible to do mov. 102 in usage decision?
    How can i do this, without affect statistics in QM.
    Regards.
    Antonio

    Hi,
    You can do 102 i.e. GR cancellation till the Inspection lots has not been processed by QM inspector.
    If this has been done and stock has been posted to unrestricted stock. You can not take it back to Quality Stock as standard SAP.
    You need to apply a OSS note for the same. There are many such posting for this scenario.
    To cancel the Inspection lot and GR posting after results recording
    Also if you want to go standard way, Just visit SAP help
    http://help.sap.com/saphelp_47x200/helpdata/en/af/b9b3341a933f50e10000009b38f83b/frameset.htm
    Inspection Lot Completion ---> Stock Postings -
    > Stock posting reversals.
    Nitin

Maybe you are looking for