on 09-15-2014 2:54 PM
Hi,
I am facing an issue with PS project creation. Project is being created successfully but no WBS elements getting created.
Using the BAPsI in the below order. BAPI return table contain success messages for all BAPIs. I am checking error for all BAPIs.
If there is no error, then I am committing the data with BAPI_PS_PRECOMMIT and BAPI_TRANSACTION_COMMIT -> Wait = 'X.
BAPI_BUS2001_CREATE
BAPI_BUS2054_CREATE_MULTI
BAPI_BUS2001_SET_STATUS
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT -> Wait = 'X
Can you help why this is happening.
Regards,
Balavardhan.
Regards,
Raymond
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regards,
Raymond
I figured out why this issue occurring. The issue with WBS element population to BAPI parameters.
I corrected and it is working fine without any inconsistency.
Still I am using the below sequence of BAPI to create Project and WBS element together.
BAPI_PS_INITIALIZATION
BAPI_BUS2001_CREATE
BAPI_BUS2054_CREATE_MULTI
BAPI_BUS2001_SET_STATUS
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMINT => WAIT = 'X'.
Hi Balavaradhan,
You can try These steps:
BAPI_BUS2001_CREATE
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT -> Wait = 'X
BAPI_PS_INITIALIZATION
BAPI_BUS2054_CREATE_MULTI
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT -> Wait = 'X
BAPI_PS_INITIALIZATION
BAPI_BUS2001_SET_STATUS
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT -> Wait = 'X
This should work.
You can also use BAPI_PROJECT_MAINTAIN instead of all the steps above.
If you have any issues pls do let me know.
Regards,
K.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi KS,
Thanks for reply. My question this should work as ALL or Nothing principle. The project should get created along with its WBS elements. So we can't do commit work at each stage.
Because of that I am using Commit FMs at the end.
For each step i am checking BAPI return parameter, if it is success i am proceeding further.
I didn't undestand why this is happening.
Regards,
Balavardhan.K
Hi K.S,
What I observed is, with the same appraoch(My original approach) it is working fine for some times. There is inconsitency, some times it is creating only project with out WBS elements. As you mentioned it should not work for every time. I am still confused why it is happening like this.
Regards,
Balavardhan.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.