Skip to Content

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

Segregation of Production orders based on System status


Hi Experts,

I need your inputs to our requirement, We are sending Production orders to third party tool (TPT)for detailed scheduling, so Production Orders based on

Order status need to be classified and send in such way to TPT.

Requirement is

    Just REL or CRTD (No Confirmations carried out, no TECO, NO CLSD)             = OPEN

    PCNF or PDLV or GMPS (will be accompanied with REL only No CLSD, TECO) = WIP,

    CLSD or CNF, or DLV or TECO                                                                      = CLOSE

So we are fetching the list of order from database tables not using MD_Stockrequirement_List function module,

Is there any way to call BAPI and then use status profiles to  classify the list of production orders we are getting now based on our logic.

or need to pass this list of Production orders to JEST table and do some coding to get this classification. But using JEST table its difficult for coding to get the requirement satisfied, because for one Production order there will be many order status as REL PCNF PDLV GMPSPRCMACM etc.

Please provide inputs.

Thanks

Naga

replied

Nag,

You can use FM STATUS_TEXT_EDIT to get the status details. Pass AUFK-OBJNR as the OBJNR in this FM.

From the status text, there are CS (contain string) and NS (does not contain string) statements in ABAP that can help you segregate based on your logic.

Best Regards,

Rajen

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