Set default value to field using Personalization

Hi all,
I want to set the default value for 'Comments' field in Termination screen (OAF) in Manager Self Service responsibility. I used OAF Personalization to set the Initial Value, but it didnt work. I tried logging off but in vain.
I tested creating a new field with default value and it works fine.
How I ensure that default value given in Personalization, is overidden by Controller or not? Does it require Controller extension?
Thanks
Kishore Ryali

Kishore,
May be in ProcessRequest the value will be refilled by the standard program.
De compile the Controller and check in ProcessRequest, the "Comments" value getting changed.
If yes, You have to extend the controller and get the handle of the item and set the value.
Thanks.
With Regards,
Kali.
OSSI.

Similar Messages

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • Set default value on field KNA1-AUFSD when creating Customer

    Hi,
    How to set default value on field KNA1-AUFSD when creating customer master using XD01/VD01?
    I have tried user exit SAPMF02D, but all KNA1 values are read only.
    Thx

    Hi
    Try to implement an enhancement option in include MF02DFEX. (at the beginning before call to FM CALL CUSTOMER-FUNCTION '001'.).
    and Initialize the value for KNA1-AUFSD.
    In this Include you can see that there is a call for CALL CUSTOMER-FUNCTION '001'.
    So even you test/check the initialized value for field KNA1-AUFSD is updated by putting a break point in this function module after implementation of your enhancement SAPMF02D.
    Regards,
    Dwaraka.S

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • How set default value in field of new infotype

    Hi experts!!
    We have created a new infotype 9002. This infotype has two mandatories fields, one with the amount and another with the currency.
    The currency always will be 'EUR', for this reason we would like to assign the default value for this field and the user only should fill the amount field.
    How we should assing the default value to the field we have created in a new infotype 9002?
    Kind regards,
    Julian

    Hawk,
    Another option here will be to enhance infotype 9002 screen 2000 PBO logic. Add a PBO module with the following logic:
    Begda hat sich vielleicht geändert.
            PERFORM re500c(sapfp50m) USING psyst-land p9002-begda. "K35729
            IF p9002-waers IS INITIAL.                          "QNUK110803
            IF t500c-waers IS INITIAL.                        "QNOK034099
              MOVE t001-waers TO p0015-waers.                 "QNOK034099
            ELSE.                                             "QNOK034099
              MOVE t500c-waers TO p9002-waers.                  "QNOK129756
            ENDIF.                                            "QNOK034099
            ENDIF.
    This is standard code extracted from infotype 0015 PBO logic. It default currency according to your country.

  • Setting default value for fields

    Hi
    I am facing an issue when setting the default value of an item
    setAttributeName("ID")
    It is working when ID value is with char
    if the ID value is number
    Iam not able to set the default value it is giveing error setAttributeName("ID") at this line
    can any body suggest on this
    Regards
    Krishna

    hi
    in this case u can convert your number value to string ,like this
    String sNum= num.toString();
    thanx
    Pratap

  • Forms Personalization: how to Set default value to field

    Hi all,
    I have trouble with to fill in a field with an initial value where in defined an LOV.
    When I open the screen "Contract Commitment" via the responsibility "Contract Commitment Super User" I would like to see a initial value in the "Type" field in "Details" tab. I have tried some cases but with no result.
    Could someone point me to a solution or give me a hint how to solve this issue via forms personalization?
    field to be filled in:CC_ACCESS_NAME
    screen: IGCCENTR
    Block: ACCESS
    LOV: ACCESS_TYPE_LOV
    GROUP_NAME of LOV: ACCESS_TYPE_RG
    EBS version 12.0.4
    Many thanks,
    Cafer

    Thanks Fassi for your information.
    I can use INITIAL VALUE only with WHEN-NEW-RECORD-INTANCE trigger. In my case this is not usefull but wel correct advise.
    I need the trigger WHEN-NEW-FORM-INSTANCE and I have used VALUE property
    I could notice that there are 2 other fields which have also LOV on them in the same screen.
    if I gave these fields (ACCESS.NAM and ACCESS.CC_ACCESS_LEVEL_DESC) a defualt value then it was working for them but not for the first field (ACCESS.CC_ACCESS_TYPE_NAME)
    I have solved my issue with a trick as follows:
    In the same personalization I have created a new action row with a sequence earlier than ACCESS.CC_ACCESS_TYPE_NAME action and the field CC_DESC is also earlier in the screen than ACCESS.CC_ACCESS_TYPE_NAME. So I have given this field (CC_DESC ) a value as '' (SPACE). So I could manange to see the defualt value in ACCESS.CC_ACCESS_TYPE_NAME field.
    Regards,
    Cafer

  • Set default value Parameter field Formula

    Hi ,
    I have parameter and I have a formula for it to make it optional select as below  :
    if {?Location} = 'z' then
    {Command.tc_name} = {Command.tc_name}
    else {Command.tc_name} = {?Location}
    AND
    if {?Location STatus} = 'z' then
    {Command.tc_status} = {Command.tc_status}
    else {Command.tc_status} = {?Location STatus}
    so when nothing is choosen when u refres the report, all records are brought from the db.
    But when I choose status as 'active ' and dont choose anything in the location , it still brings all the 500 recrds from the db.
    Should it not bring just the 'and' of active and locations? or am I missing something here.
    Any help is very mch appreciated.
    thanks

    Sorry I got it working, When I put each formula in a separate brackets it works perfectly fine!
      (  if {?Location} = 'z' then
         {Command.tc_name} = {Command.tc_name}
          else {Command.tc_name} = {?Location}  )
    AND
    (   if {?Location STatus} = 'z' then
        {Command.tc_status} = {Command.tc_status}
        else {Command.tc_status} = {?Location STatus} )

  • Need to set default value in table EABL.

    Hi Experts,
    How to set default value of field ATIM form 00:00 to 23:59 ion field selection screen for table EABL in transaction SE16?

    hi jazz try this way.
    forget about every thing and come from beginning.
    by now i think your are familiar with shd0.
    firstly create a variant using shd0 for your table eabl with default value and save it and activate it.
    next check whether it is working or not by opening se11 or 14 and enter table name and click display, the you can you see your default vale in your required field.
    after it is done the come to second part i.e your se16.
    now create another variant for this and save it and activate it.
    (by this i mean to say you are creating two variants )
    hope this will solve your problem.
    if your purpose is not solved yet then please write to my mbox.
    regards,
    kool.

  • Default values for fields in infotype 0017

    Is there any way to set default values for fields in infotype 0017? Maybe a
    feature? I'm thinking about defaulting values based on pay scale group.
    Thanks before.

    Hi
    You can implement what i suggested in my previous post.
    Or else, you can do what we did in one of our client requirement.
    We created a custom Ztable where we had defined which value of the the employee grouping to be placed for which record.
    We did that on the basis of the company code fields.
    For eg: IF BUKRS = 'TR01'
    then EE Grp Expense Type = '1'.
    ENDIF.
    Similarly for other fields.
    Hope this helps.
    Harsh

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

  • 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

  • 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

  • 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

  • How do I edit or remove text automatically added to a DITA layout?

    I'm evaluating FM11 with an eye toward using it to author our print manuals (along with all the reuse stuff that DITA will allow). I have some experience with DITA authoring in other applications, but FM is new to me. It's going to be up to me and a

  • Connecting IDES source system to BI Dev system

    Hi, Can we connect IDES R/3 system to BIW dev system??? If yes, then is it the same procedure for RFC or something different??? Thanks & Regards.

  • Printing portfolio - but only document for document ...

    Hi there, I am suffering the following difficulty: I received a pdf-portfolio which contains 10 different documents. For an unknown reason there is for me no possibility given to print them all at once. So I do have to initiate printing for every sin

  • XI CONTENT AUTO-ID

    Hi, I am looking to download the XI CONTENT AUTO ID 7.1 content from SMP, but I am not able to locate it on SMP. Does anyone have an idea as to where is this content located in SMP. Thanks Nikhil

  • Minimum previlege for user

    hi, i want to know minimum authorization to be given to user to execute BAPI i.e. BAPI_CHANGE_USER. and also let me know what are minimum role and profile to be given to access the R/3 system. thanks, John.