Issue in Updating Customer specific fields in WBS using BAPI_BUS2054_CREATE_MULTI

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 priority

Hi 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

Similar Messages

  • BP extend : how to use FM to update customer specific fields ?

    Hello
    I'm working on a CRM 2007 project and for customer needs, the BP data have been extent with specific fields using EEWB. So specific FMs have been automatically generated to manage the specific data. We want to use these FM to maintain the values of the specific fields. In the EEWB transaction, in the Task BUPA_API for the specific object, 2 FMs have been generated : ZZ1XO_BUPA_MAINTAIN and  ZZ1XO_BUPA_MNTN_ALL : we suppose we have to use these FMs to update the values fo this object. This object (customer specific data) is time dependent with gaps and multiple instance. We tried to use these 2 FMs to update values but it does not work : anybody has already used this kind of FMs ?
    Thanks to all.

    Jerome,
    Normally I use the FM modules generated by the EEWB that contain API to update the data.  However keep in mind if this is a Z-Table and you don't like what is provided, then add your own BAPI modules to the BDT function group to update the data.
    Take care,
    Stephen

  • Can I update Customer specific fields with BAP_PO_CHANGE

    Using 4.7 and APO 4.0. We're having to create multiple schedule lines (EKET) for PO Items for TP/VS functionallity. I've found a neat trick for doing this by using BADI ME_PURCHDOC_POSTED to trigger an FM in a new task.
    This FM waits until PO is unlocked and then uses BADI_PO_CHANGE to "split" the schedule lines. However I'm having trouble finding an easy way to populate new customer (Z) fields on the Schedule Line at the same time.
    Any Ideas??? 
    Thanks
    Charles

    excuse me - I'm using BAPI_PO CHANGE not BADI.
    Thanks again

  • Customer Specific Fields in MASSD

    Hello All,
            Can we use the MASSD transaction to update the customer specific fields?
    I see our Z fields in the component and attributes. But when I try to change and save the values it's not getting reflected in the table. But it's working fine  for the standard fields.
    Please clarify.
    Thanks,
    Siva.

    Dear Siva,
    if you would like to use in MASSD a MATLOC extension in CI_MATLOC please insert the same field names in the Include CI_MATLOCX of structure /SAPAPO/EXT_MATLOCX to solve the issue.              
    The fields should have the component type BAPIUPDATE there.    
    It is not possible to use LOC extension and to select customer specific fields from  structure CI_LOC in MASSD.                
    I hope I could help you with this information.
    Regards,
    TIbor

  • Customer specific field table T77OMATTR

    Hi guys.
    SRM 4.0, server 5.0.
    I have added an attribute to use in the PPOMA. My attribute is for the tax jurisdiction code, besides this extra attribute I have added a customer specific field to the SC. But which function modules should I use to fill the customer field with my attribute, any ideas? I would believe that everytime you enter a new attribute in the table, you would also have to do some coding before it can work, right?
    Thanks
    Dennis M

    Hi
    <b>Here are some related links -></b>
    Re: Creation of Custom Attributes in org structure
    R/3 to SRM
    Creating a new custom attributes in org structure
    First take a look at this forum post regarding your questions - the thread has relevant info for you:
    FM for attribute's value assignation in PPOMA ?
    <u>Regarding your specific queries</u>:
    Can you automate replication?
    Yes - it can be automated. Post processing BADIs exist in the IDOC to allow you to perform your actions.
    <u>What are the tables?</u>
    Well not that you are ever to directly read or update these tables, but they are HR info type tables. Examples would be HRP1222, HRP1000, etc. If you really want to the table that has the attribute value see table HRT1222. Again look only - never develop a program to read/update these tables.
    As mentioned in the forum thread above use the function modules BBP_READ_ATTRIBUTES/BBP_UPDATE_ATTRIBUTES.
    <b>Do let me know, incase you need more details.</b>
    Regards
    - Atul

  • Customer specific field.........

    hi,
    1- How can i  create customer specific fields for PROJ DEF. & WBS.
    2- how it will come on the PS WBS or Proj. Def. Screen

    Hi,
    You can create Customer Specifc field through Enhancement of Configuration. You need to go to transaction CMOD & define the enhancement. ABAPer will be required for this purpose.
    Hope this will help you.
    Regards,
    Rakesh Pradhan

  • How to populate customer specific field data in table /SAPAPO/ORDFLDS

    Dear Gurus,
    I have explained in detail about the problem we face. I guess persons who has implemented enhancement:  /SAPAPO/RRP_IO_COL in their system can help me out.
    Background:
    Purchase requisitions in APO is created by an idoc that comes from a legacy system using BAPI CALL FUNCTION 'BAPI_POSRVAPS_SAVEMULTI3'.
    Business Requirement:
    I have a business requirement where I need to populate an additional data 'Original delivery date' from the idoc during PR creation in Product view.
    Development:
    To achieve the above requirement, we are following the below procedure in our development system.
    1. We are using enhancement:  /SAPAPO/RRP_IO_COL, method: RRP_USEX_COLS_FILL_01 and RRP_USEX_COLS_GET_TEXT_01 to display an additional field 'Original delivery date' in /sapapo/rrp3 - elements view. This field is restricted to Purchase requisition (Order category: AG) only. We are planning to populate the additional data 'Original delivery date' in this customer specific field and store it in table: /SAPAPO/ORDFLDS at the time of PR creation.
    2. Table: /SAPAPO/ORDFLDS is appended with the 'customer specific field'.
    3. We couldnt find a document on how the data can be populated in table /SAPAPO/ORDFLDS.
    4. How to polulate the live cache data in the table  '/APAPO/ORDFLDS' ? ( i.e using connection parameter )?
    Appreciate if you can throw me some light on this.
    Thanks
    Vignesh M

    Hi Vignesh,
    ANy luck on this ? I am trying the almost same thing...and stuck at same point.
    Please let us know if you have any more information.

  • How to use customer-specific fields with FI-CA event 940?

    The following text can be found under FI-CA event 940:
    You can also set customer-specific fields if you have defined the predefined include for customer enhancements CI_FKK_ACCIT_CUS in the structure FKK_ACCIT_CUS. The fields included here must have the same field name as the fields included in the structure ACCIT. These can also originate from an enhancement of the coding block in General Ledger Accounting. The fields Reservation Class and Reservation Key of the reconciliation key and the totals record are available as import parameters.
    My requirement is to populate the field HZUON in this event, which will be called when running t-code FPG1 (Transfer of FI-CA total records to general ledger)
    The problem is the fact that the output of the event (i.e. output of function module FKK_SAMPLE_0940 at first) only have the following fields:
    E_ZUONR     LIKE     ACCIT-ZUONR     Zuordnung (BSEG-ZUONR)
    E_XREF2     LIKE     ACCIT-XREF2     Referenz  (BSEG-XREF2)
    E_SGTXT     LIKE     ACCIT-SGTXT     Positionstext
    E_BUPLA     LIKE     ACCIT-BUPLA     Businnes Place (Korea only)
    I tried adding a new field to structure CI_FKK_ACCIT_CUS and adding this field to the output of the event 940, but how do I ensure that the content of the field will be used to populate the HZUON field of the FI document during "transfer of FI-CA total records to general ledger"?
    Cheers,
    Teo

    Hi Teo,
    I happened to see this post from you when I searched for a similar scenario related to event 940. I also need to add two fields in CI_FKK_ACCIT_CUS and make these fields as outputof the event. Did you come across any solution for the same? If so, can you please share.
    Regards,
    Harikumar. S
    Edited by: Harikumar Sasidharan on Dec 30, 2009 12:14 PM

  • Report Painter: How to add new(customer specific) field to CCSS table

    Dear Experts,
    We have requirement to display the orders based on Profit center or Profit center groups in report painter. So in report library(6O1), we want to add fieild PRCTR or any customer specific field(ZPRCTR) to CCSS table. Could you please let us know how to add field ?
    or is possible to add customer specific field(ZPRCTR) in CCSS and link that field to Profit Cetner(PRCTR) and profit center group.
    Please help us..
    Thanks in advance

    You can check the below OSS notes:-
    <https://service.sap.com/sap/support/notes/929889>
    <https://service.sap.com/sap/support/notes/522581>
    <https://service.sap.com/sap/support/notes/43493>
    Regards,
    Gaurav

  • Customer specific fields or tab in SOLAR_PROJECT_ADMIN

    Hi Experts,
    is it possible to add customer specific fields to transaction SOLAR_PROJECT_ADMIN?
    If yes, is it also possible touses that fields for reporting functionalities?
    Best regards,
    Martin

    Hi Martin,
    By standard you can't add custom fields or tabs. But you can extend SAP Solution Manager to manage new object types as described in this blog post by Andreas:
    -Extend SAP Solution Manager to Manage New Object Types
    Kind regards, Fabricius

  • How to create customer specific fields within PC 10.0?

    Hello,
    for previous Process Controls versions 2.5 and 3.0 it was available two how-to guides to create customer specific fields. Nevertheless so far I couldn't find those versions for PC10.0.
    Does anyone have them? Or know if the 3.0 version is also valid for 10.0?
    Regards
    Andre Yuji

    Dear Johannes,
    We have a few administration transactions that you can use on back-end. For example:GRFN_STR_CHANGE -GRFN_STR_CHANGE-Change Process Control
    as well as RE_RHGRENZ4 to  Set a new end date to the objects.
    At last case, you can run the program RHRHDL00 thru SE38 Tcode.Be carefull because this program delete the object from database.
    Regards,
    Karina Atonaidan

  • Customer Specific Fields in Standard Report???????????????

    Hi Gurus,
                 I have added Customer Specific Fields in a Notification Type.
                 I need a Report with these Cutomer Specific Fields ( added by Screen  Exit) in the Standard Transaction like IW65,IW69.
                Please give me the solution, suggestions to Extarct these fields in Standard Reports.
    With best ragards,
    Narendra

    Narendra,
    I'm not sure IWOC0004 will help...
    If you are using ECC6, then investigate enhancement spots in the respective programs. Your ABAP team should be able to help.
    PeteA

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

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

  • IExpenses-12.1.3 Facing Issue with 2 custom text fields on the standard OAF

    Dear All,
    We are facing problem where custom text fields on standard OAF page does not retain their values when we traverse back-forth on the OAF page.
    Here is the exact issue details
    1) We added 2 text fields(Attribute5 and Attribute6) through personalization on Mileage Line Details Screen(standard OAF page) of iExpenses 12.1.3.
    2) And business requirement is whenever user enters values into these fields, difference of these values is populated in third field which is standard field on that page.
    Issue
    When user enters values into above 2 fields, difference is calculated correctly however once he clicks on return page and comes back again on the detail page
    then all the standard fields retain their values but 2 custom fields have blank value.
    Is there any issue with personalization? or any other issue? Please suggest.
    Thanks,
    Mahesh

    Thanks Pratap for checking
    There is button named as "Calculate Amount" on the line details page so it is happening in below 2 scenario
    1) When User enters values in 2 fields and clicks on Calculate Amount Button then values get disappeared from custom fields
    2) When user clicks on return button, go to main page and clicks on detail button ( to come back on same line) then all the standard fields have valuece and custom one's disappeared.
    Thanks,
    Mahesh

Maybe you are looking for