Default values in Account creation page

Hello.
I'm new to CRM and this forum too.
I need some guidance. I have to set default values in account creation page. For this, I thought to use DO_INIT_CONTEXT method. And, when I searched this forum, I see a lot of threads about BADI CRM_BP_UIU_DEFAULTS.
Can someone explain if there is any difference if we implement that using DO_INIT_CONTEXT method?
Thanks to all!

Hello,
Actually, some BADI are WebUI specific.
BADI CRM_BP_UIU_DEFAULTS only gets trigerred in WebUI BP screens.
DO_INIT_CONTEXT method will be triggered every time you open a window wich contains the view considered. So not only during BP creation.
Chris Evans, This is the way to go to initialize some fields during BP creation : use of BADI CRM_BP_UIU_DEFAULTS.
Hope this helps.
Best regards,
Sylvain AGUETTAZ

Similar Messages

  • Defaulting Language in Address of Account Creation Page by Configuration

    Hi,
    We have a requirement where in we need to Default the Language field to EN in the Address Details of the BP in the Account Creation Page.
    Technically, this can be achieved either by implementing the BADI or SET method of the attributes.
    Can anyone please let us know, if this can be achieved by any Configuration step rather than drilling down till the technical level.
    Thanks in Advance!
    Regards
    Veena Nadipalli

    Veena,
    This is not a standard possibility in configuration.
    What you could do is indeed enhance the view to[ retrieve the default values and set them|http://blog.acorel.nl/2010/09/adding-default-values-to-search-screen.html].
    If you want to differ the value for instance based on the business role, you can use the [parameters |http://blog.acorel.nl/2011/06/usage-of-custom-businessrole-parameters.html] that can be added to the businessrole.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • An incorrect default value of account assignment group in sales order

    I created a new sales order; however, the default value for account assignment group is not the same value maintained in customer master.
    Any idea how could this happen?

    have you checked user exit MV45AFZZ? Maybe there is a coding inside, changing the default value when creating a new sales order.
    regards
    Ralf

  • Insert default value into account in AP/Invoice service

    How I can insert a default value in account in AP/Invoice ?
    I try use a Formated Search this is an better way?
    declare @conta varchar(20)
    set @conta= '62298000'
    If  $[OPCH.DocType]='S'
    SELECT @conta  FROM [dbo].[PCH1] T0
       WHERE T0.DocNum = $[$20.1.0]

    IF $\[OPCH.DocType] = 'S'
    SELECT '62298000'

  • Default Values option for entire page

    Is there a way to set the entire page to use the default values for the entire page. I know you can set it per variable, and I have quite a rythyme so I can do it fairly quickly but with multiple pages with 100 or so values it gets tiring. I have tried setting it under the Page Settings Manager by setting "usedefaultValueParameters" to True for the page. It seems to ignore this though, it is still sending the parameters.
    I couldn't find any other option, and I do need to still send them on some of the pages within the script, I just don't want to overwrite the same page when I pull it up in future pages after filling it with a databank file.
    Just wondering if there is a better solution or if I need to get back to my F4-Tab-Tab-Tab-Space-Enter-Down-Repeat.

    Thanks for the reply, the only navigation I have done on those pages was clicking cancel on the bottom to go back to the search screen, but it is not working. I guess it is back to setting each field up to use defaults. Unfortunate.
    Does it have to be recorded with that setting?
    Message was edited by: jmelling

  • Default value at Account Object Field setup

    Hi,
    How to give default value as ‘On Demand’ for the Source field at the time of Account creation and also we need to bypass this default value if the channel is web service and data import. This default should only effect if it is being done from OD UI.
    I added below expression in DefaultValue
    ([<IndexedPick5>] = LookupValue("OCC_INDEX_CUST_LOV_ACCOUNT_5","On Demand")) AND (ExcludeChannel(‘Web Services’)) AND (ExcludeChannel(‘Import’))
    but it giving an error as below when clicking New button in Account Object:
    1] An error occurred calculating the default value for field 'Indexed Pick 5' in business component
    'Account'.(SBL-DAT-00412) [2] Could not evaluate expression 'Expr: 'LookupValue([<IndexedPick5>],"On Demand") OR (ExcludeChannel(‘Web Services’))'' for field 'Indexed Pick 5' in business component 'Account'.(SBL-DAT-00394) [3] CSSString doesn't support operator 'OR'(SBL-DAT-00479)
    Thanks
    Bob

    Try the following.
    IIf(ExcludeChannel(‘Web Services’) or ExcludeChannel(‘Import’), 'On Demand', '')
    Cheers!
    Shilei G

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • Need to set default value on Account Search

    HI All,
    In BSP BP_HEADSEARCH view MainSearch I need to default the value of the attribute 'RESP_AREA' to '01'. I can see the attribute on the value node SEARCH but when get the current context of SEARCH the entity is of a type CL_CRM_BOL_DQUERY_SERVICE and I am not sure how to set the default value.
    Any help will be appreciated,
    Regards,
    Tom

    Hi Tom,
    When it comes to setting values in a search entity you can not use the normal getter/setter methods because the context node class will be inherited from CL_BSP_WD_CONTEXT_NODE_ASP. In the context node class there will be few attributes (FIELD,MAX_HITS,OPERATOR,VALUE1,VALUE2) that corresponds to the fields diosplayed in the search criteria. The fields VALUE1 and VALUE2 represents the LOW and HIGH values.
    To set default value for RESP_AREA you must redefine SET_VALUE1 method and read the ATTR_NAME. If ATTR_NAME is RESP_AREA then you can set the value.
    Method SET_VALUE1.
    * Get current criterion
      data: criterion type ref to if_bol_bo_property_access.
      if iterator is bound.
        criterion = iterator->get_current( ).
      else.
        criterion = me->parameter_collection->get_current( ).
      endif.
    * Set its low value from user input
      try.
          data: lv_value type string.
          lv_value =
             me->convert_value_from_string( iv_string = value
                                            iv_criterion = criterion ).
          criterion->set_property( iv_attr_name = 'LOW'
                                   iv_value = lv_value ).       "#EC NOTEXT
        cleanup.
    *     Keep buggy user input for correction
          criterion->set_property( iv_attr_name = 'LOW'
                                   iv_value = value ).          "#EC NOTEXT
      endtry.
    * Set the default value for RESP_AREA
    lv_attr_name =  criterion->get_property_as_string( 'ATTR_NAME' ).
    if lv_attr_name eq 'RESP_AREA'.
        criterion->set_property( iv_attr_name = 'LOW' iv_value = ---- ).
    Endif.
    Regards,
    Arun

  • LOV/Choice List - Default Value in Update OAF page

    Hi Guru's,
    Need help please, I am looking at personalization but its not working for me to default a value in Group by LOV/Choice List.
    Please provide some pointers so that I can achieve this.
    I have Requisition page from Buyer Work Center in Oracle US Purchasing Super user. when I pick requisition to update it. It goes to update page, in here I have a header "request".
    In this request have a Group By LOV/Choice list it has initial value set to "Default", I wanted to set to "Requisition".
    Is it possible by Personlization?.
    OR
    Is it possible by OAF page modification.
    if OAF page update, can I get some information to get Page info and update value.
    Thanks in Advance to all.

    Hi,
    You need not do this via personalization... Set the profile po%def%group%. This should take care of that.
    Regards,
    Praveen

  • Vendor creation default values

    Where is the config for setting up default values on vendor creation process- fields like- "check double invoice" ?
    Thanks
    Raj

    Hi Rajendra ,
    Screen control for the vendor is controlled by the Account group you assign to them. So go to IMG> Financial accounting > Account rec. and payables> Master data > Define account group with screen layout.  Here you can find and change the the fields status for  General , company code and purchasing data.
    Hope it helps.
    Thanks
    Kiran
    P.S  Pls award points if you find the answer is helpful.

  • Windows 8 Sysprep - Can't skip local account creation and autologon fails, wrong admin password.

    Using Windows 8 x64 Enterprise, Sysprep pauses to ask me to create a local user, which I don't want.
    If I enable SkipSystemOOBE and SkipUserOOBE in OOBE under Microsoft-Windows-Shell-Setup sysprep (in oobe mode) will skip user creation and autologon works.  But it only works correctly once.  If I run sysprep again, when it tries to autologon
    it will say that I have the wrong password for the local account.  After I type in the password manually it works.  If I use the same password for the local administrator account as for the autologon account, it looks to have the encrypted password
    twice with an equal sign after it.
    What I need to know:
    How to skip local user account creation (we run on a domain but I have it connect through scripts later)
    How to fix the autologon issue
    Do I need the local administrator account enabled for this to work?
    I have my unattend.xml file attached.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <AutoLogon>
    <Password>
    <Value>[removed]</Value>
    <PlainText>false</PlainText>
    </Password>
    <Username>[removed]</Username>
    <LogonCount>2</LogonCount>
    <Enabled>true</Enabled>
    </AutoLogon>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <Order>1</Order>
    <CommandLine>c:\folder\abatchfile.bat</CommandLine>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <ProtectYourPC>3</ProtectYourPC>
    </OOBE>
    <TimeZone>Eastern Standard Time</TimeZone>
    <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
    <RegisteredOrganization>Company Name</RegisteredOrganization>
    <RegisteredOwner>CompanyName</RegisteredOwner>
    </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <UserLocale>en-US</UserLocale>
    <UILanguage>en-US</UILanguage>
    <SystemLocale>en-US</SystemLocale>
    <InputLocale>en-US</InputLocale>
    </component>
    </settings>
    <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ComputerName>*</ComputerName>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:[removed]/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    The user accounts-creation page in Windows Welcome is suppressed if a user or a group is added to a local security group. Add a user or a group to a local security group by doing one of the following:
    Create a local user.
    Add a domain user to a local security group with the Microsoft-Windows-Shell-Setup | UserAccounts unattended installation setting.
    To suppress the user accounts-creation page in Windows Welcome, without creating a local user, use one of the following workarounds:
    Workaround 1
    If the computer is already joined to a domain, use the following XML example to add the Domain Users security group to the Local Users security group.
    <DomainAccounts>
     <DomainAccountList wcm:action="add">
      <DomainAccount wcm:action="add">
      <Group>Users</Group>
      <Name>Domain Users</Name>
      </DomainAccount>
      <Domain>FabrikamDomain</Domain>
      </DomainAccountList>
    </DomainAccounts>
    Because joining a domain automatically adds the Domain Users security group to the Local Users security group, the DomainAccounts command does not affect the membership of the Local Users group. However, using this XML example to join a domain will also suppress
    the user accounts-creation page in Windows Welcome.
    Workaround 2
    Use the Sysprep/Quit command to set the following registry value to 1:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OOBE\UnattendCreatedUser
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Current month as default value in a parameter porlet

    Hello,
    i need to pass month as a parameter to a discoverer worksheet that i've added to my page in portal.
    i'd been doing this with a single parameter form setting the default value manually while testing page.
    now i'd need to set the default value as the current month to put the page in "production".
    i think it's not possible to get the date from the system (sysdate) in a single parameter form but maybe this can be done with an omniportet.
    thanks for helping,
    dani

    If you are using a datatemplate , you can have a beforereport trigger that will have a package call.
    In the package spec, define a date variable and also define the function beforereporttrigger that retruns boolean.
    In the body, define the beforereporttrigger function with
    begin
    select sysdate into specvariable from dual
    return(true);
    end;
    You can then use the variable in the datatemplate as :variable.
    Hope this helps.
    - Vasu -

  • How to display JHeadstart flex item default values

    Dear All,
    I have defined a number of FlexRegions and FlexItems and I'd like to display the default values (specified by a SQL query in the Flex Item Def Editor) next to the input text field using the JSF EL expression #{row.defaultValue}.
    This works fine as long as the user has not provided a new value for the flex item. Once (s)he has done this, the default value gets cleared. I've been able to programmatically obtain the default value by invoking the method executeDynamicQuery("somename", row.getDefaultValueQuery()) on the FlexItemDefsOuterJoinedWithFlexItemsRowImpl instance, but
    I'd like to be able to always display the original default value in the .jspx page.
    Any suggestions would be greatly appreciated.
    I'm using JDeveloper 10.1.3.3. and JHeadstart 10.1.3.2.52.
    Regards,
    Ibrahim

    Hi Steven,
    Thanks for your reply. You're absolutely right of course. We wanted to provide functionality to submit 'request for change' requests, whereby we would display the current value of a given attribute (e.g. salary) next to the new value provided by the user.
    We wanted to 'misuse' the default value query aspect of flex items for this purpose. The flex item default value query would be used to retrieve the current value each time the request for change record is displayed.
    We managed to achieve this via a trick, so please consider this post as solved.
    Once again many thanks for a marvelous product.
    Regards,
    Ibrahim

  • How to set a Default Value in the drop down on Account Creation ?

    Hi,
    i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
    How to set that default value when user clicks on New Account ? and where should i code ?
      IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
      try.
                  lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
                  lv_current = lr_entity->create_related_entity(
                                                  iv_relation_name = 'BuilRolesRel' ).
                                 lv_current->set_property(
                                    iv_attr_name = 'PARTNERROLE'
                                    iv_value     =  'BUP002' ).
                   CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
                   cx_crm_genil_model_error.
                   return.
            ENDTRY.
    Thanks and Regards
    Raman Khurana

    Hi,
    I have some idea abt it, it is also used in account life cycle.
    Please refer SAP note 1097651, Defaulting a life cycle stage.
    Let me know if useful.
    rgds,
    Vinay

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

Maybe you are looking for