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.

Similar Messages

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

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

  • 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

  • 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 set default item in oneSelectChoice

    Hello, man. I have af:selectOneChoice with item from VO.
    jspx
    <af:selectOneChoice value="#{bindings['Edit_RequestIdentityCardTypeId'].inputValue}"
    label="#{bindings['Edit_RequestIdentityCardTypeId'].label}"
    required="true"
    binding="#{speedformula_EditRequest.selectOneChoiceDocType}">
    <f:selectItems value="#{bindings['Edit_RequestIdentityCardTypeId'].items}"
    />
    </af:selectOneChoice>
    pageDef
    <list id="Edit_RequestIdentityCardTypeId"
    IterBinding="Edit_RequestIterator" StaticList="false"
    ListOperMode="0" ListIter="IdentityCardTypeIterator"
    NullValueFlag="1" NullValueId="Edit_RequestIdentityCardTypeId_null">
    <AttrNames>
    <Item Value="IdentityCardTypeId"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="IdentityCardTypeId"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="IctShortName"/>
    </ListDisplayAttrNames>
    </list>
    how set default value oneSelectChoice?

    Ok, say your ResidentIDCardType LOV has the following values, AB, CD, EF, GH. And you need to show EF by default when you render the component, then, you will set the defaultValue on the attribute to EF (which is one of the valid values in the LOV).

  • How to set default value to relationship filed(ess~my~fam)new child

    Hi Experts,
    i have a standard ESS Application for Family members/dependents for Malaysia(essmyfam)-->New child
    When i click on new child a view gets opened withcontains relationship field with dropdown.Kdsvh is the field that is binded to dropdown.By default downdown is empty,when i click on dropdown it contains some values(Legitimate,adopted,others).
    my problem is node binded to dropdown(selectedinfotype) contains many attributes.so how can i set default value as others from values that dropdown contains.
    Code i tried
    In wdinit of Vcperfamilymydetail component
    wdContext.currentSelectedInfotypeElement().setKdsvh(wdContext.nodeSelectedInfotype().getSelectedInfotypeElementAt(3).getKdsvh());
    Error: Indexoutofbond exception
    Reply is Highly appreciated..
    Thanks
    Shikore
    Edited by: kishore shikore on Aug 18, 2009 6:09 PM

    Hi Kishore,
                    you can set the lead selected value while adding the vales to drop down. let say u are getting the data from model node say "Test".
    use the below code in doinit method:
    int size = wdContext.nodeTest().size();
    for (int i-0;i<size;i++){
    ITestElement test = wdCOntext.nodeTest().getTestElement(i);
    ISelectedInfotypeElement element = wdContext.nodeSelectedInfotype().createSelectedInfotype();
    element.setKdsvh(test.getKcsvh());
    wdContext.nodeSelectedInfotype().addElement(element);
    if("Others".equals(test.getKdsvh())){
    wdContext.nodeSelectedInfotype().setleadSelection(element.index());
    Hope it helps
    Thanks and Regards

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

  • 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 value for taxonomywebtagging control with terms and nested terms

    Hi,
    I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
    Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
    Any help would be greatly apprecited.
    Control code in aspx page:
    <td>
    <asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
    </td>
    <td>
    <Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    //Set the Business Unit Field
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GROUPName"];
    TermSet termSet = group.TermSets["TERMSETNAME"];
    Term term = termSet.Terms["TermA"];
    Guid termGuid = term.Id;
    term.SspId.Add(termStore.Id);
    term.TermSetId.Add(termSet.Id);
    term.AllowFillIn = true;
    term.AnchorId = countryGuid;
    term.IsMulti = true;
    Thank you.
    AA.

    Hi,
    According to your description, you want to set default value for TaxonomyWebTaggingControl.
    I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
    Here is the code snippet:
    TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
    SPSite site = SPContext.Current.Web.Site;
    TermStore termStore = session.TermStores["Managed Metadata Service"];
    Group group = termStore.Groups["GroupA"];
    TermSet termSet = group.TermSets["A"];
    Term term = termSet.Terms["A1"];
    TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
    TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
    TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
    TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
    TaxonomyWebTaggingControl1.AllowFillIn = true;
    TaxonomyWebTaggingControl1.IsAddTerms = true;
    TaxonomyWebTaggingControl1.IsMulti = false;
    TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
    Here is a detailed article for your reference:
    http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
    Feel free to Reply the test result.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

Maybe you are looking for