Mass maintenance and BDC Recodring of custom fields added in PO header.

Hello Experts,
I have created a custom fields in PO header and used  Structure for BADI implementation to update the header with values enterd in custom table.
My requirement is for some selected PO i want to fix the value of one of my custom field at header level.
I have tried both the options Mass maintenance and BDC recording but the issue i'm facing is when i go for mass maintenance it is giving me the ERROR and it seems that we can only do the mass maintenance for sap-standard fields only.
When i go for BDC recording i'm facing the issue that when i do SHDB and start recording  for ME22N my custom field is coming  grayed out and i'm not able to input the desired value in custom field and complete my recording.
Let me know your valuable inputs .
Thanks,
Naveen

Hello,
Instead of BDC i'm doing it through the BAPI   "BAPI_PO_CHANGE" by populating the structure extensionin but here i'm facing the error as below:-
W     ME     887     Error transferring ExtensionIn data for enhancement CI_EKKODB
E     BAPI     003     Instance 4500001544 of object type PurchaseOrder could not be changed
below is my code:-
ls_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
    ls_extensionin-valuepart1+0(10) = wa_po-ebeln.
    ls_extensionin-valuepart1+14(3) = no.
    append ls_extensionin to lt_extensionin.
    clear:ls_bapi_te_bg,ls_extensionin.
    ls_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
    ls_extensionin-valuepart1+0(10) = wa_po-ebeln.
    ls_extensionin-valuepart1+10(1) = 'X'.
    append ls_extensionin to lt_extensionin.
    clear:ls_bapi_te_bg,ls_extensionin.
    call function 'BAPI_PO_CHANGE'
        exporting
          purchaseorder                = wa_po-ebeln
        tables
          return                       = it_bapireturn
          extensionin                  = lt_extensionin
    if it_bapireturn[] is initial.
      call function 'BAPI_TRANSACTION_COMMIT'
        exporting
          wait   = ' '
        importing
          return = it_bapireturn.
    endif.
    refresh lt_extensionin[].
  endloop.
Please let me know if there is any way to achieve this.
Thanks,
naveen

