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: 

Reg the new WBS Element creation in PS

Former Member
0 Kudos

Hi,

I want to create the new WBS Element under the project. for this I am using Bapi BAPI_PROJECT_MAINTAIN but in our configuration the investment reason code (PRPS-IZWEK) is a mandatory field. I could not able to pass this value to the above Bapi as that field is exists in Bapi.

Can anybody help me to resolve this?

Thanks,

Abhishek

10 REPLIES 10

Former Member
0 Kudos

Hi,

Welcome to SDN

Here is the thread which helps you a lot

Regards

Sudheer

Former Member
0 Kudos

Hi,

I don't if this solution works for you, but you can change the WBS element using the BAPI: BAPI_BUS2054_CHANGE_MULTI after it is created. This BAPI structure has the field you are looking for.

Hope this helps,

Sumant.

0 Kudos

Thanks Sumanth. I will check with the given bapi.

Thanks,

Abhishek

Former Member
0 Kudos

Hi,

If you want to add WBS, do not use BAPI_PROJECT_MAINTAIN.

Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.

************************************************************

************************************************************

I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.

For example if you want to create / change the WBS element, the BAPIs sequence is: These BAPIs should be called in this sequence.

<b>1.</b> BAPI_PS_INITIALIZATION "Initilize

<b>2.</b> BAPI_BUS2054_CREATE_MULTI ( to create WBS )

or

<b>2.</b> BAPI_BUS2054_CHANGE_MULTI ( to change WBS )

<b>3.</b> BAPI_BUS2054_SET_STATUS "Release WBS ( only if you want to REL )

<b>4.</b> BAPI_PS_PRECOMMIT "Precommit

<b>5.</b> BAPI_TRANSACTION_COMMIT "Commit

Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.

Let me know if you need further information since we have already implemented this solution and using it.

Regards,

RS

0 Kudos

Hi RS,

Thanks for your response.

We have tried using the Bapi BAPI_BUS2054_CREATE_MULTI but there is some bug in that bapi. It is going to short dump. If you do the syntax check on this bapi, you can see the error. Please let me know if you find anything.

Thanks,

Abhishek

0 Kudos

HI,

What error you are getting? I do remember that we did apply some OSS note but i am not sure if it was for this BAPI or some other WBS related BAPI.

Let me know which SAP version you are using (4.6C / 4.7 / ECC ) and also let me know what error message you are getting.

Regards,

RS

0 Kudos

Hi,

We are using 4.7 version and the error is below.

The following syntax error occurred in the program SAPLCJ2054 :

""LS_BAPI_TE_PRPS" and "EXTENSIONIN+30(960)" are not mutually convertib"

Error in ABAP application program.

Thanks,

Abhishek

0 Kudos

Hi,

Can you tell me exactly which include and which line this systax error is coming. I can chech in my system.

Regards,

RS

0 Kudos

The termination occurred in the ABAP program "CJ2054_CREATE=================FT"

in "FUNCTION_CALL".

The main program was "RS_TESTFRAME_CALL ".

The termination occurred in line 74 of the source code of the (Include)

program "CJ2054_CREATE=================FT"

of the source code of program "CJ2054_CREATE=================FT" (when calling the editor 740). CALL FUNCTION 'CJ2054_CREATE'

Thanks,

Abhishek

0 Kudos

RS,

Do you find anything on this? If so please let me know.

thanks,

Abhishek