Setting Default Value to the Quantity Field in ML81n

Hi Gurus,
I have an assignment to set a default value of 1 to the quantity value when creating entry sheet. This is the process we go through before the point of setting the 1:
1. Go ML81n and click on "Other Purchase Order" input some PO number and click enter.
2. On the Menu --> Entry Sheet --> Create --> Empty Page
3. At the bottom of the screen Click on "Service Sel", and click enter if a pop-up shows
4. Now on the line item, select any row (1 or 2 or many). and Click on Services on top.
So at this point when the new screen shows with the new Entry Sheet number, the line Items that comes up should all have a quantity of 1, and should be editable by the user before saving.
How can i go about this. Which UserExit will do this or Enhancement Point. The screen field for this quantity is ESLL-MENGE.
Thanks guys.
Rewards, will be greatly reward.
Edited by: Basil Balogun on Jul 7, 2008 11:03 PM

Hi,
Pls check out this Exit-
package name ML-
SRVESSR->EXIT_SAPLMLSR_010->Set Entry Sheet Header Data.
For this in importing paramertes
I _EKPO type EKPO in this we have MENGE field try to asign value 1 to this.
First check the screen number of the popup screen for which you need to enter the MENGE valuein GUI status. Chck if this screen exit can be used by puting a break-point.
And also try this screen exit for SRVEUSCR-
EXIT_SAPLMLSR_020-Transfer of Data to Entry Sheet User Screen
EXIT_SAPLMLSR_021-Adoption of Data from Entry Sheet User Screen
SAPLMLSR-Screen exit at 0400 subscreen.
Reward if helpful.
Best Wishes,
Chandralekha
Edited by: Chandralekha on Jul 8, 2008 6:41 AM
Edited by: Chandralekha on Jul 8, 2008 6:43 AM

