cancel
Showing results for 
Search instead for 
Did you mean: 

03 inspection lots for co-products?

Former Member
0 Kudos

Greetings Experts,

How do I generate 03 inspection lots for co-products?

All master data and material master settings are correct.  No 03 Inspection Lots generated.

I've tried adding the 03 to the Process Material but that generates an Inspection Lot for the Process Material only.

Has anyone found a solution for this?  It's a critical requirement for the Client.

Regards,

Kathy

Accepted Solutions (1)

Accepted Solutions (1)

former_member211618
Contributor

Hi,

   As per my understanding Co products will generate after completion of products while creating GR not in in process so we have to use 04 inspection type (Finished product inspection) instead of 03 in process inspection. Production order will create to header material only so with respect to PO in process inspection lot will create there is no were any relation with sub components level.

Former Member
0 Kudos

Yes, 04 inspections always create inspection lots on GR.  This isn't an issue.

The question is how to generate an In-Process inspection lot for each co-product.

former_member242092
Active Participant
0 Kudos

Hi Kathy,

There is no issue in lot creation after production with 04 but its not possible to have lot for in-process 03.

Please refer link and if you find solution please update on forum -

http://scn.sap.com/thread/1778810

Regards,

RP Jaiswal

Answers (4)

Answers (4)

duarte_melim
Explorer
0 Kudos

Hi Kathy,

I've solved this via ABAP and with a new inspection type 33 I set up. This inspection type was created with the origin 89.

Implement exit QPL10001, which is called when the 03 inspection lot is created by release of the production order.

i_qals to e_qals.

  e_active =
'X'.

 
check i_qals-herkunft = '03'. "only for in-process inspection

function 'Z_QM_CREATE_INSP_LOT' in BACKGROUND TASK

   
exporting
i_qals = i_qals.

The Z function code is:

z_qm_create_insp_lot.

*"----------------------------------------------------------------------

*"*"Interface local:

*"  IMPORTING

*"     VALUE(I_QALS) TYPE  QALS

*"----------------------------------------------------------------------



 
data: ls_order_objs type bapi_pp_order_objects.

 
data: lt_comp type table of bapi_order_component,

        ls_comp
type bapi_order_component.

 
data: l_aufnr_no_zero type aufnr.



 
data: ls_qals type qals.

 
data: ls_rmqed type rmqed.

 
data: out_subrc like sy-subrc,

         out_qals     
like qals,

          out_prueflos 
like qals-prueflos.



  ls_order_objs-
header = 'X'.

  ls_order_objs-components =
'X'.

 
call function 'BAPI_PRODORD_GET_DETAIL'

   
exporting

     
number                 = i_qals-aufnr

      order_objects          = ls_order_objs


  
tables

    
component              = lt_comp.



 
loop at lt_comp into ls_comp where item_number ne 0 and movement_type eq '101'.





    ls_rmqed-dbs_steuer =
'01'.

    ls_rmqed-dbs_flag   =
'X'.

    ls_rmqed-dbs_nochg  =
'X'.

    ls_rmqed-dbs_subrc  =
'X'.



    ls_qals-mandant = sy-mandt.

    ls_qals-werk = i_qals-werk.

    ls_qals-art =
'33'.

    ls_qals-herkunft =
'89'.

    ls_qals-matnr = ls_comp-material.


    ls_qals-aufnr = i_qals-aufnr.

    ls_qals-lmengeist = ls_comp-req_quan.

    ls_qals-losmenge = ls_comp-req_quan.

    ls_qals-gesstichpr = ls_comp-req_quan.

    ls_qals-LMENGEPR = ls_comp-req_quan.



   
move i_qals-aufnr to l_aufnr_no_zero.

   
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'

     
exporting

       
input  = l_aufnr_no_zero

     
importing

       
output = l_aufnr_no_zero.




   
call function 'QPL1_INSPECTION_LOT_CREATE'

     
exporting

        qals_imp              = ls_qals

        rmqed_imp             = ls_rmqed

    
importing

       e_prueflos            = out_prueflos

       e_qals                = out_qals

       subrc                 = out_subrc


              .

   
if out_subrc is initial.

      out_qals-prueflos = out_prueflos.

      out_qals-lmengeist = ls_comp-req_quan.

      out_qals-losmenge = ls_comp-req_quan.

      out_qals-gesstichpr = ls_comp-req_quan.



     
call function 'QPL1_UPDATE_MEMORY'

       
exporting

          i_qals  = out_qals

          i_updkz =
'I'

          i_rmqed = ls_rmqed.

*  I_DUMMY       =

     
call function 'QPL1_INSPECTION_LOTS_POSTING'

       
exporting

          i_mode =
' '.



     
call function 'BAPI_TRANSACTION_COMMIT'

       
exporting

         
wait = 'X'.



   
endif.



 
endloop.

the inspection lots for co-products are then created at the same time as the 03 inspection lot.

Don't forget that inspection plans must be set up for the co-products, as opposed to what happens to header material, where we create inspection operations in PP task list.

Best Regards,

DM

former_member211618
Contributor
0 Kudos

Hi Kathy,

    IN PROCESS inspection will create only for Header material with routing only, In process inspection is not possible for Co product materials, As suggested by Manish add inspection parameters for particular operation(generate Co product in practical) in routing/ use inspection point with Enter text field write as co product while inspecting co product for particular inspection point.

As i said in my previously, as per stranded SAP Co products will generate after completion of products while creating GR only there is no other chance to generate Co product in in process in SAP .          

former_member184536
Active Contributor
0 Kudos

Hi Kathy

03 inspection type is used for in-process inspection so quality parameters are attached only those operation for which you want to do inspection. and you can assign quality parameters to that operation in which co-product is assigned.

And if you want the inspection of co-product when GR is done against Production/Process order then you have to activate 05 inspection for that material as by product is produced against 531 movement type which is assigned to lot origin 05.

regards

Manish

Former Member
0 Kudos

Thank you all for your responses BUT....GR inspections are working fine.

The requirement is to perform IN-PROCESS testing for each of the co-products.  I need to find a way to automatically generate an IN-PROCESS inspection lot for each.

I've implemented co-products many times but this is my first client who requires IN-PROCESS inspections for them.

nitin_jinagal
Active Contributor
0 Kudos

Hi Kathy,

Considering all your config settings and master data creation correct, I would suggest you to use 05 inspection type for Co-product materials which implies inspection for other GR.

This should serve your purpose. Kindly check and revert back.

Just want to ask: Why are you using 03 inspection type? Pl mention few words to understand the scenario better. And see if you have maintained the inspection characteristics at routing level for respective operations if 03 is required in your scenario??

Regards,

ntn