BADI  ME_GUI_PO_CUST not populating custom fields

Hi!
    I've created my custom fields in the Line item level for ME21n transaction. The custom fields are in the include structure CL_EKPODB for EKPO. I'm unable to populate my custom fields. Help needed.
    My screen fields are named EKPO-ZZSTREET ,EKPO-ZZCITY etc.  
Thanks
Shubha!

Hi Shubha
      You have to set the mode ( editable / display only etc ) in method FIELDSELECTION_ITEM of BADI ME_PROCESS_PO_CUST to populate custom fields in  ME_GUI_PO_CUST.
By default system will take display mode. So u can your customer field in Me23n.
Regards
Jeevi

Similar Messages

  • BADI MB_MIGO_BADI not updating custom field in MSEG Table

    Dear Experts,
    I am working on screen exit In MIGO transaction for transfer Posting.
    I checked that BADI MB_MIGO_BADI having facility for screen exit and method line_modify having facility to change GOITEM Structure for the changed line item.
    Now, to make this functionality work I have enhanced include structure CI_COBL which is available in both mseg table and goitem structure, now I have this customized fields on my custome tab through the enhancement and also to update this value 2 custom fields created in goitem structure and MSEG table through include structure  CI_COBL.
    Here my question is at the time of transfer posing creation in MIGO when I am passing the value in custom fields through screen and assigning it to custom fields of structure GOITEM through LINE_MODIFY method, it is giving me below worning message
    BADI: Field GOITEM-ZZIDNLF is not ready for input. (Change is not taken over)
    Now I have debuged the code, also checkout many threads and came to know that because of few checks in standred program (iNCLUDE:LMIGOKL3) these fields will not be updated WHERE IT always checks whether these fields are ready for input or not and if not ready then instead of assigning the values it throws worning message.
    Now can you please through some light how can I go ahead as I have check out many threads and also tried to change value of cs_goitem structure using field symbol but throughing dump that it is blocked against changes through field symbol.
    The helpful answers will be highly appriciated.

    Hi,
    In the badi mentioned by you GOITEM is the importing parameters & if the relevant field is not used in any MIGO screen you cannot change the data.
    Please check example BADI interface: IF_EX_MB_MIGO_BADI~LINE_MODIFY
    Please check the BADI documentation:
    Changed data in GOITEM is only adopted if the relevant fields are visible and ready for input.
    Changed data in GOITEM is not adopted if the relevant field is not used in any MIGO screen (warning via MIGO 049).
    Changed data in GOITEM is not adopted if the relevant fields are not ready for input (warning via MIGO 050)
    Thanks and Regards,
    Chandra

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • ME21N badi ME_GUI_PO_CUST - not working in PO creation

    Hi All,
    I am working on badi ME_GUI_PO_CUST to create a custom tab on PO header. I have implemented the BADI with custom fields in the custom screen. However, in ME21N, this new tab is not appearing. At the same time, it is appearing in ME23N. If i take a PO in display mode, the tab appears and then switch to chaneg mode, the tab disappears.
    Any solution for this pleas.??
    Regards,
    Arun.

    Hi Arun,
    You can use MM06E005 exit for adding the tab for item level in ME21n transaction. In general, you go to smod and you give this exit there and then press on documentation then you will find all the information regarding function module exits.
    Give this exit in SMOD and then press Attributes--> click on Components, then you will find all the function module exits and subscreen areas where you can add your custom field on the subscreens.
    I am giving you the subscreen :
    SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen: PO item
    Function module exit:
    EXIT_SAPMM06E_018 Import Data from Customer Subscreen for purchasing document
    Then you start adding the custom field in Custom include of EKPO table and then you go to SE51 and then you import I mean ( Get from dictionary ) that particular Z field and then activate it. These all the thing you need to create a project and implement in CMOD transaction.
    Then you write the respective code in Functionmodule exit to populate the data to the database.
    Thanks,
    Swamy Kunche
    Edited by: Swamy Kunche on Dec 7, 2009 10:58 AM

  • Triggering BAdI on change of customer field in ME21N

    Hello,
    How can I tell transaction ME21N that relevant field values have been changed?
    I'm using BAdI ME_PROCESS_PO_CUST to change several field values in ME21N and ME22N. The BAdI (method PROCESS_ITEM) is called whenever a field changes, which is good.
    However, the BAdI is NOT called when a customer field changes.
    Of course, I can create a PAI module to catch changes in the customer fields, but how can I notify ME21N that the BAdI has to be called?
    Thanks in advance
    Roland

    Hi!
    Apparently this does not work. However, I implemented BAdI ME_GUI_PO_CUST to create a new customer subscreen and this one works.
    Unfortunately the "old" user exit and the "new" BAdI don't work together very well...
    best regards
    Roland

  • New tabs added by Badi ME_GUI_PO_CUST not seen in ME21N and ME22N

    Hi All
    I am implementing BADI ME_GUI_PO_CUST / ME_PROCESS_PO_CUST to add additional fields in Purchase Order Header.
    The implementation of the BADI ie the Subscreen of the fields to be added appears in Header of  transaction ME23N but it does not appear in the transaction ME22N and ME21N.
    Can anyone help me on this.How to make the tab appear on screen in transaction ME21N and ME22N.
    Thanx.

    Dear Friend,
    Just go to the Class CL_PO_HANDLER_MM
    This is the Super Class for the PO & PR.
    If u debug the PO u can see that PO is calling this super class.
    For this u want to create Subroutine in the Function Group calling the Screen .
    The Problem which u r facing is that the Instance are not yet created for that Cusotmer Data.
    Once u created this Subroutine u can see the fields..
    With Regards,
    Sumodh.P

  • Idocs not populating the fields

    Hi
    We are using Extended Classic Scenario. After the shopping cart is approved, the PO is generated in the backend R/3. The PO is generated in the backend and the idoc is triggered which is sent to supplier.
    The problem we are facing is as below:
    There are some fields in the idocs which are not getting populated. We are using badi implementation BBP_PO_INBOUND_BADI in the backend. We have used both the methods BBP_MAP_BEFORE_BAPI
    BBP_MAP_AFTER_BAPI
    The table EKPO is getting updated but the idoc does not have the fields.
    Also when we are second time retriggering the output the idoc is having the required fields.
    Kindly advice.
    Thanks and Regards
    Manoj

    Hello,
    It looks the first generation occurs to early in the process.
    Can you should check the processing time you defined in condition records ?
    3 is too early, 4 should work because a commit work is done before. And at worst set it to 1 (selection report) and schedule a job to process the message.
    Rgds,
    Pierre

  • BAPI_BUS2054_CREATE_MULTI - Populating custom fields

    Hi,
    I am using BAPI BAPI_BUS2054_CREATE_MULTI for creating WBS Elements.
    We have 18 custom fields at WBS element level.
    I am trying to populate the data for those 18 custom fields through EXTENSIONIN table parameter. 
    I am passing BAPI_TE_WBS_ELEMENT to the structure name & values to VALUEPART1. But after the BAPI call,
    its not creating any error or saving the data for WBS Element. 
    Note: i am passing WBS Element at starting position i.e., 0(24)  .  My custom fields starts from 25(3) position onwards.
    Below is the code how i am populating the data to the EXTENSIONIN tables.
    data: lwa_extin       TYPE bapiparex.
    MOVE 'BAPI_TE_WBS_ELEMENT' TO lwa_extin-structure.
      lwa_extin-valuepart1+0(24) = wa_data-posid.
      lwa_extin-valuepart1+25(3) = '1'.
      lwa_extin-valuepart1+28(4) = 'BSUB'.
      lwa_extin-valuepart1+32(4) = 'CONT'.
      lwa_extin-valuepart1+36(3) = '132'.
      lwa_extin-valuepart1+39(6) = 'AUTH'.
      lwa_extin-valuepart1+45(6) = '301'.
      lwa_extin-valuepart1+51(26) = '1'.
      lwa_extin-valuepart1+77(5) = '1'.
      lwa_extin-valuepart1+82(21) = '1'.
      lwa_extin-valuepart1+103(11) = '1'.
      lwa_extin-valuepart1+114(15) = 'IL'.
      lwa_extin-valuepart1+129(50) = '1'.
      lwa_extin-valuepart1+179(50) = '1'.
      lwa_extin-valuepart1+229(11) = '1'.
      lwa_extin-valuepart2+0(10) = 'C'.
      lwa_extin-valuepart2+10(8) = sy-datum.
      lwa_extin-valuepart2+18(8) = sy-datum.
      lwa_extin-valuepart2+26(4) = '1'.
    APPEND lwa_extin TO li_extin.
        CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
          EXPORTING
            i_project_definition = lwa_pspid
          TABLES
            it_wbs_element       = li_wbsele_data
            et_return            = li_return
            extensionin          = li_extin
            extensionout         = li_extout.
    Can any one help me about this issue.
    Regards,
    Kris.

    Hi,
    Are you using 'BAPI_TRANSACTION_COMMIT' after BAPI call?
    If not then try to use as below,
    data: lwa_extin TYPE bapiparex.
    MOVE 'BAPI_TE_WBS_ELEMENT' TO lwa_extin-structure.
    lwa_extin-valuepart1+0(24) = wa_data-posid.
    lwa_extin-valuepart1+25(3) = '1'.
    lwa_extin-valuepart1+28(4) = 'BSUB'.
    lwa_extin-valuepart1+32(4) = 'CONT'.
    lwa_extin-valuepart1+36(3) = '132'.
    lwa_extin-valuepart1+39(6) = 'AUTH'.
    lwa_extin-valuepart1+45(6) = '301'.
    lwa_extin-valuepart1+51(26) = '1'.
    lwa_extin-valuepart1+77(5) = '1'.
    lwa_extin-valuepart1+82(21) = '1'.
    lwa_extin-valuepart1+103(11) = '1'.
    lwa_extin-valuepart1+114(15) = 'IL'.
    lwa_extin-valuepart1+129(50) = '1'.
    lwa_extin-valuepart1+179(50) = '1'.
    lwa_extin-valuepart1+229(11) = '1'.
    lwa_extin-valuepart2+0(10) = 'C'.
    lwa_extin-valuepart2+10(8) = sy-datum.
    lwa_extin-valuepart2+18(8) = sy-datum.
    lwa_extin-valuepart2+26(4) = '1'.
    APPEND lwa_extin TO li_extin.
    CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
    EXPORTING
    i_project_definition = lwa_pspid
    TABLES
    it_wbs_element = li_wbsele_data
    et_return = li_return
    extensionin = li_extin
    extensionout = li_extout.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT = 'X'.

  • Populating custom fields

    I'd like to be able to populate a custom field with keyboard commands. This would be analagous to using option-1, etc., to add keywords to the Keyword field.
    My custom field is called 'Type', and the population consists of Tree, Palm, Patio Tree, Shrubs, Vines, Aquatics, Annuals. I want to assign keyboard shortcuts for each of these terms and have the term populate 'Type'.
    Is this even possible? I spend a fair amount of time with the Command Editor, but didn't see anything. Of course my fallback is to simply use keywords, but as I am already about a third through 5000 images, I'd like to continue.
    Thanks.

    The organizational uses are important.  Grouping like Keywords as children makes them much easier to find and use when using the Keywords HUD.  And being able to collapse your Keyword HUD into a manageable number of top-level categories (just like an outline) is helpful in many situations.  But the big advantage is this:
    Using a parent Keyword as a category puts an entry in the Filter HUD whenever any on of its children Keywords are assigned to an Image in the currently active container.  Thus you can filter any container easily using the Rule {"Keyword" "includes any of the following" "yourParentKeyword"}, and the filter will select all images that have a Keyword that is a child of "yourParentKeyword".  (This saves you having to troubleshoot the results when you forget to click "Vines" while hunting down and clicking "Tree, Palm, Patio Tree, Shrubs, Aquatics, Annuals".)  With a well-structured Keyword hierarchy, this can be extremely useful.  At its simplest, you could filter Photos view as {"Keyword" "does not include" "Type"} and immediately identify all Images to which you have not added a "type" Keyword.
    As a general practice, I promote specificity over concision.  In this case, you should, imho, avoid the un-specific label "Type" in favor of something that will always specify its meaning to any user, such as "Type of Plant".

  • Populating Customized fields in Sales Order Creation using BAPI

    Hi All,
    I have a requirement that, I need to populate 2 customized fields which are appedned in the VBAK tables through Append structure. I am using BAPI_SALESORDER_CREATEFROMDAT2 FM for creating it.
    Could anybody tell me how to send these 2 coustomized field values in this BAPI using EXTERNIN parameter.
    Regards
    Rajesh
    [email protected]

    Hi,
    To add data to custom fields there are two appraoches.
    <b>1)</b>Using the <b>EXTENSIONIN</b> in the Tables option in the FM <b>BAPI_SALESORDER_CREATEFROMDAT2</b>
    Check the Documentation for the same,
    <b>Customer Enhancement for VBAK, VBAP, VBEP</b>
    <i>Description</i>
    You can use this parameter to transfer user-specific enhancments to a BAPI. The customer has to complete the EXTENSION structure and the system automatically continues processing it. If you have not defined any user-specific fields, then you can transfer a blank EXTENSIONIN structure.
    <b>Technical information about Customer Enhancements</b>
    The following description uses an example to explain how to proceed with customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.
    The customer has added their own fields to table VBAP using the INCLUDE structure CUTEST. This structure contains 2 fields:
    CFIELD1, CHAR 10
    CFIELD2, CHAR 3.
    The customer also requires that these two fields can be maintained with the BAPI.
    1. Maintain structure CUTEST in table VBAP
    2. Because the BAPIs work with checkboxes, you must also define a CUTESTX checkbox for the customer structure. It should be structured like this:
    Field name       Data element
    CFIELD1            CHAR1
    CFIELD2          CHAR1
    3. Define these customer structures in the structures VBAPKOZ und VBAPKOZX using INCLUDE or APPEND.
    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI structures using the APPEND technique.
    5. Adjust the following structures for customer enhancements to table VBAK:
    a) VBAKKOZ
    b) VBAKKOZX
    c) BAPE_VBAK
    d) BAPE_VBAKX
    6. Adjust the following structures for customer enhancements to table VBEK:
    a) VBEPKOZ
    b) VBEPKOZX
    c) BAPE_VBEP
    d) BAPE_VBEPX
    7. Generally, the data should be added to the BAPI interface in the internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).
    8. If the EXTENSIONIN parameter contains customer data, you must complete at least the key fields in the relevant standard parameters.
    <i>For example:</i>
    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in order 4711.
    The following entries are expected:
    Import:     BAPIVBELN-VBELN       = '0000004711'  Document number
                BAPISDHD1X-UPDATEFLAG = 'U'           UPDKZ for doc header
    Tables:     BAPISDITM-ITM_NUMBER  = '000020'      Item number
                BAPISDITMX-ITM_NUMBER = '000020'      Item number
              + BAPISDITMX-UPDATEFLAG = 'U'           UPDKZ for item
    You must complete the EXTENSION table as follows:
    STRUCTURE                          VALUEPART1       1234561234567890123
    BAPE_VBAP                       0000004711000020                 XYZ
    BAPE_VBAPX                      0000004711000020       X
    <b>Further Information</b>
    You can find more information in the BAPI programming guide in the chapter for enhancements to BAPIs.
    Notes
    You must complete the STRUCTURE field with the name of the relevant enhancement structure (BAPE_VBAK, BAPE_VBAP, BAPE_VBEP). You can complete the remaining fields with the append structures from the enhancement structures.
    At the moment, you can use the BAPI to store enhancements in the following structures:
    VBAK : An enhancement to header data requires an append structure to BAPE_VBAK and an enhancement to structure VBAKKOZ.
    VBAP : An enhancement to item data requires an append structure to BAPE_VBAP and an enhancment to structure VBAPKOZ.
    VBEP : An enhancement to schedule line data requires an append structure to BAPE_VBEP and an enhancement to structure VBEPKOZ.
    VBKD : If you are using an enhancement for header data, you must add an append structure to BAPE_VBAK. You also need to enhance structure VBAKKOZ. If it is for item data, you need to add an append structure to BAPE_VBAP. You must also enhance structure VBAPKOZ.
    If you also want to work with checkboxes, each X-structure must also contain an append structure.
    For example:
    A customer has created an order and wants to include the material long text (50 digits long).
    The EXTENSIONIN structure must be completed with BAPE_VBAP. Two fields have fixed definitions in this structure. These are in the VBAP host key (VBELN, POSNR). The customer sets up an append structure that contains field ZMAT50.
    Because the VBELN is normally blank when you create an order, the data can look like this:
    STRUCTURE   |BAPE_VBAP
    <b>2)</b> Create the Sales Document using the FM and when successfully craeted you will get the Sales Document No in the Export parameter <b>SALESDOCUMENT</b>.
    After its created and Committed using <b>BAPI_TRANSACTION_COMMIT</b> , do a <b>BDC</b> recording for the same to (<b>VA02</b> Change Sales Order) update the fields only and save the document.
    Regards,
    AS

  • Value is not populating in field through search help f4

    Hello Expert,
    I have made one field as a search help but data is not populating from popup.
    Data is coming from BP_search_help. Here i did not create any search help in se11. not required here.
    i used Code in get_p method.
    Method GET_P_BP_NUMBER.
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          IF iv_display_mode EQ abap_true.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = ' '.  "EC NOTEXT
      ENDCASE.
    ENDMETHOD.
    GET_V Method.
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
            lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.BP_NUMBER'.
      ls_map-f4_attr = 'PARTNER'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id        = 'BP_HEAD_SEARCH'                            "#EC NOTEXT
              iv_help_id_kind  = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
              iv_trigger_submit = 'X'
              iv_input_mapping  = lt_inmap
              iv_output_mapping = lt_outmap
    endmethod.
    But when i activate get_v method .i am getting 1 error.
    Error is
    Please help me how to rectify this error and any other way to populate data in field through f4 help.
    If u want more detail. Please follow attachment.

    Hi Madhuri,
    You can refer the below code for search help for partner. The code has to be written on GET_V_XXX method.
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
             lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.BP_NUMBER'.
       ls_map-f4_attr = 'PARTNER'.
       APPEND ls_map TO lt_outmap.
       CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
         EXPORTING
           iv_help_id        = 'UIF_BUPAP_WIDE_COL'    ""Search help name
           iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
           iv_trigger_submit = abap_true
           iv_input_mapping  = lt_inmap
           iv_output_mapping = lt_outmap.
    Thanks,
    Ritu

  • Populating custom field in an existing sap query

    HI,
    I am making changes to existing query . Query already had a qty field, now I need to display the % of qty delivered for every
    vendor  as a subtotal text for every vendor.
    I added the custom field to query and can display it as subtotal text. But I am not able to populate the value into it.
    Because, When I sort by Qty and sum by Qty, I am getting value. Now I need to divide the sum of qty / number of items, which i dont get until I display the output, So my subtotal text field is always zero.
    I
    I debugged the program generated by query, it is using select--endselect and putting in %dbtab(which is not defined in query) .
    To get the final value, i cannot change standard code generated from Query/Infoset and add teh LOOP ..ENDLOOP and make At new logic for vendor.
    Any suggestion on calculating the % of delivered qty,..
    Thanks

    if your query is based on an infoset, you just have to put the formula in code of infoset

  • Project Server 2013 not saving custom field data

    Hello all,
    I have a Project Server 2013 deployment with several Project-level custom fields.
    One of them, never saves the info typed in. All others work just fine but this one does not like to save anything. There's no error in queues or the ULS.
    I'm so lost with it. Any thoughts?
    Rene Alvarez

    An update on this issue.
    I could isolate it to the project plan template. If I use my custom fields with an EPT without a plan template, I have no problem.
    So the problem is the template right? Well, I did the following:
    Create a blank template and attach it to the EPT. Result: all Ok.
    Create a template with 10 tasks (task name only) and attach it to the EPT. Result: all Ok.
    Create a template with my full 135 tasks (task name only) and attach it to the EPT. Result: all Ok.
    Create a template with the 135 tasks (task name and WBS) and attach it to the EPT. Result: all Ok.
    Create a template with the 135 tasks (task name, WBS and milestones) and attach it to the EPT. Result: FAIL. Cannot save custom fields again.
    A user noticed something. If he opens a problematic project in Project Pro, and publish it again (no changes) then the project accepts data in the custom fields.
    Rene Alvarez

  • Populating Custom Field in T005

    Hi All,
    I have a question... I recently appended a custom field in table T005 (countries table) (under ZAT005 structure).
    So I want to popualte this field... How do I expose for edit? I don't want to do SE11 edit mode... and I was hoping some way I can do it thru SPRO under countries section. That way, I can made modification on country all at once.
    But I don't know how to add my field to those SPRO screens. Ideas anyone?
    Charlie

    Hi,
    I believe the only option is to get the access key for the view V_T005 which has the table maintenance..
    Then go to the change mode and re-generate the table maintenance..
    But the danger in doing this is you might loose the screen layout of the detail screen...Meaning arrangement of the fields..
    How often are you going to change this data...It is just master data right...
    Also I would prefer to have a custom view to maintain this data...
                                          OR
    Another Idea...You can use the SM30 events to trigger a popup with a input field when they save the data..Then update T005 in the custom field with the value given in the popup.
    Thanks,
    Naren

  • Check in Similar not populating custom metadata value set by global rule

    I have created a global rule to set the default value for custom metadata field creation date as current system date.This rule is working fine for normal check in but when i am using check in similar functionality of ucm the creation date value is getting populated from original content metadata value instead of default value set by rule.Is there any way to populate creation date as default value set by rule even in the check in similar function.
    Thanks in advance!!!
    Edited by: 906120 on Jan 5, 2012 4:42 AM

    Check-in similar does not evaluate scripts in the "use defaultvalue" field, as it has to copy metadata values. However, you can add script to the "Is derived field" as well. Just don't use dprDefaultValue but dprDerivedValue=
    This script will be evaluated before check-in operation and any value contained in the metadata field will be overwritten with value defined by script.
    Regards,
    Boris

Maybe you are looking for