Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

"Individual check for creating the object WBS Element A002--141 required." In BAPI_BUS2054_CREATE_MULTI

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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) ?

  • BAPI_PS_INITIALIZATION
  • BAPI_BUS2054_CREATE_MULTI
  • LOOP AT RETURN for TYPE 'A' or 'E'
  • If none
    • BAPI_PS_PRECOMMIT
    • LOOP AT RETURN for TYPE 'A' or 'E'
      • if none
        • BAPI_TRANSACTION_COMMIT
  • Else (both)
    • BAPI_TRANSACTION_ROLLBACK


Regards,

Raymond

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

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) ?

  • BAPI_PS_INITIALIZATION
  • BAPI_BUS2054_CREATE_MULTI
  • LOOP AT RETURN for TYPE 'A' or 'E'
  • If none
    • BAPI_PS_PRECOMMIT
    • LOOP AT RETURN for TYPE 'A' or 'E'
      • if none
        • BAPI_TRANSACTION_COMMIT
  • Else (both)
    • BAPI_TRANSACTION_ROLLBACK


Regards,

Raymond

0 Kudos

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?

0 Kudos

Hi Bijoy,

Please share how you resolve the above error :

Individual Check for Creating the object WBS element required '.

Thanks in Advance.

0 Kudos

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-...