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.
|
This website is not affiliated with, sponsored by, or approved by SAP AG.
WBS dates validationModerators: Snowy, thx4allthefish
4 posts
• Page 1 of 1
WBS dates validationHi,
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.
Re: WBS dates validationHi!
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!
Re: WBS dates validationHi 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.
Re: WBS dates validationHi,
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
4 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 3 guests |
|