How to copy custom fields in purchasing contract

Dear all, we have added to the standard field in the purchase contract position two custom fields.
These two fields (in value) are not taken when the user create a new contract by copying from another.
Are there some exit or BADI functions that allows to copy also custom ields into corresponding destination fields whitout modify the standard code ?
In customizing it seams there are aoly rulse for copy position texts.
Regards,
Riccardo Galli - Hera group.

Hi
Try to check the BADIs ME_PROCESS_OUT_CUST or ME_PROCESS_PO_CUST or the enanchement M06E0005, perhaps u can do something in the routines triggered as soon as the document is saved.
Max

Similar Messages

  • How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi

    Hi Experts,
    Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
    i/p for my report is am excel.
    excel is having  below formatt.
    To create salesdoc we are using SD_SALESDOC_CREATE bapi.
    but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom  field) in VBKD w.r.t salesdocument.
    Need your help what we need to do to reflect the value in vbkd table.
    Here temp will contains the data from excel
    1)
    FORM f_move_header_data .
       wg_header-doc_type            = wg_temp-auart .                   "Order type
       wg_header-sales_org           = wg_temp-vkorg .                   "Sales Organization
       wg_header-distr_chan          = wg_temp-vtweg .                   "Distribution Channel
       wg_header-division            = wg_temp-spart.                    "Division
       wg_header-sales_off           = wg_temp-vkbur .                   "Sales Office
       wg_header-sales_grp           = wg_temp-vkgrp .                   "Sales Group
       wg_header-purch_no_c          = wg_temp-bstnk .                   "Customer purchase order number
       wg_header-pymt_meth           = wg_temp-zlsch  .                  "Payment Method
       wg_header-zzychan_role        = wg_temp-zzychan_role_i.           "Channel Role
       wg_header-zzysub_role         = wg_temp-zzysub_role  .            "Submitter Role
       wg_header-zzy_inv_for_opt     = wg_temp-zzinv_format  .           "Invoice Format Optio
       wg_header-ord_reason          = wg_temp-augru  .                  "Order Reason Code
       wg_header-bill_block          = wg_temp-faksp.                    "Billing Block
       wg_headerx-doc_type            = c_set .                   "Order type
       wg_headerx-sales_org           = c_set .                   "Sales Organization
       wg_headerx-distr_chan          = c_set .                   "Distribution Channel
       wg_headerx-division            = c_set.                    "Division
       wg_headerx-sales_off           = c_set .                   "Sales Office
       wg_headerx-sales_grp           = c_set .                   "Sales Group
       wg_headerx-purch_no_c          = c_set .                   "Customer purchase order number
       wg_headerx-pymt_meth           = c_set  .                  "Payment Method
       wg_headerx-zzychan_role        = c_set.                    "Channel Role
       wg_headerx-zzysub_role         = c_set .                   "Submitter Role
       wg_headerx-zzy_inv_for_opt     = c_set .                   "Invoice Format Option
       wg_headerx-ord_reason          = c_set .                   "Order Reason Code
       wg_headerx-bill_block           = c_set.                    "Billing Block
    ENDFORM.                    " F_MOVE_HEADER_DATA
    2)
    FORM f_move_item_data .
       wg_item-itm_number          =   g_itmnumber.                              "Item number
       wg_item-material            =   wg_process-matnr .                        "Material
       wg_item-target_qty          =   wg_process-target_qty.                    "Targeted Qty
       wg_item-item_categ          =   wg_process-pstyv.                         "Sales document item category
       wg_item-zzylegal_i          =   wg_process-zzlegal.                       "Legal Contract
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_item-zzfv_sbcnt          = wg_process-zzfv_sbcnt.      
    APPEND wg_item TO i_item.
    wg_itemx-material            =   c_set .                        "Material
       wg_itemx-target_qty          =   c_set.                         "Targeted Qty
       wg_itemx-item_categ          =   c_set.                         "Sales document item category
       wg_itemx-zzylegal_i          =   c_set.                         "Legal Contract
       wg_itemx-zzsteady_date       =   c_set .                        "Amortization Start Date
       wg_itemx-zzsteady_end_dat    =   c_set.                         "Amortization Stop Date
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_itemx-ZZFV_SBCNt     =   c_set.   "
       APPEND wg_itemx TO i_itemx.
       CLEAR : wg_itemx. 
    endform. 
    3)           
    FORM f_move_head_ext
    wg_extension-structure   = c_ext_vbak.
       wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
    wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
       wg_ext_vbak-zzysub_role  = wg_temp-zzysub_role.
       wg_extension+30 = wg_ext_vbak.
    APPEND wg_extension to i_extension.
    CLEAR wg_extension.
       wg_extensionx-structure =  c_ext_vbakx.
       wg_ext_vbakx-zzinv_format = c_set.
      wg_ext_vbakx-zzlegal      = c_set.
       wg_ext_vbakx-zzychan_role = c_set.
       wg_ext_vbakx-zzysub_role  = c_set.
       wg_extensionx+30 = wg_ext_vbakx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    ENDFORM.                    " F_MOVE_HEAD_EXT
    *&      Form  F_MOVE_ITEM_EXT
    *       Item Extension
    4)
    FORM f_move_item_ext .
    * Structure for BAPI parameter Extension
       wg_extension-structure = c_ext_vbap.
       wg_ext_vbap-posnr      = g_itmnumber.
       wg_ext_vbap-zzsteady_date       =   wg_process-zzsteady_date .                 "Amortization Start Date
       wg_ext_vbap-zzsteady_end_dat    =   wg_process-zzsteady_end_dat.               "Amortization Stop Date
       wg_ext_vbap-zzlegal             =   wg_process-zzlegal.                        "Legal Contract
       wg_extension+30 = wg_ext_vbap.
    APPEND wg_extension to i_extension.
    * Structure for BAPI parameter Extension - Update Indicator Fields
       wg_extensionx-structure =  c_ext_vbapx.
       wg_ext_vbapx-posnr = g_itmnumber.
       wg_ext_vbapx-zzsteady_date       =   c_set .
       wg_ext_vbapx-zzsteady_end_dat    =   c_set.
    *  wg_ext_vbapx-zzlegal             =   c_set.
    *wg_process-zzfv_sbcnt = c_set.
       wg_extensionx+30 = wg_ext_vbapx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    and bapi calling is like below.
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
         EXPORTING
           sales_header_in       = wg_header
           sales_header_inx      = wg_headerx
           logic_switch          = wg_logic_switch
           business_object       = fp_bus_obj
           status_buffer_refresh = 'X'
         IMPORTING
           salesdocument_ex      = g_sorder
         TABLES
          return                = i_return
           sales_items_in        = i_item
           sales_items_inx       = i_itemx
           sales_partners        = i_partner
           sales_conditions_in   = i_cond
           sales_conditions_inx  = i_condx
           sales_text            = i_text
           extensionin           = i_extension
         extensionex           = i_extensionx.
    still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
    Please help me from this issue.
    Thank You..

    Hi,
    Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
    Please tell me how to solve it..
    Thanks & Regards,
    Reena..

  • How to add new fields to CRM contract Product List tab?

    Hi all!
    I would like to add a new custom field for CRM contract (CRMD_BUS2000121) item level, on the Product List tab.
    Here I found CRMT_0100A_ORDPRP_I_EXT_UI structure, therefore I enhanced this with new append structure and new fields.
    I also added the new fields to ORDPRP_I append structure and mapped the new fields in CRMC_MAP.
    For some reason the new fields are on the screen but they are grey, not changeable. What did I do wrong?
    Thanks,
    Tamas Pentek

    Actually for the new IC webclient UI you have need to take a look at your options:
    1.  New Installation:
    Use the EEWB and add the fields.  As part of the EEWB work, you will have a couple of post-processing steps where you will add your generated fields to the new screens.  However this doesn't require any programming.
    2.  Upgrade from CRM 4.0/50
    - New fields to add as part of upgrade
    See the directions for new installation
    - Existing fields to add as part of upgrade
    --See the blog on the 40/52 CUSTOMER_H migration for transaction fields
    --Business Partner fields part of BUT000 available via UI configuration tool, no extra work needed
    --Business Partner fields part of tabular extension, manual work required, I am still "perfecting" this method and plan on writing a blog once I have the technique finished.
    --Product Attributes - use the transaction CRMM_UI_PROD_GEN and CRMM_UIU_PROD_CONFIG
    I know CRM 2007 is based on the same tech foundation as 2006s, with some differences in how the UI tool works and the fact there are some screen layout changes(editable overviews).  The extension procedures are generally the same.  I can answer some of you extension questions based on my work with CRM 52 so far.  It will generally apply to your situation.
    BTW:  The PCUI is no longer supported in CRM 2006s and above.  Even the old SAP GUI transactions such as BP, COMM_PRODUCT are removed from the standard CRM menu.   The SAP CRM web client should be used instead now.
    Take care,
    Stephen

  • Customer field to purchase requisition

    Hello,
    I add the customer field at subscreen of purchase requisition ( at the data base table i add the relative field in ci_ebandb include ) by EXIT_SAPLMEREQ_001 and
    EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003.
    I add the same customer field at subscreen of purchase order ( at the data base table i add the relative field in ci_ekpodb include ) by EXIT_SAPLMEREQ_016 and EXIT_SAPLMEREQ_017 and EXIT_SAPLMEREQ_018.
    The problem is: when i convert the purchase requisition in purchase order, the data into customer field of
    purchase requisition not are transfert in the customer field of purchase order.
    thanks for help,
    Roberto Baldassarre.

    correction **
    tks for your help,
    but i had just done it. I explain with detail my step:
    I add the customer field at subscreen of purchase requisition by
    EXIT_SAPLMEREQ_001 and EXIT_SAPLMEREQ_002 and EXIT_SAPLMEREQ_003 (at
    the data base table I add the relative field on ci_ebandb include).
    I add the same customer field at subscreen of purchase order by
    EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 and EXIT_SAPMM06E_018 (at
    the data base table i add the relative field on ci_ekpodb include).
    Step followed:
    1. add field at EBAN table by CI_EBANDB include
    2. add same field at EKPO table by CI_EKPODB include.
    3. write code at EXIT_SAPLMEREQ_001,EXIT_SAPLMEREQ_003 following
    document's help.
    4. write code at EXIT_SAPMM06E_016, EXIT_SAPMM06E_017 ,
    EXIT_SAPMM06E_018 following document's help.
    5. build dynpro 0111 on function group XM02
    6. build dynpro 0111 on function group XM06
    The problem is: when i convert the purchase requisition in purchase
    order (ME59n), the data into customer fields of purchase requisition
    not are copied in the customer fields of purchase order (this field are
    empty).
    Tks for your help!

  • Custom fields in Purchase Info Record transactions(ME11/ME12/ME13)

    Hi,
    How to add custom fields to the screens of Purchase Info Record transactions(ME11/ME12/ME13)?
    The custom fields are already appended to table EINE(Purchasing Info Record: Purchasing Organization Data) and users want to maintain those fields via transaction ME11/ME12.
    All the relevant threads in SDN are without solution, anyone with such experience please help.
    PS: any enhancement method is fine.
    Thanks.

    Hi Jeff,
    Could you please help me with the solution you got for adding a new field in ME11 transaction
    My requirement is to add 2 new fields in Control tab of ME11.
    Thanks
    Renu Gusain

  • User exit MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    Hi,
    Indeed the exit which you have specified MM06E005 comprises the enhancement for customizing fields and screens associated with it. may be you might not have activated the screen associated with the exit. the screen might have been created but missed while activating.
    Regards,
    Jagath

  • MM06E005 - Customer fields in purchasing document

    Hi,
    I am using user exit MM06E005 - Customer fields in purchasing document to validate the line items in PO and display the value at header level.
    My requirement is when the user enters the line items and press enter the validated value should get populated at header level.I had included a  tab (customer tab) in that the value should get displayed.
    likewise for each and every line items the value should keep on changing.
    And
    I the field that i had added at header shows the value during the save but once we come out and enter again,it is not displaying the same.
    Regards
    Manoj

    got my solution...

  • How to copy customer in oracle applications in R12

    how to copy customer in oracle applications in R12

    When I copy (as in original example) 4 cells in Excel, the exact 4 cells paste correctly in another Excel, but on my web it post the 4 cells and then clear the cell below it. So the same data in the clipbord paste correctly into Excel, but incorrectly in the web.
    When I copy (as in original example) 4 cells from the web, the exact 4 cells paste correctly into Excel, and it then post correctly on my web solution.
    So, in summary this is what I find:
    - Copy from web and paste to Excel = no problem
    - Copy from web and paste to web = no problem
    - Copy from Excel and paste to Excel = no problem
    - Copy from Excel and paste to web = problem (first cell below pasted data get cleared)
    We have a SAP NetWeaver BI 7.0 system, I use Bex (WAD) Support pack 7 with Patch 1 and I have Internet Explorer (version 8) - on IE the compatibility view does not make any differance. Users with IE 7 experiance the same issue.

  • Customer Field in purchase order (ECC 6.0)

    Hi,
    I need a help on custumer field in ECC 6.0.
    I would like to know if there is a standard way to see customer fields in purchase or sales order.
    Thanks very much.
    Diego

    Customer fields (as in KUNNR)  or custom fields?
    Bothe sales orders and POs have user-exit screens that can be employed to show <b>custom </b>fields both at header and item levels.  In the case of sales orders, it is oft-referred to as "Additional Data B" screen.  This is the last tab screen of the sales order.
    Caveat: The above is from 46C, but am willing to bet that this feature still exists in the ECCs.

  • ME59n exit/BADI to copy purchase requisition custom field to purchase order

    I have added a custom field (Unloading Point) in the Purchase requisition customer screen. Now When a purchase order is created from the purchase requisition through t-code ME59N, I need to copy the unloading point value from the PR to Unloading Point in the shipping tab of the Purchase Order. Whch User-exit/BADI can be used for this purpose. <removed by moderator>
    Edited by: Thomas Zloch on Nov 23, 2010 12:44 PM - please do not offer ...

    Good you found out what was the answer. Please share your solution, that sort of the idea of a forum like this.........

  • How to transfer Supplier custom field into Purchase order

    Hi ,
    We had a custom field called Project code in Supplier data (vendor master) at SRM. As per flow purchase order gets created as a follow-on document. Now the requirement -Project code which was there in supplier data this should be transfered to PO
    In my knowledge this can be done through BADI , Could you please explain me steps required to do this?
    Thanks in advance.
    Harish

    Try BBP_DOC_CHANGE_BADI or BBP_ITEM_CHANGE_BADI.

  • New fields in purchasing contract.

    Hi SAP gurus,
    Any ideas how to add quickly new custom fields to contract header data?
    Thanks for replies
    Best regards

    Hi,
    Please discuss with you technical team and also see the possibilities of using the existing additional fields in item level or header level in the contract .
    Regards
    Ram

  • In LSMW how to include customer fields in BAPI method ?

    Hi all,
    We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.

    Hi Venugopal,
    You can use the sold to party field fiield for your requirement.
    Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
    If can enter the customer name, which will sort out the sold to party number whihc you can use.
    If this is not wat is required you have to copy the transaction and create a new Zreport.
    Hope this helps you.
    Thanks
    Arun

  • How to handle custom field  using BAPI_PO_Create1

    i  used to bapi_po_create1 to upload purchase order. in purchase order one custom field in item level warranty.
    in CI_EKOPODB . I was send custom data in bapi using EXTENSIONN. BUT I GOT
    ERROR PLEASE ENTER VALUE IN WARRANTY AND
    Error transferring ExtensionIn data for enhancement CI_EKPODB.
    IN A FORUM I GOT ANSWER TO IMPLEMENT BADI  ME_BAPI_PO_CUST. BUT I AM NOT KNOW HOW TO IMPLEMENT IT PLEASE GUIDE ME.
    PRANESH
    Edited by: Praneshom on Mar 31, 2011 11:26 AM
    Edited by: Praneshom on Mar 31, 2011 11:28 AM
    Moderator message: please do not post in all upper case.
    Edited by: Thomas Zloch on Mar 31, 2011 11:48 AM

    hi Diwakar.
    my warranty field is int4  length 10.
    I am already  use BAPI_TE_MEPOITEM.
    bapi_te_mepoitem-po_item = h_item..
    bapi_te_mepoitem-warrenty = '6'.
    WRNTY = bapi_te_mepoitem-warrenty.
    CONDENSE wrnty.
    CONCATENATE bapi_te_mepoitem-po_item WRNTY INTO POIT  SEPARATED BY SPACE.
    MOVE 'BAPI_TE_MEPOITEM' TO i_extensionin-structure.
    MOVE POIT TO i_extensionin-valuepart1.
    APPEND i_extensionin.
    bapi_te_mepoitemx-po_item = h_item.
    bapi_te_mepoitemx-warrenty = 'X'. "<--here the "difference"
    CONCATENATE  bapi_te_mepoitemx-po_item  bapi_te_mepoitemx-warrenty INTO POITX SEPARATED BY SPACE.
    MOVE 'BAPI_TE_MEPOITEMX' TO i_extensionin-structure.
    MOVE  bapi_te_mepoitemx TO i_extensionin-valuepart1.
    MOVE POITX TO i_extensionin-valuepart1.
    MOVE bapi_te_mepoitemx-warrenty TO i_extensionin-valuepart2.
    APPEND i_extensionin.
    Please review this code
    Thanks
    Pranesh

  • Copying custom fields from SRM PO to ECC PO standard fields

    Hi All,
    There are three custom fields which are added in SRM SC and PO at item level. My requirement is to map these three custom fields to three standard fields in ECC PO. Can any one please explain me, how the replication of SRM PO to ECC PO happens? I could find a function module "B470_PO_CREATE". Can any one tell me through which transaction or program this FM will be triggered.
    Any useful answer will be rewarded
    Thanks,
    Deepthi

    Hi Kumar,
    Sorry for the late reply. I have the solution for this question.
    For copying the custom fields code is to be written in the BADI "BBP_ECS_PO_OUT_BADI", method "BBP_B46B_PO_OUTBOUND". This BADI has both ECC PO fields and all the SRM fields(including the custom fields added in PO and SC) in separate structures.IS_HEADER, IT_ITEM etc has all the SRM PO values. CS_BAPI_POHEADER, CT_BAPI_POITEM etc has ECC PO values.
    There are two function modules, BBP_PD_PO_TRANSFER_EXEC and BBP_PD_PO_TRANSFER_EXEC_V2. Execute these function modules with the GUID for PO after PO change or create in SRM system. Once the FM is executed the BADI will be triggered and the additional functionality carried out and PO replication from SRM to ECC happens.
    Hope this helps you. Please let me know if you need any more information.
    Thanks,
    Deepthi

