How to make default value for region based on city?
Dear Experts,
When city is selected in TRIP or PR05, how to make the default value of city based on region?
The standard search help givenfot citydoesnt contain any enhancement point?
Pls suggest how to resolve this!!!
Thanks In Advance
Rgrds,
Sravan
Hello Sahil
Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
Follow same process for PC.
GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
Kiran
Similar Messages
-
How to make default values for date range?
Dear Colleagues,
My customer is asking for a default value for a date range prompt.
The FromDate should contain the 1st of current month, the ToDate should contain current date.
Does anyone have any idea how I can meet this demand?
Regards SiljeHi Federico,
Thank you for the answer, we are back to the challenge after summer vacations!
I have created a variable in the universe: SELECT current date as TODAY FROM SYSIBM.SYSDUMMY1. I Called it TODAY.
Then I created a prompt in the query based on Date. In Prompt Properties I tagged for "Set Default Values" and I typed in TODAY.
When I try to run the query I get the error message: The date for the query filter based on 'Date' is invalid (WIS10704).
What is wrong? What do I have to do differently?
My goal is to have a default for Date that gives me today..
Regards Silje -
How to make default value for controlling area for MDG-F 7.0
how do we default certain pre-defined values for few fields? e.g. controlling area or company code for MDG finance?
Thank you in advance.
SPHello Sahil
Account and CC/PC are 2 different entity types. For PC and CC there is dependency. First you have to load Cost centers and then load PC.
For CC - load CC master data first. Then load hierarchy file then group file and finally assignment file.
Follow same process for PC.
GL you can load independently but you have first load group GL then operational GL and then GL at company code level,
Kiran -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
How to make default values in selection field?
hi,
i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.
DATA: LT_RANGE_TABLE TYPE REF TO DATA.
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'QENTST'
RECEIVING
RT_RANGE_TABLE = LT_RANGE_TABLE.
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = 'QENTST'
IT_RESULT = LT_RANGE_TABLE
I_OBLIGATORY = ABAP_TRUE.
What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?
Thanks In Advance.
Saurin ShahHi,
Refer this Article by Thomas on how to make default values in Select Options:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
I hope it would solve your problem. -
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 -
How to set default value for vc2_255_arr in plsql parameter directive?
Hi,
I would like to set a default values for a plsql parameter which is of vc2_255_arr type. How to do that?
Below is the example from PL/SQL Server Page.
+" To set a default value, so that the parameter becomes optional, include a default="expression" attribute in the directive. The values for this attribute are substituted directly into a PL/SQL statement, so any strings must be single-quoted, and you can use special values such as null, as in the following example:+
+<%@ plsql parameter="p_last_name" default="null" %> "+
My plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"
*<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" %>*
Thanks in advance!
kwongMy plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"You need to declare it in a package specification and initialize in the package body:
SQL> create or replace package pmp_lib
as
type vc2_255_arr is table of varchar2 (255)
index by binary_integer;
vc2_255_arr_default vc2_255_arr;
end pmp_lib;
Package created.
SQL> create or replace package body pmp_lib
as
begin
vc2_255_arr_default (1) := 'abc';
vc2_255_arr_default (2) := 'def';
end pmp_lib;
Package body created.
SQL> declare
arr pmp_lib.vc2_255_arr := pmp_lib.vc2_255_arr_default;
begin
for i in 1 .. arr.count
loop
dbms_output.put_line (arr (i));
end loop;
end;
abc
def
PL/SQL procedure successfully completed.so in your case it would probably be sth like (assuming pmp_lib is a package):
<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" default = "PMP_LIB.vc2_255_arr_default" %> -
How to set default value for html:file in struts
hi
i am working on an application using struts situation is i am using the
<html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie the user wish to upload that default file the default file get uploaded on page submition. Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this. thanks in advancewww.google.com?q=STRUTS+DOCUMENTATION
-
How to set default values for inputs?
I have several inputs which are always initialized with 0 when I start the VI. I'd like save own default values for them. I've already tried just setting the numbers and saving the VI but it did not work.
If you want to make any data in any controls, Arrays you can right click on it select >Data operations>Make current values default or you can select EDIT in tool bar, click on Make current values Default.
First, enter the data you want in the control or array and then follow the things Geeta said.
Post if any other help required.
Message Edited by mathan on 12-05-2008 12:07 AM -
How to populate default values for BP (FPP1 is tcode in ECC 6.0)
Hello ,
I am creating BP in ECC 6.0 using Fpp1 tcode. How to populate default values when i hit create BP person. any badi triggers when we are creating BP in ECC.
guide me.Hi Premanand,
To default fields, you need to do the following steps :
1. Create a Z module e.g. : Z_DEFAULT_FIELDS_DIALOG.
2. Enter suppose you want to default fiels Name, title, country, write code as follows :
DATA : ls_busdefault LIKE busdefault.
ls_busdefault-title = '0002'.
ls_busdefault-mc_name1 = 'TEST'.
ls_busdefault-mc_name2 = 'Default'.
ls_busdefault-country = 'IN'.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = ls_busdefalut.
3. Now got to transaction BUS7, select event ISDAT, click on Event--> function modules.
4. Register your Z module Z_DEFAULT_FIELDS_DIALOG in this list, Save.
This should solve your problem. Please note : You can only default those fields contained in structure BUSDEFAULT.
Cheers,
Rishu. -
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 -
ADF 11g - Query Component - How to set default values for search criteria
I have defined a VO with named query (with 2 search criteria). I created a page and drop a query with table. It works just fine until this point. My requirement is to set a default values for the two search criteria. For example, I have release and category criteria where they are set to use a drop down. I would like to default the values for the drop down when the page is shown up the first time and query the result right away. Is there a way declaratively or I have to create a custom query?
Thanks.I figured this out. Thanks.
-
How to make default value in a drop down list
Hi,
I have created a drop down list using Selection-Screen code. I have three values in it. I would like to make one of the option as a default value. How to achieve it?
I am working on module pool program. I have few screens as a part of my program. I have created print button on tool bar of one screen but that print button is appearing on the other screens too. How to avoid it?
Help would be appreciated...
Thanks
Edited by: mohammed ibrahim on Oct 10, 2008 8:43 PM1) let drop down box be g_dd.
if g_dd is initial.
g_dd = option2.
endif.
2)
by default same pf-status is used by all the screens in the same program
if sy-dynnr = 'screen_no'. " for screens for which you do not want button to come
set pf-status 'abc' excluding 'fcode_of_button'
endif.
or
data: git_fcode type sy-ucomm with header line.
git_fcode = 'fcode_of_button'.
append git_fcode.
if sy-dynnr = 'screen_no'. " for screens for which you do not want button to come
set pf-status excluding git_fcode
endif.
Edited by: Amit Gupta on Oct 11, 2008 11:36 AM -
How to maintain default values for custom table fields -- Urgent
Hi all,
I've a requirement wherein i need to create a Z table (with maintainence view) in which i'll have date and time as two of its field which should have current date and current time as default value. Can somebody suggest as how am i to maintain the date and time fields defaulting to current date and current time.
Incase if someone is unable to intrepret what i'm trying to say, please query me, i'll elaborate it further.
Please give in your quick inputs which is highly valuable to me and also will be highly appreciated.
Thanks in advance,
Vaishnavi VaradarajanWe have a following custom table which contains the fields Date on which record was created and Name of the person who created the object. We would like to have these to be filled up with SY-DATUM and SY-UNAME respectively.
Using the events, we can achieve this.
Please refer the following link:
http://abapliveinfo.blogspot.com/2007/12/events-in-table-maintenance-in-sap.html
Also,
Write a form routine in table maintanance generator.
1. SE11 > utilities > table maintenance generator
2. environment > modification > event
define the event and form routine to make use of the tigger. in the form routine define an object for the class and call the relevant method.
Or u can do it as:
Table maintenance generator is basically used to do table operations like (insert, delete, modify...).
if you create table maintenance for your table it will build a module pool program, by using you do the above operations.
below is the procedure to create table maintenance generator.
1) Create one function group.
2) after activating your Ztable, choose 'Utilities'----> 'Table maintenance genrator'.
3) then give the authorization group and function group created abobe in the next screen.
4) Then choose the "create" button in your application tool bar, which will creates the module pool program.
5) then create one Tcode by chosing "Transaction with parameters( parameter transaction)".
6) in transaction field give "SM30", select the check box "Skip initial screen".
7) in the below of that screen you can find the "Default values" frame.
8) there under the "name of screen field" select the "View name' and 'update".
9) in value column against to "view name" give you table name, and against to "Update" put 'X' in capital letters.
save it then you can straight away use this newly created Tcode to maintain your table.
Note:- 1) make the modification while saving the data into your table using this newly generated program to carry out your validation (even though it looks like standard program; no need to enter the access key).
2) if you do any changes to your table and press the activate button automatically the table maintenace generator will be goes off, you need to create this again.
cheers, -
How to set default value for a drop down in Mobile Application Studio
Hi,
We have a requirement in which for a drop down - Transaction type (Activities), the value should be defaulted to 'Visit' and the Activity Category should be 'Sales Visit'. I tried debugging the code and got the piece of code where this value is referred, but i'm unable to find out the location where this value is picked from. Also while opening up the properties corresponding to this, there is a default value tab in the properties pane. I tried by giving this default value, but didn't work. When I'm trying to revert the changes i've made in the property, it is showing up an error.
Any pointers on this would be of great help.
Thanks in advance,
Rasmi.Hi Rasmi,
You can default the process type field of BOACTIVITY by different ways-
1.In BOL, business object BOACTIVITY loaded event, check the parameter bIsNew and then default the value of process type if you want it only for new activities.
Other attributes currently get defaulted in the attributechanged event of BOACTIVITY where field is processtype.So if processtype is defaulted it will try to default other attributes based on that.It will pick values from the customizing maintained in SPRO->CRM->Transactions->Basic Settings->Define Transaction Type->Customizing Header.
2.You can also do defaulting in the UI.If you want to default one field based on a value selected for drop down, then write the code in the onselected2 event of the drop down.
In your specific case, best way is to use option 1.
Regards
Vivek
Maybe you are looking for
-
How to install or access my adobe cloud account on a different computer
I am trying to access or install my creative cloud account on a different computer that is a mac, I have logged into my account but do not see my applications I am renting on the mac.
-
Adobe Echosign included in Adobe Full CC?
HI all, i was just going through acrobat. Learning how to sign documents etc when I came across Echosign. It's a superb solution. I tried a few documents with friends to see how it works. I am a full cc subscriber but not sure if Echosign is a part o
-
Images in Bridge have suddenly become much brighter than when I call them into Photoshop CS6.
Images in Bridge have suddenly become much brighter then when I call them into Photoshop CS6. My monitor is calbrated.
-
Tax calculation matter - GL a/c with service tax chargeable
Dear Experts, I really do not understand why this happen. Any expert can help me? Thank you. GL posting for C/N issued:- Car Park reversal 129.03 Service Tax 5% 6.45 Total = 135.48 <PROBLEM> Document C/N p
-
Bar graphs not always are updated
I have a report with 12 graphs that have a filter like "timecolumn is within a time interval previous 30 minutes", where timecolumn is of timestamp type. When a new minute arrives and a new record is stored in the DO the graph is not always refreshed