Issue creating WBS using BAPI_BUS2054_CREATE_MULTI
Hi All,
I am trying to create WBS elements under existing project (CJ20N) using BAPI_BUS2054_CREATE_MULTI. I am I am getting ET_RETURN with message type S-W-I, even after commit no WBS created. Type S message says Individual check for creating the object WBS Element XXX required. Please find my code for more info. I am I using correct BAPI? Any hint or suggestion welcome. Thanks in advance.
Regards,
Trim
LOOP AT gt_wbs_element .
MOVE-CORRESPONDING gt_wbs_element to gt_wbs_element_bapi.
MOVE : gt_wbs_element-mims_id to gt_wbs_element_bapi-USER_FIELD_CHAR20_1.
MOVE : gt_wbs_element-PROJECT_DEFINITION to gv_proj.
*** Conert all dates
split_date gt_wbs_element-WBS_BASIC_START_DATE gt_wbs_element_bapi-WBS_BASIC_START_DATE.
split_date gt_wbs_element-WBS_BASIC_FINISH_DATE gt_wbs_element_bapi-WBS_BASIC_FINISH_DATE.
split_date gt_wbs_element-WBS_FORECAST_START_DATE gt_wbs_element_bapi-WBS_FORECAST_START_DATE.
split_date gt_wbs_element-WBS_FORECAST_FINISH_DATE gt_wbs_element_bapi-WBS_FORECAST_FINISH_DATE.
* split_date gt_wbs_element-WBS_ACTUAL_START_DATE gt_wbs_element_bapi-WBS_ACTUAL_START_DATE.
* split_date gt_wbs_element-WBS_ACTUAL_FINISH_DATE gt_wbs_element_bapi-WBS_ACTUAL_FINISH_DATE.
APPEND gt_wbs_element_bapi.
**** Update Custome 'Z' Fields
clear : BAPI_TE_WBS_ELEMENT, gv_error.
BAPI_TE_WBS_ELEMENT-WBS_ELEMENT = gt_wbs_element-WBS_ELEMENT.
BAPI_TE_WBS_ELEMENT-ZZCP_APPRBUD = gt_wbs_element-ZZCP_APPRBUD.
BAPI_TE_WBS_ELEMENT-ZZCP_ELECT = gt_wbs_element-ZZCP_ELECT.
BAPI_TE_WBS_ELEMENT-ZZCP_AREA = gt_wbs_element-ZZCP_AREA.
BAPI_TE_WBS_ELEMENT-ZZCP_PROG = gt_wbs_element-ZZCP_PROG.
BAPI_TE_WBS_ELEMENT-ZZCP_SUBPR = gt_wbs_element-ZZCP_SUBPR.
** BAPI_TE_WBS_ELEMENT-ZZCP_FINALDAT = gt_wbs_element-ZZCP_FINALDAT.
BAPI_TE_WBS_ELEMENT-ZZCP_TOTBUD = gt_wbs_element-ZZCP_TOTBUD.
** BAPI_TE_WBS_ELEMENT-ZZCP_DADHC_REG = gt_wbs_element-ZZCP_DADHC_REG.
** BAPI_TE_WBS_ELEMENT-ZZCP_DADHC_CEP = gt_wbs_element-ZZCP_DADHC_CEP.
BAPI_TE_WBS_ELEMENT-ZZCP_PREDBUD = gt_wbs_element-ZZCP_PREDBUD.
BAPI_TE_WBS_ELEMENT-ZZCP_CLIENT = gt_wbs_element-ZZCP_CLIENT.
BAPI_TE_WBS_ELEMENT-ZZCP_PM_NAME = gt_wbs_element-ZZCP_PM_NAME.
GT_EXTENSION_IN-STRUCTURE = 'BAPI_TE_WBS_ELEMENT'.
GT_EXTENSION_IN-VALUEPART1 = BAPI_TE_WBS_ELEMENT+0(199).
GT_EXTENSION_IN-VALUEPART2 = BAPI_TE_WBS_ELEMENT+199(171).
APPEND GT_EXTENSION_IN.
MOVE-CORRESPONDING gt_wbs_element to wa_wbs_elem.
AT END OF PROJECT_DEFINITION.
*** Inalise BAPI
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
clear gt_return[].
CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
EXPORTING
I_PROJECT_DEFINITION = gv_proj
TABLES
IT_WBS_ELEMENT = gt_wbs_element_bapi
ET_RETURN = gt_return
EXTENSIONIN = gt_extension_in
* EXTENSIONOUT =
EXCEPTIONS
error_message = 1
others = 2.
*** Check GT_RESULT for success
LOOP AT gt_return where type co 'EA'.
gv_error = 'X'.
ENDLOOP.
IF gv_error is initial.
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
TABLES
ET_RETURN = gt_return_pre.
LOOP AT gt_return_pre where type co 'EA'.
gv_error = 'X'.
ENDLOOP.
ENDIF.
IF gv_error is INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = '1'
IMPORTING
RETURN = GT_RETURN_COMMIT.
clear gv_write.
format color 4.
CONCATENATE 'Success: WBS Attached to Project' gv_proj '-'
into gv_write.
WRITE / gv_write. CLEAR gv_write.
move-corresponding wa_wbs_elem to gt_wbs_suc.
gt_wbs_suc-message = gv_write.
gt_wbs_suc-message_type = 'S'.
append gt_wbs_suc.
format reset.
else.
clear gv_write.
format color 6.
CONCATENATE 'Error: Attaching WBS to Project' space '-' space gv_proj
into gv_write.
WRITE / gv_write. CLEAR gv_write.
move-corresponding wa_wbs_elem to gt_wbs_suc.
gt_wbs_suc-message = gv_write.
gt_wbs_suc-message_type = 'E'.
append gt_wbs_suc.
format reset.
ENDIF.
CLEAR: gv_proj, gt_wbs_element_bapi, gt_extension_in, gt_return_pre, GT_RETURN_COMMIT.
refresh: gt_wbs_element_bapi, gt_extension_in, gt_return_pre, GT_RETURN_COMMIT.
endat.
ENDLOOP.
Hi Trim
The message comes from (It is S004) in the BAPI_BUS2054_CREATE_MULTI (see below bold). I would be placing a breakpoint at the point where the BAPI is calling the function PS_BAPI_PREPARE to see if the lv_subrc variable is being set at this stage.
Cheers
Gareth
call function 'CJ2054_CREATE'
exporting
i_pspid = i_project_definition
i_wbs_element = ls_wbs_element
tables
extensionin = extensionin
exceptions
element_not_created = 1
dates_not_created = 2.
endif.
if sy-subrc <> 0 or lv_subrc <> 0.
message e007(cnif_pi) with text-wbs ls_wbs_element-wbs_element
into null.
lv_error = con_yes.
else.
<b> message s004(cnif_pi) with text-wbs ls_wbs_element-wbs_element
into null.</b>
Similar Messages
-
Hi Experts,
I am able to create the WBS element using BAPI_BUS2054_CREATE_MULTI.But the issue is i am not able to update customer specific fields even after passing the fields as per specification in Function module documentation. I have also created an implementation of BADI as per below specification in FM documentation:
Procedure for Filling Standard Enhancements
Before you call the BAPI for each object that is to be created or changed,
for which you want to enter customer-specific table enhancement fields, add a
data record to the container ExtensionIn:
STRUCTURE: Name of the corresponding help structure
VALUEPART1: Key of the object + start of the data part
VALUEPART2-4: If required, the continuation of the data part
VALUPART1 to VALUPART4 are therefore filled consecutively, first with the
keys that identify the table rows and then with the values of the
customer-specific fields. By structuring the container in this way, it is
possible to transfer its content with one MOVE command to the structure of the
BAPI table extension.
Note that when objects are changed, all fields of the enhancements are
overwritten (as opposed to the standard fields, where only those fields for
which the respective update indicator is set are changed). Therefore, even if
you only want to change one field, all the fields that you transfer in
ExtensionIn must be filled.
Checks and Further Processing
Using the methods ...CREATE_EXIT1 or. ...CHANGE_EXIT1 of the BAdI
BAPIEXT_BUS2001, BAPIEXT_BUS2002, and BAPIEXT_BUS2054, you can check the entered
values (and/or carry out other checks).
In the BAdI's second method, you can program that the data transferred to the
BAPI is processed further (if you only want to transfer the fields of the CI
includes, no more action is required here).
But still i am unable to update fields though i am able to create WBS with rest of the fields except custom fields.
I am using attached code to achieve this.Do we need to code anything inside method create_exit1 or create_exit2 implementation for BADI or
Please help on priorityHi Rahul,
First observation from your code is that i could not find the assignment for the field
GWA_WBS_EXTIN-STRUCTURE. I hope you are not filling this field, that could be one reason for failure. Try to do it and let us know if you still have the problem.
Br..
Dwaraka -
Error in creating WBS element BAPI_BUS2054_CREATE_MULTI
Hi
I am calling BAPI_BUS2054_CREATE_MULTI for creating WBS elements for the blocked project . I am passing the detailed project definitiion with level ( like A5/01/01) . I am getting error that WBS element for the object could not be created error 076 that BAPI is not initialized .
Now to solve this I called BAPI_PS_INITIALIZATION first then am calling BAPI_BUS2054_CREATE_MULTI then its throwing dump and if I want to run thru se37 then still giving the same error mentioned above
Please let me know what should I need to do to remove the error .
Helpful answer will definetly ..
Thanks a lott in advanceHi ,
I want to create a WBS element using the BAPI's BAPI_BUS2054_CREATE_MULTI .
I did this sequence of test :
BAPI_PS_INITIALIZATION
BAPI_BUS2054_CREATE_MULTI
And I have this return
S CNIF_PI 004 Individual check for creating the object WBS Element U008-F033-001 required
CAn you tell me what to do in order to resolve this problem ( calling a commit after this sequence leads to 'DUMP' bacause no precommit is called before )
can u send me a code Plz...
Thanks in advance -
Creating WBS Element BAPI_BUS2054_CREATE_MULTI
hello all
in my zrfc to create WBS element
i have called following BAPIs
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
EXPORTING
i_project_definition = temp_pspid
TABLES
it_wbs_element = it_wbs_element_new
et_return = it_return.
CALL FUNCTION 'BAPI_PS_PRECOMMIT'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
I have return the zreport to call above RFC
The values that i am passing to wbs internal table are
WA_WBS-ZI_PSPID = '1-4275/P'.
WA_WBS-ZI_POSID = 'T-01117'.
WA_WBS-ZI_POST1 = 'TEST WBS FROM REPORT'.
Append WA_WWBS to IT_WBS
then i pass IT_WBS to my ZRFC
but i am getting error message at BAPI_BUS2054_CREATE_MULTI
my question is am I passing parameters in right manner?
do the hardcoded parameters need some conversion and if yes what do i need to de?
thanks
sheetalHi ,
I want to create a WBS element using the BAPI's BAPI_BUS2054_CREATE_MULTI .
I did this sequence of test :
BAPI_PS_INITIALIZATION
BAPI_BUS2054_CREATE_MULTI
And I have this return
S CNIF_PI 004 Individual check for creating the object WBS Element U008-F033-001 required
CAn you tell me what to do in order to resolve this problem ( calling a commit after this sequence leads to 'DUMP' bacause no precommit is called before )
can u send me a code Plz...
Thanks in advance -
Code to create WBS using BAPI_PROJECT_MAINTAIN
Hi,
I am creating a program for mass upload of project definition and WBS elements. I was able to create the project definition using BAPI_PROJECTDEF_CREATE. For the WBS, I am using BAPI_PROJECT_MAINTAIN. But I was not able to create WBS yet. Can you give me a sample code for the BAPI_PROJECT_MAINTAIN that can create a WBS? What should be the values to be populated in the table i_method_project, i_wbs_element_table, etc.
Please help.. I will reward points.
Thanks,
LalynHi Lalyn.
Firstly, I would like to suggest you not to use "REWARD POINTS" which is againts the rules of engagement.
Hope you take things positively.
I would like to suggest a couple of references, which are similar to your issue,
[SDN - Reference for Updating value of WBS element - BAPI_PROJECT_MAINTAIN|Update WBS element;
[SDN - Reference for issues related to creation of WBS element using BAPI_PROJECT_MAINTAIN|Problems with BAPI_PROJECT_MAINTAIN;
[SDN Wiki - Standard Reference for ABAP Program to Upload WBS ELEMENTS IN Hierarchy|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2bprogram%2bto%2bupload%2bwbs%2belements%2bin%2bhierarchy ]
Hope that's usefull.
Good Luck & Regards. -
Issue creating PDF using IE plugin (Web Capture 10.0)
Hello,
Hopefully someone can assist with this and /or confirm it is a bug.
We are using Adobe X 10.1.4 with IE9 32bit.
Problem:
User creates a PDF using the "Covert" button located on the toolbar. The issue is that this PDF is saved with permission only allowing that user and administrators access to the document. In Windows the file appears with a padlock.
it doesn't matter what the security settings are on the folder -- somehow Adobe always changes the permission when creating the file using the Convert button.
If I create the SAME PDF in the same folder using the File -> Print -> Adobe PDF -- I have no issues. The PDF is created and inherits the permissions of the folder.
Now if I do the same tests using the Mozilla plug-in I have no issue -- the file is created with the correct permissions.
This is driving me and my users crazy as we use a terminal server and multiple people need to access these PDF documents that are being locked.
Thanks for the input!
[email protected]Hi,
KIndly update your Acrobat to the latest version available and see, if the issue is still present! -
Error while Creating WBS element using BAPI 'BAPI_BUS2054_CREATE_MULTI'
Hi Expert,
I've a requirement to create WBS elements using BAPI. And I am using BAPIs in the following manner.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'
CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
EXPORTING
i_project_definition = g_pdwbs
TABLES
it_wbs_element = it_wbs_element
et_return = it_return
EXTENSIONIN =
EXTENSIONOUT =
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
When I do so I am getting the below errors. Please suggest.
"Individual check for creating the object WBS Element C-497082 required ".
"Individual check for creating the object WBS Element C-497082-0001 required".
Please suggest how to correct this error.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Aug 18, 2008 5:25 PMI am getting the same error, but I cannot figure it out how to detect it and fix it. Will you please share your solution?
Thanks, -
Creating WBS element using bapi BAPI_PS_INITIALIZATION
Hi All,
I have created Project definition successfully using function module "BAPI_PROJECT_MAINTAIN" .
But while trying to create Wbs-Element for the project definition using same function module "BAPI_PROJECT_MAINTAIN" we are getting the following error
Key does not correspond to mask: TR.XXXXX.X.X.XXX
Could any one help me out to resolve this issue.
Thanks in advance.
harsha pHi harsha p,
Error CJ609 "Key does not correspond to mask:TR.XXXXX.X.X.XXX" is always caused by an inconsistency between the project/WBS object number and the coding mask. Therefore, to solve the problem can you please try to run report ZZADJUSTPOSID from note 453280 attached?
The report should be imported into your system manually by SE38.
Please run it first in test mode to check the wrong entries and then correct them in update mode.
Best Regards,
Edna -
BAPI_BUS2054_CREATE_MULTI error while creating WBS Element
Hi Gurus,
I am trying to create WBS element by using BAPI_BUS2054_CREATE_MULTI
but bapi raise an error that I can not understand.
in return table I got the following error with the error code CJ - 021
" XXXX-YYYY-ZZZZ WBS Element does not exist "
But I try to create already? What does 'Does not exist' mean?
By the way I am using
CALL FUNCTION 'BAPI_PS_INITIALIZATION'. before using BAPI_BUS2054_CREATE_MULTI
thanks in advance, it is an very important
Mehmet AliHi.
I have the same problem. Have you solved?
Thanks.
Angie -
Problem while creating WBS elements using LSMW
Hello experts,
I am able to create Project Definitions using LSMW. (using recording)
But there is a problem while creating WBS elements.
Tcode CJ20 has table control and that will become problem for multiple rows (levels).
Can anyone suggest a solution to mass upload WBS elements?
Thanks for your valuable advice.Hi,
Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.
If the WBS element is already created and you want to create one more with same data, first get the WBS related information using BAPI_PROJECT_GETINFO as you are doing currently.
I am using different sets of BAPIs to create project, create / change WBS element.
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:
<b>1. BAPI_PS_INITIALIZATION
2. BAPI_BUS2054_CREATE_MULTI ( to create WBS )
or
2. BAPI_BUS2054_CHANGE_MULTI ( to change WBS )
3. BAPI_PS_PRECOMMIT
4. BAPI_TRANSACTION_COMMIT</b>
Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.
Let me know if you need further information.
Regards,
RS -
Issue Creating Duplicate Database on Different host using RMAN Backup
HI friends..
I m trying to create a duplicate db on different host ....... 27
i have live production db on ............. 15
its up 24*7.
i know how to create dup db using cold backup..but dont know how to create it using RMAN Backup..
I have googled..but getting issues..
Steps Taken till now
Note- I dont have catalog created on live db..
I already have set the tnsnames.ora on both servers
1) Took full backup plus archivelog plus control file on 15
2) moved it to another host..ie 27
3) now on live db..
I conected to rman target /
so i m now connected to prod db
than i try to conect to rman auxiliary sys/sys@dubpd..
But it gives me insufficient privilages error..
Can you tell me what to do next..Coz unless i get into mount phase on sever 27( new server)..i cannot use the control file from backup).my dupdb is up in nomount phase..but what enxt i can do..to restore the control file and than restore the backup after cataloging them to right path..
Thanks in advance frieds...sai121 wrote:
Nope ..on live db..
@comand prompt when i type sqlplus sys/sys@dupdb..
its says 0ra-12518...Listener cannot hand off client connection..
My tns name for live server is..*primary* on live server .. whose ip is 15..(lIVE SERVER).
i also have another entery with tns names- standby .on live server .. whose ip is 27..(other server for duplicated db).
now @command prompt..@live server.. i did sqlplus sys/sys@standby
It gives me ORA-12518
Am i missing something..1- It could be a network problem. You may enable tracing on listener (and examine the logs).
2- Add "DIRECT_HANDOFF_TTC_LISTENER=OFF" to listener.ora, then reload the listener
3- You may want to increase "large_pool_size" -
i am creating the WBS using thses bapis
1. BAPI_PS_INITIALIZATION
2. BAPI_BUS2001_CREATE
3. BAPI_PS_PRECOMMIT
4. BAPI_TRANSACTION_COMMIT/BAPI_TRANSACTION_ROLLBACK
but i am getting the error
Field COMPANY_CODE/Company code: Changing the contents of the field is not permitted
Field BUSINESS_AREA/Business area: Changing the contents of the field is not permitted
Field WBS_ACCOUNT_ASSIGNMENT_ELEMENT/Acct asst elem.: Changing the contents of the field is not permitted
Field OBJECTCLASS/Object Class: Changing the contents of the field is not permitted
Please help to resolve this
kanishakHi,
have you tried to look for corresponding OSS notes? I've never had any problems with this BAPI and according to BAPI documentation all fields from input structure can be used. It looks more like error. Or don't you have any validation for projects definitions? If you can find the reason you can still debug that code and see why it's failing.
BTW your BAPI is for Project definition creation, not WBS element. You can maintain WBS elements form any project using BAPI BAPI_PROJECT_MAINTAIN.
Cheers -
Issue in creating formula using atributes
Hi All,
I have issues in creating formula using attributes of characteristic. I need to create a formula using attributes of charactertic customer & key figure.
Ex. Formula
Key figure / attribute of char customer
Please suggest.
Thanks,
MamataHi Mamta,
I do not think we have any option of creating RKF based on Display attribute. Rather you create RKF based on Navigation attribute.
Regards,
Kams -
Issue on condition value after creating PO using bapi_po_create1
Hi ,
I am passing condition value as 45.55 to Create PO using bapi_po_create1,
but after Creating PO, But Condition Value reflecting ME23N as 4,555.00.
Kindly Provide any solution if you haveHi ,
I am passing condition value as 45.55 to Create PO using bapi_po_create1,
but after Creating PO, But Condition Value reflecting ME23N as 4,555.00.
Kindly Provide any solution if you have -
How to use [BAPI_BUS2054_CREATE_MULTI]?
Dear experts:
can anyone tell me how to use [BAPI_BUS2054_CREATE_MULTI] this function..when i used , the wbs is still not created, although the message tells me create sucessfully.
below is my step:
first: CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
second: CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
when there is sucess message, i use [ CALL FUNCTION 'BAPI_PS_PRECOMMIT'
] instead of commit work else CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'..
can anyone help me to workout this issue.
monsonHi,
You can use BAPI_BUS2054_SET_STATUS in a list of WBS elements to revoke a system status and a user status respectively, as well as to set a system status and a user status respectively.
When you use BAPI BAPI_BUS2054_CREATE_MULTI , it should be called with these BAPIs and this order only.
1. BAPI_PS_INITIALIZATION "Initilize
2. BAPI_BUS2054_CREATE_MULTI ( to create WBS )
3. BAPI_BUS2054_SET_STATUS "Release WBS ( only if you want to REL )
4. BAPI_PS_PRECOMMIT "Precommit
5. BAPI_TRANSACTION_COMMIT "Commit
Reward If Helpfull,
Naresh
Maybe you are looking for
-
how can I download a video from the net? is there is any special download softwear than realplayer?
-
Bad file name or volume name error
Hello All, I am currently in a session when all of the sudden, as I arm a track to record and press record i get an error that states.. "Bad File Name or Volume Name (perhaps zero length) Result Code = -37" Anybody know how to fix this?
-
Hello Experts, While trying to generate the stack file for PI system through Solution manager to update the SAP Basis support pack, facing an issue like below. Details Version - SAP EHP1 FOR SAP NETWEAVER 7.3 SAP Kernel : 720_EXT_REL - 700 Dual Stac
-
Im having issues with registering my iweb site under my own domain name(yes, I own it) When I go to <file> and then to <setting up personal domain> it then takes me to< .mac login> which then takes me to my <.mac account settings> where there is noth
-
Flash versions - PC CS4 and Mac CS5 Video encoded with Compressor (codec h.264) then Adobe Media Encoder to FLV In my flash file I go File/Import Video/ then select Load external video for playback click Next, Pick the skin, then a bar pops up saying