Enhancement of component ERP_H with a custom field in the Web UI

Hi,
I'm facing an error when enhancing the component ERP_H with a custom field in the web UI.
I've followed the steps mentioned in the pdf document called "Enhancement Options for the Lean Order Interface" (Note
1224179):
I´ve done a enhacement on ERP_H component.
I added a field to the view Headerdetail called "ZZCCTYPE1", but when I set a value in UI, I haven´t read this field in abap code.
The SET method (SET_ZZCCTYPR1) in the context node is ok, in debug I see that the method current->set_property, is working fine.
I've tried to read the atribute with lr_entity->get_property_as_string ( 'ZZCCTYPR1' ), but doesn´t work. When I read other "standard field", the statement is ok and it has value.
When I set the value of the field from ECC (VA01/VA02), it is kept by the system.
Could anybody help me?
Thanks in advance,
Regards,
Andrea Ricci

Hi,
To add a new field, you have to first create it through T-Code EEWB where in you create a project, create extension  which is assigned to a business object and create the new field through wizard - specifying the field name , type and length.
Once this is done, you can check the new field coming up in available fields for the relevant component's view in Tcode BSP_WD_CMPWB.
Hope this helps you out.
Cheers
Ravindra Valy
"Award Points if it is helpfull"

Similar Messages

  • Enhancing the component ERP_H with a custom field in the web UI

    Hi,
    I'm facing an error when enhancing the component ERP_H with a custom field in the web UI.
    I've followed the steps mentioned in the pdf document called "Enhancement Options for the Lean Order Interface" (Note
    1224179):
    I´ve done a enhacement on ERP_H component.
    I added a field to the view Headerdetail called "ZZCCTYPE1", but when I set a value in UI, I haven´t read this field in abap code.
    The SET method (SET_ZZCCTYPR1) in the context node is ok, in debug I see that the method current->set_property, is working fine.
    I've tried to read the atribute with lr_entity->get_property_as_string ( 'ZZCCTYPR1' ), but doesn´t work. When I read other "standard field", the statement is ok and it has value.
    When I set the value of the field from ECC (VA01/VA02), it is kept by the system.
    Could anybody help me?
    Thanks in advance,
    Regards,
    Andrea Ricci

    Hi Pooja,
    When you created your custom views, did you bind the view context nodes to the corresponding context nodes of your component controller?
    From the exceptions you reported it seems that this binding is missing.
    To create this binding, you can right click on your view context node , choose "Create Binding" and bind it to the context nodes of your Component Controller.
    Hope this helps.
    Regards,
    Nisha

  • Linking custom fields in the web ui

    Hello,
    on the opportunities item creation screen I have added some new fields. These fields come in pairs, there is always one with the technical name, and one with a text description. I was able to add these fields to the screen, and link them to a search help. The search help is linked to the field with the technical name, and the description should be filled automatically when an entry is selected in teh search help, but this does not happen. I tried adding the field to the output map of the search hel function and than the field is filled for a split second and then cleared, when I select it for the second time the field is filled fine. Does anyone know if there is another way to link fields on the WEBUI.
    Thanks in advance.
    Timon Van Soom

    Hi Timoon,
    You need to code the Getters and Setters of the fields. You can check one of the standard fields with description and adapt the coding.
    Thanks,
    Iván
    P.D.: Please give points if the answer helps!

  • Add custom fields to the business partner (UKM_BP) thru BADI

    Hi
    I want to know how to add Additional business partner attributes(custom fields) to Business partner (Transaction : UKM_BP)
    I also added the custom fields to structure UKM_S_BP_CUSTOMER_EXTENSION in the method FILL_FIELDS of BADI UKM_BP_ADD_FIELDS, But nothign is populating on the screen of UKM_BP after activating the below BADI's with SAP provided sample code with above structure.
    there are 2 BADI's for this requirements but it doesn't any thing about the screens
    UKM_BP_ADD_FIELDS
    UKM_EV_FORMULA
    Please let me know the detailed steps other than activating these BADI's with sample code by SAP.
    Thanks
    Govi

    Thanks for your reply
    BADI - UKM_BP_ADD_FIELDS
    Documentation of this BADI shows as follows...
    With this BAdI, you can define additional business partner attributes that you define in a business partner master record and want to use as fields in the formula editor.
    To use the new fields, implement the BAdI: Formula Parameters and Functions (UKM_EV_FORMULA)
    Methods of this BAdI:
    FILL_FIELDS
    To provide additional fields for the formula editor
    FILL_ADD_INFOS and SAVE_ADD_INFOS
    To define additional information for the following data in table form:
    Collateral
    Negative event
    Check exceptions
    Credit insurance
    I enhanced the structure(UKM_S_BP_CUSTOMER_EXTENSION) with new custom fields from the badi UKM_BP_ADD_FIELDS but there is documentation for creating the new screen to place those new fileds i created on transaction UKM_BP.
    I have looked at BDT Business data toolset
    http://help.sap.com/saphelp_crm50/helpdata/en/2f/696d360856e808e10000009b38f839/frameset.htm
    but i didn't get any idea ...
    Can you please elaborate and let me know how to do this for my requirement?
    Thanks
    Govi

  • Add columns with custom fields in the table control of MIGO

    Hi,
    I have to add custom fields in the table control view of item in the MIGO.  I have added the fields in the GOITEM structure and i am able to display it in the item details tab.  I want the same fields to be visible as columns in the table control view of the items.
    I found that TV_GOITEM is the control in SAPLMIGO program referring to the table control of items but it is referring only to the standard fields available in Screen 200.
    Please let me know if there is any screen exit or option to add the custom fields in the control TV_GOITEM.
    Thanks.

    Hi,
    Thanks for your reply.  I have added the custom fields in the item detail.  But the customer wants the custom fields in the table view also.
    Is there any screen exit available to modify the table control of MIGO?
    Thanks.

  • Add ECC Custom Fields in CRM Web UI ERP Order item

    hi all,
    i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
    I have :
    -  add the field on Web UI Screen.
    -  add the field on structure  TDS_item_COMV  and  TDS_item_COMC in ecc
    -  insert record for field on LORD_MAPPING table
    -  implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
    -  implemented method GET_I_S_STRUCT on crm with  :
    CASE COMPONENT.
        WHEN 'ZZSPOND'.
          RV_DISABLED = ABAP_False.
    endcase.
    - on method  do_prepare_output i have change value of fields with code :
    lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
    WHILE lr_loop IS BOUND.
    posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
    Does the current item has to be set for "Sponda Idraulica"?
    READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
                                  WITH KEY posnr = posnr.
    IF sy-subrc = 0.
    lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
    DATA : V_X TYPE STRING.
    V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
    ENDIF.
    lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
    ENDWHILE.
    I can't change the field  value  because it is "not changeble"  .
    Can you help me ?
    Thanks in advance.

    Hi Celi,
    I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II). 
    All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC. 
    Please check the following point:
    If those structures below were expanded with your custom fields:
    SAP CRM:
    CRMST_L2_ITEM_COMV
    CRMST_L2_ITEM_COMC
    CRMTT_ADMINI_ERPIL
    CRMTT_ADMINI_I_ERPIL
    SAP ECC:
    TDS_RFC_ITEM_COMV
    TDS_RFC_ITEM_COMC
    Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
      DATA: ls_supply TYPE tds_field_supply.
      IF iv_object_id EQ 'HEAD'.
        IF iv_module EQ 'VBAK_BEARBEITEN'.
          ls_supply-field = 'ZZCCINS'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNUM'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNAME'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZAUNUM'.
          APPEND ls_supply TO ct_supply.
        ENDIF.
      ENDIF.
    I hope it helps!
    Kind Regards!

  • How  to add custom fields to the  sap standard  program ukm_bp_display

    How  to add new custom  fields to the  sap standard  program ukm_bp_display .
    could u  please any one help me on this?

    Hello Kumar,
    You have to modify below structure, as this structure is providing the field catalog for output display (ALV).
    Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)
    DATA: BEGIN OF gt_grid_alv OCCURS 0.
           partner LIKE but000-partner,
           credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.
            INCLUDE STRUCTURE ukm_s_account.
            INCLUDE STRUCTURE ukm_s_bp_cms_sgm.
    DATA:   credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.
          Gruppe Vector
            INCLUDE STRUCTURE ukm_s_bp_vector.
          Gruppe OBL = Obligo
          include structure UKM_S_BP_CMS_MALUSDSP_OUT.
            INCLUDE STRUCTURE ukm_s_display_segment.
            INCLUDE STRUCTURE ukm_s_bp_cms.
            INCLUDE STRUCTURE bus000_dat.
    *DATA:   icon(4).
          Gruppe RAST (Raster)
    DATA:
             rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.
    DATA:    rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.
    "Summe raster 2 bis 6
    DATA:  END OF gt_grid_alv.
    Another way is you can  go  to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.
    Hope this will solve yiour problems.
    Regards,
    Antony Thomas

  • Custom Field in the header of Shopping Cart

    Dear all,
    We have to add a Custom field on the header of the Shopping Cart which will have three values.
    This field has to flow thru the Bid invitation, Contract and the PO ...
    Can anybody provide the technical details of the same ?? Which all are the structures to be changed ?
    Thanks in Advance ...
    Regards,
    Vivek K

    Hi
    To add  custom fields to the shopping cart, please try this process ->
    Please refer to these SAP OSS notes ->
    <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>
    Please go through the documentation of following 3 Business Add-Ins using SE18 transaction.
    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
    Please refer to these links for details ->
    <b>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..
    Regards
    - Atul

  • Add a custom-field in the table MARC and manage it in MM01/MM02/MM03

    Good day to all of you!
    I have this task: To add a custom-field to the table MARC. This custom-field will be managed through the MM01/MM02/MM03 transaction as follows:
    In the Basic Data 1 or Basic Data 2 the custom-field data will be added. Let's say the field is MATNR OBSOLETE.
    I have searched and implemented the things in customizing: Made a copy of function group MGD1, added the field on the screen.
    MY PROBLEM! How to manage it??? When the user enters MM01/MM02/MM03 and update this field, the field should be updated in MARC.
    1. I am not sure that this custom-field should be on Basic Data1 or Basic Data2.They want it at plant level.
    2. How to manage the data transfer from SAP Standard Program and my Custom Function Group.
    PLs: Do not paste me link to sap technical site with that example, because there takes the custom fields and UPDATE a CUSTOM TABLE. I need to update MARC!
    All the documentations i have read until now tell you how to add the field, ONLY the first part of the SOLUTION.
    Any help, pls?
    Good day and thank you!

    Hi Alex,
    In which way you are trying to update that custom filed. Have you written any logic in EXITS/BADIS?
    http://pavelgk.pbworks.com/f/6729224-Implement-Screen-Exit-for-MM01-Adding-New-Fields-in-Screen.pdf
    and
    Just read the OSS note mentioned earlier.
    Symptom
    You want to integrate customer-specific fields in material master maintenance.
    Other terms
    SAPLMGMM, RMDATIND, ALE, CI_MMH1, EXIT_SAPLMGMU_001 
    Solution
    To add customer-specific fields to an existing material master table (such as MARA or MARC) , you can proceed as follows as of Release 3.0C:
          1. Use an append structure to add the fields to the required table in the Dictionary (this is not a modification; for details, see the SAP document "ABAP/4 Dictionary"). In Release 3.x, the length of the field names must be the same as  the standard five character fields. This is necessary because of dynamic assignments. As of Release 4.0A, the lengths of the field names can be longer than five characters. If the changes of the fields should be recorded in the change document and taken into account during ALE distribution, set the 'Change document-relevant' indicator for the corresponding data elements. For table MARA in Release 3.x, you must also enhance the database view MARU because the database changes are carried out using this view. This small modification is no longer necessary as of Release 4.0A because the database view MARU is enhanced automatically when you enhance table MARA or the include EMARA (which is the data part of table MARA).
          2. Enhancing online maintenance in customized material master maintenance:
          Define a subscreen with your customer-specific fields in a customer-specific function group created as a copy of the standard function group MGD1.
          In Customizing, assign this subscreen to a maintenance screen using the "Copy customized material master" function. For details, see the Implementation Guide (IMG). As of Release 4.0A, program COPYMGD1 is available. You can use this program to create customer-specific function groups as required. This program is also incorporated in the Customizing function 'Configure customized material master'. Ensure that each field of the subscreen has a field statement in the flow logic, otherwise the data is not transported correctly. You can use subscreen SAPLMGD1 2002 as an example.
          If you want these fields to be subject to standard field selection, you must add new entries for them to the central field table for material master maintenance (T130F): 
          Application examples for standard field selection:
          The field is mandatory and is to be flagged with a "?".
          The field belongs exclusively to the purchasing user department. Purchasing data and MRP data are both contained on one screen. However, the MRP controller is not to see the purchasing data.
          The following data is required for each field:
                a) Field name        (T130F-FNAME)
                b) Field selection group (T130F-FGRUP)
                Here, you should use a standard field group if the customer field is subject to the same field selection as the standard fields of the standard field group. If it is not, use a customer-specific field group.
                You must then check and, if necessary, modify the attribute of the field group using the function "Maintain field selection for data screens" in Customizing under "Logistics Basic Data -> Material Master".
                Field groups 111 through 120 that are not used in the standard system are reserved as customer-specific field groups. As of Release 3.0F, additional customer field groups are available. (For details, see the IMG).
                c) Maintenance status (T130F-PSTAT)
                List of the user departments that may maintain the field. You can display possible values by using the input help for the maintenance status field in the Customizing activity "Configure Material Master" when maintaining logical screens.
                d) Reference        (T130F-KZREF)
                This indicator must be set if the field from the reference material should be proposed during creation with reference.
    Note: You cannot yet use Customizing to enhance table T130F; you can use only transaction SE16 (Data Browser) or transaction SM31. Future releases will include a separate Customizing function for maintaining customer-specific fields. See Note 306966. By implementing this note you can add entries to table T130F within Customizing. This type of maintenance is possible as of Release 4.5B.
    You may change the entries for standard fields only with regard to the reference data and field selection group. Changing other data for standard fields constitutes a modification. Therefore, you cannot use the Customizing function "Assign Fields to Field Groups" to change this data.
    In addition, you must not add new standard fields to table T130F.
          3. If you want to maintain customer-specific fields using data transfer by direct input or via ALE distribution, proceed as follows:
          Add the fields to central field table T130F (see above).
          Add the customer-specific fields to the data structures for the data transfer (for example, BMMH1 for the main data).
          Also, add the customer-specific fields to the tables in which the incorrect data is stored during direct input. These tables have the same name as the corresponding master data table and also have the suffix _TMP.
          For example: If you add customer-specific fields to table MARA, you should add the same fields to table MARA_TMP.
          If you use ALE, you must also add fields to the IDoc. To process enhanced IDocs, you can use enhancement MGV00001 with customer exit EXIT_SAPLMV01_002 for creating the IDocs and customer exit EXIT_SAPLMV02_002 for posting the IDocs.
          Prior to Release 3.0E, enhancing structure BMMH1 constitutes a modification. In this case, you must add the new fields tot the end of the structure before the last field (SENDE = record end indicator).
          As of Release 3.0F, structure BMMH1 contains the customer include CI_MMH1, which is part of the enhancement MGA0001. Here, you must proceed as follows:
                a) Add the customer-specific fields to include CI_MMH1.
                The names of the fields in CI_MMH1 must be identical to those of the corresponding fields in material master tables MARA, MARC and so on.
                Important: The fields must be CHAR type fields. Therefore, create CHAR type data elements whose lengths are identical to the output length of your fields in  table MARA and so on. Use these data elements in include CI_MMH1, but use the field names from table MARA and so on.
                b) Activate include CI_MMH1.
                c) If you have not used customer structure ZMMH1 before, create it as a copy of structure BMMH1 and delete the standard fields that you do not require. You are not permitted to delete field STYPE and include CI_MMH1 when doing this. If you have already used structure ZMMH1, add include CI_MMH1 to it.
                d) Activate structure ZMMH1. This also adds the customer-specific fields to ZMMH1.
    Run program RMDATING. This program generates routines which are supplied to your customer-specific fields from the input file. As of Release 4.5A, you also need to activate the routines/function modules generated by program RMDATING (especially, the MAT_MOVE_BMMH1_XXXX modules). Details about this subject (especially the procedure when using customer structure ZMMH1) are described in the IMG for transferring the material data under item 'Maintain Transfer Structure'. Also, check the declaration of structure WA in program RMMMBIMC to see whether it is declared with sufficient length. If necessary, enhance the declaration (for the time being, this still constitutes a minor modification).
    In addition, lengthen domain DI_DATA with CHAR 5000. As of Release 3.1H, this has already been done.
    Important: When using customer-specific fields, you can use only structure ZMMH1 to transfer the data. Otherwise, after the next SAP upgrade which contains new standard fields in structure BMMH1, the input files no longer match. If you want these new standard fields to be transferred, add them after your customer-specific fields (the order of the fields in structure ZMMH1 does not need to be the same as the order of the fields in BMMH1).
    If you want foreign key dependencies or fixed domain values to be checked, or another check for a customer field, this is possible up to and including Release 3.0D only by modifying the corresponding check function modules. As of Release 3.0E, you can use function exit EXIT_SAPLMGMU_001 (SAP enhancement MGA00001) for these purposes.
    If you want to use engineering change management to schedule future changes for your customer-specific fields or you want to use the 'Display at Key Date' function, execute program GENERATE in addition. This program generates the necessary assignments for interpreting the change documents. With regard to engineering change management, you must read Notes 60281, 60973, and 48962.
    To date, it is not possible to integrate customer-specific tables in material master maintenance without making a modification. However, you can create customer-specific development objects containing the essential additional logic. You can then integrate these development objects in your system as part of only a minor modification.
    check this link. It may helps you to solve your issue.
    Thanks
    Sravan

  • In Address Book, why does Apple let you create custom fields in the Template cards but not have them available for importing?

    I open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Principal".
    I also add two more custom fields in the Email area.
    Quit Address Book then relaunch. Add a new contact and the new custom fields, Principal, etc. are there. All good so far.
    I have a Now Contact file with about 200 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
    The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing? Does anyone have suggestions on getting around this?

    While most likely not of interest to you, Spotlight can also tell you where the files it finds are located
    Hover the mouse pointer over the name, and press Command-Option and the path to the file will be displayed.
    As for opening a terminal session in the directory where a file is located, there is Applescripts that do just that as well as specific features in Lion/Mountain Lion terminal:
    <http://stackoverflow.com/questions/420456/open-terminal-here-in-mac-os-finder>
    <http://hints.macworld.com/article.php?story=20110729034827358>
    <http://www.macworld.com/article/1047793/folderinterm.html>
    <http://www.macworld.com/article/1161876/open_finder_folder_in_terminal.html>
    <http://www.macobserver.com/tmo/article/os_x_lion_open_a_folders_location_in_term inal>

  • New custom field in the POWL search criteria

    Hi experts,
    My requirement is to add a new custom field in the search criteria (Parameters)
    In my Easy shopping card POWL. I need to add custom fields in search criteria.
    I tried appending my custom fields in structure /SAPSRM/S_SEARCHFIELDS
    And customized the POWL type DB criteria SAPSRM_FEEDER_SC by adding the custom field
    But still the newly added search criteria is not displaying in the
    Query   SAPSRM_E_CHECKSTATUS_01 in powl_query transaction.
    Kindly help me to solve this issue
    Regards
    Chinnaiya P

    Hello Konstantin,
    thanks for the reply...
    I tried to add an extra Field(Company code) in POWL Search. the problem is the Field Company code doesnt get updated in BBP_PDHSC and BBP_PDISC with the value used in while creating SC.
    I only get the Company code value in table BBP_PDBEI for SC.
    So when i give any value in POWL search for company code no data is shown even though the SC was created in the inputted Company code.
    so how to go about adding CC as search criteria in POWL so that the resultant output is filtered on the basis of CC value.
    Thanks
    Rajat

  • In SD i am looking to add some custom fields to the delivery document.

    In SD i am looking to add some custom fields to the delivery document. can any one help me out.

    hi,
    u have get the access key for the program with respective to the delivery document & user exit has has to done.
    This is job of abaper
    regards,
    Arun prasad

  • How to replicate customer fields in the  backend system.

    Hi All,
    I need to transfer PO customer fields that were created in the SRM system to backend SAP system.
    I am using Extended Classic Scenario in SRM and SRM Version is 5.0.
    I am able to replicate the data created in SRM system to the backend.
    How ever, I found the following BADI while debugging.
    1. BBP_DOC_SAVE_BADI
    2. BBP_CTR_RELVAL_ICC
    3. BBP_DOC_SAVE_ICC
    4. BBP_F4_SAVE_DB
    5. HRSYNC_P
    Hence, please tell me which BADI, I need to use to send my customer fields to the backend system.
    Regards,
    Venky.

    Hi
    As Disha told, <u>You need to create a customer Implementation of any othe BADIs using SE19 Transaction.
    Say, you create an active customer Implementation of BBP_ECS_PO_OUT_BADI...</u>
    <u><b>See links given in earlier reply for detailed sample code.</b></u>
    <u>Write the following sample code (pls change it as per your business requirement)</u>
    METHOD if_ex_bbp_ecs_po_out_badi~bbp_b46b_po_outbound.
    ** Customer fields
    MOVE 'POHEADER' TO w_customer_fields-refobject.
    *PO approver
    MOVE 'ZZAPPROVER' TO w_customer_fields-fieldname.
    MOVE is_header-zzlastapprover TO w_customer_fields-container.
    APPEND w_customer_fields TO ct_bapi_customer_fields.
    *SC Date
    MOVE 'ZZSCDATE' TO w_customer_fields-fieldname.
    MOVE lv_scheader-created_at TO w_customer_fields-container(15).
    APPEND w_customer_fields TO ct_bapi_customer_fields.
    *Requester Org
    MOVE 'ZZORGA' TO w_customer_fields-fieldname.
    MOVE w_requester_orgunit TO w_customer_fields-container.
    APPEND w_customer_fields TO ct_bapi_customer_fields.
    endmethod.
    <u>BBP_PO_INBOUND_BADI in R/3.</u>
    method IF_EX_BBP_PO_INBOUND_BADI~BBP_MAP_BEFORE_BAPI.
    data wa_customer_fields TYPE BBPS_IF_CUSTOMER_FIELDS.
    data : WA_BAPI_TE_MEPOHEADER type BAPI_TE_MEPOHEADER,
    WA_BAPI_TE_MEPOHEADERX type BAPI_TE_MEPOHEADERX.
    data WA_EXTENSIONIN TYPE BAPIPAREX.
    data txt_960(960) type c.
    *** EKKO Customer fields.
    *PO Number
    move BBP_POHEADER-PO_NUMBER to WA_BAPI_TE_MEPOHEADER-PO_NUMBER.
    move BBP_POHEADER-PO_NUMBER to WA_BAPI_TE_MEPOHEADERX-PO_NUMBER.
    *ZZAPPROVER
    READ TABLE BBP_CUSTOMER_FIELDS INTO wa_customer_fields
    WITH KEY refobject = 'POHEADER'
    fieldname = 'ZZAPPROVER'.
    IF SY-SUBRC EQ 0.
    MOVE wa_customer_fields-container TO WA_BAPI_TE_MEPOHEADER-ZZAPPROVER.
    WA_BAPI_TE_MEPOHEADERX-ZZAPPROVER = 'X'.
    endif.
    *ZZSCDATE
    READ TABLE BBP_CUSTOMER_FIELDS INTO wa_customer_fields
    WITH KEY refobject = 'POHEADER'
    fieldname = 'ZZSCDATE'.
    IF SY-SUBRC EQ 0.
    MOVE wa_customer_fields-container TO WA_BAPI_TE_MEPOHEADER-ZZSCDATE.
    WA_BAPI_TE_MEPOHEADERX-ZZSCDATE = 'X'.
    endif.
    *ZZORGA
    READ TABLE BBP_CUSTOMER_FIELDS INTO wa_customer_fields
    WITH KEY refobject = 'POHEADER'
    fieldname = 'ZZORGA'.
    IF SY-SUBRC EQ 0.
    MOVE wa_customer_fields-container TO WA_BAPI_TE_MEPOHEADER-ZZORGA.
    WA_BAPI_TE_MEPOHEADERX-ZZORGA = 'X'.
    endif.
    CLEAR txt_960.
    CLEAR WA_EXTENSIONIN.
    write WA_BAPI_TE_MEPOHEADER to txt_960 left-justified.
    WA_EXTENSIONIN-STRUCTURE = 'BAPI_TE_MEPOHEADER'.
    WA_EXTENSIONIN-VALUEPART1 = txt_960(240).
    WA_EXTENSIONIN-VALUEPART2 = txt_960+240(240).
    WA_EXTENSIONIN-VALUEPART3 = txt_960+480(240).
    WA_EXTENSIONIN-VALUEPART4 = txt_960+720(240).
    append WA_EXTENSIONIN to BAPI_EXTENSIONIN.
    CLEAR txt_960.
    CLEAR WA_EXTENSIONIN.
    write WA_BAPI_TE_MEPOHEADERX to txt_960 left-justified.
    WA_EXTENSIONIN-STRUCTURE = 'BAPI_TE_MEPOHEADERX'.
    WA_EXTENSIONIN-VALUEPART1 = txt_960(240).
    WA_EXTENSIONIN-VALUEPART2 = txt_960+240(240).
    WA_EXTENSIONIN-VALUEPART3 = txt_960+480(240).
    WA_EXTENSIONIN-VALUEPART4 = txt_960+720(240).
    append WA_EXTENSIONIN to BAPI_EXTENSIONIN.
    endmethod.
    Hope this will help.
    Regards
    - Atul

  • Adding Custom Fields to the Sales Order Screens - VA01, VA02 & VA03

    Hi,
    I have a requirement to add custom fields in the Sales Order Standard Screen. Could anyone please tell me is there any screen exit available to add a tab screen or is there any possibility without modifying the standard code.
    Please let me know with the details.
    Thanks & Regards,
    Goutham.

    Hi Narendran,
    Thanks for prompt reply, it was very useful.
    Could you please let me know the procedure you have followed in coming to this conclusion of what screens to be used.
    I understand that the program is SAPMV45A.
    Thanks & Regards,
    Goutham.

  • Custom Fields in the Product Master Data

    Hi Experts!
    I have to add some custom fields in the product master data on SRM and I also need to have this data to be synchronized with the same in ERP.
    After having added this fields, can you pelase suggest a way to syncrhonized them with the ERP? is there a BADI I can leverage as in CRM?
    Thanks in advance.
    Points promised.

    Hi,
    See these related threadS:
    Re: Replicating additional fields (R/3 4.7) to SRM product master
    Transfer Inforecord Conditions Scales  to SRM Product Master
    https://www.sdn.sap.com/irj/scn/threadmessageid=6669812#6669812
    Extending SRM Product Master
    BR,
    Disha

Maybe you are looking for