on 09-08-2009 3:54 AM
I want to check whether a WBS or a Network/Activity is released or not released, how can I get the status in program?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use BAPI BAPI_BUS2054_GET_STATUS .
Regards
Swathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.