How to map two fields to one field
Hi, All,
I have three datastore objects (three data fields): Year, term, and period key. Their relationship is like this:
If year = 2010, term = '010', period key will be "1010". In selection screen, I want users to input year (2010) and term (010), but get the report with period key = '1010'. Does anybody can tell me how to do that?
Thanks.
Marea
Hi,
Here two options as our experts said through customer exit
By creating the project with ompnets EXIT_SAPLRSAP_001
Then write code when first two varibleas are entered means ( user entry varibles year and term) then execute the third varible period key
for that a smaall code is required u can write it .
when the customer exit varibles executes it fetches data form bith user entry varibles and update last 2char from year and last 2 char from period that is concept u can ask ur abaper fro small help.
If not
if you are willing to do at tranformations level just add one more field as period key and activate it ,in transformations level u can assign both year and term to period key and write a small routien as below
result = source_fields-year 2(4) + source_fields-term1(3).
choice is urs as per ur flexibility u can aceive the above requirement.
Thanks & Regards,
sathish
Similar Messages
-
When designing, how do I copy more than one field at a time?
How do I copy more than one field at a time?
Hi,
You can use the Ctrl or Shift modifier keys to select multiple form items. Ctrl+click toggles the selected state of the item. Shift+click selects a range of form items.
Regards,
Brian -
How to add two zeros end of field
how to add two zeros end of field?
Hi srinu,
If it's a number field, then just multiply by 100.
If it's a string, then just use CONCATENATE and add the '00' to your existing string.
Hope this helps.
SL -
Copy text from multiple fields to one field
I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.
So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.
var parent = this.getField("everything");
var array = everything.getArray();
var v;
for(parent=0; parent<array.length; parent++)
v = a + " " + v; //Im guessing this line is incorrect
parent.value = a;
Any suggestions? or a better way of doing this.
ThanksThe code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
http://forums.adobe.com/message/2954517#2954517
Paul -
How to put two ipods on one computer
how to put two ipods on one computer
Set up the second exactly the same way as you set up the first. If iTunes is already installed, it doesn't need to be installed again.
(64746) -
How to sync two IPhone with one PC , but with different applications
How to sync two IPhone with one PC , but with different applications ?
We have two IPhones , but one PC , we want to sync separately , is that possible ?Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.
-
How to set two radius servers one is window NPS another is cisco radius server
how to set two radius servers one is window NPS another is cisco radius server
when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
i can not use both at the same time
radius-server host 192.168.1.3 is window NPS
radius-server host 192.168.1.1 is cisco radius
http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
conf t
no aaa authentication login default line
no aaa authentication login local group radius
no aaa authorization exec default group radius if-authenticated
no aaa authorization network default group radius
no aaa accounting connection default start-stop group radius
aaa new-model
aaa group server radius IAS
server 192.168.1.1 auth-port 1812 acct-port 1813
server 192.168.1.3 auth-port 1812 acct-port 1813
aaa authentication login userAuthentication local group IAS
aaa authorization exec userAuthorization local group IAS if-authenticated
aaa authorization network userAuthorization local group IAS
aaa accounting exec default start-stop group IAS
aaa accounting system default start-stop group IAS
aaa session-id common
radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
privilege exec level 1 show config
ip radius source-interface Gi0/1
line vty 0 4
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
line vty 5 15
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
end
conf t
aaa group server radius IAS
server 192.168.1.3 auth-port 1812 acct-port 1813
server 192.168.1.1 auth-port 1812 acct-port 1813
endThe first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on.
If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs.
I hope this helps!
Thank you for rating helpful posts! -
Select a number of fields between one field and another
Hello,
Is there any way to make a SELECT to show a number of fields between one field and another,
without writting all the fields one by one ?
For example, I have one table with these fields:
TABLE EMPLOYEE:
ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
write in the SELECT all the fields one by one.
Is this possible?
Thank you very much.
Sorry for my english it's not very good.Swam wrote:
Hello,
Is there any way to make a SELECT to show a number of fields between one field and another,
without writting all the fields one by one ?
For example, I have one table with these fields:
TABLE EMPLOYEE:
ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
write in the SELECT all the fields one by one.
Is this possible?
Thank you very much.
Sorry for my english it's not very good.If you use the DBMS_SQL package to execute your query you can reference the columns by position rather than name.
One examples of using DBMS_SQL package:
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
3 cols DBMS_SQL.DESC_TAB;
4 ncols PLS_INTEGER;
5 v_min_col NUMBER := 2;
6 v_max_col NUMBER := 4;
7 v_val VARCHAR2(4000);
8 v_bindval VARCHAR2(4000);
9 v_ret NUMBER;
10 d NUMBER;
11 BEGIN
12 -- Parse the query.
13 DBMS_SQL.PARSE(cur, 'SELECT * FROM emp', DBMS_SQL.NATIVE);
14 -- Retrieve column information
15 DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
16 -- Display each of the column names and bind variables too
17 FOR colind IN v_min_col..v_max_col
18 LOOP
19 DBMS_OUTPUT.PUT_LINE ('Column:'||colind||' : '||cols(colind).col_name);
20 DBMS_SQL.DEFINE_COLUMN(cur,colind,v_bindval,4000);
21 END LOOP;
22 -- Display data for those columns
23 d := DBMS_SQL.EXECUTE(cur);
24 LOOP
25 v_ret := DBMS_SQL.FETCH_ROWS(cur);
26 v_val := NULL;
27 EXIT WHEN v_ret = 0;
28 FOR colind in v_min_col..v_max_col
29 LOOP
30 DBMS_SQL.COLUMN_VALUE(cur,colind,v_bindval);
31 v_val := LTRIM(v_val||','||v_bindval,',');
32 END LOOP;
33 DBMS_OUTPUT.PUT_LINE(v_val);
34 END LOOP;
35 DBMS_SQL.CLOSE_CURSOR (cur);
36* END;
SQL> /
Column:2 : ENAME
Column:3 : JOB
Column:4 : MGR
SMITH,CLERK,7902
ALLEN,SALESMAN,7698
WARD,SALESMAN,7698
JONES,MANAGER,7839
MARTIN,SALESMAN,7698
BLAKE,MANAGER,7839
CLARK,MANAGER,7839
SCOTT,ANALYST,7566
KING,PRESIDENT,
TURNER,SALESMAN,7698
ADAMS,CLERK,7788
JAMES,CLERK,7698
FORD,ANALYST,7566
MILLER,CLERK,7782
PL/SQL procedure successfully completed.
SQL>Of course, if you were going to do this properly you would bind the correct datatypes of variables based on the types of the columns (the type information is also available through the describe information) -
How can update two rows in one query?
How can update two rows in one query?
Edited by: OracleM on May 4, 2009 12:16 AMWhat do you mean with "two rows"? May be two columns??
If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Query: How can I combine several fields to one field
I have this Query:
SELECT T0.[Cardname], T1.[Street], T1.[ZipCode], T1.[City], T1.[Country] FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.[CardName] Like '%[%0]%'
I have two questions on it:
1) Now I get two lines with the same results because each BusinessPartner has a billing-address and a shipment-address. How can I get one result with only the shipment-address fields.
2) When I run this query as a Formatted Search on an addressfield I only get the first field (= CardName) in the Addressfield. How can I get Cardname, Street, Zipcode, City and Country in ONE field (ic Address2)?Answer -1
T1.AdresType = 'S' for ship to address
T1.AdresType = 'B' for bill to address
SELECT T0.Cardname, T1.Street, T1.ZipCode, T1.City, T1.Country FROM OCRD T0 INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode WHERE T0.CardName Like '%%[%0]%' AND T1.AdresType = 'S'
Answer-2
Modify this query
Select T1.Address + Char(12) + T1.ZipCode + Char(12) + T1.Street + Char(12) + T1.Block +Char(12) + T1.City + Char(12) + T1.County + Char(12) + T1.ZipCode
FROM CRD1 T1 INNER JOIN OCRD T0 ON T0.CardCode = T1.CardCode
Where T1.AdresType='S'
Hope this solves problem.
Edited by: Jeyakanthan A on May 28, 2009 1:45 PM -
Get value of two fields into one field
Hellou,
i need little help with javascript again
Currently i'm using code below to get value from one field to other:
getField("Text35").value = getField("Text1").valueAsString;
Now i'm wondering how to change this code, so i could get values from two fields into one. For example i have field "firstname" and field "lastname", now i want to show this in field "name".
Example, if field firstname have value John and field lastname value is Doe, i want to show it in field name like "John Doe".
I hope that u understood what i want
Thanks for helping me!getField("Text35").value = getField("Text1").valueAsString + " " +
getField("Text2").valueAsString; -
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 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 -
How to group by more than one fields in crystal reports
Hi
How to create groups in crystal reports by more than one fields, like
select fields,aggregate functions from table group by a,b,cNot sure if I understand your question, but you you could create a formula to generate the string of data you want to group on. Then simply create a group based on the formula field.
For example, your formula could do something like (assuming all String fields):
{table1.FirstName} + {table1.LastName} + {table1.DateOfBirth}
, and then group on this formula.
-MJ -
Comparison of two structures excluding one field
Hi,
I need to make comparisons of two complete data structures, excluding from the comparison one field that should not be compared or considered to obtain a result of equality of both structures.
Somebody know a sentence or practical way to make this comparison (with one field less)?
Example:
DATA: im_data_new TYPE mereq_item,
im_data_old TYPE mereq_item.
Both structures has 146 fields, and I need to exclude from the comparison the 64th field.
Thanks in advance and greetings,
Mayra.clear that field value in old and new before comparing the structures.
Thomas -
Joining Two Fields Into One Field for a View
I am trying to create a view based off of multiple tables.
I have all of the joins and everything done nicely and working properly.
However, when I get to this one step, that's when I start running into problems.
I just want to join (or concatenate) two fields together with a period character in between them.
For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
When I try to join them together, the problem comes up with the period character.
A sample code of what I have done is here:
BEGIN
EXECUTE IMMEDIATE 'create view VIEW_LALALA
as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
END;832667 wrote:
I am trying to create a view based off of multiple tables.
I have all of the joins and everything done nicely and working properly.
However, when I get to this one step, that's when I start running into problems.
I just want to join (or concatenate) two fields together with a period character in between them.
For example, if I take FirstName and LastName, then I want them to become one field called Name, appearing as "JOHN.DOE"
When I try to join them together, the problem comes up with the period character.
A sample code of what I have done is here:
BEGIN
EXECUTE IMMEDIATE 'create view VIEW_LALALA
as SELECT t1.FirstName + '.' + t2.LastName as Name, t1.something as Something, t2.ooo as OOO
FROM (tableFirstNames t1 inner join tableLastNames t2 on t1.nameID = t2.nameID)
END;to concatenate two string together do not use "+", but "||"
SELECT FIRST_NAME||'.'||LAST_NAME FROM EMP;
Maybe you are looking for
-
My IPhone 1 says i have to sync it to itunes, so when i do that it says" I have to type im my passcode and i dont know where to type in the code, the screen only says slide for emergany call, an i in a circle that when u hit that it says codes for- i
-
Additional field required in QA32 -to assign the inspection lot - Inspector
Hi. need an additional field in QA32 to allot the Inspection lot generated to the Inspector for the purpose of rating the inspectors by running a report. Also needs to appear a drawing document number against the respective inspection lot which shou
-
Uninstall windows XP from iMac running Mavericks
I wish to uninstall windows XP service pack 3 from my iMac running Mavericks I have removed all I can see but it still appears to be in the back ground any help please
-
The iphone 4 only rings once?
the iphone 4 only rings once . before it was OK Can somebody thell me how to fix this?
-
Hi All, I have a requirement where I need to update Country, Address, State and City information on the site level. I was seeing help about the API HZ_CUST_ACCOUNT_SITE_V2PUB.update_cust_acct_site but it does has no column like Country, address etc.