URGENT--Custom Defined Macro Problem.
Can u pls . explain what does ELSE;@@1-@' means in following.( pointed by<<---????????????). The macro is correct & working fine but I am unable to decode it fully.create or replace macro 'EEF'.'@MMOV'(ANY) as 'IF(@ISMBR(JAN));IF(@ISMBR(FY06,FY07,FY08,FY09));@@1-@PRIOR(@@1->DEC,1,@CHILDREN(Years));ELSE;@@1-@@1->BegBalance;ENDIF;ELSE;@@1-@' <<---????????????spec 'Calc Month Movement on Account'comment 'Valid for FY04 thru FY09 : BegBalance input to FY04 :Requires modification (or use of SubsVars) for later year BegBalance'Regards
Turns out this problem can be resolved by the proper JDK settings.
I was using JDK 1.6 to compile my code (as its a pain to find and download the 1.5 JDK). Essbase uses a 1.5 JVM.
The following errors can be resolved by the proper javac settings:
Java Virtual Machine error
Wrong java method specification
Here is the new javac line I used with JDK 1.6:
javac -target 5 CalcFunc.java
Similar Messages
-
URGENT: Custom Defined Macro
I developed the following macro: MAXL> create macro MIS2000.'@ISMBRSUBSTRING'(single,single,single) as 2> '@ISMBR(@MEMBER(@SUBSTRING(@CURRMBR (@@1),@@2,@@3)))' 3> spec '@ISMBRSUBSTRING(dimName,StartPosition,EndPosition)' 4> comment 'verifies if the substring of a current member in the specified dimension is a current member in another dimension'; We have a dimension "Year" with members 1999, 2000, 2001, 2002, 2003... and a dimension "Planversion" with members 2000_01, 2001_02,... 2001_12, 2002_01, ...So I use the CDM in a member formula as follows:IF(@ISMBRSUBSTRING(Planversion,0,4)) ....ELSE ....ENDIFI would like to check out if the current member in the year dimension equals the first 4 letters of the current member in the dimension "Planversion" and use this in an IF statement.When I used this macro in a member formula the application crashed immediately. Is there anything wrong with my macro? Or is there another way to get the desired result.I would need urgent help as I do need a solution by monday (next data load).Your help is highly appreciated. Gerald PS We use Essbase 6.14
It would have been easier if you had tried to do it. Just for fun... did you even try before asking.. I guess, since you are asking, you did not try. I kind of find it lame that people ask questions before even taking 2 mins to try it out.
Macros can be used in business rules but not calc scripts. -
Hi
I am trying to use the function *@ISUDA* in a custom defined Macro and call the Macro from a Calcscript.
Macro is as follows:-
create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
IF (@ISUDA("Account","UDAstring"))
@SUM(1,2);
ELSE
@SUM(4,2);
ENDIF
Calcscript is as follows:-
SET UPDATECALC OFF;
FIX(...)
"Member"
"A/c member"= @macrofunc ();
ENDFIX
Error given is as follows:-
Error: 1200336 Error compiling formula for [Member] (line 8): [(] without [)]create macro 'APPLICATIONAME' .'@macrofunc'(optional) as
You should try adding account name to the macro itself. I have not use macro as a return type but only as repeatable piece of code. Also, macros are used only with business rules but not calculation scripts
IF (@ISUDA("Account","UDAstring"))
"A/c member"= @SUM(1,2);
ELSE
"A/c member" = @SUM(4,2);
ENDIF
Calcscript is as follows:-
SET UPDATECALC OFF;
FIX(...)
%macrofunc ();
ENDFI -
@Prior and Custom Defined Macros
Hello all,In planning applications, year and months are in seperate dimensions. For this reason, it is very hard to use @prior function when you go several months backwards. For example if you are in Feb 2004 and you need to go back 5 months, you need to go prior in Years dimension too.I have seen a custom defined macro for a similar calculation, but i wasn't able to rewrite it to my needs. Has anyone done a similar calculation??
There is new function in version 6.5.1 called @XRANGE. This function does what you are looking to do. There is not a lot of documentation on this particular function however. For instance it is not in the Tech reference.The function takes as two members (single or cross-dimensional) and returns a member range.The function is primarily used for working with Time and Scenario dimensions instead of creating a dimension that combines the two.Basically the @XRANGE function allows you to store your months in a Time dimension and your years in a seperate Scenario dimension, but still do calculations as if you had set up a fiscal year cross over model.The syntax is @XRANGE(mbrName, mbrName)Hope that helps.
-
Custom Defined Function problem - @JSUM
I'm having trouble getting custom defined functions to work on my 64-bit Essbase 11.1.1.3 instalaltion.
I'm following the instructions and example provided in the 11.1.1 Essbase Database Administrator guide, pages 495 - 498.
I'm using the sample calc provided along with the sample CDF (copied from the book - with the locale automatically added by Essbase):
//ESS_LOCALE English_UnitedStates.Latin1@Binary
"New York" = @JSUM(@LIST(2.3, 4.5, 6.6, 1000.34));
The source code for the @JSUM is as follows:
public class CalcFunc {
public static double sum (double[] data) {
int i, n = data.length;
double sum = 0.0d;
for (i=0; i<n; i++) {
double d = data ;
sum = sum + d;
return sum;
Registering the function worked just fine - I just cut and pasted from the manual:
create function Sample.'@JSUM'
as 'CalcFunc.sum'
spec '@JSUM(memberRange)'
comment 'adds list of input members';
When I attempt to run the calc script Sample.Basic, I get this error:
Error: 1200324 Error compiling formula for [New York] (line 2): operator expected after [@JSUM]
Also, I notice the following error in the Sample application log file when it starts:
[Tue May 11 15:23:43 2010]Local/Sample///Info(1002035)
Starting Essbase Server - Application [Sample]
[Tue May 11 15:23:43 2010]Local/Sample///Info(1200480)
Loaded and initialized JVM module
[Tue May 11 15:23:43 2010]Local/Sample///Error(1200442)
Java Virtual Machine error
[Tue May 11 15:23:43 2010]Local/Sample///Warning(1200490)
Wrong java method specification [CalcFunc.sum] (function [@JSUM]): []
Can anyone provide guidance to how to resolve this error?Turns out this problem can be resolved by the proper JDK settings.
I was using JDK 1.6 to compile my code (as its a pain to find and download the 1.5 JDK). Essbase uses a 1.5 JVM.
The following errors can be resolved by the proper javac settings:
Java Virtual Machine error
Wrong java method specification
Here is the new javac line I used with JDK 1.6:
javac -target 5 CalcFunc.java -
Issue in BAPI- BAPI_PBSRVAPS_GETDETAIL2 with custom default macro in SNP
Hi Experts,
System Details:
SCM 5.0
SP Pack: 13
SNP PA1- No Time series Key figures, only order series
SNP PA3: With time series KF, which also included dynamic safety stock time series KFs
We have created custom macro ZGSCM_SAFETY_STOCK copy
of /SAPAPO/SAFETY_CALC where we used BAPI- BAPI_PBSRVAPS_GETDETAIL2 to
get the dynamic safety stock values from PA3(Planning area3-Planning book3) to PA1(Planning area1-Planning book1). We are getting two issues while doing this as below:
1) Issue we are facing is that when it goes to PA3, it actually save
PA3 planning book for that user as a active planning book and return
back with PA3-planning book. So to avoid this, we call same BAPI again
where we are just calling PA1 planning book without any selection and It works fine and returns
the safety stock values correctly. But now when we load multiple items and
doing the drill down then we are getting an error message saying:
Error reading planning objects (No SNP master data table found)
Error reading data - Planning book cannot be processed further
Do we have any other way to set the active session for user after BAPI call with in the program?
2) Also it always call default macros when BAPI calls which we don't
want, Is there any way we can avoid calling default macros while calling BAPI-BAPI_PBSRVAPS_GETDETAIL2
Regards,
HiteshHi,
The first issue which you faced is becasue of the BAPI which tries to access all the Key Figurs of the data view from which you need to copy data. These KF might be used in different Macros & those macro's might be running for different periodicities.
You can create separate data view the the same planning book & assign the KF to the newly created data view. Most probably, this will solve your problem & you wont get any error message.
Incase the error message pops up, you need to create diffent planning book or planning area (based on your previous PA) & then try. This will definately solve problem which u had faced.
Thanks!
Jay -
Error while creating Custom Defined Functions in Essbase
<p>Hi All,<br>I am trying to create CDF(Custom Defined Functions) in Essbase. Iwant to create a function which take list of child member andreturn the first child. For this, i have created a java file called"ChildAccess.java" which contains the following code:<br>public class ChildAccess<br>{<br>public static char GetFirstMember(char [] members)<br>{<br>return members[0];<br>}<br>}<br>I have compiled and made jar file called"ChildAccess.jar" and pasted it at"ARBORPATH/java/udf". Then i restarted the Essbase Serverand run the following MaxL command to register the function<br>create or replace function '@ChildAccess' as<br>'ChildAccess.GetFirstMember'<br>spec '@ChildAccess(memberRange)'<br>comment 'adds list of input members'.<br>Till here i am not getting any error but when i am using thisfunction in my calc script as given below<br><br>FIX(@ChildAccess(@CHILDREN("Abc")))<br><br>it gives the following error<br>"Error:1200414 Error parsing formula for [FIX STATEMENT]<br>(line 2)"argument[1] may not have size[6] in function[@CHILDREN]"<br>NOTE: The SIZE[6] is giving the no. of child in member"ABC".<br><br>Thanks in Advance<br>Arpit</p>
If you want to use the CDF in a FIX statement you need to make sure that it returns a member name rather than a number:<BR><i><BR>public class ChildAccess<BR>{<BR> public static String GetFirstMember(String[] members)<BR> {<BR> return members[0];<BR> }<BR>}<BR></i><BR>I prefer to define the function against a specific application rather than globally because you only need to restart the application in order to pick-up any modifications to the .jar file. So the MaxL function definition would be:<BR><i><BR> create or replace function appname.'@_GETFIRSTMEMBER' as<BR> 'ChildAccess.GetFirstMember(String[])';<BR></i><BR>and in the calculation script the FIX statement would become:<BR><i><BR> fix ( @member( @_GetFirstMember( @name( @children( "Abc" ) ) ) ) )<BR></i><BR>This looks a little messy so you can use a macro to simplify it:<BR><i><BR> create or replace macro appname.'@GETFIRSTMEMBER'(single) <BR> as '@member( @_GETFIRSTMEMBER( @name( @@1 ) ) )' <BR> SPEC "@GETFIRSTMEMBER(memberRange)";<BR></i><BR>and then the FIX statement could be written:<BR><i><BR> fix( @getfirstmember( @children( "PRODUCT" ) ) )<BR></i>
-
Custom defined FM for purchase price determination
Hi all,
can anybody help me with the problem below..
In IS-retail im assigning a custom defined function module for purchase price determination (MM42 -> sales view -> PP det. seq - 06).
example FM for which is WV_EXAMPLE_01.
but in the import parameter (structure KALP) im not getting the vendor number eventhough it is specified in the screen..
I need vendor number along with material(which im getting) to calculate purchase price..
Can anyone tell me wat the problem is and a solution for it.
Thanks in advance.Hi ,
In VKP5 calculation,Purchase price Schema is pulled from Purchase price determination sequence.
In PP Determination sequence we can give PP schema based on PP determination type.
If the PP type is A,system will fetch the PP Schema from Standard schema maintained in MM.
Regards,
Krish -
F4 help for a customer defined field added as structure enhancement
I am trying to get the F4 help on a customer defined field added as structure enhancement. This can be achieved by programming the "F4IF_INT_TABLE_VALUE_REQUEST" (as I have data in an internal table) in the Process On Value-Request event. The problem is because it is a customer field addition as structure enhancement. I am not sure where I should put this code segment to make it work. Any help would be highly appreciated.
Could you create a search help and attach that to the data element of your field, and then populate the data using code in the function exit of your search help if it cannot be directly read from a table or view?
This would remove your code from the SAP dialog program. The only mod you may need to make is to add / flag the search help on the screen field.
Andrew -
How to create 'custom defined color' in the palette (Oracle 6i Form Buidl)?
I'm new to Oracle 6i and urgently need to edit a colour scheme used on an existing set of Forms in Forms Builder.
I can see how to select colors from the default palette but cannot find a way to edit the 8 spaces kept in the palette for 'custom defined colors'.
Thanks in advance.Have you tried with something as
IF DBMS_ERROR_CODE IN (-20001) then
message ('what_you_want');for example in ON_ERROR trigger? -
Customer Defined Data Classes on Cluster Tables?
Hi all,
I noticed that there is no option within db13 to change the storage option to a customer defined data class, for cluster tables. I am sure this is by design but wanted to check to see if anyone has had any luck defining a data class on a cluster table.
We could move a cluster table to a DB2 tablespace and define the new Data Class through dbacockpit/db02, but there is no option to change the data class definition in the data dictionary (se13) to use the new Data Class for the table itself.
Mainly what we are aiming for is to be able to move 2 tables into their own tablespaces on the target server, during a migration. Sapinst is looking at the Data Classes to create DDLDB6.XML, which defines the tablespace assignments to the target server, so perhaps there is a preferred method of making this change, if it does exist.
Thanks for any insights,
DerekHi guys,
Thanks for the helpful answers. I should add some more detail.
Our tablespaces have already been moved to new tablespaces on the source system, with DB6CONV, and we have updated our data classes through db02, with no problems. So sapinst uses the data class definitions to create the custom tablespaces, and then uses the data class assignments to assign the table to a tablespace.
However, the cluster tables do not seem to support the data class assignment in se13, the option is not available as it is for normal tables. Let me see if I can post a screenshot somewhere with a cluster table versus a normal table. For example, there is no option to change the data class for table CDCLS in se13.
I am wondering if this is a limitation of the version of R/3 we are using, or if the limitation for cluster tables is something that is intended on all versions of R/3.
If we can't use db13 to make the assignment, we may try the custom definition in the STR file as Kiran mentioned. -
Custom Defined Fields Not Flowing to SUS
Hi,
Ours is MM-XI-SUS scenario.All the custom defined fields are flowing from MM to XI.But not from XI to SUS.
We have done SPROXY also in SUS.
Is there any mapping between XI -SUS which needs to be done?
Please advise.
Regards,
ManuHi,
For User-defined fields in SUS
Please refer to these SAP OSS notes ->
Note 762984 - SRM40-SUS: Implementation of customer enhancement fields
Note 458591 - User-defined fields: Preparation and use
Note 672960 - User-defined fields 2
Note 1035416 - Customer fields are not displayed in change mode
Note 822424 - CUF. Customer fields cannot be changed in the bid
Note 809630 - Customer field in bid invitation and bid - How does it work?
Note 809628 - Table like customer fields from bid invitation in bid
Note 798731 - Bid: Bid Inv. Customer fields not visible
Please refer to these links for details ->
Re: How to change the field name in SUS
SUS Web Template Query
Re: SC header CUF ?
Re: MAP USer SRM defined fields in backend for PO
Re: HI SRM experts...
Custom fields to a Bid Invitation
Addition of custom fields in Contract and mapping it with the fields in SRM
urgent help request - How to add custom fields to header BID.
Re: Add custom fields to Contract Transaction in SRM 4.0
Custom Fields
custom fields in Carry out sourcing screen..
Custom Fields Not Display In Basic Data In SRM 5.5 Server..
SC : Extended Search on Header Customer field
Re: customer field in 3rd step of shopping cart
Adding fields in shopping cart
Custom Field in the header of Shopping Cart
BR,
Disha.
Pls reward points for useful answers. -
Management of Internal controls- Customer Defined fields
Hi,
I am facing problem in SAP ECC 6.0 upgradation, as in Management of Internal controls- Customer Defined fields, kindly let me know for configuraton of the same.
ShaileshYou need to study the PCUI (People Centric User Interface).
MIC software use this engine to control the web interface.
Very complete guide:
https://websmp209.sap-ag.de/~sapidb/011000358700001093962006E/PCUIBook50_06.pdf
a quick intro by weblog:
/people/vijaya.kumar/blog/2005/06/10/people-centric-user-interface-pcui--getting-started
Regards,
Sergio -
How to Load the Master Data for custom defined Z infoobjects?
Hi Gurus,
This is the requirement.
Some screen enhancements has to be made by adding new Custom fields( like two text boxes,eg Name and city ) in such a way if we enter data into that text box,that data value for both of the Enhancements has to be stored in some table.If this data is a master data,then how would I pull this master data into BW.
Please someone throw some light on this problem.
Lets say a Screen is enhanced with NAME and CITY with text text boxes.Let the user enters the value for NAME and CITY.Let them be stored under two different tables ZTAB1 and ZTAB2.How would I load this master data into custom Defined Z infoobjects ZNAME AND ZCITY in BW.
Please help me out.
Thanks is Advance,
Regardsyou can by creating generic datasources on thoase tables with Full load or delta.
if the number entries is less.. you can try full load...
if it is more... along with required fields...put date also as one fields. which needs to get date of execution of program or date of uploading to Tables. this will be useful build Delta Mechanism.
all the best.
Nagesh Ganisetti. -
I am planning to create custom defined DSO Object & Info cube
Hi ,
i am planning to create custom defined DSO Object & Info cube.what ratio i can calculate what is the keyfields & what are the data fields in DSO.How can i calculate.
2. how can i create suitable dimensions, suitable characterstics for dimensions.what ratio i can decide.
Thanks,
chandu.Hi Diego Garu,
Thanks for your fast response.i
VBELN VBAP 2LIS_11_VAITM 0DOC_NUMBER
POSNR VBAP 2LIS_11_VAITM 0S_ORD_ITEM
KUNNR VBAK 2LIS_11_VAHDR 0SOLD_TO
VBELN VBRP 2LIS_13_VDITM 0BILL_NUM
FKDAT VBRK 2LIS_13_VDHDR 0BILL_DATE
INCO1 VBRK 2LIS_13_VDHDR(INCO1FieldNot Available in Data Source) 0INCOTERMS
ZTERM VBRK 2LIS_13_VDHDR(Payment terms field Not Available in Data Source) 0UCPYTERMS
NETWR VBRP 2LIS_13_VDITM 0NETVAL_INV.
here data is coming from the multible tables.that why i am planning to create custom defined data source based on view. here how can i calucate dso is suitable or cube is suitable.
suppose dso is suitable how can i decide which on is the data field and which one is the key field.
how can i decide how many dimensions are needed here.and which chara are suitable for that dimensions.
Thanks ,
chandu.
Maybe you are looking for
-
Gifting an ipod to someone living in another country?
My boyfriend lives in Australia and I'm planning to visit him this summer and give him an iPod as a gift. I'm thinking of purchasing the iPod here in Canada so that I can get it engraved and maybe add music before I leave. I'm wondering if there are
-
Auto Extend is on , but maximum file size is 3276MB
Dear Experts, small Doubt , Auto Extend is on in my DB . it is automaticaly extending the table space when datafile is full , increment size is 10240 KB. but my doubt is what is maximum file size it is showing 3276MB . what happend if we reach there?
-
[X-Fi] Why do the "small things" not wo
Creative has designed and produced a great soundcard, I think many people will agree with this point. Of course, there are some small problems, but that's ok with such a high technology product (Vista Support, Crackling Problem). But: Why is the X-Fi
-
Red lining on the right corner of notebook
hi.... i have a pavilion series dv4 1318tu notebook comp. with operating system vista..... my notebook pc has a red lining on its right corner.. it is from up corner to down plz tell me,how can i get rid of this problem????
-
Can connect to database on network but not through VPN
oracle 10g/11g windows 2003/2008 juno pule vpn Hi, When I'm on the office network I can sqlplus and remote desktop to to database server, but on the VPN I can't connect with sqlplus or remote desktop, but I can tnsping. How can this be??