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

Similar Messages

  • 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.

  • 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.

  • 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

  • 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

  • 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_

  • 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

  • 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

  • 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

  • Adding Assignment Block to Sales Order Screen

    Hi
    We enhanced the SAP GUI CRMD_ORDER screen to have a new tab and added custom fields to it. This was done using easy enhancement workbench.
    Now we want to do the same thing to the Sales Order Screen in Webclient UI.
    I have  seen a lot of discussions in the forums, but for a beginner like me it is confusing.
    Can someone please guide me on how to do it?
    I have set up webclient UI and everything is working fine but I am not aware on how to create new assignment blockand add fields to it since the building block does not have it listed.
    Any help would be appreciated.
    Regards
    Jimmy

    Hi Stephen
    What we did in EEWB was we created a new tab on Sales Order Item Details called 'Customer Fields' and added some new custom fields there.
    We want to change our Webclient UI Sales Order Item Details screen (BT131I_SLS) to add a new assignment block (Customer Fields) and insert the custom fields in it.
    I am trying to figure out how to do it. I saw the link to the blog that you had sent but before I can add new fields I have to figure out how to add a new assignment block on Sales Order Item details.
    Like when we click on item on sales order screen we get assignment blocks shipping,shipping transactions,Billing.......I want to create a new one called 'Customer Fields' and some custom fields there.
    Your help is appreciated.
    Regards

  • How to add a field in sales order

    Dear All,
    First I created a ZTable in which there are 15 fields exist then I append structure in ZVBAP which contain only one field from this ZTable. Now I place this field in the Subscreen 8459 of Sales Order under "Additional Data B" by using access key. Also i have Access to edit the module MV45AFZZ.
    Then I wote the code in the
    FORM userexit_save_document_prepare.
    IF XVBAP-ZZSPENR = ''.
    MESSAGE 'SPECIFICATION NO. IS NOT SPECIFIED' TYPE 'E'.
    ELSE.
    VBAP-ZZSPENR = ZSPEC-ZSPENR.
    ENDIF.
    ENDFORM.    
    so that while saving it Checks that field in screen and then if it has value then save it to in the VBAP Table.
    I think I have to write the code into the module
    FORM userexit_move_field_to_vbap.
    VBAP-zzfield = xxxx-zzfield2.
    *{   INSERT         ID3K908846                                        1
      DATA: zlgort LIKE vbap-lgort.
      IF vbap-pstyv EQ 'ZWP'.
        CHECK vbap-lgort IS INITIAL.
        GET PARAMETER ID 'LAG' FIELD zlgort.
        vbap-lgort = zlgort.
      ENDIF.
    *}   INSERT
    WA_XVBAP-ZZSPENR = xvbap-zzspenr.  "but this line gives * me error cause I have to move the screen fields into  * the VBAP Table. So that after this it checks in internal table XVBAP that the field ZZSPENR has value or not ?
    ENDFORM.
    But when I checks XVBAP TAble it shows all entries that I fill in Sales Order except ZZSPENR (My  Field)
    Thanks in advance.
    Regards.
    Adams.
    Helpful answer will be appretiated.

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • 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

  • Newbie question about import statement

    Lets say for example I have a class A and a class B. Then lets say I import class A into class B. If I instantiate some objects and methods in class A Will I be able to access them in class B. Thanks gemann

  • Best practice or good pattern for developing complex swing UI

    When I develop some a bit complex swing UI which maybe contain many labels, fields etc. my code becomes massive. Especially when I use GridbagLayout, when there are many components on a panel, if I want to add or remove or change one component's posi

  • If you have an HP 4 Laserjet and a scanner-

    If you have an HP 4 Laserjet and a scanner would you please, print and scan the PCL test page in 600 dpi? I would like to print theREt pattern image of the PCL test page to see whether my current laser printer uses the right amount of toner. Could an

  • Syncing iTunes playlist to IPod

    I know this is a no brainer. But I've forgotten how do it. I simply want to take my selected iTunes playlist ( let's say I call it Pete's Playlist) and transport, sync, whatever that Pete's playlist to my iPod, so that the song list is in sequence, a

  • How to sum the amount

    how can I add the amount shown below for year 1999. I would like to add all the amount between 01/22/1999 - 12/17/1999. thank you here is my simple sql looks like select sum(l.contamt),b.datelet from bidlet b, letprop l where b.LETTING = l.LETTING an