Adding new field to sale order BDOC and replicate to R3

Hi all,
I'm trying to map the new customize field in CRM to field VBKD-VSART in R3.
The reason behind this  was because my customer would like to have field shipping type appear in CRM order, but since this field is not provided by SAP, I've to create it. 
What I did was:
1) Create new field VSART via EEWB in CRM. This is done and working fine, the field appeared in 'customer fields' tab.
2) Put this new field to BDOC in CRM.  I believe this is done when I created via EEWB. I think it use BADI CRM_BTX_EXTENSIONS , implementation CRM_GEN_OBJECTS for this part.
3) Put BDOC into BAPI in CRM.  This is the part that I'm having a problem with.
I found that I need to use BADI CRM_DATAEXCHG_BADI for that and I've checked example from implementation CRM_BTX_EEW_DATAEXCH. However, it only contain example to input field in VBAK, VBAP and VBEP.  Can anyone guide me on this part?
4) Map BAPI to R3. I think that I need to use userexit MV45AFZZ form USEREXIT_MOVE_FIELD_TO_VBKD for that. But what is the incoming structure that I could use to map with VBKD.
Any help would be appreciate, Thank you in advance.
Gilbert

Hello Gilbert,
Please find if this helps,
BDOC's to update the custom fields in R/3 from the CRM sales order
Replication of new customer fields in order to R/3
regards,
Muralidhar Prasad Chatna.

