cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching data in Script for CO_STXXT data element

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)