on 06-04-2014 1:53 PM
Hi,
i have a question regarding inspection lots.
1. If I´m working with inspection type 03, why the system status of the inspection doesn't change, if I set the process order to "Technical completion"?
2. How can I avoid, that "technical completion" within a process order isn't possible, if the inspection lot (04) has still the status Released?
thanks a lot
Hi Maike,
Answering for Point2: i.e., To prevent Order TECO , while the Lot status is REL
Take help of your ABAPer and follow these steps.
You need to use User-Exit IWO10004. Here in the include ZXWO1U03 you need to write the logic.
Logic 1st part:(To get the Lot Status)
Declare a variable for Lot Status say V_STAT (Char4).
Psss Oder number ( field CAUFVD_IMP-AUFNR ) and get the status of the Inspection Lot using select statement with table joins of QALS, JEST, TJ02T. QALS and JEST are joined by OBJNR .whereas JEST and TJ02T should be joined by equating fields STAT to ISTAT. Through this you will get the Lot Status into variable V_STAT.
2nd part (Raising Exception)
Give this code:
If V_STAT <> 'REL' .
MESSAGE: Order Can not be completed while Insp Lot Status is REL.' TYPE 'I'.
RAISE COMPLETION_REJECTED.
ENDIF.
Note:
I'm sure you can achieve this way, but ABAPer has to add more logic in Step1 , to eliminate multiple Status values coming from Select statement.
Jogeswara Rao K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maike,
Read the 1st part in the previous answer like this
First get the Inspection lot number (PRUEFLOS) from QALS table by passing Order number ( CAUFVD_IMP-AUFNR ) to the AUFNR field of QALS table.
Now pass this lot number to BAPI ' BAPI_INSPLOT_GETSTATUS' and get the Lot Status directly.
This will be more convenient to your ABAPer.
Regards
Jogeswara Rao K
There is not stock controlled by QM with an 03 inspection lot. You can almost consider an 03 lo as "for information only". Typically, we run an automatic UD batch job for the 03 lots that "close" the 03 by making the UD for any lot where the order has a TECO status.
You'll have to test it but I believe to TECO the order you have to have at least one characteristic value recorded. After that, I don't think it matters.
Craig
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.