This website is not affiliated with, sponsored by, or approved by SAP AG.

WBS dates validation

Logistics : PS

Moderators: Snowy, thx4allthefish

WBS dates validation

Postby unurd » Tue Dec 10, 2013 4:24 am

Hi,

I need to validate dates PRTE-ESTRT & PRTE-EENDE in OPSI.
They don't appear in structures PROJ, PRPS, RCJ_PRPSUP, SYST.
Is there anything that can be done to validate them?

Thanks, Amos.
unurd
 
Posts: 69
Joined: Sat Apr 30, 2011 11:06 pm

Re: WBS dates validation

Postby bienzo » Tue Dec 10, 2013 11:00 am

Hi!

Maybe someone knows how to validate dates in OPSI. Meanwhile, I tell you the way we do it within BADI WORKBREAKDOWN_UPDATE.

In BADI WORKBREAKDOWN_UPDATE, AT_SAVE method, we read WBS elements dates with function 'CJDT_PRTE_GET_SINGLE'.
Once we have the dates, it's easy to program validations.

I hope this was useful!

Example:
CALL FUNCTION 'CJDT_PRTE_GET_SINGLE'
EXPORTING
pspnr_imp = ct_wbs_element-pspnr
IMPORTING
prte_exp = lsprteb
EXCEPTIONS
not_found = 1
OTHERS = 2.

IF sy-subrc NE 0.
IF lsprteb-eende EQ '00000000' OR
lsprteb-estrt EQ '00000000'.
MESSAGE e055(zpsib) WITH ct_wbs_element-pspnr
RAISING error_with_message.
ENDIF.
ENDIF.

Regards!
bienzo
 
Posts: 65
Joined: Sat Apr 21, 2007 12:28 pm

Re: WBS dates validation

Postby unurd » Wed Dec 11, 2013 2:17 am

Hi bienzo,

Thanks for the answer.
When we tried it for simple validations, we saw that it makes the check only on the WBS we are standing on and not all the tree of WBSs.
We need in one save to check all the WBSs.

Amos.
unurd
 
Posts: 69
Joined: Sat Apr 30, 2011 11:06 pm

Re: WBS dates validation

Postby bienzo » Fri Dec 13, 2013 6:16 am

Hi,

it´s possible read all WBS elements of a Project when saving a Project or a WBS element via BADI WORKBREAKDOWN_UPDATE, so, you can check all WBS elements at once.

It's no so easy as in OPSI transaction, but it works and it's the only way we found.

Regards
bienzo
 
Posts: 65
Joined: Sat Apr 21, 2007 12:28 pm


Return to Logistics PS

Who is online

Users browsing this forum: No registered users and 4 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.