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

Fetching data in Script for CO_STXXT data element

Hi,

I am trying to fetch data from transaction cc03 for SAPScript. There is a field called "Status" whose data I want to fetch.

When I click F1 , I get the data element from technical specification as CO_STTXT and structure as CAUFVD.

I click on data element CO_STTXT, and go to where used option.

But that data element is not associated with any table field but with some structures.

If I know the table name I can extract the data from the table by declaring the table in program but how do I fetch the data whose data element is associated with only structures but not with any tables ?

Points will be awarded...

Thanks.

Tushar

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2005 at 10:54 PM

    Use FM STATUS_TEXT_EDIT.

    CALL FUNCTION 'STATUS_TEXT_EDIT'

    EXPORTING

    FLG_USER_STAT = 'X'

    OBJNR = CAUFV-OBJNR

    ONLY_ACTIVE = 'X'

    SPRAS = SY-LANGU

    BYPASS_BUFFER = 'X'

    IMPORTING

    LINE = W_STTXT

    EXCEPTIONS

    OBJECT_NOT_FOUND = 01.

    where w_sttxt is the status and CAUFV-OBJNR is the object number for the order from view CAUFV.

    enjoy! Guess points are in order! 😊

    Rishi

    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.