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

Similar Messages

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

  • Set default value for people picker only when user checks a checkbox (Sharepoint 2010)

    The javescript in below link works for me.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2b130f64-3db2-484a-9a53-ccbe18d2c5de/set-default-value-for-people-picker-in-list-template-current-user?forum=sharepointgenerallegacy
    However, I'd like to set default user for people picker only when user checks a checkbox. 
    I am new to  development. Could you please help me on this requirement ?
    Thank you very much. 

    Hello,
    Use this link to to validate checkbox value, if true then set the person or group value (i.e. as posted in your link).
    http://geekswithblogs.net/haniamr/archive/2011/03/10/validate-that-a-checkbox-is-checked-using-javascript.aspx
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

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

  • 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

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

  • 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} )

  • 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

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

  • 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 price unit when creating material master data

    HI: Every
    could you tell me how to use user-exit or else ways to set default value(such as 1000) for field "Price unit" (MBEW-PEINH) when creating material master data(MM01)?
    I have try to use Exit:EXIT_SAPLMGMU_001. However, this way cannot respones it.
    thanks
    Henry

    Hi: Ihave find out a solution
    Use BADI: BADI_MATERIAL_REF
    SPROlogistics general enhancement supplement or change default data (industry)
    And then creating a Implementation Name
    Double click method: CREATE_MATERIAL
    And then write code as below:
    method IF_EX_MATERIAL_REFERENCE~CREATE_MATERIAL.
              c_mbew-peinh = '1000' .
    endmethod.
    However, SAP still store '1000' in database evenif we change the default value such as 100 when we use TCode MM01.
    in additional, we still use MM02 to change the default value such as '100'
    can anybody tell me how to do?
    thanks
    Henry

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

Maybe you are looking for

  • MacBook Pro 13" Late 2011 Experiencing Significant Slow Down After Boot Camp Installation

         Okay, so today, after installing Windows 7 on my MacBook Pro via Bootcamp Assistant, I experienced significant performance slow down (fans going at full blast, applications opening after extended periods of time, keystrokes not being registered)

  • Power PC 8500 with OS 10.1 and Claris CAD

    Hi All, 1 Can you run OS 10.1 on a PPC 8500? 2 Can you run Claris CAD on OS 10.1? Regards, Scott

  • How to compile and test SIM card applet

    Dear all I have a sample applet: package sim.access.sample; import sim.access.*; public final class helloFile extends Applet implements ToolkitInterface        private static SIMView  theGsmApplet;        private static USIMView aUsimApplet;        p

  • Need help with ASR1002X error message : %IOSXE-4-PLATFORM

    Hi, I found the following error on my ASR1002x, could some one tell me what is this all about? Cisco IOS Software, IOS-XE Software (X86_64_LINUX_IOSD-UNIVERSAL-M), Version 15.3(1)S, RELEASE SOFTWARE (fc4) t ipt_MASQUERADE i2c_core exportfs mtd_blkdev

  • Can I backup FRA to tape (Networker) without NMO?

    Can I just use MML that Networker provides and not use their Networker Module for Oracle? So I will backup up my databases to FRA and then Networker will back up FRA via SBT_TAPE? If so, how do I unlink NMO and just leave MML? Or is the only way to u