How to map a missing value to a member?
Hi all,
Let say I have 3 dimensions in my data source file:
Account, Entity, Product, Data
A400, E100, P200, 10000
A401, E110, P300, 20000
A401, ,P400, 30000
As you can see in the third record, Entity is missing. How can I map this to, let's say, No_Entity? In my Entity mapping table, Type: Like, I have tried using Null and Missing as the Rule Definition, but neither worked.
Couple of clarifications: This is for an Essbase BSO cube. In my real case, the missing values are not Entity members, but 3 custom dimension members.
Any ideas?
We are on 11.1.2.2.
Thanks,
Mehmet
You have a couple of options:
1) Add a wilcard mapping to your entity maps which maps anything you have not explicitly mapped to NoEntity i.e. * --> NoEntity
2) You cannot have an empty string as a source value so in your import format, associate an import script with the Entity dimension source field entry and check the length of the string of the source field as it comes in. If the length is 0 assign a value of NoEntity to be returned and map that source value explicitly inyour Entity map
Similar Messages
-
Hi All,
Am using OPENROWSET to load the file data into table, here the problem is i need to map same input value to two different columns of table, As format file doesn't allow the duplicate numbers am unable to insert same value to two columns, please help me to
find a solution for this.
i can use only OPENROWSET because i need to insert some default values also which come based on file. only the problem is how to map same input value to two different columns of table. please give me the suggestions.
Thanks,
SudhakarFrom what you say:
INSERT tbl(col1, col2)
SELECT col1, col1
FROM OPENROWSET(....)
But I guess it is more difficult. You need to give more details. What sort of data source do you have? What does your query look like? The target table?
Erland Sommarskog, SQL Server MVP, [email protected]
Hi Erland,
Thanks for your response
my source file is text file with | symbol separate for ex:
1002|eTab |V101|eTablet|V100|Logic|LT-7|Laptops|SCM
Database table have columns like
column1,column2,column3...etc, now i need to insert same value from input file into two columns for ex:
the eTab value from text file has to be insert into column2 and column3 of
table
we cannot change format file like below one
for the above situation how can we insert eTab into column2 and column3
Thanks,
Sudhakar. -
How to map the Resultset values to multiple tags on target strcture
Hi All,
We have an UDF ,whihc is returing Resultset . How do we map/extract the each element of resultset to diffrent fields on the target strcure in graphical mapping.
Let me know,if any blog exist for same.
Thanks for your support and advice.
MKHi,
you should be having some condition based on which you will map your resultset values to different target fields.......so have that condition as an input to your UDF in graphical mapping.............then use this condition value in your UDF and output the data which should come on this condition in the resultset..........then in graphical mapping, map your target fields with this UDF and condition and output the UDF output to the target node.........
Regards,
Rajeev Gupta -
How to map single context value attribute to multiple value attributes?
Hello,
is there any way to map a single value attribute
from view's context into several value attributes
in controller's context?
The business context of what I want to achieve
is the following: I have a view which can be called
in two modes: read only (RO) and read-write (RW).
The input parameters to the view are the same for
both modes, however when in RO mode, the view calls
a different set of web services than when called
in RW mode. Before calling each of the web services
I need to populate their context value attributes
with appropriate input values.
I know I can do it in Java code, but is it possible
to do it without any programming (doing it in the
source code is prone to errors)?
Any help highly appreciated.
Greetings,
Tomek.Hi Kishore,
than you very much for your kind help.
I have already created a value attribute of type
boolean and mapped it into the read-only property
of the UI elements. This however does not solve all
of the problems... I will describe it with an
example:
Let's say the form I want to implement will be
used to: create (read-write mode), update (read-
write mode) or show (read-only mode) customer's
data. The customer's data is complex (lots of
data, including tree structures).
The problem is that:
- when the form is called in read-only mode,
it should populate its fields with values
provided by the getCustomerData web service,
- when the form is called to create a new
customer (in read-write) mode, it should
not use the getCustomerData web service.
Instead it should map the input values
entered by the user into input parameters
of the createNewCustomer web service,
- when the form is called to update customer's
data, it should first display values returned
by the getCustomerData web service, and then
it should map the modified values entered by
the user into input parameters of the
updateCustomer web service,
In all the above cases I must map my view's
context data to different controller's context
elements. Doing it directly in the source code
is not a nice solution. Is there any other
way to achieve this?
Calling a form in different modes in not an
unusual thing, so I was hoping that maybe
there are any built-in mechanisms that would
solve the obove problem...
Greetings,
Tomek. -
How to map multiple output values to the output schema in biztalk mapper?
Hi,
In my biztalk mapper, I am using a "database lookup" functoid which is linked to a "Value Extractor" functoid. A source schema field is linked to the database lookup functoid which is linked to a "Value Extractor" functoid
which is linked to the destination schema field. After passing the required parameter values in the database lookup functoid (lookup value, conn string, table, column name), I know that the result set may get multiple rows which are transferred to the "value
extractor" functoid.
Now what I want is to create a record in destination schema for each row in the result set. My current mapping is as below:
1) Source record > looping functoid > destination record
2) Source record field > Database functoid > Value Extractor functoid > dest record field
but this mapping is giving me only the first value in result set.
Please help me in this so that my map creates a destination record for each value in the result set.
e.g. if query [select * from employees where surname='Brown'] returns five records, then I would like five records in the destination schema.
Thanks
manibestHi Muhammad Ehsan,
Thank you for the useful suggestion. however, I have only one difficulty in building your suggested solution. in my query (select
* from employees where surname='Brown'), the value of surname is coming from the source schema field which could be different in each source schema record field.
lets say that source schema instance has 3 records in it as below:
<Records>
<Record><Surname>Brown<Surname></Record>
<Record><Surname>Atkinson<Surname></Record>
<Record><Surname>White<Surname></Record>
</Records>
For each of above records the database query should run with the relevant surname value. if database has 5 records for "Brown", 3 records for "Atkinson" and 1 record for "White" then the destination schema should create (5+3+1) = 9 records in
total.
To create a destination canonical schema that works fine, I have to somehow pass this surname value from source schema as parameter so that it uses this value to poll the database and get records. Is there a way I can pass this surname value as parameter
to the destination canonical schema? Thank you so much for the help.
manibest -
How to map the method action return value directly into screen using variables?
Hi,
My JDev version is 11.1.1.6.3.
I have a 'MethodAction' defined in PageDef file, that goes to model layer and return String value. As this needs to be executed during initializing of pageDef, I have also added an 'InvokeAction' for that.
<executables>
<invokeAction id="invokeSayHelloId" Refresh="ifNeeded"
Binds="sayHello"/>
<variableIterator id="variables">
<variable Name="Name" Type="java.lang.String"/>
</variableIterator>
</executables>
<bindings>
<methodAction id="sayHello" InstanceName="HrAMDataControl.dataProvider"
DataControl="HrAMDataControl" RequiresUpdateModel="true"
Action="invokeMethod" MethodName="sayHello"
IsViewObjectMethod="false"
ReturnName="data.HrAMDataControl.methodResults.sayHello_HrAMDataControl_dataProvider_sayHello_result">
<NamedData NDName="pName" NDValue="Michael John" NDType="java.lang.String"/>
</methodAction>
</bindings?
Requirement:
I want to map the return value of this method action directly into screen by making use of PageDef variables.
Question:
I. I need to know how to map this return value direcly as exprssion against PageDef variable.
2. If Question 1 is achievable, assuming the method action returls List instead of String (I know well it returns 2 items), can I map the 1st Item against Variable 1 and 2nd Item against Variable 2 directly?
Thanks in Advance.
RaguThanks Frank, but If I directly map the MethodAction's result to UI, there are chances where it might get executed whenever I refresh the UIComponent (UIComponent to which the methodAction result is mapped. Isn't so??). Instead, If I invoke the MethodAction using InvokeAction, I can get the control on when it should get invoked (using RefreshCondition). If I assign the variable to UIComponent (Assume I've mapped the method action result to variable using expression), refreshing of UIComponent will not cause any performance issue I feel.
Correct me If I am wrong. -
How to map context values in controller and a view
Hi,
I am trying to use Web Dynpro as an interface for an application where I need to load two Graphs in to two different Views and produce a third graph. Could anyone advise me how to map the context values in the component controller and a view when I load a Graph in to the Web Dypro Console. Please help me I would appreciate your help.
Thanks a lot,
Phani.Hi Phani,
The following links should be helpful.
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
http://help.sap.com/saphelp_nw2004s/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm
regards,
AE -
How to Assign a Constant Value to a Dim. Member when pulling Master Data?
BPC Gurus:
I am trying load Vendor and Customer Master data into BPC dimension. My Dimesnion has memebrs: ID, EVDESCRIPTION, PARENTH1, TYPE. I have successfully pulled the ID and the description from 0CUSTOMER and 0VENDOR. However, I
need to have a ttext value for 'PARENTH1' and 'TYPE'. For Customers, I want to add a FIXED value "'CUSTOMER' for every
Customer ID pulled in and also for "TYPE", I want a value of "CUSTOMER". When I maintainthe Dimension, I want to see
th followingvalues:
ID EVDESCRIPTION PARENTH1 TYPE
0000000001 WALMART CUSTOMER CUSTOMER
0000000002 TARGET CUSTOMER CUSTOMER
and so ON
Since we have Vendor Numbers in the same Diemsnion, when I pull Vendors, I need to have similar values as:
ID EVDESCRIPTION PARENTH1 TYPE
0000005050 ABC Supply Inc. VENDOR VENDOR
0000005051 BASF VENDOR VEDOR
and so ON
How can assign a Fixed value to the member Propert? Can I achieve it in Conversion file....?
( My atempts failed...).
Any suggestion recommendation would be gretaly appreciated.
Munna.Hi,
For adding fixed values to the properties, you can use the transformation file. In the mapping section, you can specify a constant value. This value will be written to properties of all the members while importing master data. However, for parenth, its a bit different. First thing is that, you need to have a member called CUSTOMER, then only you can have CUSTOMER in the parenth column. Even if you add it and use the mapping section for this purpose, then it will write CUSTOMER to parenth for all the members (even to CUSTOMER member). And this will be wrong. So, you will need to write it manually.
Hope you got the idea. -
How to find the missing values in sequence of values. I need a query for this.
ThanksAssuming you are looking for sequences missing in table YourTable and column YourSequenceColumnName from the list starting from 4 to 10... This query will get them
select a.seqno
from
(select level as seqno
from dual
where level>=4
connect by level <=10
) a
left outer join YourTable b
on a.seqno = b.YourSequenceColumnName
where b.YourSequenceColumnName is null
/ -
How to get minimal value from children with skip missing values?
Hi,I would like to get minimum value from children, but I would like to skip missing.Minimal value from children works fine (see following formula):@MIN(@CHILDREN("member_name"));Minimal value with skip missing (see following formula) returns error:@MINSRANGE(SKIPMISSING,@CHILDREN("member_name"));Error message: "This function must be a macro".Question: How can I write a formule to get minimal value from children without missing values.What is a macro and how can I write it? If possible I would like to write formule instread of macro!Thanks,Grofaty
Hi,I have found out solution:@MINS(SKIPMISSING,@CHILDREN "member_name")); No more help is needed.Thanks,Grofaty
-
How to map values between Contract and Purchase Order...
Hi friends,
We are using SRM 5.0 (ECS). I am facing a problem with Purchase Order.
. I am creating Contract locally through Live Auction. After that I am creating Purchase Order through Live Auction. So in Purchase Order Quantity, Net Price, Gross Price, and Long Text etc. not coming which is defined in Contract. PO capturing the values from Live Auction, means no relation between the Contract and Purchase Order. After making Contract again I have to changes in the Purchase Order.
So how to map the values from Contract to PO in SRM? I want to map between contract and Purchase Order like R/3. At the time of creation of PO ( in R/3 ) we can adopt the Contract so all the relevant values comes from Contract to PO. In SRM how will I do?
Please suggest me.When you create PO and a contract from a Live Auciton, they will not be mapped.
While creating a PO (BBP_POC - Process Purchase Order); in the PO line item assign the contract and item reference. Only then they will be linked.
Hope this helps.
Regards
Kathirvel -
How to Map one key to multiple values
Hello Everyone
Let's say I have a System. to access this system, one needs a username and a password. Now i have a Hashtable that maps passwords to their usernames. Now what if i want to store the Firstname and lastname of the person, in case he/she forgets the password or username? Is there a way to associate a key (Password) to multiple values(username, password, lastname)? if so, can you show me how to go about it?
Edited by: Tonata on Apr 27, 2009 8:09 AMM.Murat wrote:
Hello
My suggestion is that you can create a map in which value is a list(for example Arraylist).
You can store the items in that list and match that list to proper key.
M.MuratCode smell: Object Denial+_ -
How to check the source value is in between a string range in mapping
Hi Consultants,
I am working on IDOC to File scenario. I need to implement a specific requirement of our client. i.e. something like below;
Vendor number can be any thing like 1AA000000 / 1AA000001/1AB000000/... ect till 1ZZ999999.
if the vendor number is in between 1AA000000 -1ZZ999999 then the target value should assign as 'Internal' else should assing as 'External'.
How to compare that the value of vendor is in between IAA000000 to 1ZZ999999 in mapping?
Appreciate your help.
Thanks in advance.
Regards,
NausheenYou can try creating an UDF and using the varName.substring(); method. Then you can compare in separated pieces the string. For example
String var = "1AA000000";
if (var.substring(3).compareTo("000000") < 0 && var.substring(3).compareTo("999999") > 0)
//compare now the "AA" and "ZZ" with the same logic;
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#substring(int, int)
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#compareTo(java.lang.Object)
EDIT: Moreover, those functions are available in the Mapping program creation, but this should give a clue on the order it should be done.
Edited by: Lucas Santos on Mar 29, 2011 7:38 PM
Edited by: Lucas Santos on Mar 29, 2011 7:53 PM -
How do I retrieve missing Maps app?
How do I retrieve missing Maps app?
It can't be deleted. It's been moved to another page or into a folder. If you can't find it, reset the home page layout in settings.
-
How Can I Split Multi-Valued Attributes in Syndicator Map?
Is the option to split multi-values only available for fields and not on attributes that are also multi-valued?
How Can I Split Multi-Valued Attributes in Syndicator Map?
Currently this feature are not in MDM you can split this value by using any middleware software for e.g. PI
Is the option to split multi-values only available for fields and not on attributes that are also multi-valued?
Correct, Multi-values option only available for field not for attributes
Thanks,
Jignesh Patel
Maybe you are looking for
-
How to enable rear speakers (old creative ca
i've a quite old sound card by creative and i am using Windows XP. the sound card name displayed in device manager is 'Creative AudioPCI' and in sound settings through control panel its name appears as 'Creative Sound Blaster PCI' i've creative inspi
-
Obviously confused about input and output resolutions
I have a screen recording (using iShowU HD Pro). Here's the info of that file: Dimensions: 1024x812 Codecs: Apple Intermediate Codec Color profile: HD (1-1-1) Duration 2:07 Total bit Rate: 19,498 I import the file to FCE and place it on the timeline,
-
An app continues to say "installing" when nothing is happening. It has been several hours now. It's only a book so should not take this long. I have tried deleting it and that did not work.
-
Should I See 2012 Process Image Quality Improvements? Plus Minor Display Buglet.
Having played around with the Camera Raw 6.7 Release Candidate, and switching back and forth between the 2010 and 2012 processes (the latter only offering limited main panel adjustments), I'm left to wonder... Question: I really didn't see any discer
-
How to save dashboards in mobile format in local system?
I wanna save my dashboard for mobile. I wanna the file in local system how to achieve this?