Filter data based on the value of sorce field in mapping
Hi,
I have a scenario (IDOC to file) where i have to move data to target file, only when one of the source fields has particuler value. Otherwise skip the record, no need to write into output file.
Please let me know how to handle it in mapping, without BPM.
Karthik,
Ofcourse there is no need of BPM, You can use the IF without Else function in your mapping with using Equals function.
Example:
Field1 ---> Equals (Particualr Value) -
> IF -
> Then -
> pass it to Target field.
Since there is no Else option, therefore whenever condition will fail, nothing will be passed to the target field.
Regards,
Sarvesh
Similar Messages
-
F4 help based on the Value in other field
Hello
I have a requirement in which there are two fields say field1 and field 2 in an ALV grid (in which new data can be entered). The F4 help of field 2 should be based on the value the user enters on field1.I have checked out the BC_ALV* programs but there are no clear help .
I have tried setting the parameter id of the first field value and then get that parameter id on_f4 event of the second field.But where can i set the parameter id of the first field . on_f4 of first field does not have its value and there is no event after_f4 . There is a parameter e_afterf4 in data change event but to tirgger that there shud be some event right.
Moreover If at all i get the first field value , i can use FM F4_int_table_value_request to show the refined f4 in field 2 . But I am passing the a field symbol table in my grids set table for first display . what can i pass as parameters here to the FM F4_int_table_value_request?hello Kallu ,
gt_f4_wa-getbefore = 'X'. --->refreshing layout before F4
gt_f4_wa-chngeafter = 'X'--> refreshing layout after f4.
see the sample code of F4...no need to pass dynpro details.....
*---locals.
data: lt_return type table of ddshretval,
ls_return type ddshretval,
begin of lt_kostl occurs 0,
kokrs type kokrs,
datbi type datbi,
bukrs type bukrs,
prctr type prctr,
end of lt_kostl,
ls_f4 type lvc_s_modi.
field-symbols: <ls_wa> type any,
<t_f4> type lvc_t_modi.
*---get defalut values.
refresh lt_kostl.
select kokrs
kostl as prctr
datbi
bukrs
from csks
into corresponding fields of table lt_kostl
where kokrs eq g_kokrs
and datbi ge sy-datum
and bukrs eq yfit_00049-bukrs.
*---call fm to display int values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'YFIT_00050-PRCTR'
window_title = 'Profit Center list'
value_org = 'S'
display = space
tables
value_tab = lt_kostl
return_tab = lt_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
read table lt_return into ls_return
with key fieldname = 'F0004'.
if sy-subrc eq 0.
assign er_event_data->m_data->* to <t_f4>.
ls_f4-fieldname = e_fieldname.
ls_f4-row_id = es_row_no-row_id.
ls_f4-value = ls_return-fieldval.
ls_f4-error = space.
ls_f4-tabix = space.
ls_f4-style = space.
ls_f4-style2 = space.
ls_f4-style3 = space.
ls_f4-style4 = space.
append ls_f4 to <t_f4>.
endif.
endif.
er_event_data->m_event_handled = 'X'.
regards
Prabhu -
ADF Table cell color based on the value in that field
Dear All,
I want to create a table for our new application which contains a table used to represent the data in a chart format or matrix format,
and each cell of the table should be filled with a colour out of three colors, based on the value belongs to which range eg:(1-8 ->green, 9-20 - yellow etc),
I dont know how to implement this. Please help...
RanjithCheck this out.
How to highlight ADF table row based on column value?
-Arun -
I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
- tried checking the value of the other field for null - doesn't work
- tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
What am I missing?Hi.
Try this in the originating sub form referring to the text field (X).
if (this.rawValue = 1)
X.presence = "visible";
else if (this.rawValue = null)
X.presence = "hidden"; -
Sorting an ArrayList based on the value of a field in one of the objects.
Hi,
I have the following problem:
A server app returns an array list of simple objects with a bunch of fields.
One of these fields is an int.
How do I go about sorting the list based on the size of the int?
Thanks in advance!Thanks a lot.
The Comparator solution is actually ridiculously simple.....
public class MyComparator implements Comparator {
public int compare(Object o1, Object o2) {
if (Integer.parseInt(((ZMData)o1).getAantalposts())>Integer.parseInt(((ZMData)o2).getAantalposts())) {
return 1;
if (Integer.parseInt(((ZMData)o1).getAantalposts())<Integer.parseInt(((ZMData)o2).getAantalposts())) {
return -1;
return 0;
}Thanks again. -
Fields required based on a value in another field
Hi,
I am looking to have fields required (Annual Revenues and # of Employees) based on the value of another field (Ownership). Basically, if the value is Public the user is required to enter the Annual Revenue and Employees fields. I thought about using dynamic layouts but the only key field for Accounts is Account Type.
Thanks,
CarynHi Caryn!
I think it is not possible for making #Employees and Revenues required depending on Ownership(as it is a look up field).. it should be possible if you want to do it on any other criteria other than ownership by just renaming the Account Type, Disable all the values of Account Tyope add new values to Pick List and make it driving picklist upon your requirements..
If you require Account Type, create a custom picklist "Account-Type" and add the values. -
Is there an easy way to filter a 2-d array based on the values of two of the fields?
Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
TimeStamp Ident Frame Type Bytes Data
10:57:07.621 3AD00016 CAN Data Frame 8 0000000000000000
10:57:07.622 3AD00017 CAN Data Frame 8 000005E000000000
10:57:07.624 3AD00018 CAN Data Frame 8 0000000003300000
10:57:07.625 2DC00000 CAN Data Frame 8 0000000000000000
10:57:07.626 3AD00019 CAN Data Frame 4 0000030000000000
I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
Thank you.
Solved!
Go to Solution.
Attachments:
CMM_SN_MULTI.vi 20 KBHi chuck72352,
after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
Mike
Attachments:
ArraySubset.PNG 25 KB -
Autopopulate data in listitem based on the value of data in other itemlist
Hi,
In my project there is requirement of populating the data in based on the value populated in other list item.
For ex in list box item we select value 'PE' then in second list box based value of PE should be populated.If we select other value for ex 'PA' then in second list other valu is populated.So how can we populate the data in second itemlist based on the value selected in the first listitemHello,
<p>In this article, you can find a dialog sample that does that (section : 2.4.2)</p>
Francois -
Is it possible to regroup data based on attribute value of a tag?
is it possible to regroup data based on attribute value of a tag?
Hi Rajeev,
You can filter records during import if one of the Matching field is of type Lookup.
In your case if you create City as flat lookup table in MDM & maintain lookup values in DM(Just as an example), then you can import only records where city is HYD.
Map Name & City, Then in Match Records tab select both the fields (Combination)
then right click on it & select Filter.. option.
Now new pop up will open where you be able to see ur Lookup table values, from there select HYD and Add
Now in default Import Action, set Create Action for None/None (All other will be skip)
This way you will import only HYD records.
But this is possible only on Lookup fields & not foe Text fields
Hope this will help you
Thanks & Regards,
Mahi -
Plot a chart dynamically based on the values selected
Hi All,
I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
Thanks in AdvanceHi,
Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
Thanks,
Sanjay -
SSIS - Loop through files from a file path based on the value in the variable
Experts,
I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
the files to the "\\....\Src\Product\Archive" folder.
Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
folder.
Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.Yes
1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
like
(@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
similary archive
(@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Count the number of rows based on the values!!!
Hi all,
What I am using:
I am working with a multidimensional database in Visual Studio 2010 using its Data source view and calculation member and dimension usage.
What I want to do:
I have a fact table that has five columns(leg(s),hand(s), Head and body,overall) that shows the category of how severe the injury is. Let say for the records all columns never have an empty value(no injury is stated with 'No injury' ) . These five columns
are connected with a dimension that has all the available values (Category A-E of injury).The overall has the most severe from the other four columns. I want to create a bar chart with five different measure
values, one for each column, and count the values in those columns.
For example : I have a slicer in the excel and a bar chart and the slicer has all the values of the Category of the injury ( Cat a,Cat B, Cat C, ... Cat E, No injury ) and when i select one of them, lets say
Cat C, the bar chart should update and show how many Cat C each measurement column has.
Example FACT table:
ID LEG HAND HEAD BODY OVERALL
1 No A No No A
2 No D C C C
3 E C D A A
4 E E B C B
So if i selected C the bar chart will count (Leg = 0, Hand = 1, Head = 1, body = 2 and Overall = 1).
Any ideas ?
Thanks for the help and the time :)Hi DBtheoN,
According to your description, you want to create a chart on excel worksheet to count the rows based on the value, right? If in this case, I am afraid this issue is related to Office forum, I am not the expert of Office, you can post the issue on the corresponding
forum.
However, this requirement can be done easily on SQL Server Reporting Services. You can using the expression below to count the rows.
=COUNT(IIF(Fields!LEG.Value=Parameters!TYPE.Value,1,NOTHING))
Regards,
Charlie Liao
TechNet Community Support -
Formatting a Date based on the user's Locale
I'm having some trouble formatting a date based on the user's locale. I'm aware you can do something like this:
public static String getAsString( Object dateObject, Locale locale ) {
DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.MEDIUM, locale );
return dateFormat.format( dateObject );
However, this is returning something like Jan 21, 2009. I need 01/21/2009. Of course, if this was the UK locale it'd have to be 21/01/2009. Any help would be appreciated.another issue I'm running into is that when I'm logged in as a users' locale which uses '-' instead of '/' (i.e. 21-01-2009), I get a parse error. Can anyone provide any input? Thanks.
* Parse a Date
* @param dateString
* @param locale
* @return parsed Date
public static Object parseDate( String dateString, Locale locale ) {
DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
try {
return dateFormat.parse( dateString );
catch( Exception exception ) {
throw new ExceptionUtl( UtlMessageHelper.getMessage( UtlMessageConstants.ERROR_FailedParseDateFromString, dateString ), exception );
* Format the given value into a DateFormat
* @param dateObject
* Object value to be formatted
* @param locale
* Locale format to use
* @return dateObject in SimpleDateFormat
public static String formatDate( Object dateObject, Locale locale ) {
DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
if( dateFormat instanceof SimpleDateFormat ) {
SimpleDateFormat simpleDateFormat = ( SimpleDateFormat )dateFormat;
String pattern = simpleDateFormat.toPattern();
if( !pattern.contains( "yyyy" ) ) {
pattern = pattern.replace( "yy", "yyyy" );
if( !pattern.contains( "dd" ) ) {
pattern = pattern.replace( "d", "dd" );
if( !pattern.contains( "MM" ) ) {
pattern = pattern.replace( "M", "MM" );
simpleDateFormat = new SimpleDateFormat( pattern );
return simpleDateFormat.format( dateObject );
return null;
} -
Different heading label based on the value!
i have IR report ...
sl no
street
Ph
notes
this label never
to show here!
dynamic label
(ASIA)
(EUROPE)
1
2 nd st
96541
notes 1
ASIA
INDIA
2
2nd st
65841
notes 2
EUROPE
UK
3
2nd
5648
note 3
EUROPE
GERMANY
i have condition when the user logged from region wise,the region value should goes to label in Dynamic label as HEADING! how its possible?
Thanx,
Ram.Ramani_vadakadu wrote:
Yes i did the validation based on the LOV to affect &ITEM_LABEL ! how can use this validation in pre-validation? please login and do the sample one based on the value(real data means my 1st query in thread)!
https://apex.oracle.com/pls/apex/f?p=29288:1:9453626954797:::::
Wks:ram_r&d
user/password: aramani/apex
I have no idea what you mean. There is no validation involved. Not only did I never mention validation, you are claiming that you "did the validation", yet there is no validation on your page at all. I suspect that you are using the term "validation" in a very different way from its APEX-specific meaning.
The component that is required in this case is a page computation with a Before Header computation point. -
Needs Query to get the cycle time automatically based on the value provided in the UDF on OWOR table
Dear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST)
2.Start time =10:00 (Field Name U_EA_REASTARTTIME)
3.End date =11/07/14 (Field Name U_EA_REET)
4.End Time=14:00 (Field Name U_EA_REAENDTIME
Cycle Time=_______ (Field Name U_EA_REACYCLETIME)
Regards,
BanugopanRajendranDear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST) - Date Type
2.Start time =10:00 (Field Name U_EA_REASTARTTIME) - Hour Type
3.End date =11/07/14 (Field Name U_EA_REET) - Date Type
4.End Time=14:00 (Field Name U_EA_REAENDTIME - Hour Type
Cycle Time=_______ (Field Name U_EA_REACYCLETIME) - Hour Type
Regards,
BanugopanRajendran
Maybe you are looking for
-
Adobe CS5.5 Design Premium Serial Number Not Working
I just wiped my macbook pro harddrive and upgraded to Lion OSX. I bought the CS5 Design Premium last year (in a case). Unfortunately, my discs are unavailable, but I do have the correct serial number. When I downloaded the CS5.5 Design premium trial
-
Itunes 11.1.5.5 can not add files or folders with accents?
Hello, I'm using Itunes 11.1.5.5 and when I use the add folder to my library all the files with no accents are added propperly but all those folders or files with an accent (á é í ó ú) that are commonly used in spanish are not well recognized and wil
-
For what it is worth (Maybe I should have started a new post). I had a client that just wanted the five hours of mini DV just to have as a record of the their wedding. Not interested in editing. So after captureing in PP2 I then went into Encore 2.o
-
How to delete adress bar history on iphone
hi this is angela i try to deleate my adress bar history on my iphone /ipad,but it still showes some urls and all history is cear but i have a issue there is only 3 adresss in a adress bar that still in there how should i clear thoses
-
My iphone 5 keeps saying not enough storage to backup. go to settings. not sure what to do. Can not update my phone?