Setting Default Values in Search Criteria for COSTCENTER
Hi ALL,
I need Help for setting default values in search criteria for COST CENTER.
Basically the issue is when creating a Shopping Cart, i need to assign a COST CENTER at Item level under COST ASSIGNMENT Tab.
While searching the cost center i need to default the following fields in my search criteria based on the Login User :
1. Controlling Area,
2. Language Key.
Please suggest some solution.
Thanks & Best Regards,
Surya
Hi Vani,
Sorry for the delay reply and Thanks a Lot for your timely support......I would like confirm once again is the name of the BADI is <b>bbp_f4_read_on_exit</b> or <b>bbp_f4_read_on_entry</b>. In this BADI i've not found a method to default Controlling Area. Can you please suggest me which method i can use.
Thanks & Regards,
Surya
Similar Messages
-
How to set default values in initialization event for select option
Abapers,
I have 3 GL account like 0024831231,0024831238,0024831245.
Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
ThanksSelect option is table <Structure> with fields, low, high, sign & option
you need to append the value into the select option, with appropriate value in low or
example:
S_HKONT-low = <value>
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
Default value for select-option also can be added directly in select-option statement.
Regards,
Mahesh -
How to set default value in select option for ABAP query
Hi experts,
What is the way to set up default values for select-options in ABAP query.
e.g.
I have one field 'Year' in my ABAP query selection screen.
I want value of current year to be appeared here whenever user execute report
Thanks in Advance
-HarkamalHi Harkamal,
execute your Query via SQ01. On Selection-Screen
goto save Variant. Mark your field
as selection variable an press Button election variable.
Take variable from TVARV and use it.
Than save the Variant.
Look at TVARV if the 'Year' is updated to the actualYear!
regards, Dieter -
Set default value to selection screen for report
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks. -
Add new dropdown value in search criteria for Invoices
Hello,
I want to add one more value in Drop-Down box of the search criteria of invoices.
As on now there are 2 DropDown boxes
in Your Referance No
in Transaction No
(New)
in Order No (This will have search value as "Sales Order No")
Can anyone tell how to add this inw value?
I have created YDocumentListSelectorForm.java extending DocumentListSelectorForm.
public static final String INORDERNO = "inorderno";
if("inorderno".equals(attribute))
documentListFilter.setId(attributeValue);
YBillingStatusCRM.java is created which extends BillingStatusCRM.class
com.sap.mw.jco.JCO.Function billingListJCO = connection.getJCoFunction("YCRM_ISA_INVOICE_LIST_GET");
if(billingList.getFilter().getExternalRefNo() != null && !billingList.getFilter().getExternalRefNo().equals(""))
importParams.setValue(billingList.getFilter().getExternalRefNo(), "ORDERNO_FROM");
Accessing it in JSP organizer-content-doc-search.jsp
YDocumentListSelectorForm yform =
(YDocumentListSelectorForm)pageContext.findAttribute("YDocumentListSelectorForm");
<option value="<%=YDocumentListSelectorForm.INORDERNO%>" <%=form.isAttribute(form.INORDERNO) ? "selected" : ""%>> New Value</option>
Regards,
Shaun
Edited by: Shaun07 on Aug 5, 2010 7:29 AMHello,
I want to add one more value in Drop-Down box of the search criteria of invoices.
As on now there are 2 DropDown boxes
in Your Referance No
in Transaction No
(New)
in Order No (This will have search value as "Sales Order No")
Can anyone tell how to add this inw value?
I have created YDocumentListSelectorForm.java extending DocumentListSelectorForm.
public static final String INORDERNO = "inorderno";
if("inorderno".equals(attribute))
documentListFilter.setId(attributeValue);
YBillingStatusCRM.java is created which extends BillingStatusCRM.class
com.sap.mw.jco.JCO.Function billingListJCO = connection.getJCoFunction("YCRM_ISA_INVOICE_LIST_GET");
if(billingList.getFilter().getExternalRefNo() != null && !billingList.getFilter().getExternalRefNo().equals(""))
importParams.setValue(billingList.getFilter().getExternalRefNo(), "ORDERNO_FROM");
Accessing it in JSP organizer-content-doc-search.jsp
YDocumentListSelectorForm yform =
(YDocumentListSelectorForm)pageContext.findAttribute("YDocumentListSelectorForm");
<option value="<%=YDocumentListSelectorForm.INORDERNO%>" <%=form.isAttribute(form.INORDERNO) ? "selected" : ""%>> New Value</option>
Regards,
Shaun
Edited by: Shaun07 on Aug 5, 2010 7:29 AM -
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
HenryHi: Ihave find out a solution
Use BADI: BADI_MATERIAL_REF
SPROlogistics 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 and bg color of cross tab cell?
Hi all
Which way can I set default value and background color for a crosstab cell where there are no any data?
I try to pass it in following way
if isnull(CurrentFieldValue) then
But is has no effect.Hi,
If your field is numeric
if currentfieldvalue =0 then cryellow else crnocolor
if the field is numeric but you don't see the 0 check check if : Suppress if zero is ticked in the Number format tab.
Regards -
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,
TomHi 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 -
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 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? -
Setting default value read from user session, for an LOV in Query component
I want to set the default value of a field in VO that participates in a named view criteria and thereby in Query component. That field is configured with an LOV by mean of a view accessor. The values are Y and N and the corresponding display strings obtained from view accessor are true and false respectively.
I am able to set the default value by setting the value of the criteria item corresponding to that field in view criteria. I am setting the value as either Y or N and I am able to corresponding display string as per the view accessor, on the query component when it is rendered.
I want to read the defauilt value from the ADF BC user session and set it as default value. I tried setting the values as "adf.userSession.userData.usageFlag". Iam ensuring that the attribute usageFlag is set before the view activity that has the query component is invoked. But this is ending up showing no default value in the Query component when rendered.
Can any one let me know how to go about with this?I made up your table since you didn't provide some example, but I'm sure this will give you the picture:
SQL> var run_type varchar2(1)
SQL> exec :run_type := 'A'
PL/SQL procedure successfully completed.
SQL> create table my_cycles as select level cycle_id
2 , level cycle_status
3 from dual connect by level <= 5;
Table created.
SQL> select cycle_id
2 from my_cycles
3 where case
4 when :run_type = 'D' and cycle_status = 1 then 1
5 when :run_type != 'D' and cycle_status in ( 2, 3 ) then 1
6 end = 1;
CYCLE_ID
2
3
2 rows selected.
SQL> exec :run_type := 'D';
PL/SQL procedure successfully completed.
SQL> /
CYCLE_ID
1
1 row selected.
SQL> -
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...
-
How to hide PNP selection windows and set default values for PNP.
Hi expert,
I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
Many Thanks,Hi
You have mentioned 2 things.
1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
HR Report Category
2. I want to set default value for some selection items - This you need to achieve in initialization event of your program.
How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
Thanks,
Sreeram -
Extending flash: how do I set default values for filenames
Hi,
I am trying to set default values for filenames
<choosefile> and <popupslider>s that will show up when
my XMLpanel first loads in my jsfl extension file. It seems that I
can only set default values for textbox items.
How do I do this for filenames and popups?
As a workaround, I also tried using a flash object dialog box
to look like a <choosefile>, or any jsfl command, but then
how do I return those values back to the XMLpanel that calls them.
and pass the data back to my jsfl script.
lemme know if you know a way,Create two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
Misha -
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?
ThanksI 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
-
LaserJet Pro M201nw stops responding to ePrint requests a few minutes after connecting to network
I just set up a new LaserJet Pro M201nw and it works great, except for a consistent problem using the printer with ePrint. I was able to set up Web Services on the printer and add it to HP Connected as an ePrint printer. Printing through ePrint and G
-
What is the usage of events like initialization ,start-of-slectio,end-of-selection in a program, what if we write a program with out those events can we use initialization twice in a program like initialization start-of-selection initialization end-o
-
Help with international settings - the menu bar flag is gone!
The flag no longer appears in my menu bar, nor does the "show input menu in the menu bar" check box in the international section of the System Preferences stay checked. I no longer seem able to type in Chinese, which is what I really need to be able
-
Script to check RDP connection status
Hi all, Could anyone provide me a script to check whether multiple remote servers are able to RDP or not. I just want to check the connectivity status. I have checked with past threads available in form, but none has worked for me. Powershell or Batc
-
Can I Install Mavericks Fresh Without USB Flash Drive?
I have a dual SSD+HDD setup and want to do a fresh install of Mavericks. Do I need to produce a USB key like I've done with Lion and M.Lion? Or is there a way to install the OS from iCloud? Can I reboot holding Option key, format both drives and inst