04-03-2007 5:05 PM
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
04-03-2007 5:22 PM
04-03-2007 5:31 PM
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.
04-03-2007 6:45 PM
04-03-2007 11:05 PM
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
04-04-2007 3:59 PM
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
04-04-2007 4:13 PM
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
04-04-2007 7:27 PM
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
04-04-2007 7:43 PM
Hi,
Can you tell me exactly which include and which line this systax error is coming. I can chech in my system.
Regards,
RS
04-04-2007 8:08 PM
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
04-09-2007 3:47 PM
RS,
Do you find anything on this? If so please let me know.
thanks,
Abhishek