Similar Messages

  • Custom fields added on PO header and PO item in ME21n

    hi everybody
    I have added 2 fields on PO header and PO item level in ME21N screen, everything is working fine
    but the issue is that if the Customer Data tab page is not opened at the Header Level, the additional fields in Customer Data tab page at Item Level are not displayed as well
    Does anybody knws why this happens?

    May be i wrongly explained, all the data are getting populated on the screen and in the database tables.
    Its just that if the Customer tab on PO header is not opened, the fields in the Customer tab in PO item level are not getting displayed
    As such, the data are being saved in the tables.
    Its only if the customer tab on header is not opened, the fields in Customer tab in PO item are not displayed.
    Otherwise if PO header customer tab is opened, everything is ok

  • MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS

    Dear Experts,
    Is there any separate t code available to MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
    I got this POINT from ECC 6.0 features in Solution browser.
    Please help me on this.
    MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
    Functionality Enhancements
    Provides a specific transaction for mass maintenance of material related excise duties fields
    Business Benefits
    Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
    Regards
    Soundar.G

    Dear Ravi,
    I have already created LSMW for this in Material master and J1ID.
    But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
    Regards
    Soundar.G

  • MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS - T CODE

    Dear Experts,
    Is there any separate t code available to  MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS ?
    I got this POINT from ECC 6.0 features in Solution browser.
    Please help me on this.
    MASS MAINTENANCE FOR MATERIAL-RELATED EXCISE DUTIES FIELDS:
    Functionality Enhancements
    Provides a specific transaction for mass maintenance of material related excise duties fields
    Business Benefits
    Mass maintenance can now be performed in one step for material-relevant excise duties fields, instead of maintaining the excise duties fields in each material master record separately.
    Regards
    Soundar.G

    Dear Ravi,
    I have already created LSMW for this in Material master and J1ID.
    But i have checked in ECC 6.0 feature, there they are mentioning New t code is available for MASS maintenance of excise duty fields.
    Regards
    Soundar.G

  • How to handle Custom field added in BP : Role Bill Account

    Hi Friends,
    I am working on an interface which creates Bill Account role for a BP but the problem is there are about 15 Custom fields added to standard BP transaction in BA role.
    As I am using BAPI_BUPA_FS_CREATE_FROM_DATA2 for creating the BP and
    BAPI_BUPA_CENTRAL_CHANGE for changing the BP role Bill Account?
    Can anyone tell me how to handle those custom fields in the existing BAPIs or there is some other way of doing it?
    Thanks in advance,
    Pradeep
    Note : Helpful answers will be rewarded.

    Hi,
    I have seen these BAPIs but are they used with normal BAPIs for BP creation and change.
    For example : I create the BP using BAPI_BUPA_FS_CREATE_FROM_DATA2 and for the Custom fields I should use these BAPIs as suggested by you alongwith the create BAPI.
    And will it work for Changing the BP also.
    Kindly clarify.
    Regards,
    Pradeep

  • Defaulting a customer field (added through EEW) while bus. obj creation.

    Hi All,
    There a customer field added through EEW.
    Now suppose when we are creating an object (BUS2000170, in my case) this customer filed value should be set the a default value. Under GENIL_MODEL_BROWSER i can see this filed in 'BTitemcustext'.
    I am trying to do it through EVENTS (by calling a FM after AFTER_CREATE event) but i could not find 'BTitemcustext' in the table type CRMT_EXTENSION_COMT.
    Now i dont know where to set this value.
    Can anyobe please help on how we can set default value for fields developed through EEW.
    Thanx,
    Abhi.
    Edited by: abhishek ranjan on Jan 7, 2011 10:11 AM

    Hi Rajni,
    This BADI will only be called when i will save the order.
    I want to set the default value the moment the object is created. Thats why i wanted to do it through events(CRMV_EVENT).
    The reason being suppose the order is not saved , till then this default value will not be visible in the UI side(Even after the object creation).
    Also where i can set this default value??
    I mean this field is available under the model 'BTITEMCUSTEXT'. Also the filed is not visible in the table type for extensions (CRMT_EXTENSION_COMT).
    Please let me know i am wrong.

  • In Mass Maintenance (MM46) cannot see the Z field.

    Hi Guys,
    In Mass Maintenance MM46, I am unable to see the Z field which are maintained in transparent table  Marc..
    Code has been maintained in BADI. However it is not showing it.. what could be the possible reason for not showing it.
    Thanks
    Sandeep

    .

  • A custom field added in BAPI_PO_CREATE and BAPI_PO_CREATE1

    Hi,
      I am trying to create a Service Purchase Order Single Account Assignment.
    A Custom field ZZEXPTYPE(Expense Type) is added in BAPI_PO_CREATE and passed the value '9015', The PO Is created Successfully but when I add same Custom Field ZZEXPTYPE(Expense Type) in BAPI_PO_CREATE1 whose value is '9015' ,It throws an Error Message as " Please enter a valid (SBU Specific) expense type!" . 
      The functional consultant says that Expense Type '9015' is correct. please Let me know what must be done.
    Regards,
    Deepthi.

    Extension to add Expense Type only
          IF NOT  w_src-zzexptype IS INITIAL.
            w_extensionin-structure = 'BAPI_TE_MEPOHEADER'.
            w_extensionin-valuepart1+10(4) = w_src-zzexptype.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
            w_extensionin-structure = 'BAPI_TE_MEPOHEADERX'.
            w_extensionin-valuepart1+10(4) = 'X'.
            APPEND w_extensionin TO i_extensionin.
            CLEAR w_extensionin.
          ENDIF.
    Call BAPI
          CALL FUNCTION 'BAPI_PO_CREATE1'
            EXPORTING
              poheader          = w_poheader
              poheaderx         = w_poheaderx
            IMPORTING
              exppurchaseorder  = gv_ebeln
            TABLES
             return            = i_return
             poitem            = i_poitem[]
             poitemx           = i_poitemx[]
             extensionin       = i_extensionin[].
    Commit the Transaction
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'.

  • BDC for XD02 -Custom Fields

    Hello All,
                  We have few custom fields on customer Master. These fields are on a new tab. When I do the recording for XD02 it shows the old XD02 transaction(We are on 6.0). It doesn't show custom fields and I don't see that there is any BAPI available to change these custom fields.  Does any one has an idea? Appreciate your input.
    Thanks..

    First check XD02 in eCC 6.0. If the custom fields are there then you should be able record those fields if not, first import the change or transport you made in previous version.
    You can see the changes sitting in ECC 6.0 in transaction SE95

  • Can auto Grouping PRs into RFX and also addition of custom fields of PRs

    We are implementing SAP SRM 7 Strategic Sourcing .Our Deployment mode is classic.
    PR is created in ERP .PR is having custom field called as expected cost.
    We will process PRs in SOCO .
    Question 1 :
    We would like club PR into Rfx based on criterias.I Would like to know how we can do so .
    Consider case I have 3 PR as PR1 , PR2 , PR3 .If criteria is matching then I would like to club them as
    PR1 + PR2 = RFX.
    Question 2 : While clubbing PR's and forming one Rfx from it , I would also like to add custom field expected cost
    so  exp cost 1 (PR1) + exp cost 2 (PR2) = target cost (Rfx ).How I can achieve this ?
    Where I can write code .Would like to know such BAdi which will be helpful.
    Question 3:
    Can we Club PRs automatically and form Rfx? or Does SRM support only manual Grouping of PRs ?
    If we can automatically club PRs based on criteria and form one Rfx ,How can it be done ?
    << Please do not offer points >>
    Edited by: Rob Burbank on Sep 28, 2010 4:18 PM

    Regarding your Question 1 - if targeting manual grouping of items, you could do so by going through sourcing cockpit, select the proper items and group them together and create one RFx. This requires your own judgement with regard to grouping criteria.
    Regarding your question 3, which is automatic grouping, you could configure first via IMG "Define sourcing for product category" by defining a set of product categories as "Auto. Grouping and creation of Bid Invitation item w/out source of supply". This would group SC items automatically for one RFx. However, if you need to restrict the grouping with further criteria, you could implement BADI BBP_TRANSFER_GROUP, which is to split the automatic grouping by the system.
    Your question 2 can be achieved by implementing BADI BBP_DOC_CHANGE_BADI for RFX (BUS2200) (by referencing its parent PR information).

  • 0CO_OM_OPA_6: Custom fields added, Data - available in RSA3, but not in PSA

    Hi Friends,
    I have added some custom fields to the 0CO_OM_OPA_6 data source. Following are the details.
    1) Custom fields: ZZEBELN (Purchasing Doc), ZZUSNAM (Username)
    2) Code populated in SE19 (BADI for this Datasource)
    3) RSA3: Test extraction pulls the records for both the custom fields correctly.
    4) RSA5, and RSA6 - Fields are unchecked for hidden and field only. They are made available.
    5) Extract Structure replicated into BW and its pulled over from extract structure into Transfer structure.
    6) Mapped to corresponding fields in BW update rule and transfer rules. (No routines or formulas exist)/
    7) When load extracted into BW, data is blank for both the fields in PSA itself.
    Our BW is 7.3 but we still use this datasource as 3.x transfer rules and datasource. In BW, it is connected to the Cube 0OPA_C11 via update rules and 3.x transfer rules only.
    Is there any reason for the data being populated into the RSA3, where as not into PSA. Please consider the above points, and let me know if I have done or missing anything here in my steps. I have gone thru several forums and havent got any specific replies for such issues. Have you come across such issues, please share your thoughts and views.
    Any of your replies will definitely help. Really appreciate your inputs.
    Thanks!!
    Prasith

    Hi Prasith ,
    After reading all the answers , what i feel we are  missing a major step ie  Re-initialization of the cube .
    As you changed the extract structure and added new fields and for this Data source i assume that deltas were  running already  , the BW  system cannot pull these new fields directly from ECC unless you have not done a  re-INit again .
    The Re-init is pretty simple and not as complex as LO.
    I would advise you to re-init for 01.2014 till 016.9999  , run full load and then delatas  will flow in later on . Check during the full load if you are able to see these fields in BW in (PSA/ Cube) .
    But be careful you need to do Re-init only on week ends when there are no transactions happening else you might end up in duplicate data .
    Hope this helps !
    Let me know how it goes .
    Regards
    Zeenath

  • SRM 7.0 New custom fields added to view do not appear in the component conf

    Hi
    I added two custom fields to the view V_QTE_DOFC_I_DESC of the WD componenet /SAPSRM/WDC_DODC_QTE_I_DS. This view gets called when bidder is trying to create a bid and clicks on add Substitute Item in the Item tab. This view is simply a popup window where we can enter ther substitute item.
    I added two custom fields to the context of the above view and placed on the layout of the view as input fields. Then I tried to modify the component configuration /SAPSRM/WDCC_DODC_QTE_I_DS_SUB. When I look in t he web dynrpo built-in for the view V_QTE_DOFC_I_DESC, I don't see the custom fields that I just added. As a result, these custom fields are not displayed when I try to substitute an item. Could anyone tell me how to brining in these two custom fields into the component configuration.
    Any help is greatly appreciated.

    Hi Prasuna,
    Sorry ..You are right..I was looking at some other WDC related to contract data..It you map the CUFs to /SAPSRM/S_CLL_CTR_ITEM which has the include structure INCL_EEW_PD_ITEM_CSF_CTR then it should work fine.
    If you do this, are you able to view the new fields on the screen?
    you mentioned that you are not able to save the data to the table.
    Include your fields in INCL_EEW_PD_ITEM_CSF as well because if you add CUF to any of those doc types, you also have to add those CUF to the global structure for CUF documents.
    Also Check if you fields are there in structures BBPS_CTR_CUF_ITEM,BBPS_CTR_UI_ITEM and BBPS_CTR_ITEM.
    Check whether you have implemented the BADI's like BBP_DOC_CHECK_BADI ,BBP_DOC_CHANGE_BADI and BBP_DOC_SAVE_BADI . check out the structures (whether they having the CUFS) used in those if you have implemented any of them .
    Regards
    Lavanya
    Edited by: LAVANYA CHAVA on Aug 25, 2010 10:10 AM

  • Displaying Custom field in shopping cart header

    Hi all, I know how to add a field to header and item levels of the shopping cart.
    - In the note 672960 it says 'Note that the header fields cannot be displayed for the shopping cart. If you define fields on the header, they can only be filled in BADIs.'
    However,
    We are able to fill in the name of the shopping cart on the third step, which is also a part of header information. Is there a possibility to add a custom field(the user must be able to fill it) and display it in that screen???

    Hi
    <u>To add custom fields to the shopping cart, please try this process -></u>
    <b>Please refer to these links for details -></b>
    Re: SC header CUF ?
    Re: MAP USer SRM defined fields in backend for PO
    Re: HI SRM experts...
    Custom fields to a Bid Invitation
    Addition of custom fields in Contract and mapping it with the fields in SRM
    urgent help request - How to add custom fields to  header BID.
    Re: Add custom fields to Contract Transaction in SRM 4.0
    Custom Fields
    custom fields in Carry out sourcing screen..
    Custom Fields Not Display In Basic Data In SRM 5.5 Server..
    SC : Extended  Search on Header Customer field
    Re: customer field in 3rd step of shopping cart
    Adding fields in shopping cart
    Custom Field in the header of Shopping Cart
    <b>Please refer to these SAP OSS notes -></b>
    <u>Note 458591 - User-defined fields: Preparation and use
    Note 672960 - User-defined fields 2
    Note 822424 - CUF. Customer fields cannot be changed in the bid
    Note 809630 - Customer field in bid invitation and bid - How does it work?
    Note 809628 - Table like customer fields from bid invitation in bid
    Note 798731 - Bid: Bid Inv. Customer fields not visible
    Note 762984 - SRM40-SUS: Implementation of customer enhancement fields</u>
    <b>Please go through the documentation of following 3 Business Add-Ins using SE18 transaction.</b>
    BBP_BUPA_GET_CUF Customer Fields for Vendor Master Data
    BBP_CUF_BADI-Customer Fields. Call-up of User-Defined Screen
    BBP_CUF_BADI_2-Customer Fields. Use of Standard Table Control
    Hope this definitely help.
    Regards
    - Atul

  • Custom field in Shopping cart header

    Need to add a custom field at the header level of shoping cart. Pls help.
    Its all FPM and dont understand the logic.
    comp name - /SAPSRM/S_CLL_WD_SC_HEADER
    view - V_SC_BOFC_HD

    Hi Pankaj,
       You need to create a screen exit for this requirent. Read about screen exits in SCN.
    Here area  couple of links for reference. There is so much more material on screen exits you can look out for.
    http://wiki.sdn.sap.com/wiki/display/ABAP/USERANDCUSTOMEREXITS.
    Regarding Screen Exits
    Regards,
    Amuktha

  • Search help for custom fields added through BADI_FDCB_SUBBAS04

    Hi guys
    I have two cutom fields on basic data screen that i have added using an implementation of the BADI
    BADI_FDCB_SUBBAS04
    I want to use the value entered in one of the fields as a import parameter in another fiields search help.  On value request the structure INVFO contains the other data entered on screen in the basic data screen however my custom fields appear empty. 
    However if i press enter and request values again the search help will pop up correctly.  Is there a way i can avoid having to press enter before i can get my values??
    regards
    Isaac Prince

    Hi guys
    I have not found any notes/texts regarding my issue however i think with some user training/re-orientation the small issue will go away.
    regards
    Isaac Prince