Similar Messages

  • Adding new field in Sales order

    Hi frnds,
    i need to add a field (LIFNR) in item level of sales order. can any body tell me thru which screen exist i can add the field? i hope i need to add the field in VBAP first then i need to go the screen.
    actually i have done the similar in PO. in that i found one screen exist and in include tables i have added the field, but in SO i am not able to find the screen exist as well as include tables.
    points will be rewarded for help ful answers.
    thanks in advance.
    regards,
    Balu

    Reddy,
    You can make use the belowsaid code for identifying user exits pertaining to any transaction.
    Source Code to find User Exits 1
    * REPORT YSMOD2
    * SELECTION TEXTS : INPUT1 ----> Enter search term for Trxn.
    *                   INPUT2 ----> Enter type of exit
    REPORT YSMOD2 .
    TABLES: MODSAP, MODACT, TSTC.
    PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
                INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
    DATA: SEARCH1(6),
          SEARCH2(3),
          SEARCH3 LIKE MODSAP-MEMBER.
    DATA : FIRST_ROW VALUE 'Y'.
    CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
                 '%' INPUT2     INTO SEARCH2.
    SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
      FIRST_ROW = 'Y'.
      CHECK TSTC-PGMNA NE SPACE.
      CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
      SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
                           AND MEMBER LIKE SEARCH3.
        SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
        IF FIRST_ROW EQ 'Y'.
          WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
                                           45 MODSAP-MEMBER, 70 MODACT-NAME.
          FIRST_ROW = 'N'.
        ELSE.
    WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
        ENDIF.
        CLEAR : MODSAP, MODACT.
      ENDSELECT.
      IF SY-SUBRC NE 0.
        WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
      ENDIF.
      CLEAR TSTC.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: SEARCH1, SEARCH2, SEARCH3.
    Regards

  • Create a new field in sales order

    HI folks i want to create a new field in sales order item level how can i create

    Hi,
    Hope this will help you,
    User exits in the screens
    Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
    Fields which are also to be included in the sales document for a specific installation should be included on the Include screens for maintaining. If an application-specific check module is needed for the fields, this can be included in the Include MV45AIZZ. The module is called up in the processing logic of the Include screens.
    For field transports, you do not have to make changes or adjustments.
    Example
    A new field, VBAK-ZZKUN, should be included in table VBAK.
    If the check is defined via the Dictionary (fixed values or check table) the field must be included with the fullscreen editor in the Include screen SAPMV45A 8309. In this case, no change has to be made to the processing logic.

  • Adding New ZZFIELD at sales order item level

    Hi,
    I have added the new "ZZFIELD" field in the "Additional data B" Section, but the client has requested that the new field ZZFIELD to appear in the first screen "SAPMV45A 4900". I have noticed that there is a field catalog when I click the configuration in the right upper corner of the "All items section".
    How do I accomplish this?
    Thanks in advance.
    Abel.

    hi,
    can you please check this,
    it would helpful.
    Basics of modification in pricing* The following communication structures are relevant in pricing:
    - KOMK (pricing communication header)
    - KOMP (pricing communication item)
    - KOMG (allowed fields for condition structures)
    For technical reasons, the communication structure KOMG is used, which
    combines KOMK and KOMP, and which contains all fields which can
    generally be used for pricing. When entering new fields in KOMK or KOMG,
    the fields are automatically included in KOMG.
    Fields for pricing are integrated into the following INCLUDES:
    - header data in KOMKAZ (INCLUDE in KOMK or in KOMG)
    - item data in KOMPAZ (INCLUDE in KOMP or in KOMG)
    The routines for assigning values to the new fields in order
    processing are found in member MV45AFZZ. Use the following user exits:
    - USEREXIT_PRICING_PREPARE_TKOMK (header fields)
    - USEREXIT_PRICING_PREPARE_TKOMP (item fields)
    The routines for assigning values to the new fields in billing
    are found in member RV60AFZZ. Use the following user exits:
    - USEREXIT_PRICING_PREPARE_TKOMK (header fields)
    - USEREXIT_PRICING_PREPARE_TKOMP (item fields)
    Examples for using new fields in pricing
    Example 1
    In the first example, parts of a document field are to be used in
    pricing. You want to use the first three digits of the product hierarchy
    (PRODH) for pricing, for example. Proceed as follows:
    1. Check the data elements in the standard system.
    2. Since there is no such data element you have to create the new
    data element ZZPRODH1. Also create a domain with the length u201C3u2033 and the
    data type u201CCHARu201D for the new data element.
    Remember that new data fields must start with the letters u201CZZu201D or u201CYYu201D,
    since SAP reserved these letters to protect them from being overwritten
    during a release upgrade.
    3. Check whether the product hierarchy (PRODH) is found at header
    or at item level.
    In table VBAP, document field PRODH is defined as an item field.
    4. Integrate the field name ZZPRODH in the communication structure
    KOMP using the INCLUDE KOMPAZ and allocate the data element PRODH to it.
    5. Activate the structure.
    6. Check in which table the field PRODH exists.
    The field is in table VBAP (sales document: item data).
    7. Assign a value to the new field in the FORM routines for sales
    order processing and billing using the appropriate user exits:
    In sales order processing the user exit is found in member MV45AFZZ. The
    complete statement is:
    FORM USEREXIT_PRICING_PREPARE_TKOMP.
    MOVE VBAP-PRODH(3) TO TKOMP-ZZPRODH.
    ENDFORM.
    The routines for assigning a value to the new fields in billing are
    found in member RV60AFZZ. The statement is as follows:
    FORM USEREXIT_PRICING_PREPARE_TKOMK
    MOVE VBRP-PRODH(3) TO TKOMP-ZZPRODH.
    ENDFORM.
    8. Allocate the specifications A, V and 001 to the field ZZPRODH in
    table T681F.
    Example 2
    In the second example, you want to use a partner function for pricing
    which was created in Customizing for partner maintenance.
    Assume that the partner function was created for a sales representative
    of the partner type PE. Z1 is defined as a mandatory function for the
    customer master record, therefore automatically set in the document and
    available in the internal partner table XVBPA.
    To use the new partner function for pricing, proceed in the same way as
    for the previous examples.
    1. Create a new data element, in this example, the data element
    ZZVRTZ1 with the domain PERNR.
    2. Include the field ZZVRTZ in KOMK using KOMKAZ and allocate the
    data element ZZVRTZ1 to it.
    For order processing, assigning a value to the field is carried out in
    the user exit for member MV45AFZZ. The entries in the user exits are
    protected during a release upgrade. The statement is as follows:
    FORM USEREXIT_PRICING_PREPARE_TKOMK.
    PERFORM XVBPA_LESEN (SAPFV45K) USING u2018Z1u2032 VBAP-POSNR SY_TABIX.
    MOVE XVBPA-PERNR TO TKOMK-ZZVRTZ
    Thanks andregards
    Durga.K

  • Add new fields to Sales Order

    Hi All,
    I want to add new fields to the Additional Data A of the sales order header and
      and new fields to the Additional Data A of the sales order item. Can anyone please suggest me if there are any user exits or BADI's for this.
    Thanks,
    Nammi.

    Hi Pavan,
    The BADI which could have been used was BADI_SD_TAB_CUST_H but its made for SAP internal use only.
    if you are working on ECC 6. May be you can try implementing this badi as an extension to SAP standard program and see if it works.
    Regards,
    Vikas
    <b>Encourage by rewarding points if useful.</b>
    Message was edited by:
            Vikas Taneja

  • New field in sales order screen at item level

    Hi Friends,
    I need to insert a new field at the item level in the sales order screen (additional data tab). Please let me know how to do the same.
    Regards,
    Vivek

    Hi,
    you can add fields of self-defined tables on the "Additional Data B" tab
    . Those fields should be added onto the respective screen and the flow
    Logic should be adjusted. Additional item data is on screen SAPMV45A 0459. This screen contains
    Include SAPMV45A 8459 as user exits.
    This should involve not only appending a structure containing customer-
    Specific fields within the table VBAP but also using the
    userexit coding:
    a)MV45AOZZ for PBO (i.e. module zzmodify_uas_pbo output);
    b)MV45AIZZ for PAI (i.e. module zzmodify_uas_pai input);
    c)MV45AFZZ (sub-routine USEREXIT_MOVE_FIELD_TO_VBAP) for defaulting the
    values from the customer master and further processing.
    Best regards,
    Joerg

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Adding New Field Under Sales Tax/Service Tax Tab in XD01

    Hi Experts,
    I want to Add new Field in CIN Details under Sales Tax/Service Tax Tab.
    Is it Possible to Add Field under Standard Tab.
    Thanks & Regards,
    Sandip Kokate

    hello,
    yes there are two ways:
    1) change standard screen. (that's the bad one).
    2) Use GuiXt tool which provides you with a possibility to add your custom objects into standard screens, change layout, visibility and so on.
    http://www.****************/Tutorials/Others/GUIXT/Page1.htm
    http://www.synactive.com/tutor_e/tutor.html
    i had personally used this third party tool without license ( you will be able to use only basic commands. adding  input fields is one of them). I think it is the best way to enhance old transactions which don't have appropriate BADi's,  user exits and so on.
    br,
    dez_

  • Adding new field in purchase order

    Hi all,
    We are using SAP 4.6E; the requirement is to add a new field in stock transport order in ME21N.  For the line time, we have to mention supplying storage location also. So how to add this field in ME21N transaction.  I checked in screen layout in IMG>materials management->purchasing, but the field is not shown there. 
    Regards
    alexandro

    Hi,
    You can create a new field in PO  to show a supplying plant storage location .For this please contact your technical team.
    Thanks,
    AMIT

  • Adding new texts in sales order item text

    Hi , we have a requirement where we need to add new texts in the sales order item texts. Ne pointers on how to do it will be appreciated.

    Hi,
    You can Use FM: SAVE_TEXT.
    Here the sample code:
          refresh: wlines, wheads.
          clear: wlines, wheads.
          wheads-tdname = it_text-tdname_so2.
          wheads-tdobject = p_object .
          wheads-tdid = p_id .
          wheads-tdspras = 'E'.
          append wheads.
          wlines[] = it_tline[].
          call function 'SAVE_TEXT'
               exporting
                 client = sy-mandt
                 header = wheads
                 savemode_direct = 'X'
               tables
                 lines = wlines.
          commit work.
    Regards,

  • Regarding Painting for New Field in Sales Order

    Dear All,
    My client wants Painting as a field in the sales order where can I find Painting as a field in SAP or from which table should I pick this from...I need to prepared the functional design since i am from the functional side.
    If the same is not available in Standard SAP what is the process pls explain
    Regards
    Atul

    Hi
    What's painting?

  • Process to populate the new field added by AET in Sales Order item

    Hi
    We are on CRM 7.0 , EP1.
    I have added a new field in Sales order item view (UI comp : BT115IT_SLSO  , View :Items).
    The field is called MTO (made to order), it should be populated based on settings in material master.
    I would like to know how can I populate this field with custom logic.
    Thanks
    Swapnil

    Dear Swapnil,
    You can use the following steps to set the default value in field Made To Order:
    1. Enhance Component BT115IT_SLSO and View Items
    2. Redefine method DO_PREPARE_OUTPUT method of the View Controller Class and implement the following sample code:
    super->do_prepare_output( ).
    if iv_first_time = abap_true.
    lr_ent->set_property_as_string( iv_attr_name = 'ZXXX'    " Attribute Name
                             iv_value        = 'YYYY'  )     " Value to be set
    endif.
    This will make sure that the logic to set the value in this field is called only once and not after every event.
    You might not like to redefine the Getter and Setter method because these methods will be triggered after each event in that view.
    Hope this helps.
    Thanks
    Vishal

  • Adding new fields from CI Include to Standard SAP Screen

    Hi All,
    I am enhancing Infotype 0487. I have added new fields to the CI include and created the screen fields in subscreen 0200 with reference to the data dictionary fields. When I test the subscreen alone, the new fields are displaying correctly and F4 help is active. But when I view the whole screen(2000) in PA30, the new field is inactive and I am not able to enter data. Also F4 help option is present for the field but when it is selected, a message 'No Values Found'  is displayed. Please suggest some solution.
    Thanks in advance
    Regards,
    Sivasankari
    Edited by: Julynila on Oct 7, 2010 10:41 AM

    Hi,
    This might be the standard transaction, so there is a possibility of adding the fields using the Screen variants using SPRO, get in touch with your functional consultant. there you can copy an existing screen and add the required fields and rename the screen to different number, and in the config this new screen can be added.
    Thanks,
    Srini.

  • Field sequence Change in Sales order after adding new field( Resolved)

    Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
    Is there something i need to do..?Please advise. Thanks a lot.
    <b>Answer:</b>
    Table view is configurable in VA01/02/03.( No matter where you add the  new fields)
    Users can always move them to desired position.
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1
    Message was edited by: Deadlock1

    Hi
    In the comments for the subroutine, it says:
    *       Parameter new_pricing controls the new pricing in the calling *
    *       form. It can be filled according the the allowed values       *
    *       of domain KNPRS (Pricing type), for example:                  *
    *       ' ' = no new pricing                                          *
    *       B   = Carry out new pricing                                   *
    *       C   = Copy manual pricing elements and redetermine the others
    So, you must write:
    If VBAP_WERKS NE *VBAP_WERKS.
      new_pricing = 'B'.
    Endif.
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM

  • How to add three fields in Sales order item level and supress/hide many

    Hi Gurus,
    My client requirement is :
    1. Three fields to be added at Sales order Item level and they should flow till billing.
    2. Supress/hide most of the fields in Sales order, so that end user will be happy( thru SHDO how to do)
    Please share your experiences and help me.
    BEST REGARDS
    Srikanth

    Hi Subba Rao
    in VA01 screen - Material /qty/ after entering this client wants to enter three more details say X/Y/Z
    and after that he dont want to see maximum fields displayed in VA01 Screen.
    I think it makes sense.
    Regards
    Srikanth

Maybe you are looking for

  • Multi Condition step

    Hi, I am changing the approval custom worflow. In my workflw intial two step are  MULTI CONDITION for  plant   and  condition types. previously we have used different approval procedure for different plant. now all plants are having the same procediu

  • Error in DP90

    Hi! I've been doing DP90 for a sales order but I am encountering this error message: "Resource-related billing/quotation not possible for sales document 40000106/000010". Please help. Thank you.

  • Sqldeveloper data modeler -  DDL generatation

    The generation use text with ^M for new lines. I am running on windows. The generation of DDL for a sequence :- CREATE SEQUENCE SIDDWSLTOTOEVENT_TEAM_DT There are ^M. The blank line between the end of the DDL and its closing ';' causes it to be ignor

  • IPhoto Uploading from Facebook

    I am unable to upload photos from iphoto to Facebook.  I was able to do so before and now it prompts me for email account and password and it continues to give me an error when the account and password are correct.  What have I done wrong?  It was wo

  • MPIEXEC in Bootcamp using WMPI Register

    HI Has anyone had experience of executing FEA simulations within the Bootcamp Environment across multiple cores? Previously I have done this with some great success, even via Parallels 8 (thus allowing me to switch off Hyper Threading in OSX environm