Using Calc Manager to update values for Members with Text Data Type
Hi All,
In my outline I have a member of text data type. The purpose is to allow users to be able to enter comments.
Each line item is created through a business rule and I am prompting the user to enter the key values at the launch of the calc manager rules. I want to be able to prompt the user for the comments in the calc manager rule because I know that it supports variables of type string. However I am unable to assign this string variable directly to the member.
I appreciate that essbase only stores numeric data and that all text data type members really store numeric values which are basically the id's of the text string stored in a relational table by planning. however I cannot update the database table through calc manager and then bring in the generated id. Is there any way I can do this?
I don't want to skip this field in the calc manager rule and expect the user to enter the comments AFTER the line item has been created because the users want this to be a mandatory field and insist that a new line item not be created unless comments are specified.
Many thanks in advance for any help I can get.
Shehzad
If the comments are a set definition you could you smart lists in your planning forms.
create this in your smart list
xxxx = 1
yyyy = 2
Similar Messages
-
Null value for int and datetime date type in xml schema
hi:
I am embarrassed by a qustion in xml schema; i defined a xml schema file like
this:
<elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:element name="test">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="password" type="xs:string" nillable="true"/>
<xs:element name="user" type="xs:int" nillable="true"/>
<xs:element name="s_time" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
and I send this file to workflow clientrequest() node, I wanted to receive data
in this schema file.but when i send null value to the element "user" and "s_time"
in workshop test tool(test soap),and use function in xmlbean like isNilUser or
isNilStime, one error occur.
I don't kown why, I had to ask the engineer of bea in china, one told me a bug.
is that true?Visakh16 I cant agree more with you on it, it is good but in production u cant have them change maxrows. I think
Patrick Hurst is a better option. debug the package have it running and move up
Please mark as helpful and propose as answer if you find this as correct!!! Thanks,Dia Agha .
Hmm..Why do you need to change it in production?
What I suggested was to tweak the setting in dev machine so that it interprets the Excel file datatypes correctly when doing development. Once mapping is set correctly then it will work fine when in production or in any other environment. The tweaking is
just to make sure it interprets the datatype correctly at design time and has nothing to do with production deployment
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Can i use one JSF component's value for other component in the same page.
Can i use one JSF component's value for other component in the same page.
For example
I have a <h:selectBooleanCheckbox id="myChk"> in my jsf page, i want to access its value for another component like:
<h:commandButton disabled="#{myChk.checked}" action="myAction" value="myValue" />
** "myChk.checked" >> I am just asuming "checked" property is available...Bind the checkbox to a UIInput myChk property. Then you can reference this property from the page, e.g.
<h:selectBooleanCheckbox binding="#{myBean.myChk}" onchange="submit();" />
<h:commandButton disabled="#{myBean.myChk.value}" action="myAction" value="myValue" /> -
Grouping to display null values for all the missing dates
Hi SAP,
I am trying to display '0.00' value for all the missing dates in my crystal reports as follows:
17-Jan-14 40.00
18-Jan-14 0.00
19-Jan-14 0.00
20-Jan-14 80.00
However, my crystal report is showing as follows:
17-Jan-14 40.00
18-Jan-14 0.00
19-Jan-14
20-Jan-14 80.00
The missing dates with no data are group together and my '0.00' value is not. Kindly advise me the solution. The formula is shown as per attached.
Thank you.
Regards.Hi,
Thanks for your reply.
Fyi, I am using a formula field in crystal report to display "0.00" for days in between as follows:
whileprintingrecords;
if Days_Between({Command.DocDate},next({Command.DocDate}),'dd-MMM-yy') = "" then "" else "0.00"
There is another formula field in crystal report to display the missing dates in between as follows:
whileprintingrecords;
Days_Between({Command.DocDate},next({Command.DocDate}),'dd-MMM-yy')
Below is my report custom functions:
Function Days_Between (datefield as datetime, nextdatefield as datetime, format as string)
' This function is only used to display what data is missing within a specified date range...output type is text
dim thisdate as date
dim nextdate as date
dim output as string 'output is the text display
dim daysbetween as number
dim looptimes as number
looptimes = 0
daysbetween = 0
output = ""
thisdate = datevalue(datefield) + 1
nextdate = datevalue(nextdatefield)
if nextdate - thisdate > 1 then daysbetween = nextdate - thisdate else daysbetween = 1
do
if nextdate - thisdate > 1 _
then output = output + totext(thisdate, format) + chr(10) _
else _
if nextdate - thisdate > 0 _
then output = output + totext(thisdate, format)
looptimes = looptimes + 1
thisdate = thisdate + 1
loop until looptimes = daysbetween
Days_Between = output
End Function
The issue arise when when there is more than one missing dates in between but the null values ("0.00") displayed is only for the first missing dates and not for all the missing dates.
Regards,
Ting Wei -
Hi all,
While viewing report in SSRS 2008 i am getting an error like this
Warning 1 [rsInvalidExpressionDataType] The Value expression used in textrun ‘Textbox21.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid.
sotred procedure
ALTER
Procedure [dbo].[spGetSupervisor]
@START_DATE
datetime,
@END_DATE
datetime,
@CenterID
varchar(4000),
@TITLE
varchar(100)
=
NULL
as
Select
Distinct L1_ID SupID,
L1_Name SupName
from
REF_DB.info v
inner
join dbo.fn_MVParam(@CenterID
+
P
v
.CenterID
= p.Column1
where
v.startdate
<= @END_DATE
and v.enddate
>= @START_DATE
and
(v.title
IN
(@TITLE)
or @title
is
order
by Name
Here is the expression in Report textbox
=Parameters!CenterID.Label
Please
help me
Thanks
in advance
Jyo
null)
ONHi Jyo1105,
Thanks for your question. Based on my research and experiences, the issue may be caused by you set the @CenterID
is a multiple values parameter.
If in this condition, you couldn’t use the expression of
Parameters!CenterID.Value directly, you
should use a join() function on the parameter to merge the whole values, or add a sequence number behind the expression to use a specific value, just like this:
=join(Parameters! CenterID.Value) or
=Parameters! CenterID.Value(0)
If your issue still exsits, please feel free to let me know.
Thanks,
Sharp Wang
Best Regards. Sharp Wang -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
Default Values For Foreign Trade Header Data
Hello,
I have defined a price condition (ZPFR) to gather the price from the company to the custom office (the customs office through which the goods enter or leave the country).
I want that price condition to be determined in the pricing procedure in foreign trades. The fields in the access sequence are the Plant and the Customs office. In customizing, in the point Default Values For Foreign Trade Header Data, I have defined a line for the Departure country, the Destination Country and the proper values for the Office of exit, Export Custom Office and Office of destination (the same that I have selected in the condition record). But when I create a sale document, this condition does not determine because the Customs office seems not to have any value in the document. Does anybody what I am doing wrong?
Thank you in advance,
SilviaYou require to do thenecessay configuration for Foreign Trade Data:
IMG --> Sales and Distribution --> Foreign Trade/Customs --> Basic Data for Foreign Trade --> (Do the necessary configuration here)
In most probability, it will not default, but it is required to be maintained in Invoice (based on configuration)
Regards,
Rajesh Banka
Reward points if helpful. -
I am not familiar with using MIN with text data as in the sample below and could use some help in deciphering what it is doing. This SELECT statement is taken from a larger CREATE OR REPLACE VIEW statement. The first line of the WHERE clause is making the connection to look at the correct user's information. The section after the first AND is what I am trying to interpret correctly. I have moved into a new position and wasn't around when this view was created. The statement is designed to assign the correct DOMAIN_ID to each user based on values in the elms.elms_dom_lkup table ed. This table consists of 4 columns: DOMAIN_ID, PROC_LVL, LOCATION, AND POSITION. The DOMAIN_ID is the only field that is not nullable. The primary key for the table is a combination of the 4 columns. The section after the first AND matches the PROC_LVL from the ed (lookup table) to the PROCESS_LEVEL in the cd (reference table) and confirms the process level is associated with the users primary position. It then looks for one of three conditions:
1. process levels match and LOCATION and POSITION are NULL
2. process levels match and LOCATION matches user's location in a reference table
3. PROC_LVL is NULL and POSITION matches user's position in a reference table
(SELECT MIN (domain_id)
FROM elms.elms_dom_lkup ed, mici.const_dept cd
WHERE c.constituent_id = cd.constituent_id
AND ( (ed.proc_lvl = cd.process_level AND cd.pos_level = 1
AND ( (ed.location IS NULL AND ed.position IS NULL)
OR (LOWER (ed.location) = LOWER (loc.campus))))
OR (LOWER (ed.position) = LOWER (c.job_desc)
AND ed.proc_lvl IS NULL))), /*Domain ID*/
My question revolves around the priority on those matches. The ed table is not organized in any manor. The records are in the order they were entered. Does the MIN in the SELECT statement cause the DOMAIN_IDHi,
Welcome to the forum!
If v is a string column (such as a VARCHAR2), then MIN (v) is the first string in collating order (that is, alphabetic order, but with numbers and punctuation symols given particular values in the ordering).
It lookw like the code fragment you posted is a Scalar Sub-Query , that is, a sub-query used where an expression is exprected. For example, in a query like this:
SELECT *
FROM scott.emp
WHERE sal > 1200
;You can replace the literal 1200 with any kind of numeric expression, even
SELECT *
FROM scott.emp
WHERE sal > ( --Begin scalar sub-query
SELECT AVG (sal)
FROM scott.emp
) -- End scalar sub-query
;You have to be careful that a sclar sub-query produces exactly one column, and either 0 or 1 rows. You'll get a run-time error if the sub-query ever produces 2 or more rows.
People sometimes use MIN in situations like yours when the sub-query might otherwise return 2 or more rows, and either:
(a) all the non-NULL rows will contain the same domain_id, or
(b) it doesn't matter which domain_id is used, just so long as it is one that actually exists in the result set.
842436 wrote:
My question revolves around the priority on those matches. The ed table is not organized in any manor. The records are in the order they were entered. Does the MIN in the SELECT statement cause the DOMAIN_IDSorry, I don't understand exactly what you're asking.
Rows in a relational table are never in any intrensic order.
It looks like the question got cut off. Does the MIN in the SELECT statement cause the DOMAIN_ID to do what?
Edited by: Frank Kulash on Mar 7, 2011 3:01 PM
I see you corrected your first post.
842436 wrote:
... My question is does the MIN in the SELECT statement cause the DOMAIN_ID from the first record that meets any of the 3 conditions to be returned?Yes, it makes the sub-0query return the first domain_id ( in alphabetic order ) that meets all the conditions. If there are 1,000 rows that meet all the conditions, the query will ind all 1,000 of them, keeping track iof which one is first in alphabetic order. Remember that
'127.255.255.0' is less than
'25.0.0.0' in alphabetic order, because '1' is less that '2'. -
Creating Web service for PL/SQL Procedure with Complex Data Types
I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?
Hello,
When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
You can find more information in the:
- Developing Web Services that Expose Database Resources
chapter of the Web Service Developer's guide.
Regards
Tugdual Grall -
Dear All,
For STO with Doc. Type UB, shipping instruction not picking automatically.. Please advise.
RegardsHi
Please verify in the config the below is populated already....
SPRO -> Material Management --> Purchasing --> Purchase Order --> Set up Stock Transport Order --> define Shipping Data for Plants
Open the Recieving & Shipping plant ID's and maintain their own shipping data and save.
Maintain: Sales Org:
Distr Channel:
Div:
Aside: your shipping plant is already configured with Sh.Point - Tcode: OVL2
Regards
RG -
I tried to update my iPhone 3GS with iOS, data was restored but on continue with activation in the iTunes stores, it is replying "We're sorry, we are unable to continue with your activation at this time." what could be the reason?
Hmm, well... iTunes trys to activate your iPod using the Apple server to make sure you have bought it legit.
Two things come into my mind:
1) Your iTunes can't access the internet.
2) Apples activation servers are down.
That's just my cents, maybe anyone else has an idea. -
Restriction of GR & IR for PO with specific document type
Hi,
How we can restrict doing Goods Receipt & Invoice Receipt for a Purchase order, instead they do the payment directly for the Purchase order item in FI. We need to restrict GR & IR for PO with particular document type.
Regards,
SrinivasHi,
Yes i do feel the same. Normally if a PO is created means system expects a GR and and IR .If you do not expect the ir means it is a free entry.
But however you can control the GR / IR through account assignment .please check the account assignment definition at SPROMMPUR-Account assignment-AAcategory.
Once the PO is created with account assignment the procurement is for consumption (non stock)
if it is a stocked procurement system will check the GR/IR indicator in the PO.
When a PO is created in MM module and the cycle is not completed , it will always show as open PO.I think the context for FI direct posting will be differrant.
Regards, -
How to insert / Update value for PFAKT in BP Relationship
Hi Friends / Experts,
How to insert the value for PFAKT ( Function value ) in BP Relationship in BP tcode , in SAP CRM.
I have tried it but it BAPI_BUPR_CONTP_CREATE. But I need it with BAPI_BUPR_RELATIONSHIP_CREATE Function Module.
Please help me out.
Any Enhancement points in BAPI_BUPR_RELATIONSHIP_CREATE or any user exists. Please let me know.
Regards,
KMF.you can also acheive this using MERGE( available in sql 2008 and above).
also, you are referring to DTS. DTS is legacy solution now..are you using sql 2000, you can use ssis, if you want and it available in sql 2005. as said, there are multiple ways you can do this.. it find the below one a easy solution, since your are
talking about only one table..
try this example..
create table test1(sno int primary key,sname varchar(20),scity varchar(20))
go
create table test2(sno int primary key,sname varchar(20),scity varchar(20))
go
insert into test1
values(1,'stan','atlanta'),(2,'william','newyork')
go
insert into test2
values(1,'robin','orlando')
go
--set this in you sql job and let it run for every half an hour
MERGE test2 t2
USING test1 t1
ON t2.sno = t1.sno
WHEN MATCHED THEN
UPDATE
SET t2.sname = t1.sname,t2.scity=t1.scity
WHEN NOT MATCHED by target THEN
Insert(sno,sname,scity)
values (sno,sname,scity);
go
--check this table and clean up
select * from test2
go
drop table test1
go
drop table test2
Hope it Helps!! -
Update values for additional (new) keyfield in database table
Hi All,
Here in our firm we have a Z table with data in it. As part of the new requirement I had to add a new key field in it.
Now I have to maintain values for these key fields in the already existing data.
I cannot maintain it though SM30 as the maintenance view grays that field in SM30.
Is there any way of updating this new key field data in database.
Thanks,
KajalHello Rob,
thank you for this information. Up to now, I thougth, that it is impossible to update the primary key. I've checked it in our system and it works. But it seems, that you have to use the "update set" to update a field of the primary key - am I correct?
@Kajal,
I've created a table:
Field Key Data element
MANDT X MANDT
MATNR X MATNR
MAKTX MAKTX
Then I've tried the following coding:
data: wa_test type zithtest.
select single * from zithtest into wa_test.
move: 'DE' to wa_test-spras.
update zithtest from wa_test.
write: sy-subrc.
select * from zithtest into wa_test.
write: / wa_test.
endselect.
result: sy-subrc = 4 and no update of the primary key
Then I've tried the following:
data: wa_test type zithtest.
select single * from zithtest into wa_test.
move: 'DE' to wa_test-spras.
update zithtest set spras = wa_test-spras
where matnr eq wa_test-matnr.
write: sy-subrc.
select * from zithtest into wa_test.
write: / wa_test.
endselect.
Result: sy-subrc = 0 and the primary key has been updated.
By the way - reward points to Rob, as he has given the correct solution.
Best regards
Stephan
Edited by: Stephan Theis on Jan 17, 2008 9:50 PM -
How to update values for qty n batch in mska table
Hi experts,
i would lke to know is it possible that we can update value of availabity of stock which is existing batch wise in MSKA table field 'kalab' (qty) n charg (batch).
i mean we have devided material per document number into batch a b c.
suposse
we have '20015' material
for doc1 (vbeln) -- A qty 5
B qty 5
C qty 0
for doc2 (vbeln) A qty 2
C qty 5
B qty 0
But after delivery we want to change the distribution of stock material like .
for doc1 A qty 2
B qty 3
C qty 5
and for doc2 A qty 5
B qty 2
C qty 0
i create one programe and check the availabity in mska table n give input field to reorder the batch n quantity but how should i send these values in mska table so that sap will show the correct availabity of stock batch wise.
if somebody did it before. through ur input please .
Thanks.
SeemaHi sutar,
Seems it is not WD related Question.
You are updating two tables here, but not updating in Database. check two tables how they are related.
and mysuggestion is try to update thease two tables by using code in se38. you will get where the problem is.
Cheers,
Kris.
Maybe you are looking for
-
Process is not visible in BPM Workspace in Application panel 2
Hi dear developers, I had a problem about BPM process. I was trying to implement this tutorial -> http://st-curriculum.oracle.com/obe/fmw/obpm/11g/r1/firstProcess/firstprocess_obpm11g.htm#t3 And all the steps had been done. But the deployment step, i
-
[Microsoft][ODBC Microsoft Access Driver] COUNT field incorrect
Hello togehter! I get the following error when I try to execute a insert statment in a table: [Microsoft][ODBC Microsoft Access Driver] COUNT field incorrect I have a table with PictureID (Autowert), Path and Diagnostic (Strings) My preparedStatement
-
i want to UPDATE column sign.. suppose if value is negative then it should b possitive after update,or possitive shoud negative. Table Structure Fiied_1 Filed_2 1 -10 2 100after update i want Table Structure Fiied_1 Fil
-
I've found a little issue in Android... In my application I download some files the first time it's run. Since it takes a couple of minutes without user input, the screen turns off automatically. I've found some tablets not only turn off the screen b
-
I'm trying to burn music to a cd but it keeps saying error -50 and sometimes it says error 2095 does anyone know what this means?