Appending customer field for BAPI_CONTRACT_CREATE

Hello. 
I'm trying to append customer field to the table EKPO using BAPI called "BAPI_CONTRACT_CREATE ". 
I have created a structure and included it into append structure of EKPO. 
Can anyone tell me what I should do next?
Regards,
Tomoko Sakamoto

Hello Tomoko
The BAPI has a TABLES parameter EXTENSIONIN having the following documentation:
FU BAPI_CONTRACT_CREATE          EXTENSIONIN
Short Text
     ExtensionIn
Description
     With the parameters ExtensionIn and ExtensionOut, it is possible to
     enhance the interface of a BAPI without modification to achieve the
     automatic processing of customer-specific data.
     The data is passed on in a table. The format of the individual data
     records of this table is determined via the structure BAPIPAREX. This
     structure contains several data record fields (VALUEPART1, VALUEPART2
     etc.) and a field for the name of an auxiliary structure (STRUCTURE).
     Because per data record the data is written piecewise consecutively to
     the data record fields available for the purpose, an auxiliary structure
     is needed for the interpretation of the data.
     In the event that an SAP database table is to be enhanced by additional
     fields, BAPI table extensions are especially suitable as auxiliary
     structures. A BAPI table extension can either be already predefined by
     SAP or created by the customer. Examples of auxiliary structures and
     BAPI table extensions can be found at the following points:
     o   Description of the various customer enhancement options
     o   Enhancement of BAPI based on existing SAP database tables
     o   Enhancement of BAPI through incorporation of additional customers'
         own database tables
     o   Enhancement of BAPI by import data that does not show up the
         database level
     Note that only fields of the data type CHAR and similar data types may
     be used in the BAPI parameter ExtensionIn/ExtensionOut.
     If the customer Include contains deviating parameters, the configurable
     message ME 887 is invoked. However, the data is not adopted in the
     target structure from the container.
Default
     The auxiliary structures have been defined as follows:
     o   Header data:
         -   BAPI_TE_MEOUTHEADER
         -   BAPI_TE_MEOUTHEADERX
     o   Item data:
         -   BAPI_TE_MEOUTITEM
         -   BAPI_TE_MEOUTITEMX
     o   Account assignment data:
         -   BAPI_TE_MEOUTACCOUNT
         -   BAPI_TE_MEOUTACCOUNTX
Function Module
     BAPI_CONTRACT_CREATE
