09-11-2014 12:02 PM
Hello experts,
I have a requirement to create WBS element using BAPI BAPI_BUS2054_CREATE_MULTI.But while doing so I am getting this error Individual check for creating the object WBS Element A002--141 required.Can anyone please help me resolve it.
Below is the code that I am using.
loop at it_proj into wa_proj.
wa_BAPI_TE_WBS_ELEMENT-WBS_ELEMENT = wa_wbs-WBS_ELEMENT.
GT_EXTENSION_IN-STRUCTURE = 'BAPI_TE_WBS_ELEMENT'.
* GT_EXTENSION_IN-VALUEPART1 = wa_BAPI_TE_WBS_ELEMENT-zzfund.
GT_EXTENSION_IN-valuepart1 = wa_proj-zzfund.
GT_EXTENSION_IN-valuepart2 = wa_proj-zzgrant_nbr.
APPEND GT_EXTENSION_IN.
ENDLOOP.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
CLEAR gt_return[].
CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
EXPORTING
I_PROJECT_DEFINITION = gv_project
TABLES
IT_WBS_ELEMENT = gt_wbs_element_bapi
ET_RETURN = gt_return
EXTENSIONIN = gt_extension_in
* EXTENSIONOUT =
.
Suggestions will be much appreciated and <removed by moderator>.
Regards,
Bijoya
Message was edited by: Manish Kumar
09-11-2014 2:37 PM
Are you sure this is the error message (type E or A in RETURN and not S !) can you post actual message class and number ?
In your code there is already BAPI_PS_INITIALIZATION called before BAPI, did you also call BAPI_PS_PRECOMMIT and BAPI_TRANSACTION_COMMIT or ROLLBACK (depending on error message in every RETURN parameter) ?
Regards,
Raymond
09-11-2014 2:37 PM
Are you sure this is the error message (type E or A in RETURN and not S !) can you post actual message class and number ?
In your code there is already BAPI_PS_INITIALIZATION called before BAPI, did you also call BAPI_PS_PRECOMMIT and BAPI_TRANSACTION_COMMIT or ROLLBACK (depending on error message in every RETURN parameter) ?
Regards,
Raymond
09-12-2014 6:10 AM
Hello Raymond,
That issue is solved.thank you so much for your response but the wbs elements are not maintaining an hierarchical level in the transaction CJ20N .
Can you please help me with that?
08-09-2016 11:15 AM
Hi Bijoy,
Please share how you resolve the above error :
Individual Check for Creating the object WBS element required '.
Thanks in Advance.
08-09-2016 6:53 PM
OP has not been on SCN since 2014, which can be easily checked in the profile:
Kindly don't resurrect the old discussions. Besides, Raymond has already posted a suggestion above but neither OP bothered to reply meaningfully nor this new post adds anything.
Read SCN ROE and use the information already available plus the usual ABAP tools like debugger and try to resolve this. If there are still questions then open a new discussion with more detailed information. See this blog: http://scn.sap.com/community/getting-started/blog/2010/05/12/asking-good-questions-in-the-forums-to-...