Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

KO03- system status

Hi Experts

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

Tags:
Former Member
replied

Hi Kumar,

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. 

Thanks,

Chidanand

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question