Application Development and Automation 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: 
Read only

user status not displaying while using the FM STATUS_TEXT_EDIT

Former Member
0 Likes
2,445

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
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,863

Hello Souparnika Devi.

     Which user status are your trying to fetch?

     How did you fetch lv_objnr value?

Regards.

13 REPLIES 13
Read only

Former Member
0 Likes
1,863
Read only

0 Likes
1,863

Also refer to the below link too

Regards,

Rafi

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,864

Hello Souparnika Devi.

     Which user status are your trying to fetch?

     How did you fetch lv_objnr value?

Regards.

Read only

0 Likes
1,863

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

Read only

0 Likes
1,863

Souparnika Devi,

     You can use BAPI_BUS2001_GET_STATUS to get the user status.

Regards.

Read only

0 Likes
1,863

hi Arun,

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

Read only

0 Likes
1,863

PROJ table - PSPID field

Read only

0 Likes
1,863

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

Read only

0 Likes
1,863

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?

Read only

0 Likes
1,863

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

Read only

0 Likes
1,863

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.

Read only

0 Likes
1,863

What input you are giving in CJ20N tcode?

Can you paste the screenshot?

Read only

0 Likes
1,863

Hi Arun,

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

Regards,

Souparnika