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.

Similar Messages

  • Function module to get the wbs element by entering Assignment No.

    Is there any Function module to get the wbs element by entering Assignment No.???????
    Thanks and regards
    Manish Thakur

    hi Manish,
    Just look at this function module.
    function wbs_assignment_check.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_COMPONENT) LIKE  RESBDGET STRUCTURE  RESBDGET
    *"     REFERENCE(I_PSPEL) LIKE  RESB-PSPEL
    *"     REFERENCE(I_RFPNT) LIKE  AFVC-RFPNT
    *"  EXPORTING
    *"     REFERENCE(E_PSPEL) LIKE  RESB-PSPEL
      e_pspel = i_pspel.
    endfunction.
    hope this helps u
    REWARD IF USEFUL
    thanks and regards
    suma sailaja

  • 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.

  • How to get the system date format string?

    Hello, everybody!
    I want to create a MaskFormatter with a mask for dates. So, I could suply as the constructor parameter: "##/##/####'. However, what if the year comes first in the current system date format settings, or the month is in the second place or in the first?... So, I can't just suppose that the current locale format for dates is like the one above. So, my question is: is there a way to get the SYSTEM DATE FORMAT STRING in Java? Searching in google I saw that this was already asked in this forum:
    http://forum.java.sun.com/thread.jspa?threadID=301034&messageID=1193794
    but there was no effective answer. Does someone already know how to get this?
    Thank you.
    Marcos

    Hi, not sure, but
    import java.text.*;
    SimpleDateFormat sdf = new SimpleDateFormat();
    System.out.println(sdf.toPattern());
    will output something like dd/MM/yy HH:mm
    hthThank you very much. It worked.

  • How to get the last element of a structure in a textfield in DesignStudio

    Hello,
    how can I get the last element of a structure within a bex query?
    Within the structure we are working with dates that dynamically are buiId (input date - offsets for several months).
    I have to show the last value in a single textfield within DesignStudio.
    Regards
    Frank

    Hi Frank,
    in DS 1.3 you can use forEach function to get the last element of BEx structure (or n-th element in general using if condition)
    var array = DS_CROSSTAB1.getMembers("DHGY5D6XEFO1K45SB00BXFH7A",10);
    var lastMember="";
    array.forEach(function(element, index) {
           lastMember = element.text;
    TEXT_1.setText("Last structure element: "+lastMember);

  • BADI for CJ20N to get the WBS status when changed

    Hi all,
    Here's the requirement:
    I have to capture the previous status and currently changed status of the WBS element in CJ20N T-CODE and save this in the ZTABLE.
    Every time the STATUS of WBS element changes..the ZTABLE has to get updated.
    Will you please help me out to do this.
    I have tried with BADI - WORKBREAKDOWN_UPDATE, could find that the status part is updated after the call to WORKBREAKDOWN_UPDATE.
    Thanks and Regards,
    Krishna Chaitanya G
    Edited by: Krishna Chaitanya  G on Apr 27, 2009 6:30 PM

    Use BADI WORKBREAKDOWN_UPDATE method AT_SAVE.  The WBS elements are in internal table IT_WBS_ELEMENT which has structure PRPS.  Use OBJNR to find status with function module
    CALL FUNCTION 'STATUS_READ'
      EXPORTING
      CLIENT                 = SY-MANDT
        objnr                  = gs_wbs_element-objnr
        ONLY_ACTIVE            = ' '
      TABLES
        STATUS                 = et_status
      EXCEPTIONS
        OBJECT_NOT_FOUND       = 1
        OTHERS                 = 2
    The statuses are buffered in a separate memory area so be careful if you call any function modules that affect statuses e.g one to create Sales Orders as this initializes the buffered statuses and they are not changed when you save the WBS element.  To get round this problem put the current status in a separate memory area carry out the processing that initializes the statuses and then recall the status from memory.
      CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
      LOOP AT gt_pss_01 ASSIGNING <ls_pss_01>.
        AT NEW sold_to_party.
          CLEAR: ls_order_header,
                 lt_order_items,
                 ls_order_partners,
                 lt_order_partners.
          "Header
          ls_order_header-doc_type = c_rsbill_order_type.
          CALL METHOD <ls_pss_01>-o_pss01->get_sales_area
            IMPORTING
              e_sales_org  = ls_order_header-sales_org
              e_division   = ls_order_header-division
              e_distr_chan = ls_order_header-distr_chan
            EXCEPTIONS
              not_found    = 1.
          IF sy-subrc NE 0.
            CONTINUE.
          ENDIF.
          "Partner
          IF <ls_pss_01>-sold_to_party IS INITIAL.
            CONTINUE.
          ENDIF.
          ls_order_partners-partn_role = 'AG'.
          ls_order_partners-partn_numb = <ls_pss_01>-sold_to_party.
          APPEND ls_order_partners TO lt_order_partners.
        ENDAT.
        "Items
        CLEAR ls_order_items.
        ls_order_items-itm_number = <ls_pss_01>-posnr.
        ls_order_items-material = c_rsbill_material.
        ls_order_items-wbs_elem = <ls_pss_01>-posid.
        APPEND ls_order_items TO lt_order_items.
        AT END OF sold_to_party.
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
            EXPORTING
              order_header_in   = ls_order_header
              behave_when_error = space "'P' "Save when error occurs
              testrun           = space
            IMPORTING
              salesdocument     = <ls_pss_01>-sales_order
            TABLES
              return            = <ls_pss_01>-bapireturn
              order_items_in    = lt_order_items
              order_partners    = lt_order_partners.
        ENDAT.
      ENDLOOP.
    *--Re-fill status from memory
      CALL FUNCTION 'STATUS_BUFFER_IMPORT_FROM_MEMO'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
    Hope this is of some use

  • 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.

  • 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.

  • 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.

  • 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

  • To display the WBS elements for last one year

    Hi All,
        Im displaying the details of all active employees. I need to display the WBS elements of all active employees for the last one year alone. Can anybody help me out to get this...
    Regards,
    Surya

    Hi,
    select all the PERNRs with
    BEGDA and ENDA as per ur req
    to check if they are active or not
    use the FM
    HR_BEN_US_CHK_TERMINATION
    then take all the active PERNRs and use
    them to query PRPS table with
    OBJNR = activePERNR

  • Is there any function to get the name of the days?

    Hi,
    I'm using oracle 10.2.0.1.0
    Is there any function to get the days of the week?
    like i need to get sunday,monday,tuesday.....saturday.
    I know i can use union and select the name from dual one by one.
    But just want to know whether there is any other way.
    I need to show the 7 days in a poplist in my form, thats the requirement
    Thanks

    David_Aldridge wrote:
    BluShadow wrote:
    Note: you may want to include "fm" in the format mask, otherwise the name of the day is padded with spaces:
    SQL> ed
    Wrote file afiedt.buf
    1  select replace(to_char(dt,'Day'),' ','*') as fmt1
    2        ,length(to_char(dt,'Day')) as length_fmt1
    3        ,replace(to_char(dt,'fmDay'),' ','*') as fmt2
    4        ,length(to_char(dt,'fmDay')) as length_fmt2
    5  from (select TRUNC(SYSDATE ,'DAY')+Level-1 dt
    6        from   dual
    7        connect by Level<8
    8*      )
    SQL> /
    FMT1      LENGTH_FMT1 FMT2      LENGTH_FMT2
    Monday***           9 Monday              6
    Tuesday**           9 Tuesday             7
    Wednesday           9 Wednesday           9
    Thursday*           9 Thursday            8
    Friday***           9 Friday              6
    Saturday*           9 Saturday            8
    Sunday***           9 Sunday              6
    7 rows selected.
    SQL>
    I think you should use a pl/sql function for this.
    Nah ... just joking.
    I'd be tempted to just use a union all statement to return the seven literals. People will look at it and know exactly what it does.Yeah, agreed, I was just demonstrating that the format mask of a to_char(..., 'Day') pads with spaces, which seems to have been missed in the above answers. ;)

  • 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

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • Is there a function to get the IP of this remote system

    Hello EveryBody
    Currently I have an application that runs on our network. When someone logs on to the network it checks there system and gets the pc name. I would like to also get the IP address of that system. As well I may later like to ping that computer.
    1) Is there a function to get the IP of this remote system?
    2) IS the a function to ping a remote system and receive back the response?
    Thanks a lot.
    R

    Hello EveryBody
    Currently I have an application that runs on our
    network. When someone logs on to the network it
    checks there system and gets the pc name. I would
    like to also get the IP address of that system. As
    well I may later like to ping that computer.
    1) Is there a function to get the IP of this remote system?
    2) IS the a function to ping a remote system and
    receive back the response?Is this lan only?
    Because if wan or internet then the remote computer would have to have an address that is reachable from your computer. For the internet this would mean it would have to be public. And for a wan the IP would have to be unique across the wan.

Maybe you are looking for