Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Released Process Order

Former Member
0 Likes
1,096

Hi All,

From Which table we can fetch the RELEASED Process Orders.

Regards

Deekshitha.

3 REPLIES 3
Read only

Former Member
0 Likes
824

Hi Deekshitha,

Just by joining the tables AUFK and JEST you will get all released process orders.

select aAUFNR bstatus into table ITAB from AUFK as a join JEST as b

on aobjnr = bobjnr

where a~aufnr in s_aufnr and

b~status = 'REL'.

Check the field name in JEST table (status).

~from forum.

Reward points if useful.

Thanks

Aneesh.

Read only

Former Member
0 Likes
824

Just Use function module :

Status_read by passing your aufnr value and you will get list of status from JEST Table..

main tables are : AUFK,JEST.

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
824

Hi Deekshitha

There are 2 scenarios that i can see here :

1. I assume that you have a list of orders with you say in s_aufnr and you want to

check which one of those have a system status of REL i.e. Released.

a. Goto table AUFK to get the list of object numbers(OBJNR) for all the orders

b. Use FM 'STATUS_READ_MULTI' for getting all the statuses for the orders.

CALL FUNCTION 'STATUS_READ_MULTI'

  • EXPORTING

  • CLIENT = SY-MANDT

ONLY_ACTIVE = 'X'

  • ALL_IN_BUFFER = ' '

  • GET_CHANGE_DOCUMENTS = ' '

  • NO_BUFFER_FILL = ' '

TABLES

OBJNR_TAB = gt_objnr

status = gt_status

  • JSTO_TAB =

  • JCDO_TAB =

  • JCDS_TAB =

This is an unrealeased FM from SAP but can always be used to read data.

c. Once you get the list of object numbers with statuses , for each object

number read table gt_status to see if it has a STAT = 'I0002'. If yes then this

order is a released process order . We take I0002 value to compare

because if you see table TJ02 that has all system status values , you will see

that I0002 stands for 'REL' which means released.

In this way you will be able to get all the object numbers and corresponding

orders which have a status 'REL'.

2. The second scenario is where I assume you do not have a list of orders with

you and you still want to find out the orders which have a status of 'REL'.

In this case:

a. Goto table JEST and get all the object numbers for which STAT = 'I0002' and

INACT NE 'X'.

b. Goto table AUFK and for the object numbers obtained above and you can get

the corresponding order numbers(AUFNR).

I hope this helps. If so please reward some points .

Cheers

shivika