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

Similar Messages

  • Populate the extra fields added to the DS

    I want to populate extract structure for Transaction data .
    using CMOD For field BLART coming from Table COVP
    In CMOD What code do you write to populate the extra fields added to the DS
    thanks

    using DS :   0CO_OM_WBS_6
    which uses delta
    thanks

  • How to populate the new field of R/3 in BW

    Hi,
    There was a requirement to modify the sap screen in the R/3.
    For the same a new field is created which populate the data via a table in R/3.
    Now I have to populate the same field in BW. I am working on 3.5 Version.
    In R/3 I have a data source and I am not able to see the same available in the data source
    The field is available in the extract structure but I am unable to populate the same in the data source.
    Kindly help.

    The Data Source is picked from the FM.
    Also,my requirement is to display the text values for the new field
    I am going to create a Generic Master Data which will fetch the data from the table which has fields (Code, Langu and the text) and replicate the same to BW.
    Now to populate the code in BW, I need to have the field in the data source and from there I can add the same code field in the bw comm/tran/etc...
    The code is available in the Extraction and not in the data source.
    At the reporting level I will extract the report based on key and text.
    I tried using ROOSFIELD to populate the field in the datasource, but I am not able to do the same.

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • How to include the new fields added in R/3 into ESS application

    Hi Experts,
    I have used Standred ESS application.After Importing the ESS application via bapi(Import the model),they have added some more additional fields in R/3 Backend. How to call those customized fields in our ESS application? 
    Please help me on this..
    Thanks.

    There is no specific document/book for the steps i told you....but i can list them as:
    1) Goto the Models component in the Webdynpro ...right click -> create new model.
    2) Specify the name of the Model as you like ....the RFC destinations...next.
    3) Specify the userid and password with RFC authorization in ECC
    4) Specify the name of the Function Module you want to import....and Import.
    5) Goto the Fc component -> Used Models section and add the model created earlier here..
    6) Goto the Fc Component -> Context Tab -> create new model nodes and attributes ...and bind them to Structure fields of the Function Module...
    7) Goto the Fc Component -> Interface Controller -> create nodes and attributes ...and bind them to the attributes created earlier
    8) Goto the Vc Component-> Context Tab -> create new context nodes and attributes....and bind them to the attributes in the Interface controller....make sure the Fc componentis added as a Used component in Vc.
    9)Finally create UI Elements on the Detail or Review view and bind the text property of the element to the attributes created in the Vc component.
    Hope it helps.
    Shikhil

  • How to Update the New Condition values for list of sales orders

    Hi
    Client requirement is they have set of old Sales Orders to be executed. But the material prices have been revised in the meantime. Now they want to update the current prices in the sales order before proceeding further.

    Hi,
    Though Lakshmi suggested you the right option, it may not be carried out for Sales Documents in random and will be much suited for Sales Documents with continuous sequence like 00010, 00011, 00012, 00013, etc.
    If you want to New Pricing to be carried out for Specific Lists of documents like 00010, 00017, 00043, 00057, etc, then you can do by following option:
    Go to Transaction "MASS", Select the Table - VBAK and Field - PRSTD and proceed by entering the Sales Documents Lists to carry out New Pricing.
    Hope this will be helpful to you.
    Rgds,

  • Sales Order - Returns change the sales order item delivery status

    Hi All,
    we have the following requirement from our users:
    after creating a return, the original sales order should have the
    delivery item status changed.The system should permit that a new
    delivery can be created for sales order item already delivered / billed (a new delivery with the quantity that has being returned) but has a return document,
    without increasing the sales order quantity.
    Does any body got the same requirement ?
    Thanks in advance,
    Marcus

    Hi Marcus,
      After creating return order you have to do the goods receipts.But this doesn't mean that you will be able to create a delivery with the old order itself.
      You have to create the order again and ahve to create a new delivery,goods issue and billing.
      Another option is as Roberto said that you have to reverse the goods issue thru VL09 and then cancel(delete) your delivery and then you can create a new delivery wr.t to your original sales order.
      Reward points if it helps.
    Regards
    Karan

  • Problem in populating the new field from the extract structure. Kindly help

    my requirement a new text field is added on R/3 side and I have to populate
    the same field into BW.
    In the R/3 a new customization table 'AAA' is created which will have
    code - char 3 and
    text - char 30.
    The code field is added to a table BBB.
    The SAP standard generic data source exracts data from the table BBB where in the new code field have been added.
    Now I can the see the code field in the extract structure and not in the data source as the filed has selection value 'A' when checked in the ROOSFIELD table.
    To populate the value in BW, I will be creating a Generic Master Data text wherein I fetch the values from the table 'AAA' which the fields code and text  and replicate the same in BW.
    In the reporting level, the code InfoObject will be selected as display both KEY and TeXT, by doing I can populate the values of TEXT in the reporting.
    But to achieve the same I need to add the field code in the ODS but cannot do the same because I am not able to see the field code in the data source.
    Kindly let me know how to achieve the same.
    Also let me know if there is any alternate solution to populate the text field in BW.
    Any Inputs will be appreciated.
    Thanks

    > You should get the userdatasources bound to the
    > columns and assign the values of the recordset to
    > each one and after that use "setLineData" to write in
    > the matrix.
    >
    > hope it helps
    Hi all,
    i have created tables (non BO Tables) directly on the SQL-server and want to use recordset to populate a user form matrix.
    Is there any workaround to achieve this using non BO tables?
    Please provide some sample code since it is a very urgent matter.
    regards
    Daniel

  • Problems with new fields added for tc MASS for material master data.

    Hello to all.
    We created new fields in MARA table and added to the process of the tc MASS. We made the following steps and it almost works correctly:
    1-Add new fields to the object ZBUS1001, copy of bus BUS1001.
    2-Add new fields to table T130F
    3-Add new field to structure E1MARAM.
    4-Add new fields to structure CL_MMH1.
    5-Add new fields to structure MARA_TMP.
    6-Created a function module to control that the new fields not filled in MASS have a "/" value.
    If we run the mass for our objetct ZBUS1001 and put a new value or modify the value of new fields, the tc MASS works correctly.If we want to delete a value leaving the value empty,click to the carry out a mass change button and save the change, the system don´t delete the value and keep the first value.
    Do you know what the problem is , and what step we didn´t make it.
    Thanks in advance.
    Edited by: tonnetti pablo on Feb 6, 2008 7:45 PM

    Hi,
    Check ZTERMDT is checked under Attribute list as below.
    Hope it helps..
    regards,
    Raju

  • How to populate the address field in real time from backend?

    Hi Guys,
    I want to populate the address field in srm portal when creating Shopping Cart. I got the data by using some BADI functions. Now the problem is I am not getting the structure/table where I should add that address so that it can reflect in the address field of shopping cart.
    Can anyone help me out?
    Regards,
    Virendra Kedia

    Joe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
    An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
    Another option would be to update session state directly in the trigger.
    Scott

  • GenIL Model Attribute Structure not getting updated with new fields added

    Hi All,
    I have modelled the service interface using GenIL Modelling in Duet Enterprise 1.0. Later, I added some fields to the read operation in the Enterprise Services Builder in the ESR system.
    But in the Read Operation mapper method "/IWFND/IF_SRD_BOP_MAP_GET_OBJ~MAP_POST_GET_OBJECTS",  when I try to define an object of type GenIL model Attribute Structure (ZMDLZPRGET_DETAIL),  Iam unable to access the newly added fields in the read operation.
    In transaction " GENIL_MODEL_EDITOR ", under Root Objects, when I open the Attribute Structure name, only the old fields are available, newly added fields are not updated.
    But I was able to see the newly added fields in the READ OPERATION data types of Enterprise Services Browser in SE80.
    Please help me how to update the new fields for GenIL Model Attribute Structure(ZMDLZPRGET_DETAIL).
    Thanks,
    Kris

    Hi sap_wiz,
    Thanks for your reply.
    My problem solved,
    Thanks
    Kris

  • Giving problem after I included the new field to MCHB table.

    Hi Friends,
    I added one new field called ZZINQNUM to the MCHB table.For this field I created one new data element called ZVBELN_INQUIRY and attached domain VBELN.
    Activated and adjusted  the table.
    Now what the problem is
    I went to SE11 -> Display - > Selected the contents -> In selection screen, I double clicked the ZZINQNUM select-option and selected the equal to space option. For this I am expecting all the records from the table,because in the field ZZINQNUM is empty. But result is zero entries.
    Can any one help me out in this. Thanks in advance.
    Thanks
    Srinu

    Hello Srinivasa
    Two years ago I had the very same problem when I added a new field to an already existing and filled customer table. I debugged the maintenance view and saw that the new field contained an undefined value but not the initial value.
    You could try and use the DB utility (<b>SE14</b>) and activate the table again (of course without deleting the table entries).
    Alternatively, you could write a simple ABAP to initialize the field value, e.g.:
    DATA:
      gs_mchb   TYPE mchb,
      gt_mchb    TYPE STANDARD TABLE OF mchb.
      SELECT * INTO TABLE gt_mchb.
      gs_mchb-zvbeln_inquiry = ' '. " space
      MODIFY gt_mchb FROM gs_mchb
        TRANSPORTING zvbeln_inquiry
        WHERE ( zvbeln_inquiry ne ' ' ).
      UPDATE mchb FROM TABLE gt_mchb.
    Regards
      Uwe

  • How to populate the relavent fields when clicked on a field

    I am trying to populate the relevant fields of screen(MODULE POOL PROGRAM) when i am 
    clicking on a field. Search help/ value request is provided to that field.
    so Can any one help me with this scenario. IF POSSIBLE PLEASE SEND THE SOLUTION
    WITH THE CODES.
    POINTS WILL BE REWARDED.

    Hi
    use this for F4 help on field
    For F4 Values on Screen:
    PROCESS ON VALUE_REQUEST
    using module call starting with FIELD i.e FIELD field MODULE module
    There are number of function modules that can be used for the purpose, but these
    can fullfill the task easily or combination of them.
    DYNP_VALUE_READ
    F4IF_FIELD_VALUE_REQUEST
    F4IF_INT_TABLE_VALUE_REQUEST
    POPUP_WITH_TABLE_DISPLAY
    DYNP_VALUE_READ
    This function module is used to read values in the screen fields. Use of this
    FM causes forced transfer of data from screen fields to ABAP fields.
    There are 3 exporting parameters
    DYNAME = program name = SY-CPROG
    DYNUMB = Screen number = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    and one importing TABLE parameter
    DYNPFIELDS = Table of TYPE DYNPREAD
    The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD
    to this FM and the values read from the screen will be stored in this table.This
    table consists of two fields:
    FIELDNAME : Used to pass the name of screen field for which the value is to
    be read.
    FIELDVALUE : Used to read the value of the field in the screen.
    e.g.
    DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,
    SCREEN_VALUE LIKE LINE OF SCREEN_VALUES.
    SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read
    APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TRANSLATE_TO_UPPER = 'X'
    TABLES
    DYNPFIELDS = SCREEN_VALUES.
    READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC.
    F4IF_FIELD_VALUE_REQUEST
    This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three
    parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    F4IF_INT_TABLE_VALUE_REQUEST
    This FM is used to dsiplay values stored in an internal table as input
    help.This FM is used to program our own custom help if no such input help
    exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD
    is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.
    If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = field from int table whose value will be returned
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'screen field'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = internal table whose values will be shown.
    RETURN_TAB = internal table of type DDSHRETVAL
    EXCEPTIONS
    parameter_error = 1
    no_values_found = 2
    others = 3.
    POPUP_WITH_TABLE_DISPLAY
    This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE
    parameter.The VALUETAB is used to pass the internal table.
    A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL =
    ENDPOS_ROW =
    STARTPOS_COL =
    STARTPOS_ROW =
    TITLETEXT = 'title text'
    IMPORTING
    CHOISE =
    TABLES
    VALUETAB =
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    e.g.
    DATA: w_choice TYPE SY-TABIX.
    DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,
    values TYPE I,
    END OF i_values.
    PARAMETRS : id TYPE I.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR id
    i_values-values = '0001'.
    APPEND i_values.
    i_values-values = '0002'.
    APPEND i_values.
    i_values-values = '0003'.
    APPEND i_values.
    i_values-values = '0004'.
    APPEND i_values.
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING
    ENDPOS_COL = 40
    ENDPOS_ROW = 12
    STARTPOS_COL = 20
    STARTPOS_ROW = 5
    TITLETEXT = 'Select an ID'
    IMPORTING
    CHOISE = w_choice
    TABLES
    VALUETAB = i_values
    EXCEPTIONS
    BREAK_OFF = 1
    OTHERS = 2.
    CHECK w_choice > 0.
    READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained
    ...in the structure i_values.
    Other FM that may be used to provide input help is HELP_START .
    Regards
    Anji

  • I am new in DART extract and  wanted add the new field in Existing Segement

    Hi ALL
    I am new in DART extract and client is request us to add the new field in Existing Segment.
    What is proceedure i need to follow to add the new field in existing segment.
    Moderator: Please, post in proper forum

    I added an Interactions button and in the Actions on Success I open an URL or file. I have placed the video on our web server.   In the URL I point to our web server "http://www.wmabhs.org/Media/Add Client 3rd Party Coverage.mp4".  If I run this from any browser it works.  So what do you think I have done wrong?

  • Populate the customer fields (ORDERS05)

    Hi all,
    I'm trying to extend basic IDOC type ORDERS05 with these extra fields:
    Table   Fields
    VBRK     KUNAG (Sold to customer number)
    VBRP     EAN11
    VBRK     FKDAT
    VBKD     BSTDK
    VBRP     FKIMG
    VBRP     VRKME
    VBRK     ERDAT
    VBKD     FKDAT
    T052     ZPRZ1
    How to enhance the IDOC?
    How to populate the customer fields that I added?
    Thanks,
    Srini

    Refer:
    Re: Very urgent.. Orders05.

