Problem with default value for Billing when creating Business Partner

In Sales Area data - Billing screen we want to default a value for Price List Type when creating a Busines Partner.
We implemented  BADI 'BUPA_FRG0030_UPDATE'  and followed suggestions from another thread :
Defaulting Currency Value to 'USD' during BP Creation.
But This only seems to work when you change an existing BP.
If we use FUNCTION 'CRM_BUPA_FRG0030_SAVE' in the BADI this function is called again by the system when saving the BP and causes a dump.
Also the UPDATE functions only seem to work when you change an existing BP and not when creating one.
Any suggestions if we can use another BADI or other function modules/methods ?
Or some sample coding for implementing BUPAFRG0030_SAVE'  the correct way ?
Thanks for the help,
Steve

Brent,
When I use the latest build 10.1.3.3.81, this gets generated:
<managed-property>
<property-name>defaultValues</property-name>
<map-entries>
<map-entry>
<key>ManagerId</key>
<value>#{'#{jhsTypeConverter.stringToNumber['100']}'}</value>
</map-entry>
</map-entries>
</managed-property>
Which is slightly better, but still failing because the single quotes get mixed up.
This should be generated:
<managed-property>
<property-name>defaultValues</property-name>
<map-entries>
<map-entry>
<key>ManagerId</key>
<value>#{"#{jhsTypeConverter.stringToNumber['100']}"}</value>
</map-entry>
</map-entries>
</managed-property>
which can be achieved by changing the defaultValuesBean.vm template like this:
<managed-property>
<property-name>defaultValues</property-name>
<map-entries>
#foreach ($defaultValue in $group.defaultValues.keySet())
<map-entry>
<key>$defaultValue</key>
#if ($group.defaultValues.get($defaultValue).startsWith("#{"))
<value>#{"$group.defaultValues.get($defaultValue)"}</value>
#else <value>$group.defaultValues.get($defaultValue)</value> #end
</map-entry>
#end
</map-entries>
</managed-property>
Steven Davelaar,
JHeadstart team.

