on 07-10-2012 7:12 AM
Dear Experts,
I have created one module pool program in PS module for creating project with WBS elements.
Based on Template Hierarchy in CJ93 Tcode, all the WBS elements are displayed in screen as Table control, Values for WBS element are fetched from prpss table.
Issue:
If the user creates a new child hierarchy in existing template (CJ93), then it will be saved at last row in PRPSS table based on OBJNR and logic for displaying WBS in screen is based on PRPSS table and its displayed as same sequence in PRPSS table. But in the transaction CJ93, the hierarchy is different.
I want to display same sequence of WBS elements as in CJ93 tcode. Is there any logic to display like CJ93?
PRPSS Table Entries: (Same sequence in module pool program also)
MANDT PSPNR POSID POST1 OBJNR PSPHI
300 | 181 | 2-R0XXX-RBL | Road Build | PT00000181 | 12 |
300 | 182 | 2-R0XXX-RBL-PKG1 | Package 1 | PT00000182 | 12 |
300 | 183 | 2-R0XXX-RBL-PKG2 | Package 2 | PT00000183 | 12 |
300 | 184 | 2-R0XXX-RBL-PKG1-E | Engineering | PT00000184 | 12 |
CJ93 Transaction Code sequence:
2 | 2-R0XXX-RBL | Road Build | 2-R0XXX-RBL |
3 | 2-R0XXX-RBL-PKG1 | Package 1 | 2-R0XXX-RBL-PKG1 |
4 | 2-R0XXX-RBL-PKG1-E | Engineering | 2-R0XXX-RBL-PKG1 |
3 | 2-R0XXX-RBL-PKG2 | Package 2 | 2-R0XXX-RBL-PKG2 |
Thanks and Regards,
Arindam Samanta.
Hi Arindam,
Check table PRHIS.
You will have to build the hierarchy using tables PRPSS & PRHIS.
Regards
Shrikant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arindam,
Please use the BAPI "BAPI_PROJECT_GETINFO" to get the WBS details in hierarchy,
Give the project number of the WBS to "PROJECT_DEFINITION" as input and you will get all the WBS and its hierarchy in the TABLES "E_WBS_HIERARCHIE_TABLE".
Cheers
~Niranjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niranjan,
This function module accept the project number. But I am working with PRPSS table. This table contains the template. If you check CJ93 TCODE, it displays hierarchy of WBS element template like following:
LEVEL WBS Element
1 | 2-R0XXX |
2 | 2-R0XXX-PRE |
3 | 2-R0XXX-PRE-SNI0 |
3 | 2-R0XXX-PRE-BPC0 |
3 | 2-R0XXX-PRE-MIS0 |
2 | 2-R0XXX-STC |
2 | 2-R0XXX-FIN |
3 | 2-R0XXX-FIN-CAP0 |
3 | 2-R0XXX-FIN-INC0 |
3 | 2-R0XXX-FIN-IST0 |
3 | 2-R0XXX-FIN-BGB0 |
2 | 2-R0XXX-RBL |
3 | 2-R0XXX-RBL-PKG1 |
4 | 2-R0XXX-RBL-PKG1-E |
3 | 2-R0XXX-RBL-PKG2 |
I want to display exactly above template and sequence in my program. Is it possible?
User | Count |
---|---|
107 | |
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.