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

Similar Messages

  • 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 set the default values of the field of the context.

    Hi Experts ,
    I want to set the default value of the field of the context.
    Where and how this declaration should be done.
    Thanks in Advance.

    In the context tab of the view. Select the attribute for which you want to set the default value.it will show the properties at the bottom. set the Default value property to the value which you want to set as the default value.
    Regards
    Naresh

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

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

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

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

  • Setting default value for form field assoc with a table column

    On a "Create Record" situation I was trying to set the default values of some form fields using a page level "Process". These form fields have Source Type = Database Column. It wasn't working, I could only set non-db assoc form field values no matter when the "Process" was set to exec. From some other posts it seems that this is by design, ie. not being able to programatically set the initial values of form fields that are sourced to db columns. I was hoping to have just one "Process" that would exec to set these initial values in one place rather than scattered about for each field that needed a default value. These particular default values come from ref tables and may be different for each user.
    So, it looks like I have to use a "Default Value" plsql chunk for each field on the form itself or else set their value on the calling form's Redirect in the "Set these Items" area.
    Is this correct?

    You could define a database function which accepts the name of the item and the user ID of the user running the application. Based on the item name and the user ID have the function return the appropriate initial value. Invoke this function in a "Default Value" PL/SQL block.
    Does that help in centralizing your initial values? You could have one function per page or one function per application. I would do one function per application.

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • 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

  • 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

  • Set Default Value based on Field from another table for a custom object

    I'm trying to set the default value on a custom object field to the value of an account field. I have tried the syntax 50 different ways, and just am getting no where. The account field label displays as DBA, the integration tag is ltDBA_ACCT, and it shows up in reporting fx area as Account.Text_22.
    The custom object field I'm triying to update is also called DBA, which was originally the "NAME" required field. Does the table name, Account, have to be included? Do I need a function in front of the field?
    I have been updating the external ID using the row ID with syntex <ID> (Less than ID greater than) so I know it is possible to set the Default Value, but <DBA>, <ltDBA_ACCT>, "Account"."DBA", and so on just don't not work.
    If anyone knows how to enter this I'd really appreciate the help.

    Ok, so if you want to default a field to the value from another object, you have to use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure that you do.
    Next, this will only work as a default if the record is created from the object that you wish to join on because a default works at record creation and the ID needs to be available for it to work properly. It will not work if you choose the related object record after the custom object record is created. You could set the value as a post-default, but that does not seem to meet your requirements.
    The syntax for the Default Value would be as follows: JoinFieldValue(ref_record_type, foreign_key, field_name).
    In your case, ref_record_type is '<Account>', foreign_key is &#91;<AccountId>&#93;, and field_name is '<YourFieldName>'. The best way to determine what the field name is would be to create a new workflow for Account and use the Workflow Rule Condition expression builder to pick your field ("DBA") from the list. The value that is returned by the expression builder should be placed in the field_name variable in the JoinFieldValue function (minus the brackets and in single quotes).
    Give this a shot and let me know how you do.
    Thom

  • Set default value to a field in MM01

    Hi Friends ,
                Can anyone tell me that how can set a default value to field "Rounding Value" in tab "MRP1" when i go to transaction "MM01" . I tried to search user exit/Badi for the same but i didn't get OR can say not able to find.
    PLEASE HELP ME.
    THANKS IN ADVANCE.
    Kishor

    In config, there is something called a rounding profile which I think will help you achieve what you want. Here is the path to the config task.
    Implementation Guide for R/3 Customizing (IMG)
    -->Logistics - General
       -->Quantity Optimizing and Allowed Logistics Units of Measure
          -->Maintain Rounding Profile
    Here is the documentation related to that task.
    <i>Maintain Rounding Profile
    In this step you define rounding profiles for adjusting units of measure to match delivery or transport units.
    Rounding profiles can be maintained on a general or plant-specific basis. General maintenance is recommended as this requires you to enter less data.
    A distinction is made between static and dynamic rounding profiles.
    A static rounding profile comprises the following:
    Threshold value
    Rounding value
    The threshold value is the value from which the system rounds up to the next delivery quantity.
    The rounding value is the value to which the system rounds up as soon as the threshold value has been reached.
    Several combinations of threshold and rounding values can be defined for rounding profiles.
    No logistics units of measure are taken into account with static rounding profiles. This means that the system rounds up statically to the rounding values entered in the profile and not to "full pallets", for example.
    Dynamic rounding profiles comprise the following:
    Rounding method
    Rounding rule
    Indicator to show that units of measure are to be condisered only if they are allowed for the vendor or recipient.
    The rounding method controls how the system rounds off:
    No rounding
    Rounding to a multiple of the order or sales unit
    Rounding to order or sales unit, and to logistics units
    No rounding
    You have to define an additional rounding rule if you want your profile to round off to whole logistics units. This rounding rule is the key used for grouping logistics units of measure. The group contains all the units to which the system can round off when using the profile.
    You can also have the system include only those logistics units that are allowed for the vendor or recipient. Allowed units of measure are defined in unit of measure groups that can be used at material-vendor level or at material-plant level.
    Example
    a) Static rounding profile
    A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallets = 8 cases or 40 pieces).
    You maintain the static rounding profile as follows:
    From To Rounded to
    01 05 05
    06 10 10
    11 15 15
    16 20 20
    21 25 25
    26 30 30
    31 31 35
    32 40 40
    41 45 45
    46 50 50
    66 70 70
    71 71 75
    72 80 80
    81 85 85
    b) Dynamic rounding profile
    To procure materials in lower price bands, you define rounding rules containing all pallets and cases that the relevant vendors can deliver. You enter a percentage for every pallet and case category that indicates the level to which a quantity is to be rounded up to the next unit of measure.
    Rounding rule 01
    Unit of measure Round up as of
    Euro pallet 70% full
    Pallet category 2 80% full
    Case for euro pallet 65% full
    Case category 2 75% full
    You maintain a dynamic rounding profile using the rounding method "round to whole logistics units" and assign the profile rounding rule 01.
    A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallet = 8 cases or 40 pieces). The system then rounds an order quantity of 68 pieces (= 40 + 28) to 2 Euro Pallets (= 80 pieces) because the second pallet is already 70% full.</i>
    Hope this helps,
    Srinivas

  • How to set default values to these fields

    Hello,
    I'm new with UCM 11g, and i need to add default values to fields, for example to these fields:
    Type -> Document should be the default and not editable value
    Title -> Should be the name of the file i'm checking in
    Security Group -> it's default and not editable value should be Secure
    How do i set these default values ??
    Regards
    Carlos

    Security Group and Document Type can be defined in your profile (as default values using dprDefaultValue - see e.g. Re: simple profiles and defaulting ). You can also define those fields as 'hidden' or 'info only'
    Title with the name of file is a bit trickier - you cannot define it up-front as you don't know what file will be chosen, do you? You can, however, use a global rule where you can fill in dDocTitle with the value in dOriginalName (or somehow process it, if you will).

