Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

user status not displaying while using the FM STATUS_TEXT_EDIT

Former Member
0 Kudos

Hi all,

am using the STATUS_TEXT_EDIT FM to get the user_status but it is not cmg.

CALL FUNCTION 'STATUS_TEXT_EDIT'
   EXPORTING
    CLIENT                  = SY-MANDT
*   FLG_USER_STAT           = ' '
     objnr                   = LV_OBJNR
    ONLY_ACTIVE             = 'X'
     spras                   = sy-langu
*   BYPASS_BUFFER           = ' '
  IMPORTING
  * ANW_STAT_EXISTING       astex
*   E_STSMA                 = LV_STSMA
*   LINE                    = LV_STATUS1
    USER_LINE               = LV_STATUS
*   STONR                   =
  EXCEPTIONS
    OBJECT_NOT_FOUND        = 1
           .


The code is shown above. I want the value of lv_status.


Regards,

Souparnika

1 ACCEPTED SOLUTION

karun_prabhu
Active Contributor
0 Kudos

Hello Souparnika Devi.

     Which user status are your trying to fetch?

     How did you fetch lv_objnr value?

Regards.

13 REPLIES 13

former_member210252
Contributor
0 Kudos

0 Kudos

Also refer to the below link too

Regards,

Rafi

karun_prabhu
Active Contributor
0 Kudos

Hello Souparnika Devi.

     Which user status are your trying to fetch?

     How did you fetch lv_objnr value?

Regards.

0 Kudos

Hi Arun,

am supposed to bring a pop up in cj20n t-code so for tht i need to read the user status value. wic ever user status user is selecting it can be fetched with the help of this FM. lv_objnr m fetchng it frm proj table. M able to gt tht stsma and line value also. problem is with the user_line only.

Regards,

Souparnika

0 Kudos

Souparnika Devi,

     You can use BAPI_BUS2001_GET_STATUS to get the user status.

Regards.

0 Kudos

hi Arun,

can u pls tell me how we ll get ths project definition.

0 Kudos

PROJ table - PSPID field

0 Kudos

I mean what field i have pass to this in order to get the PSPID value.

0 Kudos

You have to pass the project number. For example, we follow a specific convention like I5/9999.

It differs between implementations.

What input you give in CJ20N?

0 Kudos

in my case m selecting the proj defn nly in cj20n nd m chngng the user status.

0 Kudos

In CJ20n, if you press F1 on Project Def field, it will show the technical information of that field (PROJ-pspid).

You just pass PROJ-pspid to BAPI parameter PROJECT_DEFINITION.

0 Kudos

What input you are giving in CJ20N tcode?

Can you paste the screenshot?

0 Kudos

Hi Arun,

Thanks for the response. BAPI wic u suggested is working fine.

Regards,

Souparnika