WBS element from WBS group
Hi
I want to know if there is any FM or table which gives me all the WBS elements under WBS group?
Thanks
1) call the function module CALL FUNCTION 'G_SET_GET_ID_FROM_NAME' with the WBS group as input and the output will be setid.
2) call the funtion module G_SET_FETCH' with the input as setid and the output will be two different internal tables values ans nodes.
3) Loop at the values internal table that will have the WBS element range values, that means the range as from WBS element value to WBS element.
4) Loop at the nodes internal table and for every loop value call the function module G_SET_FETCH again.So the output will be nodes and values are internal table, where the again you will be collecting the WBS element value,
Below is the code.
Types declaration
TYPES: BEGIN OF ltype_wbs,
value_fr TYPE rgsbv-from, " To hold WBS values
value_to TYPE rgsbv-to, " To hold WBS values
END OF ltype_wbs.
Internal table declaration
DATA : lt_values TYPE STANDARD TABLE OF rgsbv,
lt_nodes TYPE STANDARD TABLE OF rgsb1,
lt_nodes1 TYPE STANDARD TABLE OF rgsb1,
lt_wbs TYPE STANDARD TABLE OF ltype_prctr,
lw_wbs TYPE ltype_prctr,
Work area declaration
lw_values TYPE rgsbv,
lw_nodes TYPE rgsb1,
Local variable to store the set ID.
lv_id TYPE sethier-setid.
Ranges *
RANGES: r_wbs TYPE RANGE OF rgsbv-from,
r_wbs_wa LIKE LINE OF r_wbs.
get the set ID from the name.
CALL FUNCTION 'G_SET_GET_ID_FROM_NAME'
EXPORTING
shortname = p_pcgrp
IMPORTING
new_setid = lv_id
EXCEPTIONS
no_set_found = 1
no_set_picked_from_popup = 2
wrong_class = 3
wrong_subclass = 4
table_field_not_found = 5
fields_dont_match = 6
set_is_empty = 7
formula_in_set = 8
set_is_dynamic = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Get the values from ID
CALL FUNCTION 'G_SET_FETCH'
EXPORTING
setnr = lv_id
TABLES
set_lines_basic = lt_values
set_lines_single = lt_nodes
EXCEPTIONS
no_authority = 1
set_is_broken = 2
set_not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF lt_values IS NOT INITIAL OR lt_nodes IS NOT INITIAL.
LOOP AT lt_values INTO lw_values.
lw_wbs-value_fr = lw_values-from.
lw_wbs-value_to = lw_values-to.
APPEND lw_wbs TO lt_wbs.
ENDLOOP.
LOOP AT lt_nodes INTO lw_nodes.
REFRESH lt_values.
get the values from ID
CALL FUNCTION 'G_SET_FETCH'
EXPORTING
setnr = lw_nodes-setnr
TABLES
set_lines_basic = lt_values
set_lines_single = lt_nodes1
EXCEPTIONS
no_authority = 1
set_is_broken = 2
set_not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
APPEND LINES OF lt_nodes1 TO lt_nodes.
LOOP AT lt_values INTO lw_values.
lw_wbs-value_fr = lw_values-from.
lw_wbs-value_to = lw_values-to.
APPEND lw_wbs TO lt_wbs.
ENDLOOP.
REFRESH lt_nodes1.
ENDLOOP.
ENDIF.
Range for profit centers in the table t_prctr_cc
LOOP AT lt_wbs INTO lw_wbs.
r_prctr_wa-sign = c_i.
r_prctr_wa-option = c_eq.
r_prctr_wa-low = lw_wbs-value_fr.
r_prctr_wa-high = lw_wbs-value_to.
APPEND r_wbs_wa TO r_wbs.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM r_wbs.
Similar Messages
-
System is not picking up the WBS element from Asset in PO.
Hi,
While creating Purchase Order with account assignment category
as "A"(i.e.Asset), system is not picking up the WBS element from Asset
Master, even though it is defined in the asset master.
Please help.
Thanks,
NinadHello Ninad,
Please, see the SAP Note 21583. I think it might be of help for your case.
Best regards,
Esther. -
Fields copied to AUC from WBS Element (when WBS Element is released)
Hi,
I would like to know what are the fields that are copied to AUC from WBS element (when WBS Element is released).
Regards,
VivianHi Vivian,
menu path: Asset Accounting / Valuation / Determine Depreciation Areas in the Asset Class
Select there your asset under construction asset class.
Here you can fill in default values. (when you click on the fields you get more fields)
When you want to fill in other fields you can use a substitution ( Asset Accounting / Master Data / Define Substitution)
In our case, i think standard
The field description (WBS)
Req cost center (WBS)
Plant (WBS)
BA (WBS) -
Populate WBS Elements from GR/IR to FI document
Would like to know how to populate WBS element from Material Document - MIGO (PO document with account assignment = 'P') to FI document?
Message was edited by:
Peck Har Poh
Message was edited by:
Peck Har Poh
Edited by: Peck Har Poh on Nov 19, 2009 6:28 AMhi
if ur problem is to find the document number only, then go to tcode me23n and give ur PO number and click on PO history tab on item details.
hope it works.award if useful. -
Grouping Checks, All element from a group present with all option available in group
Respected Techie....May i get help on this how to design a query for below condition, if possible.declare @myTable table (PT varchar(50), MK varchar(50), MO varchar(50),
YR varchar(50), REMARKS varchar(50), PART varchar(50))
Table Structure:-
insert into @myTable values ('Battery' ,'Dodge','Ram 50', '1989', 'Four Wheel Drive', '51C') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Battery' ,'Dodge','Ram 50', '1989', 'Rear Wheel Drive', '51X') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Battery' ,'Dodge','Ram 50', '1989', 'Rear Wheel Drive', '51C') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Battery' ,'Dodge','Ram 50', '1989', 'Four Wheel Drive', '51X') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Air Filter','Dodge','Colt', '1990', 'Four Wheel Drive', '46264') -- This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Air Filter','Dodge','Colt', '1990', 'Four Wheel Drive', '875') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Air Filter','Dodge','Colt', '1990', 'Front Wheel Drive','46264') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Air Filter','Dodge','Colt', '1990', 'Front Wheel Drive','875') --This will be in Output, as Group of PT, MK,MO,YR have 2 remarks and part are available with both the remarks
insert into @myTable values ('Bull Bar' ,'Ford','F-250', '1997', 'Four Wheel Drive', '1330371971') --All element from a group of PT,MK,MO,YR should be Removed from output, as Part 1330371971 is not available with all the remarks available in a group. (1330371971 is not available with Rear Wheel Drive.)
insert into @myTable values ('Bull Bar' ,'Ford','F-250', '1997', 'Four Wheel Drive', 'NR-301') --All element from a group of PT,MK,MO,YR should be Removed from output, as Part 1330371971 is not available with all the remarks available in a group. (1330371971 is not available with Rear Wheel Drive.)
insert into @myTable values ('Bull Bar' ,'Ford','F-250', '1997', 'Rear Wheel Drive', 'NR-301') --All element from a group of PT,MK,MO,YR should be Removed from output, as Part 1330371971 is not available with all the remarks available in a group. (1330371971 is not available with Rear Wheel Drive.)
insert into @myTable values ('Controls', 'Cadillac','Chasis','1992', 'Rear Wheel Drive', 'CK620158') --Removed from output, as group by PT,MK,MO,YR contain only 1 remarks and 1 distinct part
insert into @myTable values ('Controls', 'Cadillac','Chassis','1992','Rear Wheel Drive', 'CK620159') --Removed from output, as group by PT,MK,MO,YR contain only 1 remarks and 1 distinct partThank You Very MuchIt would certainly help with some more details on the business rules.
I am puzzled over these two rows:
insert into @myTable values ('Bull Bar' ,'Ford','F-250', '1997', 'Four Wheel Drive', 'NR-301')
--All element from a group of PT,MK,MO,YR should be Removed from output, as Part 1330371971 is not available with all the remarks available in a group. (1330371971 is not available with Rear Wheel Drive.)
insert into @myTable values ('Bull Bar' ,'Ford','F-250', '1997', 'Rear Wheel Drive', 'NR-301')
--All element from a group of PT,MK,MO,YR should be Removed from output, as Part 1330371971 is not available with all the remarks available in a group. (1330371971 is not available with Rear Wheel Drive.)
Overlooking the fact that the part number in the comment does not match, how this is different from parts 51C and 51X which also has a Four Wheel Drive and a Rear Wheel Drive?
I guess the real question is how do I know what "all available options" are? I would kind of expect a table which defines this.
And please don't forget to tell us which version of SQL Server you are using!
Erland Sommarskog, SQL Server MVP, [email protected] -
Change WBS element from non-statistical to statistical
Hi all,
In the control tab of a WBS element, I am trying to change it from non-statistical to statistical. However, the checkbox is grayed out and not allowing me.
I have tried using transaction CNMASS for this but I am getting error CJ727: Changing the contents of the field is not permitted
How can I resolve this?
Thanks,i guess you have released the wbse. so system will not allow to indicate the statistical check box. as per standard you
have the indicate the check box before you release the wbse.
if you haven't the wbse then check the field status of statistical in opuk.
regards, -
Materials for Single wbs Element from project/Plant stock
Hi to all,
I would like to have the following scenarios for the single Project.
1) Some Activities in the single WBS Element will be using the Materials for specific to the Project. So MRP will be generated for the Project and PR,PO,Goods receipt will be done.
2) In the same WBS Element of some activity, wants to consume materials from the Plant stock. For this we donu2019t want to run MRP. From the reservation no, we want to take the materials for project use.
I have a single Network profile and I donu2019t want to create anymore.
Understand from movement type 411, we can take the materials from unrestricted Plant stock to project. Is there any other way/any config I need to check in account assignment category to fulfill the requirement to consume from Plant stock and also to use Project stock in a single profile.
Regards
N.RajuHi,
that is the only option, Std. SAP does not support for unrestricted plant stock ( for Project MRP or availability check).
same option-
1) transfer free stock( plant stock) to respective WBSE
2) Run MRP
3) Consume material.
Venkatesh -
Rectifying WBS Element from FI - Acquisition Entry in Asset
Hi all,
I have a scenario where an asset has been capitalized with WBS element 1. After several months we realized that it has to go to WBS element 2.
We update the Asset Master Data with a new WBS Element 2.
Depreciation from this date onwards is posted to WBS Element 2 (this is expected), but in FI the asset acquisition cost is still in WBS element 1.
Does anyone know how to rectify the FI document with correct WBS element i.e WBS Element 2 via asset module.
Any advice would be greatly appreciated
Regards
Pramod SaraswatAquasition postings and depreciation postings are 2 compleet different things in SAP.
You post an aquasition postings on a balance sheet account, as statistical information in the posting I think you give the WBS number.
When you change the WBS for the depreciation cost then from that date the depreciation costs is posted on WBS 2. For SAP there is nor reason to change the WBS from the aquasition costs.
A WBS is not an organiasational unit in SAP like company code, profit center, BA.
For these objects you have to do a transfer,
ABUMN - Transfer within Company Code
ABT1N - Intercompany Asset Transfer -
Change WBS element from Sales order
Hi...
I have created one sales order with WBS element assignment then I have created billing document and released to accountingu2026.
Accounting and controlling documents are fineu2026
After creation of accounting document system is allowing to change or delete the WBS element at sales order item levelu2026same time profit centre field does not allow to change or delete
We donu2019t want to user to change WBS element after creation of accounting documentu2026that field should be shown in greyu2026
Please help me to solve this issueu2026
Thanks,
RajHi,
You can create a Transaction Variant for the transaction VA02 in which you have to maintain the WBS Element field as output only.
1. Go to SHD0, enter VA02 in Transaction & give a name to the transaction variant and press Create.
2. Enter an order no., go to the item "Account Assignment" tab.
3. Check "Output Only" against WBS Element in the screen listing all the tabstrips & Fields.
4. Exit & Save.
You will be returned to the SHD0 screen.
Select the "Standard Variants" Tab under "Standard Vriants" tab. Press activate to activate the Transaction Variant.
Go to VA02 to test the variant. You will get the WBS Element disabled.
Revert in case of any doubts.
Regards,
Vijay -
How to find parent wbs element from child wbs element
Hi ,
I have a WBS element . How to find its parent WBS element . What should be the logic and table fields should i consider ? Please help me , its urgent.You can use the BAPI_PROJECT_GETINFO function module to get this info.
The function is very well documented, and it looks like the table E_WBS_HIERARCHIE_TABLE should have the WBS heirarchy in it.
Hope this helps.
Sudha -
How can find a new asset or old asset througha wbs element from anla table?
Hi,
I have a wbs element.I have to check whether it is a old one or new asset.How can justify about this things.
Please guide me.
Regards
RickyThe connection between WBS and asset under construction in in the table ANLI!
-
Physical deletion of WBS elements from PRPS table
Hi Experts,
In CJ20N transaction:
When I delete a project with project profile (ZABC), the following actions are performed:
- The project entry are physically deleted from 'PROJ' table.
- The WBS entries are physically deleted from 'PRPS' table.
When I delete another with with project profile (ZXYZ), the following actions are perfomed:
- The project entry are physically deleted from 'PROJ' table.
- The WBS entries are NOT physically deleted from 'PRPS' table.
What is the reason for not deleting entries physically from PRPS table?
Thank you for your valuable answers.Hi Experts,
In CJ20N transaction:
When I delete a project with project profile (ZABC):
- The project record is completely deleted from 'PROJ' table.
- The WBS records are completely deleted from 'PRPS' table.
When I delete another project with different project profile (ZXYZ):
- The project record is completely deleted from 'PROJ' table.
- The WBS records are NOT deleted from 'PRPS' table.
What is the reason for not deleting records from PRPS table for another project (Project profile: ZXYZ)?
Thanks in advance for your valuable answers. -
Converting WBS element from internal format
HI,
I have data from R/3 rolling into ODS from datasource and it comes in as the SAP WBS internal format 12345 instead of AZ/12678/10000/2000 etc.
The WBS field on the datasource already contains a conversion routine but is there any way that I can get this data in the correct format when inserting into the ODS or when it comes into original datasource?
ThanksThanks but I dont want to use it in the query I want to use it in the ODS as a lookup between another ODS which holds the WBS in the correct format.
So I have one ODS with the correct format, I want to use the WBS here to go to another ODS and use that WBS to look up the same value in ODS 2 and return a field from that where WBS1 = WBS2, unfortunatley I have teo different formats. -
Report showing sum of Budget/actual cost of WBS elements from diff proj
Hi,
i need to display consolidated budget/cost report for separate projects. (example PROJ 1 and PROJ 2)
in both projects, they have similar structure of WBS (same descriptions etc..)
in reports i can run both project but the values are summarized for the entire projects.. (results = Total of PROJ 1 + total of PROJ 2).
but i need report showing subtotals of WBS 1.1 of PROJ 1 + WBS 1.1 of PROJ 2 and so on...
i thought i could do it using CJI8 but i cannot filter it by description and do subtotals since it does not have a description column.
is my requirement possible with standard or need to customize a report?
thanks in advancehi
please try to use Co Object Name field with sub total -
hello
In PS are transactions CJSG, KJH2, KJH3 to generate, edit and view WBS element groups. Ok I can add many different WBS elements to my group. But I have one question. Which parameters should I change in config or in other place to get possiblity to report costs from such group of WBS elements?
So I have WBS element group and I would like to see their costs in eg CJI3 for this group. How could I achive it?
Edited by: Adam Sobkowicz on Jan 25, 2011 3:25 PM>
abdul khader wrote:
> may be you can use the functionality of dynamic selection by project type, by maintaining same project type in all WBSE to be grouped together.
this would give the right report only under the assumption that the Project Type used by the WBSE group under consideration is not shared by ANY other WBSE.
i think report painter/writer would be the only option to be able to use WBS element groups in the Cost reports.
Thanks and Regards
Maybe you are looking for
-
Hi I'm using Crystal Reports 2008 since 01.01.2008 - we bought it when it was Crystal Decisions Crystal Reports - not SAP Crystal Reports. Now I want to obtain new installation with all SP included (system reinstallation) but it's impossible - all do
-
Problem with iMacs loading web pages slowly after a power failure
We have 3 intel Macs (2 iMacs and a MB) on our network. Today we had a power failure, and now we are having problems with both iMacs loading some web pages slowly (in Safari and Firefox both). I have shutdown and restarted both iMacs to no avail. As
-
Hi Experts, I have a requirement to convert char type to Hex type. I have two structures. one is Character type and other is hex type like below. data: v_hex(300) type h, v_char(300) type c. When we move v_char(300) to v_char(300), it is work
-
hi.... i need to calculate servvice tax on transportation.... for ex. if kf00 is 1000rs... the service tax should calculate on 20% of the freight charges...could anyone give me solution for this.......... Thank you
-
Understanding Installed Applications on OSX
I'm new with a Macbook Pro. I am a pure Linux user and now I'm working on a nice shiny new Macbook Pro running 10.8.3. I tried to download PostgreSQL 9 for my Macbook Pro. I double clicked the PostgreSQL 'dmg' file I downloaded. I then got a new wind