Skip to Content
0
Former Member
Jun 23, 2008 at 06:10 AM

problem in FM STATUS_TEXT_EDIT

889 Views

Gud mornin ppl,

I am facing a problem while calling the function module

STATUS_TEXT_EDIT. This function module is used to

get the status of the production order, for which we require

to pass the object no OBJNR of tat production order.

I had called the FM in my user exit as follows

CALL FUNCTION 'STATUS_TEXT_EDIT'

EXPORTING

CLIENT = SY-MANDT

*FLG_USER_STAT = ' '

objnr = objnr

ONLY_ACTIVE = 'X'

spras = EN

  • BYPASS_BUFFER = ' '

IMPORTING

*ANW_STAT_EXISTING =

*E_STSMA =

line = status.

*USER_LINE =

*STONR =

STAT = STATUS.

IF stat NS 'TECO'.

MESSAGE 'Production order cannot be processed' TYPE 'E'.

ENDIF.

In the above code OBJNR = OR000010006509

and the result is STATUS = TABG FMAT VOKL ABRV CHPF PLOS

But when i execute the FM thru se37

I pass CLIENT = 777

OBJNR = OR000010006509

ONLY_ACTIVE = X

SPRAS = en

and the result i get is

LINE = TECO MSPT PRC BCRQ ILAS SETC

I am not able to understand why both results are different.

Kindly help me out wid it ..........