KO03- system status
My report extracting all data in to text file and output to ALV. Internal order number is in Selection screen(Range).
My requirement is,
1) If Order number is in selection screen, check the
system status filel in KO03 t.code.
2) if System status is TECO do not extract the data for this order.
3)Display the message the message(Order is already closed) in selection screen.
4) System status is not equal to TECO, extract data
Pls help me
Chidanand Chauhan replied
Below is the Logic to fetch the data regarding the status TECO.
Use the order number(AUFNR) and go to Table AUFK. Pass AUFNR and get the Object NUmber (OBJNR). Now use that OBJNR and pass it inthe table JEST and check if JEST-STAT = 'I0045' and INACT <> 'X'. That means it is TECO.