Configuring drop down value for product type.
Hi All,
By default we get two values as the product type while creating a shopping cart.
These values appear in drop down as 'Material' & 'Service'.
My requirement is only to keep 'Material' in the drop down.
Please show me some way to do that.
Thanks & Regards
Archana
Hi,
Instead of chnaging the dropdown values for the field "product type",you can simply implement the BADI "BBP_DOC_CHECK_BADI" to restrict users from creating a service Shopping cart.In the BADi,check the field product type value.If "02"(Service),display error message.
BR,
Deepti.
Similar Messages
-
Set default value for product type
I want to set default value in product type drop down box
in component PRD01QR.
view SearchHelp.
I tried with setter and getter , but not working
they are using query string.Hi,
You can achieve this by redefining the method GET_VH_PRODUCT_TYPE() in IMPL class of searchHelp view. Just copy paste the implementation of this method from super class and now control the internal table as per your requirement like
comment out the line APPEND INITIAL LINE TO lt_ddlb. (line no: 47)
as it will add an empty line at the starting of internal of product type values which you dont want. In you case there should be some default value for product type field, so arrange the inetrnal table values according to you requirement and what ever value you want to default for product type that should be the first value in the drop down without empty line and add an empty line at the end of the internal table.
No need to call super->GET_VH_PRODUCT_TYPE() in your implementation as you have written all the required code in your implemenation itself.
Hope this would help you!
Regards,
Ajay -
SRM 4.0- How to set the default values for product type (01) only for SC
The radio button Service should not be visible.
Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
How to set the default values for product type (01) only for SC
We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
Here we can set defalut value 01 but it is not correct one since same search help is using several places.
We need to limit the search help results only for SC.
Kindly help out me ASAP.The easiest way to set defautl values is to edit the batch class.
Goto the characteiristic and go to update values.
In here you probably have something like 0 - 100 as a spec range.
On the next line enter the default value within this range. At the end of the line, click in the box in the column labelled "D". This indicates the defautl value for the characteristic.
If you need to you can do this in the material classification view as well.
Just to be clear, these values will only show up in the batch record. You can not have defautl values in resutls recording screens.
FF -
Drop down values for table in a view not getting populated dynamically
Hi Experts,
The problem which i am facing is as follows
In an existing web dynpro component , i already have a view and it consists of table which has 3 columns.All the three columns are non editable
MATERIAL MAT_DESC MAT_DEL_FLAG
ABC
EFG
HIJ
Now i need to add 2 more columns after the MAT_DEL_FLAG.These two PLANt and STORAGE LOCATION columns must have drop down values
The context refers to a standard Database ZTABLE to which these two fields are added.
MATERIAL MAT_DESC MAT_DEL_FLAG PLANT STORAGE_LOCATION
ABC
EFG
HIJ
The Plant column must have the drop down values based on Material .
If we select some value for Plant , then based on the value of plant the storage location drop down values must be populated.
So as per this logic , the drop down values for plant for each row must be different.
Please let me know how to achieve this.
This is a normal table and not an ALV table.
Also please let me know whether the drop down field must be drop down by key or drop down by index.
This is very urgent.
Thanks in advance
SindhuRefreshing things again for you -
1. As I have already pointed, create 2 context attributes for VALUESETS for both plant and St.loc.
2. Create dropdown by indexes for both of them, assign valusets to respective attributes using node information.
3. Go to the plant dropdown and create the action for it ONSELECT event - when you chagne the dropdown of plant then populate the respective storage loc.
4.Now, As you are selecting a row (leadselect) you have populated the plant and loc details....write the code for lead selection event of the table
You will get the lead selection index right using node interface (IF_WD_CONTEXT_NODE)
LOOP AT ITAB INTO WA_ITAB.
if sy-tabix eq lv_lead_index.
clear wa_valuset.
wa_valueset-key = 'X'. "plant
wa_valueset-value = 'X'.
append wa_valueset to it_valueset1.
* popultae the storage location valuset based on the plant selected (bydefault it is 1 right in dropdown)
clear wa_valuset.
wa_valueset-key = 'XX'. "storage loc
wa_valueset-value = 'XY'.
append wa_valueset to it_valueset2.
else.
* Fill the valusets for all other rows as different or as per your requirement.
endif.
wa_itab-valuset1 = lt_valueset1.
wa_itab-valuset2 = lt_valueset2.
modify itab from wa_itab transporting valuset1 valuset2.
clear wa_itab.
ENDLOOP.
lo_node->bind_table ( it_tab).
Now for that Row, if a plant value is changed, respective storgae loc has to be filled right...then in that ONSELECT of plnat drodpwon again you need to write a piece of code...using the same code with a little modifications.
Hope this is clear.
Check this article on the same - but here ALV is used...the concept is same use it for your table -
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cbdde3-fe58-2c10-fcbc-8db18e693877?QuickLink=index&overridelayout=true
the above code you hvae pasted - i think it fills only for the 1st time....
Regards,
Lekha.
Edited by: Lekha on Dec 20, 2011 12:00 PM -
Drop down Values in Adobe form
Dear All,
Greetings.
I am using the Adobe interactive form for E Recruitement(copying the standard and changing it as per the requirement). When i am using the Drop down value for one of the field. Instead of the drop down its showing as a POP-UP with all the possible values.
I am not able to predict what the problem is. I need to have a drop down, instead of the pop up.
Please help me in solving the issue.
Thanks
Ram MHi Ram,
Please use a Enumerated Drop down list ffrom the library, seems currently you have Extended Value selctor in your form.
This will hopefully resolve the issue.
Regards,
Arafat -
Retrieving the drop down value used in wdr_select_options for default
Hello Experts,
I populated drop down using the method add_parameter_field by using WDR_SELECT_OPTIONS component.
Now my requirement is I need to default the value in some other parameter field based on drop down selection value.But the problem is WDDOMODIFY method is not triggreing while selecting the value from this dropdown for defaulting the value and even there is no method or option in the interface if_wd_select_options for creating an action while selecting the drop down like on slect in our manually creation drop down.
Please let me know if there is any solution for this.
Thanks and Regards,
VenkatHi venkatesh,
The eventhandlet ONENTER of WDR_SELECT_OPTIONS wont work for the drop down and also
there is no ONSELECT event of drop down in select options.
So i think there must be some kind of button action.
As you told you need to default the value of selection screen field based on drop down selection
why dont you remove that field from selection screen as you can however use the value later
while executing depending on drop down value. -
Technical names for drop down values through webui
Hi All, I have ECC 6.0 (SAPKH61705) transactions being launched in CRM 7.0 (SAPKU71305) through the transaction launcher. We are able to display technical names for values in ECC through the gui, and in CRM in both the gui and webui. Is it possible to display the technical names for ECC through the webui? Apologies if this is not the correct forum, I was not sure where to post. For further clarification of the issue, I hope these screen shots assist: ECC gui with 'display technical names' activated: qui - tech names on.jpg CRM webUI with 'display technical names' activated in both ECC and CRM: webui - tech names not visible.jpg Assistance appreciated.
Hi Amy,
Yes, it's possible.
You can achieve it by coding. Instead of passing only the description to your drop down values, we can send technical name and description simultaneously to your drop down value. That's it.
BR,
RAM. -
Help needed to create drop down list for a field.
Hi,
I have to create a parameter/select-options on the selection screen having drop down values and also having multiple selections allowed.
Please help me to attain this functionality.Its urgent.
Thanks,
Sandeep.Hi,
Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
REPORT ZLIST.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = 'LINE 1'.
APPEND VALUE TO LIST. VALUE-KEY = '2'.
VALUE-TEXT = 'LINE 2'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM. -
Default Value for Order Type based on Company Code in ME21N
Hi,
Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.
Thanks in Advance.Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN
View the interface documentation in transaction SE19 and you will see the method OPEN can be used :
2. Opening of a purchase order (OPEN method)
The system opens a new document to create, change or display a purchase order. With the OPEN method,
<b>you can import your own data and prepare it for further processing.</b>
This is available in 4.7 Enterprise but not sure how far back.....
hope this helps
Colin. -
We have three drop downs (ddlRotation, ddlOnCallType and ddlHospital) in our webpart. All values are being populated dynamically. One from list (ddlHospital) and other from tool part properties. For dropdown populated from list, we are storing values in
View State.
WebPart is working fine in development environment (single machine) while on production ( 1 front end, 1 index and 1 db server), drop down values disappear after post back. Below is the code.
protected void Page_Load(object sender, EventArgs e)
try
if (!Page.IsPostBack)
LoadData();
if (!string.IsNullOrEmpty(webPart._rotationDetail))
ddlRotation.Items.Add(new ListItem("All", "0"));
int i = 1;
string[] strRotationDetail = webPart._rotationDetail.Split(':');
foreach (string str in strRotationDetail)
ddlRotation.Items.Add(new ListItem(str, i.ToString()));
i++;
if (!string.IsNullOrEmpty(webPart._onCallTypes))
ddlOnCallType.Items.Add(new ListItem("All", "0"));
int j = 1;
string[] strOnCallTypes = webPart._onCallTypes.Split(':');
foreach (string str in strOnCallTypes)
ddlOnCallType.Items.Add(new ListItem(str, j.ToString()));
j++;
catch (Exception ex)
private void LoadData()
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite spSite = new SPSite("SITE_URL"))
using (SPWeb spWeb = spSite.OpenWeb())
SPList oList = spWeb.Lists[webPart.destListName];
SPListItemCollection setuplistItems = oList.Items;
if (setuplistItems != null && setuplistItems.Count > 0)
DataTable dtSetupData = setuplistItems.GetDataTable();
if (ViewState["SetupData"] != null)
ViewState.Remove("SetupData");
ViewState.Add("SetupData", dtSetupData);
else
ViewState.Add("SetupData", dtSetupData);
LoadHospitalCombo();
dateControl.SelectedDate = DateTime.Now;
else
// some error message
private void LoadHospitalCombo()
if (ViewState["SetupData"] != null)
DataTable dt = (DataTable)ViewState["SetupData"];
DataView dv = dt.DefaultView;
ddlHospital.Items.Clear();
ddlHospital.DataTextField = "TITLE";
ddlHospital.DataValueField = "TITLE";
ddlHospital.DataSource = dv.ToTable(true, "TITLE");
ddlHospital.DataBind();
ddlHospital.Items.Insert(0, "All");
Any help?
http://farhanfaiz.wordpress.comRunning your code in try/catch and doing nothing on exception, is not a good idea. Please try to put logging in your code as I believe your code is throwing exception. It's difficult to say seeing such a code what's wrong. Maybe the list doesn't exist or
exists with different name/title, or viewstate is disabled or webpart properties are not populated... there's so many possibilities. Also if possible refactor your code as shown below:
//Your Code, you are loading all items from database and then counting it
SPListItemCollection setuplistItems = oList.Items;
if (setuplistItems != null && setuplistItems.Count > 0)
//Refactored Code
if (oList.ItemCount > 0)
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com -
Drop down box for the selection screen field of the classical report
Hi all.
i want to have the drop down list to choose from, for the region(table:zbwcntry-field:zregion1) on the selection screen.
what is to be added to the code for this requirement.Also,please note that this is the classical report.
thanks for this answered.hi,
data : gv_name TYPE vrm_id, " used for vrm id
gv_repid TYPE sy-repid, " used to hold program name
work area to provide drop down list
DATA : gs_value TYPE vrm_value,
Internal table to provide drop down list
DATA : gt_values TYPE vrm_values,
PARAMETER : p_run(12) TYPE c AS LISTBOX VISIBLE LENGTH 12
DEFAULT 'DEFAULT' OBLIGATORY,
CONSTANTS : gc_run(5) TYPE c VALUE 'P_RUN', "constant for run mode
gv_name = gc_run.
gs_value-key = gc_v1.
gs_value-text = text-010.
APPEND gs_value TO gt_values.
gs_value-key = gc_v2.
gs_value-text = text-011.
APPEND gs_value TO gt_values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = gv_name
values = gt_values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope this is helpful.
Rgds.,
subash -
Drop down list for a field in table maintainance
Hi,
I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
Thank you,
Regards,
Kusuma K.TYPE-POOLS: vrm. Include this in your program
DATA: l_name TYPE vrm_id,
l_list TYPE vrm_values,
l_value LIKE LINE OF l_list.
LOOP AT it_paym INTO w_paym.
l_value-key = w_paym-pay_method.
l_value-text = w_paym-text.
APPEND l_value TO l_list.
ENDLOOP.
l_name = 'Table-field'. change it as per your requirement this has to be perfect
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = l_name
values = l_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope it helps you,
Abhijit G. Borkar -
Drop down required for select-options
drop down required for select-options as displayed in VT01N 'shipment type'.
Hi
Check out..this example
data: i_value TYPE vrm_values,
wa_value LIKE LINE OF i_value.
PARAMETERS : p_field TYPE dd03l-fieldname AS LISTBOX
VISIBLE LENGTH 80 OBLIGATORY.
INITIALIZATION.
*-- Populate List Box
*-- TEMKSV - Legacy Value
wa_value-key = 'TEMKSV'.
wa_value-text = 'Legacy Key'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
*-- Installation
wa_value-key = 'INSTLN'.
wa_value-text = 'Installation'.
APPEND wa_value TO i_value.
CLEAR: wa_value.
Setting the selection
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_FIELD'
values = i_value.
Patil -
Drop Down value missing in MSA
Hi Experts,
I am not getting dropdown values(combo values)in fields for Transaction Type OPPORTUNITY in Mobile Sales Application Client. Does any know as what could be the problem as we we create and replicate opportunity from CRM enterprise.
Also while ceating Visit Planning in MSA we are not getting drop down values in field STATUS
Please help & Thanks in Advance
Regards,
Rahul
Message was edited by: Rahul Jagani
Message was edited by: Rahul JaganiHi Rahul,
You probably haven't downloaded all the customising to your mobile client. You need to assign the customising subscriptions to your site after you have done an initial load to the CDB.
Suggest following the best practice guides.
Cheers
Andrew -
HCM F&P - How to set the field as Required based on drop down values
Hi Experts,
I have a requirement to set the Date field as mandatory when a particular value is selected in drop down list. I have already tried with MessageBox though it displays the error message but process moves further i.e. on clicking Check & Send button it throws an error message but still it moves further and i can see only Send button. Ideally it should halt there itself.
Thanks & Regards,
Jitesh TalrejaThanks for your valuable inputs
Chintan
I have already tried this. It only highlight the field with the red border but still allow to move further.
Mukesh
Yes, we can definately control this from the backend but that would be the last option i should execute. Ideally, this is something to be controlled in front end itself
Poornima
By setting the field attrbiute Required will set the field mandatory as a whole irrespective of drop down values or any other UI element.
Regards,
Jitesh Talreja
Maybe you are looking for
-
How to use lightroom with desktop PC and mobile with MacBook Pro ?hav
At home I have a desktop PC with all my lr files stored on NAS drive I want to be able to access and edit on macbook when away from home. 1 Is it possible or do I need a Mac pc or change laptop to windows based ? 2 do I use remote access to NAS or us
-
Task Scheduled Start Date with RAPI
Task Scheduled Start Date with RAPI Is it possible to have a scheduled start date for a task in a service that is generated by RAPI, and, which does not have any authorizations/reviews? RAPI seems to throw the request into the service delivery moment
-
Want help in rdesktop software
friends i want help in installing the rdesktop software plesae tel me the guid of installing rdesktop software . where i can find the rdesktop installation guid regards Asif
-
Tmadmin in unix script not executed in cron
Hi, I have a script in HP UX that is using tmadmin and pclt to know the no of users that are currently using the system. Let me call this script as myscript.sh. #!/bin/sh count = ' echo pclt | tmadmin | grep <search string> | wc -l ' echo $count When
-
hi,im new user here.....im also a new java user.......i've just learn how to connect java with mysql,so i download the driver MySQL Connector/J 5.0 after that,i mport the library to JBulider X.then i got error with my script. package database; import