Similar Messages

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

  • Problem when creating business partner

    Dear Expert,
    I have a problem when creating business partner from T-code BP
    I can't input vendor number in company code header data
    The vendor account field is set to required entry.
    When create business partner, I make some entry like :
    Business partner category : organization
    BP Role                           : Landlord with vendor account
    Grouping                          : external number assignment
    Company Code                 : 1000
    The problem is everytime i try to input vendor number, it always failed.
    The Vendor account field always display ' <external> '
    It's strange.. the vendor field it's seem locked by grouping
    What should I do?? 
    ___Company Code Header Data___
    Company Code  :   1000
    Customer          :   <external>
    Vendor              :   <external>
    I need your advise.. thank you very much
    Thanks,
    tweety

    Hi,
    I would like to suggest you some SAP notes that contain useful information aobut customer-vender intergration of ERP2005.
    956054  BP_CVI Customer-vendor integration as of ERP2005 (ECC600)
    This notes describes the changes (new development) of CVI AND the necessary customizing settings.
    In short, CVI is now bidirectional.
    1. BP -> Customer/Vendor: it depends on the roletype configuration, if a customer/vender is created.
    2. Customer/Vendor -> BP: it depends on the account group if a BP is created.
    Data is changed then synchronoously.
    Further notes that might be of interest.
    851445 BP_CVI: Details about reports to be executed for ERP 2005
    727205 Conversion of industry Customizing in BUPXPRA12
    1077616 Business Partner Upgrade FAQ
    If you have further questions please let me know.
    Regards, Franz

  • Default value in field when creating a new vendor (Transaction: XK01)

    Hi, everybody!
    Is it possible to set a default value to a field when creating a new vendor (transaction: XK01)?
    We need the field "Payment terms" in "Payment transactions accounting" tab and field "Terms of payment" in "Purchasing data" tab to be filled with a default value when creating a new vendor.
    Thanks in advance
    Best regards,
    J Madariaga

    You can try creating a transaction varient fron SHD0 for this which will default the requiredd values .
    -Hari.

  • Problem with RGB Values for Canvas Type ‚Horizontal Toolbar' in Webforms 10

    Hello,
    I have a problem with the canvas type ‘Horizontal Toolbar’ in Webforms 10g.
    When I try to set or change the RGB value of a ‘Horizontal Toolbar’ with the forms function
    Set_Canvas_Property(‘my_horizontal_toolbar’, BACKGROUND_COLOR, rgb-value)
    (at runtime) it has no effect in Webforms 10g for the canvas type ‘Horizontal Toolbar’ (the background color of the horizontal toolbar doesn’t change).
    But it works fine for other canvas types like ‘Stacked’ or ‘Content’.
    In Oracle 6i (Client / Server) this function works quiet well (even for the ‘Horizontal Toolbar’ canvas type).
    The reason why we are using rgb values instead of visual attributes in this case is, that the color of the ‘Horizontal Toolbar’ should be customizeable (via a RGB Field) for our customers (at runtime).
    Further more we are using the same technique for Text-Field-Items, Content- and Stacked-Canvases (and all works fine).
    Maybe it has something to do with the pre-configured IAS color-schema (blaf).
    But changing the color schema (e.g.: from 'blaf' to 'red') has no effect also.
    Thanks for your help.

    This is probably bug 777312. Call Support for the latest info on this bug and for help getting it fixed.

  • Problem with collection names getting replaced when creating new collections in Photoshop Elements 5.0

    We have been using Photoshop Elements 5.0 a lot lately to organize many photos into collections.  A new problem just arose when creating a new collection.
    As we named the new collection and clicked on "OK" it replaced another existing collection with the new name.  The photos from the old collection were still there but now under the new collection name.  This happened at least three or four times, each time a different "old" collection was renamed.  Does anyone know why this would happen?
    This past week we have added at least 20 new collections with no problem prior to this.  Adobe actually had to shut down when this happened.  Each time we reopened Adobe it would happen again randomly renaming a different "old" collection when we tried to add the new one.  Any insights would be much appreciated.

    Thank you - that was the problem and now it is working correctly
    again!
    Tom Z.
    >>> saurabh288 <[email protected]> 05/24/09 4:23 AM >>>
    It may be that the catalog has been corupted.Try repairing the
    catalog of PSE.

  • Report-to-Report Interface problem with default values

    Hi all.
    I have RTR interface where target query has default values, so when I jump to target query it doesn't return whole data because of this default filter.
    Is it possible to remove this default filter in query in case it is executed through Report-To-Report?
    I still need this default filter then I execute target query separately.

    Dear Gediminas,
    Make sure that you have same infoobjects which are having default values present in the 2 queries.
    After createing settings in RRI...select that setting.....click on ASSIGNMENT DETAILS tab...
    Assign Type as how they are in 1st query...
    Assign selection type as how they are in 1st query...
    Assign GENERIC to the rest of the fields..
    Cintinue
    Save.
    Assign points if it is helpful.
    Regards,
    R.

  • Problem with display of Chinese, Japanese, and Korean business partner name

    Hi All,
    I'm trying to understand how to get GTS to properly display the names of the business partners that are in Chinese, Japanese, or Korean.
    I have set my SAP gui localization as follows:
    - Select the Customize Local Layout, then Options, then the |18N tab,
    and check the Activate Multibyte Function box
    - Select the Customize Local Layout, then Character Set and check
    Unicode and Simplified Chinese
    In the source R/3 system for these partners, if I set my localization to the right language, the business partner's name and address would be displayed correctly in the C/J/K character sets when I select the appropriate version in International Version of the address.
    However, in GTS these names/addresses would just appear as nonsensical characters (like "·ÉÀûÆÖÕÕÃ÷µç×Ó£¨ÉϺ££©ÓÐÏÞ¹«Ë¾").
    For example, if I do a look up of a known Chinese BP by number, in the seach results window the Description field of that BP would just be garbage, but if I put the cursor over the Description field, then the correct Chinese display (matching what is in R/3) would appear for as long as the cursor is over that field. This indicates that the data was transferred correctly from R/3 to GTS, but some how the display does not default to the right character set.
    If I select that record, the resulting detailed display would also have garbage as the Name and Address. However, here putting the cursor over the fields still do not bring up the correct character displays, and I have found no way to get the correct displays to appear.
    Does any one know of a way to get the displays to show correctly in GTS?
    And can anyone explain why putting the cursor over the Description (in the BP search results window) would let the correct display pop up?
    Greatly appreciate any insight anyone can provide.
    Thanks,
    Rex

    Hi Rex - As per message - this looks to be an issue for BC-I18-UNI and not the GTS application:
    For general information purposes - last response from BC-I18-UNI development via oss message:
    "However, from readind the message, I believe I understood the reason for
    the described effect. I assume GGT is a non-Unicode system? If yes, this
    is my idea:
    The data stored in the BP tables, e.g. for number 2555442 have been
    entred manually, probably within a session using English as logon
    language. In this case the data are stored with a Latin-1 codepage. This
    means the stored data are actually Latin-1 data, not Chinese. By
    switching the font at front-end side to Chinese, the characters appear
    as correct Chinese, although they are still Latin-1.
    It is possible that different GUI components show different effects in
    this context, as the internal font switching mechanisms behave a bit
    different in different components, e.g. control based components are
    different from normal Dynpro-based fields.
    To have correct Chinese data, you need to logon with language Chinese.
    This holds for all non-Unicode systems. On Unicode systems, the logon
    language is arbitrary."

  • Problem with Edit option for a role created in GRC 10.0

    Hello Experts,
    I created a role in GRC 10.0 , I see my newly created role in the list of roles . If I want to Edit the role I select the row and click " OPEN" and edit the role.
    But when I click the role directly and enter the role , the "EDIT"  button is disabled and even maintain authorization button is disabled.
    Did SAP defined in such  a way that we should selct the role and click OPEN then only we can Edit or is this a Bug??
    Please let me know if any one of you faced the same problem.
    Regards,
    Jagadish Bhandaru

    Hi,
    Sabita is correct.
    Here is the link to the documentation
    SAP Access Control 10.0
    Simon

  • Problem with default printer for archivelink

    Hi All,
    I have configured a new output device for print list archiving as ARCH in SPAD.I have checked the table TSP03 for the printer names.The printer name ARCH exists in the table.Still this is resulting in an error 'Printer name "ARCH" not defined'.Could help solving the problem.
    Regards
    Ramesh

    Hi Ramesh,
    Try to ensure  that both long and short output device name is set the same 'ARCH'. Please note when you use printing mode archive you must not put in printer ARCHIVE! this one will be used internally. You always have to put in a valid printer in the printer popup.
    Br,
    Javier

  • Table Control with default values for a Column

    Hi,
      I have a table Control with  fields  kschl    kbetr    konwa    mark     
    i have created a range for KSCHL
    now i need to pass this to the table column
    Kindly suggest how can i handle this?
    BEGIN OF y_condition,
      kschl       TYPE kscha,
      kbetr       TYPE kbetr_kond,
      konwa       TYPE konwa,
      mark        TYPE char1,
    END OF y_condition,
    t_cost TYPE STANDARD TABLE OF y_condition,
    MODULE mo_tc_cost_init OUTPUT.
      IF  w_tc_cost_c IS INITIAL.
        REFRESH CONTROL c_tc_cost FROM SCREEN c_scr2000.
        REFRESH t_cost.
        MOVE c_select TO w_tc_cost_c.
        FREE r_kschl.
        MOVE: c_i    TO r_kschl-sign,
              c_eq   TO r_kschl-option,
              c_zhb1 TO r_kschl-low.
        APPEND r_kschl.
        MOVE: c_i    TO r_kschl-sign,
              c_eq   TO r_kschl-option,
              c_zhb2 TO r_kschl-low.
        APPEND r_kschl.
        MOVE: c_i    TO r_kschl-sign,
              c_eq   TO r_kschl-option,
              c_zhb3 TO r_kschl-low.
        APPEND r_kschl.
      ENDIF.

    Can you clarify please?... you say have a table control containing the following columns:
    kschl TYPE kscha,
    kbetr TYPE kbetr_kond,
    konwa TYPE konwa,
    mark TYPE char1
    so where do you expect the range table "r_kschl" to appear? ... did you want a second table control on the screen?
    Jonathan

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

  • Initialize some fields in material master with default values

    Hi,
    I would like to initialize some fields in material master MM01 with default values.
    for exemple in the view MRP1 there is a field MRP type I would like to initialize PD in the field as default value.
    but when I go to the technical information there is no parameter id that I can use in SU3.
    Do you know how I can the initialize the field those don't have parameter ID?
    thank
    Dede

    Dear Glenn,
    This is possible in SAP for this use T code MMD1 and create MRP profile and assign this MRP profile while creating material using MM01 in the organisation level put this created MRP profile. The values you maintained in this profile get copied to the material by default.
    To maintain MRP profile go to MMD1->give your profile name...........> click on  selection screen push button--->give here profile description--->select what MRP  field which u want to make fixed one/default. if make fixed later you can not change--
    >click on data screen 1 push button and maintain your value and save
    sree

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • Default values for static report parameters are not visible when scheduling

    Hello
    Crystal Reports 2008 Dev
    Crystal Reports Server 2008
    When I publish a report to the repository and then try to schedule that report, the default value that I have set for a static parameter in the report is not visible.
    In the Parameters section of the Scheduling wizard this parameter is marked as [EMPTY]
    However, when I View the report (right click and select View) from within Infoview, the parameter default value is visible
    I have published in the following 3 ways:
    Publishing Wizard
    File > Save As > Enterprise from withing Crystal Reports Dev
    CMC > Folders > Add > Crystal Reports
    The results are the same for each method of publishing.
    To try to eliminate any DB issues etc i have created a report that is not attached to a datasource. 
    This test report has one Static parameter. 
    I have set 3 values for its list: Entry A, Entry B, Entry C
    Entry X is set as the parameter Default Value
    The parameter is placed in the details section of the report
    When the report is Viewed it will prompt for parameter entry, with the default value present
    When I try to schedule the report is will not have an entry for its parameter
    It seems to me that the default values for parameters should be retained from report design through to report schedule, especially when the default values are retained from report design to report View
    Is this a config problem that i have ?
    Can anyone help me with this ?
    Best regards
    Patrick Coote
    Edited by: PATRICK COOTE on Oct 2, 2008 2:08 PM
    Edited by: PATRICK COOTE on Oct 3, 2008 9:23 AM

    Hi Robert
    Thanks for the reply and apologies for not responding sooner.
    What i have found is that if i use Publishing Wizard to upload reports it is then possible to set values for prompts during the last step of this process.
    Although this is a bit clumsy, it is sufficient for now
    Best regards
    Patrick

Maybe you are looking for