Friday, November 30, 2007

Production Order Status in PP

The prerequisite to DLFL an order is that the cost balance is zero. This can be achieved either by not posting any activity to
the order, or by settling the cost. Settlement can only occur once the order has been received into stock (DLV), so if there is a
problem TECO is used to override that prerequisite.

In short. TECO is not needed to DLFL an order. It is only needed if you want the order to settle and eventually archive
because you do not have the status DLV (received into stock).

Production order status table

System Status Management is a central function for all modules, not only logistics but financial modules too. Wherever you have the system status management, which is, you have the system statuses:

CRTD - Created,
REL - Released,
PCNF - Partially Confirmed,
CNF - Confirmed,
PDLV - Partially Delivered
DLV - Delivered
etc...

System stores these object statuses at the JEST table. In this table, Object ID (field OBJNR) is the key. And every object has different number ranges for the Object ID, which is automatically given by the system.

Examples for PP are,
when you create a production order, you can see the System statuses at:
1. Order header
2. Order operations
3. Order components.

As you may already know, Order header data is in table AUFK, Order operations data is in table AFVC, and Order components data is in table RESB.

If you check these tables, you will see the Object Number field in these tables, with prefixes OR for header, OV for operations and OK for components.

For example:
1. If I have the "order number" 1000102, in table AUFK, I will have the Object number OR000001000102. (because length of order number data type is 12 chars, leading zeros are added by system)

2. If the "Routing number of operations in the order" is 83 and the Operation counter number is 1 for an order operation, in table AFVC, I will have the object number OV000000008300000001. (because length of "Routing number of operations in the order" data type is 10 chars, and length of Operation coounter number data type is 8 chars, leading zeros are added by system accordingly.)

3. If the Reservation number is 139 and Reservation item number is 1 for an order component, in table RESB, I will have the object number OK00000001390001. (because length of Reservation number data type is 10 chars, and length of Reservation item number data type is 4 chars, leading zeros are added by system accordingly.)

Now I can check the table JEST with these keys and I can get the statuses for my order header, operations or components.

If you want statuses of an order:
1. Find the Header object number in table AUFK, using order number. (or alternatively you can just add OR to the order number)
2. Go to table JEST with the Header object number.

If you want statuses of an order component:
1. Find the Reservation number(RSNUM) of the order at table AFKO, using order number.
2. Find the Reservation item number of the component at table RESB using reservation number. And get the Object number of the component.
3. Go to table JEST with the Component object number.

If you want statuses of an order operation:
1. Find the "Routing number of operations in the order"(AUFPL) of the order at table AFKO, using order number.
2. Find the Operation counter number of the operation at table AFVC using "Routing number of operations in the order". And get the Object number of the operation.
3. Go to table JEST with the Operation object number.

Note: Bear in mind that the statuses you will find in table JEST also has another field "Indicator: Status Is Inactive", which states that the object had the status before, but it is inactive at the moment.

For example:
When you first create a production order, it will have the status (I0001 - CRTD - Created) in table JEST. And it won't have any entry in table JEST for the status (I0002 - FREI - Released).

When you release the order, it will have both CRTD and FREI statuses, but the CRTD status will be marked Inactive. Because, when you run the Release process for a production order, it will Activate the FREI status (create entry in JEST) and Deactivate the CRTD status (modify th entry in JEST and change the "Indicator: Status Is Inactive" field).

No comments:

Blog Archive