Uploading WBS Elements Via CJ02
Hi All,
I have to upload the Wbs elements for the Project from the Transaction CJ02. As there are different levels is heirarchy , and I should double click on each wbs elements which I entered, and then fill in the details information of each wbs element.
Could u please help me how to upload this data .
Is there any Bapi or can we upload Via Transaction CJ20n.
Please suggest be the best approach. with detailed information? Its bit urgent.?
Appriciate the earliest reply.
Thanks
Krishna
Hi,
Check below given code. Let me know if you get any error.
Regarding your question "Index field in IWbsElementTable", there is not INDEX field in IWbsElementTable. By index it means the entry in table. Index = 1 means that first entry in table, index = 2 means second entry in table and so on.
Let me know if you have any question.
DATA: lv_seqno(6) TYPE n VALUE '000001',
lc_seqno(6) TYPE n VALUE '000000'.
* Structures and Internal tables used in the BAPI
DATA : gs_project_definition LIKE bapi_project_definition,
gs_project_definition_upd LIKE bapi_project_definition_up.
DATA : gt_method_project LIKE bapi_method_project
OCCURS 0 WITH HEADER LINE,
gt_wbs_element_table_update LIKE bapi_wbs_element_update
OCCURS 0 WITH HEADER LINE,
gt_wbs_element_table LIKE bapi_wbs_element
OCCURS 0 WITH HEADER LINE,
gt_wbs_hierarchie_table LIKE bapi_wbs_hierarchie
OCCURS 0 WITH HEADER LINE,
gt_return LIKE bapireturn1
OCCURS 0 WITH HEADER LINE,
gt_return1 LIKE bapiret2
OCCURS 0 WITH HEADER LINE,
gt_message_table LIKE bapi_meth_message
OCCURS 0 WITH HEADER LINE.
* Populate Project definition
gs_project_definition-project_definition = 'PD-TRAINING'.
gs_project_definition-description = 'Training project'.
gs_project_definition-project_profile = 'PPRO001'.
* Populate Project dafinition update table
gs_project_definition_upd-project_definition = space.
* Populate project method update
gt_method_project-refnumber = lv_seqno.
gt_method_project-objecttype = 'WBS-ELEMENT'.
gt_method_project-method = 'CREATE'.
gt_method_project-objectkey = 'TRAINING'.
APPEND gt_method_project.
lv_seqno = lv_seqno + 1.
gt_method_project-refnumber = lv_seqno.
gt_method_project-objecttype = 'WBS-ELEMENT'.
gt_method_project-method = 'CREATE'.
gt_method_project-objectkey = 'TRAINING.1'.
APPEND gt_method_project.
lv_seqno = lv_seqno + 1.
gt_method_project-refnumber = lv_seqno.
gt_method_project-objecttype = 'WBS-ELEMENT'.
gt_method_project-method = 'CREATE'.
gt_method_project-objectkey = 'TRAINING.2'.
APPEND gt_method_project.
gt_method_project-refnumber = lc_seqno.
gt_method_project-objecttype = space.
gt_method_project-method = 'SAVE'.
gt_method_project-objectkey = space.
* Populate WBS element
gt_wbs_element_table-wbs_element = 'TRAINING'.
gt_wbs_element_table-project_definition = 'PD-TRAINING'.
gt_wbs_element_table-description = 'Whole Project'.
gt_wbs_element_table-wbs_element = 'TRAINING.1'.
gt_wbs_element_table-project_definition = 'PD-TRAINING'.
gt_wbs_element_table-description = 'Preparation'.
gt_wbs_element_table-wbs_element = 'TRAINING.2'.
gt_wbs_element_table-project_definition = 'PD-TRAINING'.
gt_wbs_element_table-description = 'Execution'.
* Update the I_WBS_ELEMENT_TABLE_UPDATE table for the BAPI
* This is done 3 times because there are 3 WBS elements
* created for the Studio Project
DO 3 TIMES.
gt_wbs_element_table_update-wbs_element = 'I'.
APPEND gt_wbs_element_table_update.
ENDDO.
CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
EXPORTING
i_project_definition = gs_project_definition
i_project_definition_upd = gs_project_definition_upd
IMPORTING
return = gt_return
TABLES
i_method_project = gt_method_project
i_wbs_element_table_update = gt_wbs_element_table_update
i_wbs_element_table = gt_wbs_element_table
* i_wbs_hierarchie_table = gt_wbs_hierarchie_table
e_message_table = gt_message_table.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = gt_RETURN1.
Regards,
RS
Similar Messages
-
Creating Billing document for WBS Element(Transaction: CJ02 )
Hi Guys,
I am using FM BILLING_SCHEDULE_MAINTAIN to create billing document with milestone data,
it is giving sy-subrc eq 0. but billing document is not saving in FPLA table,
I am using FM GRSV_UPDATE_GRPGA_FROM_CJDW to update project.
and more over iam using COMMIT WORK.
Thansk in advance
Regards
Peram SrinivasKindly refer following Links:
Excise modvat accounts not defined for DLFC transaction and excise group
STO Account Determination
j1iin error message
Accounting document for Excise Invoice
Regards,
Ashutosh -
Hi,
What is the difference between Standard WBS element (CJ91) and WBS element (CJ11)
I want to upload WBS elements, which method will you suggest BAPI or BDC?
If it is BDC which T.code shall i use for recording.
Please give me some guidelines,
Regards,
ChandraRefer BAPI documentation in SE37. Typically all PS BAPIs require initialisation BAPI at start and commit BAPI at end. You need to define a processing unit consisting of all tis. Open the BAPI in SE37 and refer documentation, everything is detailed out there.
Refer a similar thread:
Re: create project
Regards
Edited by: Shrikant Rakate on Aug 18, 2008 7:06 PM -
Credit-memo not able to be posted against a WBS Element
Hi there,
When the available amount on a WBS element is less than the credit memo amount, SAP gets a hard stop of budget exceeded.
It`s wrong since a credit is giving money back to the project and you should be able to enter it regardless of available funds.
Important notes: I'm trying to post this credit-memo against the WBS Element via MIRO transaction (credit memo option).
Is there any customizing in IM where I can define it?
Regards and thanks in advance.Hi,
You are trying to post a credit memo again a purchase order since its via MM. Therefore how can you have a credit memo value exceeding the original invoice value?
If you are trying to post an advance (as you have mentioned that you are receiving money to the project), it should be recored as an advance rather than a credit memo. Consider the double entry you want to post to.
NW -
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 -
Problems deleting WBS elements
Hi,
I'm trying to delete a number of WBS elements via CJ20N and I'm presented with an error message as follows:
"There are CATS records that have not yet been tran"
(Message no. CJ001)
I'm not sure exactly what this means or how to get around it (or even view the offending records) - Any ideas?
We are using WBS elements to capture project costs from Timesheets using CAT2.
I'm guessing that I need to transfer the postings against the WBS that I want to delete to another WBS - What transaction is used to do this?
Any pointers or advice will be appreciated.
Thanks in advance,Hi,
You can use transaction CJ88 to settel the wbs element.
Award points if useful.
Thanks & Best regards,
Subbu. -
Error while uploading Journal with wbs element
Hi SAP Folks,
I am trying to upload journal through a customized transaction.
The journal line item has wbs elements in it.
While uploading journal it is showing the below error only when I am using a particular cost element from XXXX Cost element group.
For other cost element from ZZZZ cost element group, it is not showing any error.
ERROR: This G/L Code is only valid for Capital Projects (C-WBS elem.
Is there any transaction code which will link the cost elements to the project codes.
Please help.
Thanks in advance.Hi Paulo,
This G/L code is only valid for Capital Projects (C-WBS elem
Message no. ZCO002
Prerequisite
CO Area = 'XXXX'
AND G/L >= '10000' AND G/L <= '19999'
Check
( WBS Element >= 'x.1' AND
WBS Element <= 'x.9.99.999.9.9.9' )
OR
( Network >= 'x1' AND
Network <= 'xZZZZZZZZZZZ' )
OR
( Order >= '700000000000' AND
Order <= '799999999999' )
"| PM Orders can use Capital GL codes for Capital Works |"
Message
message type - E
message no. - 002
Message class - ZCO
message text - This G/L code is only valid for Capital Projects (C-WBS elem
Do i need to change anything.
Error message no. ZCO002 is matching with the message of Validation.
How do I proceed further??
Thanks in advance
Regards,
Sophia -
How to use WBS element in Asset master data upload
Dear All
Does any body know how to treat field WBS element in Asset master during upload.
Field POSNR in table ANLA is of 8 characters, but WBS element which is entered in asst master is more than 8 char.
I vaguely remember tht with wbs system internally assign a different number.
Has anybody come across this issue?
Please help
Thanks
SanjeevThere are in the asset 2 fields for PS
One is filled when you do an settlement from an WBS (is not possible to fill in)
The other one you found in the the tab time dependend like cost center.
This field is available when you have assign the possibilety to do depreciation to an WBS.
Paul -
WBS Elements upload with settlement rule& classification
I have created project profile & WBS elements with a BAPI bapi_project_maintain.
Now i need to apply characterstic values and settlement rules to those WBS elements.
I have been searching for a FM since long time.
I tried with LSMW also,it did not work.
Only way left to me is to write a BDC programs to full fill this.
If anybody has got some solution for this let me know.
regards
KTSSSreenivas,
I´m afraid that none of the 3 options is available via standard tools
I´m so sorry.
Rgds
Martina -
Document upload to WBS Element
Hi Experts,
How to upload documents to the WBS Elements.
Do we have any BAPI which can be called for doing this.
Thanks in advance.....Hi,
In CJ20N, select the WBS and click Document overview button on right handside. A table will appear, click create button at bottom. You can assign existing documents in this manner.
Try BAPI_DOCUMENT_SAVEOBJECTLINKS.
Refer this [Link1|http://help.sap.com/saphelp_erp60_sp/helpdata/en/4c/226c6546e611d189470000e829fbbd/frameset.htm]
[Link2|help.sap.com/printdocu/core/Print46c/en/data/pdf/PSDOC/PSDOC.pdf]
Regards
Edited by: Shrikant Rakate on Jun 18, 2008 10:34 AM -
GL Upload Planning Layout - Available characteristic (WBS element)
Hi All,
In the GL upload planning layout, does anyone have any idea why there is no WBS element in the section of the available characteristic?
I am trying to create a planning layout for GL upload, and I would like the initial screen at the Tcode: GP12N - Enter (New) has selection criteria for user to put in as follows:
Company code:
Version:
Fiscal year:
Profit center: (in range, if possible)
cost center: (in range, if possible)
WBS element: (in range, if possible)
Kindly advise accordingly.
Thanks.
sbmelHi all,
I found out that the GL planning upload does post to table: FAGLFLEXP; and this table does not have any fields for WBS as well as internal order.
Does anyone have any idea on this why FAGLFLEXP (or FAGLFLEXA) does not have these fields?
Is it because this 2 objects are just temporary cost capture object, and therefore should not exist in these 2 tables.
Kindly advise.
Thanks and regards,
sbmel -
How to upload WBS(Work Breakdown Structure Element) in FB03
Hello,
In Financial Accounting, the data to be transferred to the SAP system is prepared in a sequential file.Data from final internal table(isegtab) is transfered to the file(fileout).
We need to upload WBS but the isegtab uses structure bbseg.We cannot find wbs element in bbseg .
abap code
DATA : BEGIN OF isegtab OCCURS 0 .
INCLUDE STRUCTURE bbseg .
DATA : END OF isegtab .
TRANSFER isegtab TO fileout .
SUBMIT rfbibl00 WITH ds_name = fileout "Submit the prepared file
WITH fl_check = c_no " to the SAP screen for
WITH os_xon = c_no " upload.
WITH callmode = c_b
WITH max_comm = '1000'
WITH pa_xprot = c_9
AND RETURN .
Kindly susggest us a solution ASAP.Use the field BBSEG-PROJK, it's the WBS number in external formay (Batch-Input format) (ie PRPS-POSID)
Look in (old) [Batch Input Documents|http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm] for :
Structure BBSEG also contains the fields for one-time data and the data for the coding block. The screen for one-time data is displayed if you have to post to a one-time account or if an alternative payee is to be specified in the document. The data for the coding block in batch input is generally displayed on a separate screen. Here, you should note the following name differences:
COBL-KDAUF = BBSEG-VBEL2 Sales order number
COBL-KDPOS = BBSEG-POSN2
Item in sales order
COBL-RMVCT = BBSEG-BEWAR Transaction type
COBL-PS_PSP_PNR = BBSEG-PROJK Project account assignment
COBL-PPRCTR = BBSEG-PPRCT Partner profit center
COBL-KDEIN = BBSEG-ETEN2 Schedule line in sales order
Regards,
Raymond -
Is there any BAPI for Upload Documents of WBS elements?
Hi Guys,
Can anbody tell me is there any BAPI for Uploading Documents of WBS elements ?
Thanks,
Gopi.hi
check these BAPI
Change WBS Elements Using BAPI
BAPI_BUS2054_CHANGE_MULTI
Create WBS Elements Using BAPI
BAPI_BUS2054_CREATE_MULTI
Delete WBS Elements Using BAPI
BAPI_BUS2054_DELETE_MULTI
Detail Data for WBS Elements
BAPI_BUS2054_GETDATA
Reading the GUIDs using the WBS Key
BAPI_BUS2054_GET_GUID_FROM_KEY
Reading the WBS Key using the GUIDs
BAPI_BUS2054_GET_KEY_FROM_GUID
Check Existence of a WBS Element
BAPI_PROJECT_EXISTENCECHECK
Element
thnks
sitaram -
Upload of opening finance balances with wbs elements
Hi Gurus,
Appreciate if you can please share some knowledge on taking opening FI balances including open vendor and customer invoices with wbs elements..
We are going live in mid year and p&l items should reflect data of prior periods in the fiscal year...
Now question is how can we see project wise details in finance of already running projects?????
If we enter wbs in gl, customer and vendor lines then how will data come in cost and profit center, as project settlement is required to settle on cost center????
Whats is ideal way to handle such situation??
One more thing to add that we have activated document splitting on profit center.....
Please reply back
Thank youHi,
if those WBS are statiscall there will not any settlement even if you pass the WBS in docuemnt level if you don't maintain settlement rule it won't settle it. one more option pass the WBS in a/c doucment text filed or assignment then you can easily find it out .
Regards,
Raman -
Change of Source Structure for Partial Settled WBS elements - CJ02
Hi
As per standard SAP, the change of source structure under settlement perameters of WBS element is not supported when the settlement of WBS element is done either partial / full.
However, the client needs this change by doing any Z-Development as one time activity (since the source structure was changed for certain WBS elements as per change in business process).
Can i Know procedure to do the Z development to modify the source structure for partial settled WBS elements and also let me know the any side effects in this regard.
Regards
AnilHi Anil,
I agree with Ajay. You can try to change it in Debugging mode.
The values are handed over from include LCJWBF5Q (form project_settle_single using)
Some customer have also made a modification as a permanent solution.
Unfortunately in the standard it is not possible.
regards Bernhard
Maybe you are looking for
-
I think I'd read about how this is done but haven't been able to find the information. My two iMacs are connected through ethernet. I also have a macbook air which has a drive and all three macs are on the same wifi network. Maybe it can be done that
-
Configuring weblogic 8.1 to hide the jsp file name to be displayed
Hi, I am having problem with configuring weblogic 8.1 to display the jsp file name in the address bar. Please have a look at this link for a description of my problem http://theserverside.com/news/thread.tss?thread_id=28381
-
Custom operator for advanced search in OIM
Hi All, We have two operators like Equals and Begin with in Advanced users search. I want to search with new operator, Can we add any other new operators Regards user7609
-
Master-Detail infobus forms sugerencia
Here everything that work ... works, not fine ( it's a beta ) but works with ( aparently ) no problem . The wizard it`s very-very slow getting (I suppose) MetaData Information , the link it`s catched at the first time , only next and next without tou
-
Maintain hierarchies of GL Accounts
Is there a way to maintain hierarchies of GL accounts in FI module? Is there a transaction code to do this?