Maybe you are looking for

  • Can connect via Ethernet but not via AirPort

    I'm having some problems using my AirPort in Germany. I can connect just fine using an Ethernet cable direct from the modem (NETGEAR DG632B) but when I have plug the Ethernet cable into the AirPort I can't connect. I beleive it has to do with PPoE se

  • How to reinstall lightroom 4 after hard drive crash

    My hard drive recently crashed and I have an all new one now.  My comp is running Mavericks and I need to reinstall Lightroom 4 (that was the latest version I was using, and I downloaded it, no cd).  How do I reinstall it??  When I go to "My Orders,"

  • Delivery service level

    Hi, I need a report concerning our Delivery service level (vendor self evaluation). Somebody knows if there is a standard report?. The report must contain sales order with quantities, dates, sku, and its respective delivery with quantities and dates.

  • How do I import avchd sony cx700 camcorder footage into Final Cut Pro?

    I've recently bought a Sony CX700 camcorder, but can't transfer the footage using the Log and Transfer window. Does anybody know how to import AVCHD footage into Final Cut Pro?

  • Problem with a pla

    In DEc '03 i bought a muvo2 .5gb and since i have had it it has not worked properly, i t keeps on freezing when in use and when loading music...i have spoken to creative many times and all they ever say is replce the firmware...this does abosolutly s