How to fill drop down value in BDC
HI Friends-
AM using PA30 tcode in my BDC recording , its filling rest value but , for drop down values its not showing value .
how i can pass the drop down values here ?
Regards
Meeta
Hi Meeta,
You need to use the function module 'VRM_SET_VALUES' to set values for drop down list.
Refer to the link below for more info...
Re: Populating values in dropdown based on values selected in second dropdown.
Thanks
Alis
Similar Messages
-
I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?
I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.
-
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 -
How to populate Second drop down based on the first drop down value
Hi Experts,
i have a HTML BSP page. with 2 drop down with SELECT and OPTION tags. i need to populate the second drop down based on the first drop down value.
i tried HTMLB script they work good as stand alone when i try to embed the HTMLB with HTML it does not work.
Please can you give me a solution only with ABAP script and HTML.
please clearly let me know on what event i should implement it. sample code is really appreciated .
With regards,
ChellaYou can have event handler for first drop down . Then populate the data for 2nd field when the event triggers on first field.
-
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 -
How to put drop down in table control ?
Hi All,
I m writing one module pool program to edit table.
I want dropdown to one field so that user can select the appropriate value. And also I want to save that record.
So how to get the dropdown list and after editing that record how to save that in the database?
Thanx in advance.
-UmeshHi Umesh,
Please check this demo program RSDEMO_TABLE_CONTROL on how to add drop down list in table control. Also check this program DEMO_DYNPRO_TABCONT_LOOP_AT as well.
To save to database you can code something like this in PAI.
MODULE USER_COMMAND_0100 INPUT.
SAVE_OK = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK.
WHEN 'SAVE'.
MODIFY <database table> FROM TABLE <table control>.
IF SY-SUBRC = 0.
ELSE.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Hope this will help.
Regards,
Ferry Lianto -
Crystal report Chose from List or drop down value in parameter from UDT
Hi Experts,
I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
In parameter had written field as : Code@Select * from dbo. [@UDT] ; but in the report filled I am not able to select the value.
Please Help me ! Thanks in Advance. :HI
Welcome to the Forum...
You cannot put all the values in a single parameter field so you need to select each field for each parameter...
Better you post it in this link for more reponses:
Reporting and Printing -
SCAC Field Should have Drop Down Values and ASN should have Storage locatio
Hi ,
We have a requirement while creating ASN in which we have to add SCAC ID in the SCAC field ( Carrier) this SCAC ID comes in Shipping details - We want to have drop down values in this field and also if we dont enter value in this field An Error Message should come like " Maintain SCAC code.
And also the PO's coming from ECC are not carrying Storage location information - Is there a specific config / enhancement to be done.
And in ASN can we have Storage location ?
Thanks,
MaheshHi Mahesh
Regarding adding fields to UI
Refer below links
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0b0e544-7a06-2d10-539d-f8648358ba67?quicklink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/SCM/SAPSupplyNetworkCollaboration%28SAP+SNC%29
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/908c1e69-0a01-2d10-e7a6-98ca00f19aa6?quicklink=index&overridelayout=true
Not sure how to maintain it as a drop down, a developer could help you easily with that.
Regarding Storage location from PO ECC.
If you are using idocs, the standard SAP xml conversion will not be able to transfer this(if you download standard content)
You can find the field in your IDOC ORDERS05, Data records-Segement-E1EDP01FIELDLGORD
In order to transfer this, you need to rewrite the xml format in integration builder of XI/PI and then add some UI fields in Webui
to show.
But xml PurchaseOrderERPReplenishmentOrderCollaborationNotification as of SAP ECC EHP4 can carry this information in its payload document(SXI_MONITOR---INBOUND MESSAGE ---PAYLOADS) Under the node INVENTORY MANAGED LOCATION
Not sure where this field is mapped to .........
I will let you know once i find........Mean while you can ask any developer who worked on webdynpro .
Yes we can have this field once we find where it is mapping, if you are using idocs then even the XML has to be build in PI
accordingly.
Best Regards
Vinod -
Hi experts,
I want to create a Drop down in forms with values from Web dynpro Abap Node(0..N) and enable / disable other fields based on selected Drop down value. I binded the data source to DD but values are not populated in it. Please help me to fill values and do validation on selected dd value ....
-RKHi RK ,
I made an dropdownlist link with a parameter of the interface without trouble, so i thnik the only way to solve your problem is to populate an internal table which is send to the forms thru the interface.
Hope this help you
Regards -
Drop down values in Adobe print form, WDA.
Hi All,
I would like to know, how we can dynamically display drop down values in an interactive form developed either through report programme or WD ABAP.
I passed an internal table, but it didnt work.
I tried the ISR way, even then i couldnt get much success.
I even tried using the dynamic properties.
As per my understanding, i need to pass the values as index- text pairs and add some script to the field.
Kindly help on the steps i need to follow. Any suggestions are welcomee [:)]. I require to fetch the DDL values from database tables.
Kind Regards,
- anto.hi,
to populate the dropdown list you can do it...
1). manually or
2). by code
1). <b>manually</b> go to interactive form->edit
go to Object tab->field tab ->
you must see something like
List Items :
Text + x
click on the green + sign...
it promps you to type. type in the value press enter... and so on...
2) <b>by Code...</b>
//set up contents of a drop down list dynamically...
IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
getAttributeInfo().getAttribute("DestinationCountry");
ISimpleTypeModifiable countryType =
countryInfo.getModifiableSimpleType();
IModifiableSimpleValueSet countryValueSet =
countryType.getSVServices().getModifiableSimpleValueSet();
countryValueSet.put("1","Germany");
countryValueSet.put("2","UK");
This will work....
regards,
-amol gupta -
Populate Drop down values to Adobe forms
Hello,
I am in the process of developing the HCM forms for PCR's. This is using old technology. How can I pass values to the Adobe forms based on certain condition selected in previous screen. For eg. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen and when the user does a drop down a list of the values should be listed. Where should do the coding for the subsequent drop down values?
Appropriate points rewarded.
PrasadHere a change in the question below. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen from table IT1008
and when job is selected drop down from table T500P should be listed. Does this need to be handled in badi or in the Adove form scripting?
Thanks
Prasad -
How to create Drop down menu in the selection screen
Hi all,
How to create Drop down menu in the selection screen.
Fast answer will be highly rewarded
Regards
Bikashi ,
TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.
DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.
PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
PERFORM get_data.
LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
LOOP AT it_vbap.
WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
ENDLOOP.
*& Form get_Data
text
--> p1 text
<-- p2 text
FORM get_data .
SELECT vbeln
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. " get_Data
regards,
venkat. -
How to add drop down in SAP screen module pool
Hi,
Can you please advise me on how to add drop down in SAP module pool screen (a drop down with fixed set of values).
Thanks
MohitHi,
Hope it helpful.
Refer the Program : rsdemo_dropdown_listbox
Regards,
Venkat. -
Over ride the drop-down value?
Hello,
I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
I have a bunch of drop-downs in my interactive form, done by dragging & dropiing the 'Drop-down list' object, at the end i binded it with some data source, working fine, say its COUNTRY list.
As soon as use opened the form, he saw the 'USA' prepopulated in the drop-down field, fine.
User dropped down the entries, he saw a couple, like USA, Canada, UK, Spain, fine.
But, now user want to enter / override this USA entry with his own value, like FRANCE, but, my form is not allowing, its behaving like a 'readOnly' field!
Pls. let me know how to over ride a entry of drop-down values, as per user wanting value?Hello Srinivas,
You can overide the entry of drop-down list by:
selecting the "Allow Custom Text Entry" box of the field tab of the object palette
of that drop-down list.
Thanks,
Debadas. -
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
Maybe you are looking for
-
How can I use my iMac6.1 as a display for my MacBook Pro
I have a relatively old iMac 6.1 that I would like to use as a diplay for my MacBook Pro: any idea of how I can do that and what connecting cables I would need? Thanks. Vittorio
-
Can I use Time Machine wirelessly to an external hard drive other than Time Capsule?
Since I already have a wireless router, I don't want to get Time Capsule. And since this is a laptop, I would prefer the external device *not* being physically connected to my MacBook Pro. Any suggestions on external hard drives and methods to acco
-
Date column validation in sharepoint 2010 lists (without designer)
Hi, I have a list with a date column which i want to validate against the current date at the item's creation time. When i insert a formula in the validation field, i always get errors. For example, i've tried this: [column name]>TODAY How can i get
-
Solved IOS 6 issue with headphone remote
Upgraded my Iphone 4S to IOS 6 and my Klipsch headphone remot would not work. Volume buttons worked, and the center button would start playing music, but it would not stop or pause the songs. I tried my original Apple earbugs with the remote and di
-
Hi, I have a form draft that is getting an arithmatic overflow error when it opens. The error explanation is due to the formula below. Is there a way to fix this? HIRE.measurementpage.#subform[0].dutyfinalscore::calculate - (FormCalc, client) $ =