Maybe you are looking for

  • Sales Orders with diffrent partner functions

    Hi, I wanted to find all the sales orders for which sold-to-party is diffrent than ship-to party. can you help me. Thanks in advance jack

  • Roadmap for SSRS from SQL2012 to SQL2014 and beyond?

    Hi there, We are the authors of a web application that has grown over a number of years and serves a lot of corporate clients, each client with a lot of users all authenticating to our single application instance. We integrated to SSRS 2008 to provid

  • Cannot print since HP Printer Software Update 2.5.2

    The first document I tried to print after updating the printer software failed to print - it shows up in the print queue, but it stops there. I have an HP Color LaserJet 2500L attached to the computer with a USB cable. I have tried a different cable,

  • Help for Menu

    hi everyone, i am very new in java. i am having problem in SWITCH CASE STATEMENT. can anyone please help me to solve the following problem: you have to write a program in java to generate the following menu with submenus: about linked List 1: ADD ELE

  • 11g Release 2 install missing packages

    Hi, I'm trying to install 11g Release 2 on a CentOS (4.9) box, but the pre-req check shows that I'm missing the following packages (I had 9 to begin): gcc-3.4.6 (X86_64) gcc-c++-3.4.6(X86_64) libstdc++-devel-3.4.6 Tried to use the yum command "yum in