Which field matches to the WBS element

Hi,
     I am doing an interface program, in that I need to populate the WBS element in trasaction VA01 under the tab Account Assignment. I am using the BAPI 'BAPI_SALESORDER_CREATEFROMDAT1'.
Let me know which field matches the field WBS Element in the structure 'ORDER_ITEMS_IN' which is returned from the said BAPI.
Thanks in advance,
RG

Hi
In VBAP there is a field for this WBS ELEMENT <b>PS_PSP_PNR</b>
check for that in BAPI structures
check the field ASSORT_MOD of BAPIITEMIN .
Reward points if useful
Regards
Anji

Similar Messages

  • Which PO and PR table can be used to get the WBS element field.

    Which PO and PR table can be used to get the WBS element field. Thanks.

    HI,
    In the PO the concerned field for WBS element shall be tracked in the Item details and the account assignment tab in PO.
    It shall be checked from EKKO table with PS_POSI feld.
    The same shall also be tracked in PR from EBAN table .please refer the account assignment tab in the PR item details.
    Hope this helps.
    Regards,
    Prasanna
    Award pls if helpful.

  • Trasaction code for invoices detail which has hit the WBS element

    Hi All
    Usually my users receive a list of assets which were capitalized from AUC account through Project system.
    Generally charges are posted to WBS element and then users capitalize assets using that WBS element through settlement.
    Users have been asked to give all the invoices detail which has hit the WBS element from which that particular assets have been capitalized. is there any transaction code to get the all invoices detail which has hit the WBS element from that particular assets.
    thank you

    If that is what you want then why are you using WBS element?
    You can directly create the asset on goods receipt via MM module and then the invoice will automatically go against that asset.
    If you still want to use the WBS element for capitalisation then you can use the WBS element statistically with a type 90 cost element posting and the sset will still be crteated when goods receipted/ invopice receipted

  • Changes in a field of any of the WBS element should change in all WBSelemnt

    Dear All ,
    I have a requirement in CJ20N transaction where if i am changing in any of the field under a certain WBS element then it should change automatically for all the WBS elements of that project automatically.
    Now it is changing only in that particular WBS elemnt.
    Do anybody knows the BADI/exit for the same/how to make it possible if there is a way.
    Regards
    Rajendra

    Hey experts its much required , can u do some thing on this.

  • Removing the business area from the WBS element

    Hi Experts,
    I have created the WBS element with business area. Then created the PR against that WBS element , converted the PR's to PO's.
    Now I want to remove the business area from WBS element.
    Now as Business area field become grayed out hence I canot remove the Business area from WBS element.
    Hence I have cancelled the PO's then Cancelled the PR's. So now there is no actual cost & no commitment exists against the WBS element.
    But still Business area field is grayed out for that WBS element.
    Could you please let me know how to remove the business area in this case ???
    Regards,
    Pradip

    Hi,
    Once BA is grayed out then you can not change the same, this is sap std. behavior. Here you can lock the existing wbse which having wrong BA to avoid further actual postings.
    Create new wbse with correct BA & then create pr & po.
    Regards,
    Sandeep

  • Fetch the netprice from the validity period which always matches with the

    Let me describe the same.
    Suppose the PO creation date is 04.07.2007
    The conditions for an item in a contract for the PO are as follows;
    1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
    2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
    We need to always fetch the netprice from the validity period which always matches with the PO creation date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
    But the program is fetching the netprice 200.000 which belongs to the second validity period. That is beacuse the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.the fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrives the netprice of current data in contract validity and h not with respect to PO creation date.
    This data is then used to fetch the get the netpr data from EKPO.
    what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date..
    Below is the code where I'm selecting the data from ekko and ekpo for the contracts data..Can you please add the code snippet to the below attachesd subroutine to get the required data from KONV and KONP so that we can retrieve the correct Netprice.
    FORM select_contracts USING p_s_cebeln LIKE s_cebeln[]
    p_c_k_bstyp TYPE ebstyp
    p_p_bukrs TYPE bukrs
    p_p_ekorg TYPE ekorg
    p_p_ekgrp TYPE bkgrp
    *Begin of Mod-004
    fp_p_cernam type ty_r_ernam
    p_p_cernam TYPE ernam
    *End of Mod-004
    p_s_werks LIKE s_werks[]
    p_s_matnr LIKE s_matnr[]
    p_s_lifnr LIKE s_lifnr[]
    p_s_val_dt LIKE s_val_dt[].
    *mod-002
    data : l_amount type BAPICURR_D, " Net price
    l_waers TYPE waers, " Currency Key
    l_eff_amount type BAPICURR_D. " Effective value
    data: l_v_netpr type bprei.
    *mod-002
    SELECT ebeln
    bukrs
    bstyp
    aedat
    ernam
    lifnr
    zterm
    ekorg
    ekgrp
    waers
    wkurs
    kdatb
    kdate
    inco1
    INTO TABLE i_ekko
    FROM ekko
    WHERE ebeln IN p_s_cebeln
    AND bstyp EQ p_c_k_bstyp
    AND bukrs EQ p_p_bukrs
    AND ekorg EQ p_p_ekorg
    AND ekgrp EQ p_p_ekgrp
    *Begin of Mod-004
    AND ernam EQ p_p_cernam
    AND ernam IN fp_p_cernam
    *End of Mod-004
    AND lifnr IN p_s_lifnr
    AND ( kdatb IN p_s_val_dt OR kdate IN p_s_val_dt ).
    IF sy-subrc EQ 0.
    Populates internal table i_ekpo using EKPO table.
    SELECT ebeln
    ebelp
    loekz
    txz01
    matnr
    werks
    ktmng
    menge
    meins
    bprme
    netpr
    peinh
    webaz
    mwskz
    uebto
    untto
    erekz
    pstyp
    knttp
    repos
    webre
    konnr
    ktpnr
    ean11
    effwr
    xersy
    aedat
    prdat
    INTO TABLE i_ekpo
    FROM ekpo
    FOR ALL ENTRIES IN i_ekko
    WHERE ebeln = i_ekko-ebeln
    and aedat = i_ekko-aedat
    AND werks IN p_s_werks
    AND matnr IN p_s_matnr.
    LOOP AT i_ekpo INTO rec_ekpo.
    MOVE rec_ekpo-ebeln TO rec_contr-ebeln.
    MOVE rec_ekpo-ebelp TO rec_contr-ebelp.
    MOVE rec_ekpo-loekz TO rec_contr-loekz.
    MOVE rec_ekpo-txz01 TO rec_contr-txz01.
    MOVE rec_ekpo-matnr TO rec_contr-matnr.
    MOVE rec_ekpo-werks TO rec_contr-werks.
    MOVE rec_ekpo-ktmng TO rec_contr-ktmng.
    MOVE rec_ekpo-menge TO rec_contr-menge.
    MOVE rec_ekpo-meins TO rec_contr-meins.
    MOVE rec_ekpo-bprme TO rec_contr-bprme.
    MOVE rec_ekpo-netpr TO rec_contr-netpr.
    move l_v_netpr TO rec_contr-netpr.
    mod-002
    read table i_ekko into rec_ekko with key
    ebeln = rec_ekpo-ebeln.
    l_waers = rec_ekko-waers.
    CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
    EXPORTING
    currency = l_waers
    amount_internal = rec_contr-netpr
    IMPORTING
    AMOUNT_EXTERNAL = l_amount.
    rec_contr-netpr = l_amount.
    mod-002
    MOVE rec_ekpo-peinh TO rec_contr-peinh.
    MOVE rec_ekpo-webaz TO rec_contr-webaz.
    MOVE rec_ekpo-mwskz TO rec_contr-mwskz.
    MOVE rec_ekpo-uebto TO rec_contr-uebto.
    MOVE rec_ekpo-untto TO rec_contr-untto.
    MOVE rec_ekpo-erekz TO rec_contr-erekz.
    MOVE rec_ekpo-pstyp TO rec_contr-pstyp.
    MOVE rec_ekpo-knttp TO rec_contr-knttp.
    MOVE rec_ekpo-repos TO rec_contr-repos.
    MOVE rec_ekpo-webre TO rec_contr-webre.
    MOVE rec_ekpo-konnr TO rec_contr-konnr.
    MOVE rec_ekpo-ktpnr TO rec_contr-ktpnr.
    MOVE rec_ekpo-ean11 TO rec_contr-ean11.
    MOVE rec_ekpo-effwr TO rec_contr-effwr.
    mod-002
    CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
    EXPORTING
    currency = l_waers
    amount_internal = rec_contr-effwr
    IMPORTING
    AMOUNT_EXTERNAL = l_eff_amount.
    rec_contr-effwr = l_eff_amount.
    *mod-002
    MOVE rec_ekpo-xersy TO rec_contr-xersy.
    APPEND rec_contr TO i_contr.
    CLEAR: rec_ekpo,rec_contr.
    mod-002
    CLEAR : rec_ekko,l_amount, l_eff_amount,l_waers.
    mod-002
    ENDLOOP.
    Modifying i_contr using i_ekko.
    SORT i_ekko BY ebeln.
    LOOP AT i_contr INTO rec_contr.
    READ TABLE i_ekko INTO rec_ekko WITH KEY
    ebeln = rec_contr-ebeln
    BINARY SEARCH.
    MOVE rec_ekko-bukrs TO rec_contr-bukrs.
    MOVE rec_ekko-bstyp TO rec_contr-bstyp.
    MOVE rec_ekko-aedat TO rec_contr-aedat.
    MOVE rec_ekko-ernam TO rec_contr-ernam.
    MOVE rec_ekko-lifnr TO rec_contr-lifnr.
    MOVE rec_ekko-zterm TO rec_contr-zterm.
    MOVE rec_ekko-ekorg TO rec_contr-ekorg.
    MOVE rec_ekko-ekgrp TO rec_contr-ekgrp.
    MOVE rec_ekko-waers TO rec_contr-waers.
    MOVE rec_ekko-wkurs TO rec_contr-wkurs.
    MOVE rec_ekko-kdatb TO rec_contr-kdatb.
    MOVE rec_ekko-kdate TO rec_contr-kdate.
    MOVE rec_ekko-inco1 TO rec_contr-inco1.
    MODIFY i_contr FROM rec_contr.
    ENDLOOP.
    ENDIF.
    REFRESH: i_ekko,
    i_ekpo.
    CLEAR : rec_ekko,
    rec_ekpo,
    rec_contr.
    ENDFORM. "select_contracts
    Thanks.

    Hi,
    Please get the valid condition ( based on date ) from A016 (MK & LPA). With the appropriate KNUMH read the Condition header. You can access the different condition items viz., PB00, RA00 etc., for the values from table KONP. Further if you have Value scales / Quantity scales, you can read the data from KONM, KONW.
    An additional tips: in KONP, if you have a condition like RA00 - Rebate, the value will be multiplied by 10 and saven in database to accomodate the discount to the third decimal.
    I could not completely understand your requirements like nature of development ( Is it a Report / SAP Script ??) you are working etc., so that I could help you precisely.
    Hope this helps,
    Best Regards, Murugesh AS
    Message was edited by:
            Murugesh Arcot

  • Which table has auc to wbs element relationship stored

    Hello everyone,
    I have to write a report on costs for AUC.  I have following scenario:
    auc1-----wbs2--internal order4
    ............... |----
    internal order3
    ............... wbs1----internal order1
    ............... |------internal order2
    ............... |
    auc2-----wbs3 -
    internal order1
    I tried my best to depict the scenario in the picture.....so basically i want auc1 cost.....now client does not want to see wbs3 element...since it is settling to auc2.....if i put in the project def in the following bapi(BAPI_PROJECT_GETINFO)...i get all the wbs elements..since there is a settlement from wbs1 to wbs3..is there any table which can give me relationship...or which can tell me that which wbs is settling for which auc....
    Thanks...i hope i was able to explain my question....
    appreciate the help....
    AS.

    Hi all, thanks for all the help and support on this...I found a way to get all the CO settlement doc numbers for a project and their relationship as sender and receiver..... first i went to anla and anek to get the AUC and the wbs settling to this AUC relatiionship...once i got my main wbs element...i found all the wbses for this project. I need to use the table AUAK, AUFK, and AUAA to get all that information. I got all my wbses for a project first....than I went to table AUAK with all these wbses...and found the belnr(settlement doc numbers)....this table does not give out complete settlement doc numbers for wbses....we need to go back to AUAK with the internal orders to get the belnrs for them as well....so to get all the internal orders for a project i went to AUFK....than i took these orders and went back AUAK with these orders and got my missing belnrs.... now I had all my belnrs for a project....so i went to table AUAA and did the select with these belnr...and since now i have the primary key the access is lighting fast....by doing that select i got all my relationship, i mean which settlement is goind where... mind you that I used AUAS to get the sender/receiver relationship with the amount....this is as well a cluster table but we have the primary key belnr(co settlement doc. numbers)...so no worries to get the data here as well.... here are my selects for AUAK, AUFK and AUAA....
    TYPES: BEGIN OF prps_ty, psphi TYPE prps-psphi, END OF prps_ty. DATA all_proj TYPE STANDARD TABLE OF prps_ty. DATA wa_all_proj TYPE prps_ty. TYPES: BEGIN OF objnr_ty, objnr TYPE auak-objnr, END OF objnr_ty. DATA lo_p_psp TYPE STANDARD TABLE OF objnr_ty. IF all_proj IS NOT INITIAL. SELECT objnr FROM prps INTO TABLE lo_p_psp FOR ALL ENTRIES IN all_proj WHERE psphi = all_proj-psphi. ENDIF. IF lo_p_psp IS NOT INITIAL. SELECT belnr objnr FROM auak INTO TABLE tab_auak FOR ALL ENTRIES IN lo_p_psp WHERE kokrs IN p_kokrs AND gjahr IN p_gjahr AND objnr = lo_p_psp-objnr * AND objnr LIKE 'PR%'. SORT tab_auak BY belnr. DELETE ADJACENT DUPLICATES FROM tab_auak COMPARING belnr. SELECT aufnr objnr pspel FROM aufk INTO TABLE tab_aufk FOR ALL ENTRIES IN lo_p_psp WHERE bukrs IN p_bukrs AND kokrs IN p_kokrs AND pspel = lo_p_psp-objnr. ENDIF. *get the belnrs for orders---this part is very important or we miss out all the belnrs for I/O... IF tab_aufk IS NOT INITIAL. SELECT belnr objnr FROM auak INTO TABLE tab_auak2 FOR ALL ENTRIES IN tab_aufk WHERE kokrs IN p_kokrs AND gjahr IN p_gjahr AND objnr = tab_aufk-objnr. ENDIF. *append these new belnrs to tab_auak LOOP AT tab_auak2 INTO wa_tab_auak2. * CONCATENATE 'PR' wa_tab_aufk-pspel INTO wa_tab_auak2-objnr. APPEND wa_tab_auak2 TO tab_auak. ENDLOOP. SORT tab_auak. "by belnr. DELETE ADJACENT DUPLICATES FROM tab_auak. *now get all the belnrs for this project...complete list.... IF tab_auak IS NOT INITIAL. SELECT belnr aufnr pspnr anln1 coobjnr FROM auaa INTO TABLE tab_auaa FOR ALL ENTRIES IN tab_auak * WHERE pspnr = wa_wbs-posnr WHERE belnr = tab_auak-belnr AND emtyp = 'PR' AND bukrs IN p_bukrs AND kokrs IN p_kokrs. ENDIF. SORT tab_auaa BY pspnr belnr.
    I used our own indexes for all the transparent table accesses.... to speed up the process...you might want to create your own indexes depending on the where clauses for transparent tables..... well thanks again..and hope all this will help someone else too.... AS...

  • Settling the WBS element costs to an AuC

    Please Explain the procedure for settling the WBS element costs to an AuC & then to asset?

    Hi,
    Please follow the below sequence of steps for this:
    1) For WBS element where the asset has to be created, AUC willbe created automatically when the WBS element is in release status to get this investment profile should be assigned to WBS element in Control Tab
    2) You can see in the system status show as AUC to see the AUC number follow the path
        EDIT-> WBS element -> Investment program--> Asset under Construction where you can see the AUC which is created automatically
    3) Once the above two steps are through, for settlement to AuC goto transaction CJ88 give the WBS element number select the processing type as partial captalization and execute all the costs pertaining to that. WBS elements will be automatically settled to the AUC which is created for that WBS element
    Thanks,
    Prithwiraj.

  • RFC function to get the WBS Element formatted string

    Hi,
    Is there an RFC function I could use which would do what the CONVERSION_EXIT_ABPSN_OUTPUT does?
    We are using Project IDOC to replicate WBS element in our procurement system. The IDOC only provides the unformatted version of the WBS Element id.
    Thanks
    Michael

    hi michael,
    I believe BAPI_PROJECT_MAINTAIN is the bapi you are looking for ..
    also you could refer the thread below for sample code of the same
    [LINK|Update WBS element;
    This bapi will help you update the WBS element ..
    you could also refer the following wiki
    http://wiki.sdn.sap.com/wiki/display/PLM/HowtouseBAPIinProjectSystem+Module
    Best regards
    Manthan.

  • How to find the WBS element for the payment document?

    Dear All,
    How to find the WBS element in the payment document?...I know in payment doc there will not be any WBS but is there any option where I can find in any of the Tables.
    I am in the process of developing a Z report where i need to fetch the payment documents based on WBS. Can any one please help me on this.

    Hi Ram,
    As you are not giving any input of WBS at the time of payment you cannot fetch this directly. But to know the WBS for the reporting purpose on which WBS the payment has been made, you can develop a Z-Report. The WBS elements of clearing documents against the payment entry can be fetched out.
    In this report if there is a single payment against many invoices also possible with different invoice and WBS elements to be displayed on the Z-Report
    Regards
    Divya S

  • How can I enter actual percentage of completion in the WBS elements?

    Hi all !
    I Can not enter Actual percentage of completion in WBS elements...!
    I have followed these steps in Progress analysis:
    1.- In the progress tab of WBS elements I have entered Measurement method ESTIMATION for
    progress analysis (Plan&Actual).
    2.- In the WBS element I have estimated PLAN percentage of completion 100% in period 8
    3.- In the progress tab of network activities, I used ESTIMATION method for Plan and WORK for actual
    to calculate the percentage of completion.
    4.- I have entered final network confirmations
    Actual Start date: 08.11.2014
    Actual Finish date: 08.15.2014
    Remaining work is cero.
    5.- I run Project analysis to display measurement methods with transaction CNE1
    and Progress analysis with transaction CNSE5
    In Progress analysis the Processing % of work in Network activities is 100% but 0% in the WBS
    element
    Adj.NAgg.Act. POC (Adjusted non-aggregated actual percentage of completion)is 100% in network activities
    POC actual, non-agg.(Non-aggregated actual percentage of completion)is 100% in network activities.
    Does SAP calculates actual POC?
    Should I manually enter Actual percentage of completion in the WBS elements?
    I can not enter percent of completion (actual value) for WBS elements. The field is non editable !
    Please help !

    Hi Rafael,
    I am facing the same problem.
    I am using Plan method at activity : Time Proportional
                    Actual method at activity :  Work completion
    At wbs level Plan and actual is Time proportional.
    I am not identified how the "Adjusted non-aggregated actual percentage of completion" and
    "Non-aggregated actual percentage of completion"  is calculated.
    Please help me for the same.
    Regards,
    Pradeep

  • Unable to close the WBS element because of inventory issue

    Hello
    We are facing one issue where we are trying to close one WBS element but getting error that stock still exsists.
    When i checked in table MSPR i found that for one of the material in the WBS element the physical inventory process is still not complete
    Physical Inventory Blocking Indicator ,Indicator that specifies that the stock is blocked for a physical inventory has value A(Physical inventory not yet completed for amterial) in that table for one of the materials.
    KIndly advice how to complete the proces and close the WBS.

    Dear,
    Check the links:
    Physical inventory block in material master
    Re: Physical Inventory & Goods movement process
    Cycle count not counting correct number of items
    Regards,
    Syed Hussain.

  • 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,
    Ninad

    Hello Ninad,
    Please, see the SAP Note 21583. I think it might be of help for your case.
    Best regards,
    Esther.

  • Possible to show the WBS element in the down payment request?

    Hi,
    We have a

    Hi,
    We have a Plant maintenance order with a WBS element.
    We have created a PO for a vendor. The WBS element is not shown on the PO.
    Is it possible to show the WBS element on the down payment request of that vendor?
    Thank you for your feedback.
    Kind regards,
    Linda

  • FM To Check if the WBS Element is blocked for posting.

    Hi,
    Is there any Function Module that would check if the WBS element entered for a NON PO invoice has been locked for posting.
    Regards,
    Vipin Rajan.

    try fm STATUS_READ_MULTI
    A.

Maybe you are looking for