Skip to Content
author's profile photo Former Member
Former Member

Using PO status checks in own program of CO11.

Hi everybody,

I'm currently working on program and I'd like to use the standard status checks sap uses to check the status of a Purchase Order. If you look at the CO11 (confirmations of PO) and you enter a PO which is not released yet, you get an error message. This is one of the checks i'd like to use.

If I look at program SAPLCORU and specific to screen 100 and it's PAI, I see alot of modules that are used to check the status.

Question: is there an easy way to check the status of a PO like in CO11 or do you have to copy all the code that is executed in the mentioned screen/pai?

In case the answer is yes to the easy way, uhm, what IS the easy way then? 😊

Cheers and thanks

Laurens

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Feb 01, 2005 at 01:45 PM

    Did you mean Purchase order or Production order as CO11 (and CO11N)is for Production Order?

    For Production Order you can use AUFK for object number, then check table JEST for statuses. For "decoding" statuses you can use transaction BS23.

    JEST contains both system and user statuses.

    Regards,

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 01, 2005 at 01:57 PM

    try this FM <b>STATUS_TEXT_EDIT</b> by input the object number from AUFK.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2005 at 01:59 PM

    Hi Laurens,

    in this particular example, there's an even simpler way to check whether a PO is or not released.

    Access table EKKO and retrieve field FRGKE. This will give you the release status. If you want to check if this status means "released", access table T16FB with field FRGKE = EKKO-FRGKE. Now, if field T16FB-KZFRE is checked (with an 'X'), then your purchase order is released, and it's unreleased otherwise.

    I hope it helps. BR,

    Alvaro

    PS: Oops, I think I'm mistaken. I thought PO meant "purchase order". Sorry guys!!

    Message was edited by: Alvaro Vidal-Abarca

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2005 at 02:05 PM

    Oeps, sorry, it had to be PRODUCTION ORDER instead of Purch. Ord. Switching from one project to the next 😉

    Sorry.

    Cheers

    LS

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.