Similar Messages

  • URM How to set default value in the "New Check-in" - "Folder" field

    Hello everyone,
    I'm trying to find out how to set the default value for the "folder" field in a check-in profile created using the Configuration Manager. If I browse to the folder in the "Browse Content -> Folders" menu and check-in a file inside the folder, it will fill this field automatically. I need to replicate this behavior using the "New Check-in" drop-down menu and selecting a profile, in other words, associate a Folder with a check-in profile.
    I know it was possible to do so in previous versions using the folders_g component, but I'm unable to figure out how to accomplish it with the new FrameworkFolders component.
    Any help is greatly appreciated.
    Thank you.

    Hello,
    It is working fine try this.
    PARAMETERS :
    y_p_list TYPE char32  AS LISTBOX VISIBLE LENGTH 22
                                  MODIF ID rsg. .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR y_p_list.
      MOVE: text-200 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-203 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-210 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-211 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE  text-204 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-205 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-206 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-207 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      MOVE text-208 TO y_wa_listbox-field.
      APPEND y_wa_listbox TO y_i_listbox.
      CLEAR y_wa_listbox.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'FIELD'
          dynpprog        = sy-repid
          stepl           = 1
          value           = ' '
          value_org       = 'S'
          display         = ' '
        TABLES
          value_tab       = y_i_listbox[]
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
      REFRESH y_i_listbox.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

  • How to maintain default values to the screen fields.

    hi,
    i m creating screen in se51.
    when i press New button the screen is filled with default values
    nrart = 'h' and proz1 = '100' .
    how can i set default values.
    plz give me a response

    HI,
              You can set default values on to screen fields using SET and GET PARAMETER command, You need to assign a PARAMETER ID for that screen field and then use SET PARAMETER before the screen is called or in the PBO of the screen, you can set default values direcly in PBO of the screen but then you have hard code those value or read the data from database.
    You need to have a TABLES statement to create a strucutre that you used to create your screen fields, then when you set value to these strucutre fields these values will get tranported to the screen fields automatically.
    Regards,
    Sesh

  • How to set default values on the screen painter parameters?

    Hello ABAP Gurus,
    I would just want to ask how to set default values on the screen painter parameters.
    Thank you for your replies.

    Hi,
    To set default values for screen painter parameters initialize the field names with default values in the PBO module....
    say u have the field name as f_field1....
    in the PBO of that screen initialize it....
    f_field1 = '100'  "here 100 is the default value.
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • Badi for setting default values in the transaction in APO.

    BADI NAME: SMOD_APOCF005 which is used for setting default values in the transaction.
    I have implemented the BADI using the below code but that BADI is not triggering. Please can you provide any solution for resolving this.
    As per my requirement I am trying to set default values for these three fields RRP_TYPE, WHATBOM, CONVH.
    DATA: LS_MATLOC LIKE LINE OF IT_MATLOC.
    LOOP AT IT_MATLOC INTO LS_MATLOC.
    LS_MATLOC-RRP_TYPE = '4'.
    LS_MATLOC-WHATBOM = '5'.
    LS_MATLOC-CONVH = '999'.
    MODIFY TABLE IT_MATLOC FROM LS_MATLOC TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.
    DATA: LS_MATLOCX LIKE LINE OF IT_MATLOCX.
    LOOP AT IT_MATLOCX INTO LS_MATLOCX.
    LS_MATLOCX-RRP_TYPE = 'X'.
    LS_MATLOCX-WHATBOM = 'X'.
    LS_MATLOCX-CONVH = 'X'.
    MODIFY TABLE IT_MATLOCX FROM LS_MATLOCX TRANSPORTING RRP_TYPE WHATBOM CONVH.
    ENDLOOP.

    The  BADI name: SMOD_APOCF005 .
    T.code at APO : /sapapo/mat1
    Once we enter in that T.Code with some Product and Location data.
    There under PP/DS tab.
    Under Planning Procedure there is a field PP Plng Procedure which I want to set as 4
    And under Order Creation there is Plan Explosion which needs to be set as 5
    And Under Horizons there is PP/DS Horizon which needs to be set as 999.
    BADi is implemented and active.
    And once the data is CIF from ECC to APO
    These default values are not set in the T code in APO and the BADi is not triggering.

  • Setting  Default values in the Field

    Hi all,
    In Purchase order document i want to display 99999 number in the quantity field as soon as i purchase order document is opened.
    can you please guide me how to do this through stored procedures...?
    Regards,
    Chetan

    Hi Chetan,
    You can create Formatted Search. Simply use this query,
    SELECT 99999 as Quantity
    and assign the query to the Formatted Search.
    Hope it helps.
    Cheers,
    Marini

  • How to set default value in Profit Center field of Tcode F-02.

    Hi!
    Is it possible to set a default value for 'Profit Center' field in t.code F-02? Is there a way wherein the value will be copied in reference to the entered Business Area?
    For example, if during parking/posting of document, user input a value of 300 in the Business Area field, the system will automatically put 300 in the Profit Center field. Is there a way to do this?
    Hoping for your feedback.
    Thanks,
    April

    Hi
    Using the substitution this can be achieved.
    TC:GGB1
    Step-1: Prerequiste select the Company code for which this requirement is needed
    Step-2: In Substitution field, select the the "Profit center" field on selection of the field - system'll asks you -  How would you like to substfield BSEG-PRCTR ? with the 3 options
      i.constant value
      ii.exit
      iii.Field-Field assignment
    Select the 3rd option on selecting 3rd option before going to save that substitution it'll ask you to input which field should input the field BSEG-GSBER:Business area
    Step-3: activate the above substitution in TC:OBBH
    With the above settings whenever any value inputs in Business are field then the same value will be substituted in the Profit center field.
    Note: Make sure in all FSG - business area & profit center having the field status optional
    Can you tell me onething why this requirement has came ? Is business area and profit center are same in number and prupose
    regards
    Ramana
    Edited by: Ramana on Jan 8, 2008 9:33 AM

  • Query Alert for a change in value of the Quantity field of the sales order

    Hi Experts,
    A query alert has been set up to alert the warehouse employee when a new sales order is created by a sales employee. Our client wants the warehouse employee alerted when the sales employee edits the quantity field of an already added sales order.
    Kindly assist in designing a query to notify of this change in the Quantity field of the sales order.
    David

    Try this one:
    SELECT T0.DocNum, T0.CardCode, T1.ItemCode, T3.Quantity 'Old Qty', T0.Quantity 'New Qty', MAX(T2.LogInstanc) 'Times Changed'
    FROM dbo.ORDR T0
    INNER JOIN dbo.RDR1 T1 ON T1.DocEntry = T0.DocEntry
    INNER JOIN dbo.ADOC T2 ON T2.DocNum = T0.DocNum AND T2.ObjType = '17'
    INNER JOIN dbo.ADO1 T3 ON T3.DocEntry = T2.DocEntry AND T3.ItemCode = T1.ItemCode
    WHERE T0.DocStatus = 'O' and T0.DocType = 'I' AND T1.Quantity != T3.Quantity
    GROUP BY T0.DocNum, T0.CardCode, T1.ItemCode, T1.Quantity, T3.quantity

  • Setting default values at the start of a process

    Hello
    I need to set some constant values to the attributes in data object as soon as start event of a process is triggered.
    How can I do that?
    Regards
    Vidyadhar

    Vidyadhar,
    Follow the below procedure to set Default Values
    1.Right Click on Start Event select Properties
    ->Goto Output Mapping Tab
    ->Double Click on Element on which you want to give Static Value
       and enter the value with double codes for eg: "Name"
    Make sure that this element value should be  has a Input to the next level.
    Thanks
    Srikanth

  • Default values in the input fields of Adobe forms

    Hi,
    The default value settings in the value tab of the object pallette(Adobe Designer) is not getting reflected at the form (Portal level).. PLs help. what could be the reason for this.
    Can it be done through coding? if yes, pl[ease help with regard to it.
    I appreciate your valuable comments.

    Hi,
    If you are using <i>ISR based Adobe Interactive Forms</i>, you can set the default values using <b>INT_SERVICE_REQUEST_INIT</b> method if<b> QISR</b> BADI.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • How to set default values in the PO feilds

    Hello,
    Can please somone let me know how can I default a particular tax code "X" on a Purchase Order at the item level in the invoice tab..
    Any help would be greatly appreciated....
    Thanks

    Dear ,
    You can set it in the info record > Purchasing Organization data 1. In standard customizing,the default value for tax exist for LIV module in SPRO-Materials ManagementLogistics Invoice VerificationIncoming InvoiceMaintain Default Values for Tax Codes
    Regards,
    w1n

  • How to set default value to the variable !!!

    Experts,
    I have created a variable ZDATE, which is in variable entry screen of the query. and this variable is mendatory .
    Now, i want to put default value of this variable ( Which can be done from the Variable Properties screen , on the Default Values Tab )
    But , thru there i can only put selected value. my requirement is to show system date - 1 ( Previous date )
    how do i get that ?
    Thanks

    Hi,
    You would need to write a variable exit under I_STEP = 1 to get the previous day populated on your variable screen.
    Regards,
    Murali.

  • How to set default value to input field

    Hi Experts,
    I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
    Regards,
    Harish

    Using the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
    Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction.

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

Maybe you are looking for