One field value will be populated depending on other field's value
I have two select-options in my selection screen- a)VBAP-VBELN b)VBAP-MATNR.
My requirement is that if i enter Sales Doc(VBAP-VBELN) in first combo ,Material Number combo(VBAP-MATNR)will be populated with Material numbers for that corresponding Sales Doc only. Not all Material number.
Please help.
Hi,
check this example...
REPORT ZTEST_F4HELP .
*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
parameters: p_vbeln type vbak-vbeln,
p_posnr type vbap-posnr.
at selection-screen on value-request for p_posnr.
data: begin of help_item occurs 0,
posnr type vbap-posnr,
matnr type vbap-matnr,
arktx type vbap-arktx,
end of help_item.
data: dynfields type table of dynpread with header line.
dynfields-fieldname = 'P_VBELN'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
others = 11.
read table dynfields with key fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = p_vbeln
importing
output = p_vbeln.
select posnr matnr arktx into table help_item
from vbap
where vbeln = p_vbeln.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_item.
Cheers,
SImha.
Similar Messages
-
I have 3 devices all using the same iCloud account: iPhone 5, iPad 3, and MacBook Pro with Mt. Lion. I want to be able to delete an iMessage on one device and have it automatically deleted from the other devices automatically instead of having to delete the message on all 3 devices. Is this possible? I want it to sync up just like an email account would sync up. Thanks.
You got the gist of it - imessage and email accounts have different supporting "underline". Even some of the mail accounts (POP) do not have that capability. Neither does imessage. What I did is made sure that I receive my imessages to one device only. I do not know if it will work for you. Good luck.
-
Is there a way to delete emails on one device that will transfer to all my other devices so I don't have to delete the same emails on all my devices?
Go to the mailbox tab in the Mail application and selecting "synchronize iCloud". Whenever you delete mail from one of your devices it will automatically delete from the others--within iCloud.
-
How to set default value in one field depending on other field.
Hi,
I have one requirement.That is..One seede page having 2 field, one is Lov Input field and one more message choice filed.
Requirement is after selecting value in Lov input field need to set one default value in to Message choice field. how to do this one.pls send any sample code for this requirement.
Thanks in Advance,
Hanimi...Hi,
I used following code
OAMessageLovInputBean lovbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("AssetNumber");
OAMessageChoiceBean Choicevalue=(OAMessageChoiceBean)webBean.findIndexedChildRecursive("EamWrPriority");
if (pageContext.isLovEvent())
String lovInputSourceId = pageContext.getLovInputSourceId();
if(lovInputSourceId.equalsIgnoreCase("AssetNumber"))
if(lovbean!=null)
String slovVal=(String)lovbean.getValue(pageContext);
String prValue = getPRValue(pageContext.getApplicationModule(webBean).getOADBTransaction(),slovVal);
//String prValue = "1";
Choicevalue.setValue(pageContext,prValue);
}// end of processFormRequest
private String getPRValue(OADBTransaction con,String slovVal)
// System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
String prValue = null;
String sql = "select decode(ml.meaning,'AC1',1,'AC2',1,'AC3',3,'AC4',3,null) from FND_LOOKUP_VALUES_VL ml ,mtl_serial_numbers msi where ml.lookup_type = 'MTL_EAM_ASSET_CRITICALITY' and msi.ASSET_CRITICALITY_code = ml.lookup_code and msi.serial_number = 'slovVal' ; //'30AC-TR002B'"
Statement st = null;
ResultSet rs = null;
try
st = con.createStatement(1);
rs = st.executeQuery(sql);
if(rs.next())
prValue = rs.getString(1);
catch(Exception e)
e.printStackTrace();
finally
try
if(st != null)
st.close();
if(rs != null)
rs.close();
catch(Exception e)
e.printStackTrace();
return prValue;
Query is executing but no value is retuning, if i use hard coded value in where condition like '30AC-TR002B' it is tt's returning value . -
How to populate value in other field after entering in one field?
hi everyone.
when i enter value in one field , automatically some xyz value should be populated in second field. How would this be possible without any enter? I mean i don want to perform any action like press enter or like that.Hello manumb6 ,
You coud also use "TimedTrigger" UI element for the same and you can specify the "delay" value in seconds.
Suppose if you enter x value.
After X seconds it will trigger the particular action associated to UI element.
My suggestion would be that you generate this UI element Dynamically when you expect end user to enter the value in the input field and system would keep invoking the method and as soon as your objective is met, Delete the UI element .
Hope this would help.
Regards
Anurag Chopra -
How to update other field values when one field value is updating
I am creating one ADF page.
In one form suppose there are two fields ->
Bank A/C [a combo box or "select one choice"]
Balance [one Input Field]
Now, when I am selecting one value in "select one choice" it will automatically make a query in database and fetch and show the balance in the "Balance" input field.
How can I do that?
Please note that I have done my development by creating entity object>view object.
I have not used any EJB.Hi,
is it ADF Business Components that your use then or POJOs? In either way, you set the select component's autosubmit property to true.
If using ADF BC you can then create a method entry in the set<attributeName> VORowImpl file of the ViewObject that - whenever a new value is set - looksup the dependent value and sets it - call its set<attribute> method within this method.
Define an ID property on the selectOneChoice component and set the same value to the PartialTrigger property of the textfield that you want to update
Frank -
Populating more than one table and more than one field
I need some suggestions and this forum has always been a great source of good advice.
I have a web form at the following location: http://www.webdevpractice.com/genoptix/CE/register.php
Here's what the web form needs to do:
Send a confirmation email listing seminars the visitor checked on the form.
Create a similar message on a confirmation page.
Populate 2 two tables.
Items 1 and 2 are working fine.
The advice I need is on how to populate two tables in the database.
There are three tables:
ACCOUNTS
account_id
first_name
last_name
medtech_id
job_title
npi
company
city
state
email
phone
contact
ATTENDANCE
attendance_id
account_id
seminar_id
SEMINARS
seminar_id
seminar
speaker_first_name
speaker_last_name
date
The web form contains data that need to go into the ACCOUNTS table and the ATTENDANCE table. The challenge is getting the account_id and seminar_id into the ATTENDANCE table. If all the information was inserted properly, I could write a query that revealed who was taking what seminar.
Inserting data into the ACCOUNTS table is not a problem. I will create another form to insert information into the SEMINARS so that should not be a problem. But inserting the account_id and the seminar_id is what I am wondering about. Also, can more than one record be inserted in a table? If an user checks more that one seminar, each seminar (seminar_id) would need to be inserted in the ATTENDANCE table as separate records along with the account_id. I'm thinking I may have to do this manually. Also, the values for each seminar are their dates and titles. I used these as values to send the confirmations.
I'm just looking for advice at this point. Is this doable?Bregent,
The table I am wondering about is the ATTENDANCE table. There are two fields in addition to the primary key: account_id and seminar_id. The field I am concern with is the seminar_id which comes from a group of checkboxs on the form. So, one form could create several records. For example, presently there are three seminars that are offered. If the visitor selects all three seminars, that would create three records in the SEMINARS table. So, it might look like this:
attendance_id account_id seminar_id
1 1 1
2 1 2
3 1 3
My PHP skills are basic. I've done other forms and use PHP in other ways. But I have never had to populate several rows in one table with an array of checkboxes nor have I be able to find an example of this.
So the advice I am seeking (and perhaps this is premature) is this:
Can one field from a table populate more than one record?
Should I set up checkboxs as a group or individually with a different name?
I am also considering setting up my tables differently so there is a table from each seminar--that may solve my problem. -
How to fill more values in one field (JSP / HTMLX)
When I want to fill one value in a field on a JSP page, I enter:
value="<%=someClass.getSomeValue() %>"
How should I enter more values (e.g. street, city, postal code, country) in one field?
I tried to put those fields together, so I do one getAddress() call, but the output is (initial screen - supposed to be empty) null null null null
When I enter a customer, the field works ok (no null values).
TIA,
MyleneJSP:
<hbj:inputField
id="CustomerAddressInputField"
type="STRING"
maxlength="10"
value="<%=quotationHeader.getCustomer().getAddress().getAddress() %>"
design="STANDARD"
... %>"
getAddress():
@return String (complete address / positioning
pCode unsure!)
public final String getAddress()
return (street + " " + pCode + " " + city + " " + cCode);
This is what returns null null null null
What I want (if possible) is to change the getAddress() in the JSP in subsequent getStreet() - add space - getPCode() - add space - getCity() - add space - getCCode()
That will not result in null values - I hope.
But just putting those calls in the string between the
value ="<%= and the %>" tags doesn't seem to work!
TIA,
Mylene -
SQ01 query, one field not populating in first line, pushing data to next line
Good day all
I have worked with queries for some time and have never encountered this error
I have a few table joins (FAGLFLEXA, BKPF, BSEG, EKKN, SKAT and EKPO), every thing works and displays correctly, except for the one field
EKKN (ABLAD) - Unload Point.
For some reason, when I test the query, it displays correctly with one entry, but as soon as you run the test for more entries, for some reason, the first Unloading point on the report is empty and the value reflects on the next line. If you display the physical documents where the data pulls from, you can clearly see that the entire report pushes down the field to the next line.
For example
Physical SAP Document GL and or PO:
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 26/00/48
SQ01 report (with one line)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 24/59/68
SQ01 report (with more lines)
Year Per Do Document No Profit Account Short Text Merch Amount in Grp Segm Posted on Unload Point
2014 001 XF 40000000000 ABCD 86100 Text ACD 72799.60 11 20140106 2014 001 XD 40000000001 ABCC 86100 Text ACC 18755.50 11 20140108 24/59/68I found the error! The query was written in a certain format. For example it had many fields which was used to populate the data from different tables. The error occured because of the sequence. The query had to bring in a field but it had to derive it from a purchase order, but the purchase order check was after the said field therefor, when it looked at the Purchase Order, it found the field and populated it, but only on the second line. In the first line it couldnt find the Purchase order yet (as EKKO was lower down), so it didnt populate it yet....
SIGH -
How to check whether a field contains at least one numeric value
how to check whether a field contains at least one numeric value..
Hi,
I hope that this code will works.
constants:
c_digit_grp TYPE char11 VALUE '0123456789', " Digit group
* Data Declaration
data :
str type string.
* if you want check entire string and pass entire string
if str CA c_digit_grp.
* write your logic ---this block will execute atleast one numeric value exists in the string
Endif.
Regards
Bhupal Reddy -
Multiple Checkbox Values Into One Field
Hopefully someone can help me with this issue I'm having.
I'm trying to save the values of multiple selected checkboxes into one field separated by commas through ADDT's Insert Transaction code. I can do this easily with DW's standard insert record wizard by using the PHP implode() function but I haven't been able to figure it out with ADDT's code.
<form>
<input type="checkbox" value="1" name="program[]" /> Program One
<input type="checkbox" value="2" name="program[]" /> Program Two
<input type="checkbox" value="3" name="program[]" /> Program Three
<input type="checkbox" value="4" name="program[]" /> Program Four
</form>
THIS IS ADDT'S CODING
$ins_quoteManager->addColumn("programs", "STRING_TYPE", "POST", "programs");
THIS WORKS VIA DREAMWEAVER'S INSERT RECORD WIZARD
Original: GetSQLValueString($_POST['programs'], "text"),
Modified: GetSQLValueString(implode(',',$_POST['programs']), "text"),
Anyone know how to modify the ADDT code with the implode function to get this to work?Have you tried ADDT´s "comma-separated checkboxes" form control, which will also store the values into a field of your choice (and of course retrieve them from there on update record - pages) ? The only possible drawback might be, that the checkboxes can´t be defined statically, means that the array of value/label - pairs will be retrieved from another table by establishing an additional recordset.
Cheers,
Günter -
Move values of one field symbol to other field symbol of different structur
Hi all,
i need to move values of one field symbol to other field symbol of different structure.
I need to perform operations like MOVE-CORRESPONDING on two field symbols of different structure.
How can i achieve this?
field symbol 1 have 2 field and field symbol2 have 4 fields....
Best Regards,
Vijay.Hi,
You can use -
MOVE-CORRESPONDING <struct1> to <struc2>.
In this case it will move the contents of the components from struct1 to struct2 that has identical names.
You can refer this link also-
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm
Regards,
Sujit -
Display value and description of one field in alv grid
Hi Folks,
I want to display value and description of one field as one column in alv grid.
for example iam having Xfield = 01,02,03.
and 01 iam having text value as xxx,
01 xxx
02 yyy
03 zzz
Im report display the values are displaying as 01,02,03..
but i want to display it as 01 xxx,02 yyy, 03 zzz.
Please do needful.
Thx.Hi, swetha
You can do this with "concatenate".
example:
In you code check where you final internal table is getting filled up before that do this concatenate and then append it.
data t_text type string.
t_text = textfield
CONCATENATE 'Xfield'
t_text
INTO wa_workarea SEPARATED BY space.
cheers,
Bhavana -
Hi,
I am trying to find out the latest delivery date(EINDT) for each purchasing document (EBELN) through graphical way.
The view contains other fields apart from the above mentioned two fields.
When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
Hence , please help me in getting the solution while the view contains other fields also.
Thanks in advance.
Thanks,
JyothirmayiHi Sreehari/Vinoth,
Thank you for your replies.
if only two fields are then I can get the max/min values of one field corresponding to other field.
But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
I hope you understood my issue.Please revert in case of questions.
Thanks & Regards,
Jyothirmayi -
How to assign values for more than one field
Hi,
I have written following code
constants: fieldname(30) value '(SAPMF02D)KNA1-AUFSD'.
constants: fieldname1(30) value '(SAPMF02D)KNA1-LISFD'.
constants: fieldname2(30) value '(SAPMF02D)KNA1-FAKSD'.
field-symbols: <L_FIELD> TYPE ANY.
field-symbols: <L_FIELD1> TYPE ANY.
field-symbols: <L_FIELD2> TYPE ANY.
Assign (fieldname) to <l_field>.
<L_FIELD> = 'ZB'. " value according to your requirement
Assign (fieldname1) to <l_field1>.
<L_FIELD1> = 'ZB'.
while debugging <l_field1> is not assinging (fieldname1).
Im able to assing for (fieldname).
how to assign value for (fieldname1).
plz suggest me to assign values for more than one field.
Regards,
BrahmajiHello,
Because there is no field name called LISFD in KNA1. Actually you misspelled the field name.
It is KNA1-LIFSD
Maybe you are looking for
-
I cannot install windows 8.1 on my Envy touchsmart 15 notebook pc
I cannot install windows 8.1 on my Eny touchsmart 15 notebook pc. My current operating system is win 8. After going throught the setup and about 35% of the drivers load, I get a black screen and the install quits. I have left it on all night and sti
-
Error In Exportting Excel by XML.
Hi All, I want to export program to Excel. I use XML. In the Program not all error but when I print to be error. Log fie always raise: "XML PARSE ERROR: Missing end-tag Error occurs at or below this element stack: <ss:Workbook> <ss:Worksh
-
JMS receiver adapter supports SSL??
Hi We have a interface in our project which uses JMS adapter and to make it secured communication , we are requested to use SSL. Can anyone please suggest if JMS receiver adapter supports SSL. If no possible, coould you please let us know any other a
-
I have the ipod touch newest edition and downloaded ios8 on it yesterday. It worked great no issues all day and today. twenty minutes ago i was in my car listening to music played fine. Got home and put my ipod in my purse. When i got back in the hou
-
Can't get the "Email Me" button to work
I added an "Email Me" button on my web site but when you click on it, it does not put my email address in the "To" section. How do I get this to happen automatically? * My web site is posted to a web host (not Mobile Me) * I already created an email