cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the status of WBS and Network/Activity?

Former Member
0 Kudos

I want to check whether a WBS or a Network/Activity is released or not released, how can I get the status in program?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. Get the object number (PRPS-OBJNR) for WBS element(PRPS-PSPNR/ PRPS-POSID) from PRPS table.

2. Pass object number obtained in step 1 to function module STATUS_READ. Tables Parameter STATUS of FM contains all the status of WBS.

3. The description of table parameters STATUS-STAT can be found in table TJ02T-TXT04 /TXT30. Check which are the status are for released in this table.

Former Member
0 Kudos

How about the status of Network/Activity?

Former Member
0 Kudos

Hello

Goto table AUFK with activity/network number and get the object number AUFK-OBJNR.

Then as say Ashwin Sonkusare use FM STATUS_READ etc ...

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

use this FM 'AIP9_STATUS_READ'

CALL FUNCTION 'AIP9_STATUS_READ'

EXPORTING

I_OBJNR = itab-objnr

  • I_SPRAS = SY-LANGU

IMPORTING

E_SYSST = com.

Former Member
0 Kudos

Hi,

Use BAPI BAPI_BUS2054_GET_STATUS .

Regards

Swathi

Former Member
0 Kudos

Hi,

Below FM can help you getting status of WBS elemeent

DATA :tl_tj02t TYPE STANDARD TABLE OF tj02t,

*-- Check status for WBS element

CALL FUNCTION 'GET_STATUS_FOR_PS_OBJECT_RFC'

EXPORTING

wbs_element = wa_prps-posid " Pass WBS element here

language = sy-langu

only_active = 'X'

TABLES

status = tl_tj02t

EXCEPTIONS

object_not_found = 1

no_object_given = 2

OTHERS = 3.

Regrads,

Rajneesh