Maybe you are looking for

  • Lenovo g550 upgrade hard drive and ram

    I have a Lenovo G550 (20023), it has Intel T4300 CPU, 3 GB DDR3 RAM,Intel GMA 4500M graphics card and Windows 7, with 320 GB seagate HDD. I would like to buy a new HDD. I found a 2TB Verbatim drive 15 mm height. How much drive height does G550 suppor

  • Two Problems!!

    Hi all, I have purchased a couple of compilation albums, and seem to have a display problem with them. When looking at the Grid view, rather than these albums displaying one album cover with the tracks all in one place, I seem to have 57 Album covers

  • Smart sharpen filter in CS5 not working

    Hi, My smart sharpen filter is no longer working It seems to be doing it's job when I have a preview dialog box open, but as soon as I ok the changes the original image appears as if nothing happend. I've tried different files and it the same story:

  • How to add Short cut to DISCONNECT and LOGOFF

    We have an App that requires Remote Desktop Services Having installed & configured it. We asked the software company to setup App. This work fine in Desktop session i.e users login via mstsc and get presented with a desktop. But unfortunately not as

  • Two step

    Hi Everyone, My AppleID 've actived two-step verification (in ios7 ) and using normal.My phone and mobile number have added to trust device. But when I've upgraded my iphone5 to iOS8, I can't recieve code to verify on my trust iphone. Phone, imessage