Maybe you are looking for

  • IR Report in APEX is Very Very Very Slow (Version 4.1 with EPG Config)

    I'm a Junior Developer who started APEX career since 1 year only and I'm always sticking on new challenges day after the other and I'm really cannot understand all of APEX options and LOV value Choices. Before a week I had started over a new project

  • The request is too late.

    Hi, Opening an Excel from the explorer there is a problema and can't be opened. Show a message (es-ES) "..La solicitud tardó demasiado. Lo sentimos, pero no se pudo completar lo que nos pidió porque estaba tardando demasiado.." (en-US) ".. The reques

  • Work flow Version Different in Q system

    Hi , Work flow Version in the development version 9 and  when transport  to quality it should be 16 , but in Q system version is activated for 4 . how can I change to 16 Version in Quality system .

  • How to stop Blue screen

    Hi , can anyone help me to stop blue screen?  system: Windows 7 Ultimate Intel®Core™2 Quad CPU   Q6600   @ 2.40GHz  2.39GHz Installed memory (RAM):4.00 GB System type:64-bit Operating System Problem signature:   Problem Event Name:        BlueScreen

  • To build 2 real time measures in RPD

    Hi, I want to know, how to build 2 real time measures in RPD by using Session and Repository Variables in the expression? With Regards, Sumedh