Skip to Content
author's profile photo
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 11, 2014 at 01: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) ?

    • 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

    Add comment
    10|10000 characters needed characters exceeded