You need to define and structure the values passed by this EXTENSIONIN parameter in a specific way in order to achieve your goal. For more details please refer to:
[Customer Enhancement and Modification of BAPIs (CA-BFA)|http://help.sap.com/saphelp_nw70/helpdata/EN/6b/3f6d016d0711d396a50004ac96334b/content.htm]
Regards
  Uwe

Similar Messages

  • Replicating Custom Fields for Products in CRM  from ECC

    Hi All,
    I am having difficulty in replicating SAP standard field values from ECC to custom fields for products in CRM. This is what i did:
    1. I created a new settype(ZMASTER_INFO) with a single attribute(ZIND_STD) and added
        this new settype to MAT_HAWA. (As all our materials fall under this material type).
    2. I am looking to map SAP standard field from ECC to this custom field of mine.
        I wrote the code in CRM BADI 
        'ZPRODUCT_CUSTOMER2->MAP_R3_TO_CRM_MATERIAL' with the following code:
    DATA: ls_ZMASTER_INFO TYPE ZMASTER_INFO_maintain.
    DATA: ls_category_bdoc       TYPE COMT_PROD_CAT_REL_MAINTAIN,
          ls_category            TYPE COMT_PROD_CAT_REL,
          lt_categories          TYPE COMT_PROD_CAT_REL_TAB,
          ls_settype             TYPE COMT_settype_ext,
          ls_cat_settype_rel     TYPE COMT_CAT_FRAG_REL,
          lt_cat_settype_rel     TYPE COMT_CAT_FRAG_REL_TAB,
          lt_cat_settype_rel_all TYPE COMT_CAT_FRAG_REL_TAB.
    LOOP AT lt_cat_settype_rel_all INTO ls_cat_settype_rel.
          CALL FUNCTION 'COM_SETTYPE_READ_SINGLE'
            EXPORTING
              IV_SETTYPE_GUID         = ls_cat_settype_rel-frgtype_guid
            IMPORTING
              ES_SETTYPE              = ls_settype
           EXCEPTIONS
             NOT_FOUND               = 1
             NO_IMPORT_VALUES        = 2
             NO_TEXT_FOUND           = 3 .
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      CASE ls_settype-frgtype_id.
          WHEN 'ZMASTER_INFO'.
          ls_ZMASTER_INFO-relation-owner = 'X'.
          ls_ZMASTER_INFO-relation-logsys = cs_product_bdoc-header-com_product-logsys.
          ls_ZMASTER_INFO-data-ZZ0010 = is_mara-STD_DESCR.
          ls_ZMASTER_INFO-DATA_X-ZZ0010 = 'X'.
          APPEND ls_ZMASTER_INFO TO cs_product_bdoc-data-ZMASTER_INFO.
          APPEND ls_settype-FRGTYPE_GUID TO cs_product_bdoc-data-MNT_SETTYPE.
       ENDCASE.
    ENDLOOP.
    Since in ECC i am not having any custom fields i did not write any code in ECC for TPS34 and TBE24. I just wrote this BADI in CRM and using the field S_MARA-STD_DESCR.
    I am not sure if i need to write the code in ECC. COUld anyone please confirm if i need the code in ECC?
    Also in the CRM BADI, lt_cat_settype_rel_all is EMPTY. Not sure how this gets its value.
    Could anyone please suggest if i am missing anything here? Any help is appreciated.
    Thanks,
    Karuna.

    Hi Karuna,
    One more solution is to change the BDoc data content before it hit the Database.
    this can be done in badi: Data_Exchange_badi (if u dont find this try with following search string: xchange)
    In the above mention badi you will find a method which is used to populated the contend jst after bdoc in CRM is being populated by R/3 data.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • User's custom field for metadata entrance

    It would be wonderful if the user could add a series of metadata custom fields.
    I'm thinking in a situation where you might be photographing for a national museum or an art gallery where you could enter a custom field for the artist's name, date of birth & death, nationality, restoration details (who did what & when?), etc..

    I second that one, too. It would be immensely useful. After all, LR is a database, so adding custom fields shouldn't be too difficult, should it?
    I'd be happy for these to be internal only, not exportable.
    David.

  • Adding customized fields for Travel Expenses

    Hi,
    I would like to add some customized fields for user input during the creation of travel expense form.  Is this possible?  If yes, any advise on the steps to create customized fields for data entry of travel expense form?
    Thanks.

    Hi Yvonne ,
    Thank you for the tip , it was helpfull.
    We are using field BUS_REASON "Business Partners", We changed label for data element but is not showed in TRIP transaction we can see it in PR05 transaction.
    How can I change labels for TRIP transacction?
    We did the change in CMOD transaction
    Thanks.

  • Add a custom field for Product Allocation

    Hi experts,
    I have copied S140 to S501 to add a custom field for product allocation.
    I have added the custom field in MCVBAKUSR, so it is visible in MCVBAK.
    However, I don't know whether I can populate data into custom field. I searched in forum, someone said it can be done in SAP enhancement MCS10001. But it can't work. I have tried to place a break-point in the code, and seems that throughout the order creation and product allocation check, it hasn't get into the codings in enhancement MCS10001.
    Can anyone give me some idea on it? Thanks.

    You should have simply extended VBAK table. It would've taken care of extending MCVBAK, etc. Then VBAK field would have to be populated in a user exit USEREXIT_CHECK_VBAK in MV45AFZB, when a document is being created/changed.

  • Enabling Quote custom field for External Pricing Response

    Hi All,
    Using UI configuration (adaptation) we are able to define new fields and enable them for standard web services. The result is that they are included in the relevant WSDLs and can be mapped using PI/HCI to equivalent fields in an external system such as SAP ECC.
    Looking at Quote's for example, we have defined a new field at Product Item Line level and have the following services we can enable it for.
    Enabling for the CustomerQuoteRequestExternalSalesDocumentDataOut outbound service adds the field to the External Pricing request part of the resulting WSDL, however it is not enabled for the response which is key to our requirement.
    Is it possible through PDI to enable this field for the inbound equivalent for CustomerQuoteRequestExternalSalesDocumentDataOut??? If not, is it possible to create the field through PDI and enable it that way?
    Thanks
    Indi

    Hi Chandan,
    Thanks for the response.
    The External Pricing interface for Quotes is synchronous so has no IDoc as such. We send some parameters to fetch a price from SAP ECC, and the response contains all the pricing information.
    In terms of the response, we're able to pass the value we need from SAP ECC to HCI, however there is no place in the WSDL for us to pass it to the field we have defined in C4C.
    The WSDL for External Pricing contains both the request and response structures, therefore two root nodes. Adaptation only allows us to enable the field for the request (outbound) node. I'm trying to work out how we can enable our custom field for the response (inbound) node within the WSDL structure.
    Thanks
    Indi

  • How Update Custom fields for EABL DB table by using BAPI_MTRREADDOC_UPLOAD

    Hi friends,
    How can I Update Custom fields for EABL DB table by using BAPI_MTRREADDOC_UPLOAD
    for the parameter EXTENSIONIN of type BAPIPAREX
    I am passing the Structure as BAPI_TE_EABL
    in that structure MRIDNUMBER as EABL-ABLBELNR field value
    ZMESSAGE some text of 30 char and
    ZSKIPC of 2 char
    but I am not able to update that data for the MRIDNUMBER (ABLBELNR ) in DB table EABL
    I am getting RETURN Structure message type E
    as
    "Upload interim entries: Maintain one table only"
    Can any one provide me solution
    Thanks in Advance
    Ganesh

    Hi,
    Refer the following SAP notes.
    1. Note 485557 - BAPI_REQUISITION_CREATE: 'EXTENSIONIN' customer enhancements
    2. Note 584902 - BAPI_REQUISITION_CHANGE: ExtensionIn not connected
    3. Note 792132 - EBAN, EBKN: user-defined fields are not filled
    Regards,
    Harish

  • Custom fields for ROS initial page in BSP application

    Hi,
    We want to add some more customer fields in ROS initial page, for example TIN number. We have added a field to ZZTIN in the include CI_CUF_REQ_FIELDS of structure ROS_CUF_REQ_FIELDS and also implemented BAdI ROS_REQ_CUF. After adding custom codes in BSP application ROS_SELF_REG under page u201Caddress.htmu201D we are able to see this field in the initial registration page.
    Now the question is WE ARE UNABLE TO KNOW HOW TO STORE THE VALUE ENTERED HERE. We are facing below issues.
    (1)     If we try to input  ZZTIN to structure u201Cgs_address u201C it is asking us to add custom fields here also.
    (2)      But when we tried to append ZZTIN to structure BAPIBUS1006_ADDRESS,  it is not allowing to activate it.
    (3)     We have also appended ZZTIN to ADRC table. How can we input to ADRC table from here?
    Ganapathi

    Dear VASILIEVA Irina,
    Thanks for the reponse. Could not get what do you menat by "core mod", did you meant you created a separate table with key field business partner id... Can you just elaborate?
    However we would prefer to add a custom filed in the standard strcucure itself.. both type suggetions are welcome....
    Ganapathi

  • Custom field for bapi_pr_create

    Hello Experts,
    I have a requirement of adding custom field at the header level. Can i use bapiextensionin in the FM BAPI_PR_CREATE
    if yes what is the structure that need to be modified for appending new fields and transfer the data to the EBAN table.
    Thanks in advance.
    Praveen

    Hi to All,
    I've the same problem, using BAPI_PR_CREATE and filling EXTENSIONIN ( BAPI_TE_MEREQITEM/X)
    the custom field has not filled. I've also tried to implement BADI ME_PR_CUST but doesn't work.
    Please help up.
    Thanks a lot.
    Umberto

  • Custom field for sales order - Urgent.

    Hi all,
    I am novice at SD, want to append a custom field to header level tables - VBAK, LIKP, VBRK. for sales order.
    - Will append structure work for this requirement ?
    - Will this field automatically apears in VA01, VA02, VA03 screen ?
    Thanks in Advance.
    Regards,
    Mohan.

    Hi,
    Implementation Guide.
    This is the place where we do the configuaration settings for sap.
    This is the place where the core users or super users do the configuration changes if they want after the project is implemented.
    Mohan
    Award points if it helps

  • Customer-Fields for accounting

    Hello,
    i have a question about adding customer-fields to accounting. According to SAP-Note Note 458591, its easily possible to create additional fields by only create them in append-structures. For me it sounds like you only have to do this and additionally add the new fields to the table BBP_C_ACC_F etc to see the new fields input-ready within the accounting-tab of Purchase Order maintenance etc, like me21n.
    Sadly the note is only for SAP SRM. Could anybody tell me if thats also possible for SAP ECC 6.0 ? The problem is, that ECC doesnt seem to have a table like BBP_C_ACC_F mentioned in the note.
    Or is the only way to add maintenance of further fields in accounting over new tabs with Badi ?
    any help would be appretiated.
    thanks and regards,
    oliver

    No one ?
    Maybe i wasnt able to write down my point, so here i go again.
    Theres the standard "Accounting"-Tab within the item-level details of PO-transactions like ME21N. That tab holds informations about the using accounts of the selected order-position (EKPO). Now i need to add one new customer-field to this tab. For this i extended the structure CI_COBL which is included in the structure COBL. That one holds the data for this tab. The structure is extended now - but how do i get this new field onto the displayed Subscreen on that accounting-tab ?
    Thats my point. I already tried to do it over generate a new subscreen over SPRO->IMG->MM->Purchase->Accounting->Create Subscreen for Accountingblock   and adding the field of COBL by hand but its still invisible on the screen even the subscreen is used. The logic must make it invisible.
    Can anyone help me out and give me some hints on that ?
    Thanks alot and regards,
    oliver

  • Add custom field for Item Manufacturer logo?

    Hi All,
    I would like to add a custom field to hold manufacturers logo file names.
    I want to be able to print out Item Price lists by Brand (manufacturer) that display the manufacturers logo at the top of the page. The Price List includes the Item code and description along with List Price and Dealer Cost Price.
    I have prepared a user query with two variables (Manufacturer and Price List) that returns the correct data. I have also prepared a PLD layout that formats the document as expected.....all except for the manufacturer logo.
    Here is the query for the Brand Specific Dealer Price List:
    SELECT T0.[ItemCode], T0.[ItemName], (SELECT price from ITM1 where ItemCode=t0.ItemCode and PriceList=6)
    As 'RRP Inc GST', T2.[Price] As 'Dealer Cost Ex GST', T4.[ItmsGrpNam] FROM OITM T0  INNER JOIN OMRC T1 ON
    T0.FirmCode = T1.FirmCode INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OPLN T3 ON
    T2.PriceList = T3.ListNum INNER JOIN OITB T4 ON T0.ItmsGrpCod = T4.ItmsGrpCod WHERE T1.[FirmName] = [%0]
    And  T3.[ListName]  = [%1]
    I hope to be able to add a logo field to the OMRC table (I assume?), and then be able to return that on the PLD layout.
    This would be a perfect result for my requirement as we could print or email formated Brand (manufacturer) specific dealer price lists (with variable price list pricing) on demand.
    Any help would be most appreciated.
    Best regards,
    John

    Hi Gordon,
    SAP B1 2007 A (8.00.234) SP:01 PL:10
    No, I have yet to add the UDF as I am unsure how to do so. I attempted to do this via "User-Defined Fields - Management", but cannot find the OMRC table in the list of available categories to add field data to.
    Best regards,
    John

  • CN41 Customer Fields for WBS not visible in the CN41 report

    Hi,
    I have Done the Below Steps:
    I have done all the Things Below and it is working Also.:
    Create structure CI_PRPS.
    Create enhancement.
    Edit the function exits.
    Maintain the global declarations.
    Design the customer-specific screen.
    Activate the enhancements in CMOD.
    Generate the structures in the Project Information System.
    In CJ20N i have these customer fields as a new Tab and i am also able to save the data in the Database also.
    My problem comes not in transaction execution but in Reporting.
    When i run the Report CN41 the fields which i have added into the PRPS using the Include CI_PRPS is not displayed in the Report.These fields are available in the selection screen but not available in the report when i execute the Report and do choose fields to display collums in the report.
    I am getting these fields in CN43 but not in CN41.
    In CN43 also the Values are comming in ####### but not in correct values.
    Also when i tried to Run the Report RCNCT001 it is asking for the access Key.
    Thanks

    Hi,
          I have Done the Below Steps:
    I have done all the Things Below and it is working Also.:
    Create structure CI_PRPS.
    Create enhancement.
    Edit the function exits.
    Maintain the global declarations.
    Design the customer-specific screen.
    Activate the enhancements in CMOD.
    Generate the structures in the Project Information System.
    In CJ20N i have these customer fields as a new Tab and i am also able to save the data in the Database also.
    My problem comes not in transaction execution but in Reporting.
    When i run the Report CN41 the fields which i have added into the PRPS using the Include CI_PRPS is not displayed in the Report.These fields are available in the selection screen but not available in the report when i execute the Report and do choose fields to display collums in the report.
    I am getting these fields in CN43 but not in CN41.
    Thanks

  • VBA - Setting Custom Fields For Sub-Projects Using a Master File

    Hello,
    I was wondering if anyone had any experience or could provide some help with a Macro to set the Custom Fields in Sub-Project Files directly from the Macro. I had this macro working in the past with Project 2007, but it has been a couple years and I am struggling
    to resolve an error. I am currently running Project 2010 with SP2. I intend to use this Macro in our Server 2010 environment, however at this time, I'm testing locally on my desktop.
    Scenario.
    I have a Master File with 2 sub-project (Project A, and Project B) inserted. While working in the Master File, I create a custom field title "TEAM Lookup". While in the Master File and without having to individually go and open, edit, save, and
    close each sub-project, push the custom field down to the project files.
    ERROR: Currently, the Macro will run and I can step through the lines of code until line 12 where I'm asking Project to use the organizer to shift the newly created custom field from the Master File to a sub-project. The line appears to
    populate correctly, but instead of continuing through the loop, an error is caught (ID - 1101 - "The File (Master File) was not found")
    Any ideas or suggestions would be greatly appreciated. Thanks
    Sample Code
    1. Sub CopyCustomFieldToSubprojects()
    2. Dim MASTER, custfield, contin, AllDone
    3. Dim SubProj As Subproject
    4. Alerts False
    5. MASTER = ActiveProject.Name
    6. Application.EnableCancelKey = pjInterrupt
    7. custfield = CustomFieldGetName(ActiveCell.FieldID) & ActiveCell.FieldName
    8. On Error GoTo errhand
    9. contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    10.    If contin = vbCancel Then GoTo done
    11.    For Each SubProj In ActiveProject.Subprojects
    12.    OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.Name, Name:=custfield
    13.    Next SubProj
    14.     AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    15. GoTo done
    16. errhand:
    17. ret = err.Description
    18. ret1 = err.Number
    19. done:
    20. End Sub

    SGBlaine,
    Project VBA can get rather fussy about some things so you just have to find out what it wants and then adjust your code accordingly. The following will work:
    Note the tweaks to the custfield variable and to the MASTER and source project names. Also when working with strings in VBA it is a good idea to eliminate at least one little gotcha, the need for exact capitalization. Therefore I always add the Option Compare
    Text statement. In your macro it won't make any difference since you do not directly create a string value, but it's good practice to have the option.
    Option Compare Text
    Sub CopyCustomFieldToSubprojects()
    Dim MASTER, custfield, contin, AllDone
    Dim SubProj As Subproject
    Alerts False
    MASTER = ActiveProject.FullName 'FullName includes the path, now it can find it
    Application.EnableCancelKey = pjInterrupt
    custfield = CustomFieldGetName(ActiveCell.FieldID) & " (" & ActiveCell.FieldName & ")"
    'strings are very fussy, it has to be exact
    On Error GoTo errhand
    contin = MsgBox("This macro will copy the field " & "(" & custfield & ")" & " (the currently selected field) to all subprojects in this consolidated schedule." & vbCrLf & vbCrLf & "Be
    patient, it may take more than 70 seconds to run. You will be notified when it's done. Continue?", vbOKCancel)
    If contin = vbCancel Then GoTo done
    For Each SubProj In ActiveProject.Subprojects
        OrganizerMoveItem Type:=pjFields, FileName:=MASTER, ToFileName:=SubProj.SourceProject.FullName, Name:=custfield
    Next SubProj
    AllDone = MsgBox("The " & custfield & " field has been copied to all subprojects.", vbOKOnly)
    GoTo done
    errhand:
    ret = Err.Description
    ret1 = Err.Number
    done:
    End Sub
    John

  • Transfer of Customer field for Confirmation

    Hello Expert,
    We are implementing Classic scenario for Self Service Procurement. We have implemented customer field in Confirmation for Goods.
    We want to know that how we can transfer the value of customer field to Backed GR?
    Your valuable inputs will help us.
    Thanks in advance.
    Aakash.

    You can try BADI 'BBP_DOC_CHANGE_BADI' , method 'BBP_CONF_CHANGE'. In 'IT_ITEM', you can try to find an unused placeholder and create the GR in backend with the custom field in the selected placeholder field.

Maybe you are looking for

  • Visual Studio 2013 is creating new feature every time new list definition is added

    We are using Visual Studio 2013 and details are as under: Microsoft Visual Studio Ultimate 2013 Version 12.0.30501.00 Update 2 We we add a new list definition in our project, it creates a new feature with it. If we delete the feature and add list def

  • How to reset password on ipad mini

    How do I rest my password on my iPad mni?

  • BPEL DB adapter

    after creatinga bpel process which is using a dataBase adpater I get the following exception when trying to test the process from the em: Non Recoverable System Fault: faultName: ((http://schemas.oracle.com/bpel/extension) bindingFault) parts: ((summ

  • Out  to TV causes lines on macbook screen

    When I output to my TV using the Apple adapter, and as soon as I launch Front Row, my Macbook screen becomes nothing but lines, horizontally. The TV looks fine and I can watch it. This also happens if I'm connected to my TV and use VLC. After this ha

  • DataGrid issue

    Hi, I'm having a strange issue that I'm hopeing someone else has encountered and solved. I have a datagrid in a module that I load into a shell. When the datagrid is displayed the header is collapsed and no text shows up ( header or DataGridColumns )