TMVL Function BPC 7.5
Hello experts,
We need to replicate the behaviour of the copy opening package through script logic.
The varibles we introduce in the package are
C_CATEGORY=ACTUAL
GROUPS=LC
TIME=2010.SEP (i.e)
In the COPYOPENING.LGF we need to read the record of the last period of the previous year of the variable: 2009.DEC
The record we find we should write them on the time we entered in the var Time of the package so we need to filter on the scope with a negative offset for the TIME dimension.
We need to do it dynamic to chose any period of the year and read the last period of the previous year.
We write next code without success.
*XDIM_MEMBERSET ENTITY = <ALL>
*XDIM_MEMBERSET C_CATEGORY = %C_CATEGORY_SET%
*XDIM_MEMBERSET GROUPS = %GROUP_SET%
*XDIM_MEMBERSET TIME = TMVL(-1,%YEAR%)
*WHEN C_ACCT.GROUP
*IS "BSA"
*REC(FACTOR=1,FLOW="F_OPE",TIME=%TIME_SET%)
*ENDWHEN
*COMMIT
When validating this code returns the error "Invalid TMVL return value"
Any help?
Thank you in advance.
Regards
Hi,
TMVL function works on time members. Having said that, you need to have a member of the time dimension as the second argument of the function. The use of %YEAR% is invalid, because its a year and not a time member.
Hope you got the idea.
Similar Messages
-
Hi,
I would like to understand the follow code :
WEEK = TMVL (WEEK, 1 , MONTH)
How does it work ? what is the role of MONTH ?
Thanks a lot
JacquesHi,
there was a thread related to this
Problem with TMVL function
There they also had to add a dependend characteristic after the offset (for compounded charachteristics). I also used TMVL often with 0FISCPER3 and never had to add the fiscal year variant for example ...
D -
Hello,
I would like to know how to use custom VBA function in BPC. I read the administration guide but I didn't understand this part.
For instance, if I want to use the "BEFORE_REFRESH" function, where do I have to implement it ?
Thanks in advanceHello Mark,
I've also used BPC VBA functions quite extensively to extend BPC capabilities with success up until now, but I am now struggling with finding a way to make them work when registered as macros from an external add-in.
The scenario is the following: I currently leverage custom VBA macros (BEFORE_EXPAND, AFTER_EXPAND, etc) to extend BPC functionalities, and the code is distributed in the VBA modules attached with my input schedules/reports spreadsheets.
I then decided to consolidate the functionalities in an Excel automation add-in, which (among other tasks) registers the same macros once at Excel startup to be used by all the different input schedules / report: macros are registered and exposed correctly (they are showing up in the list of available functions) but for some reasons they are not fired by the Expand All or Refresh menu actions.
Any idea about why the macros are not executed? Do they necessarily need to be written in a VBA module attached to the spreadsheet?
Many thanks in advance.
Regards
Jacopo -
Invalid TMVL retun value failed.
Hi,
I have tested one script logic, In this I got one error "RUN_LOGIC: Invalid TMVL return value
Failed. Please find the below code what I have validated successfully in the NW system.
Could you please help me in this.
Logic:
*LOOKUP Staff_Additions
*DIM EXP:SALARY=Salary_Redis
*DIM CATEGORY=BUDGET
*DIM CLIENT_GROUP=1010
*DIM DATASRC=INPUT
*DIM INTCO=Non_InterCo
*DIM RPTCURRENCY=LC
*DIM TIME="%TIME_SET%"
*DIM ACCOUNT=41000
*ENDLOOKUP
*START_BADI ROUND
QUERY = OFF
WRITE = OFF
DECIMAL = 2
*END_BADI
*WHEN CATEGORY
*IS "BUDGET"
*WHEN INTCO
*IS "Non_InterCo"
*WHEN JOB_TITLE
*IS "No_JobTitle"
*WHEN SALARY
*IS "Salary_Redis"
*WHEN RPTCURRENCY
*IS "LC"
*WHEN DATASRC
*IS "INPUT"
*WHEN EMPLOYEE.TERMINATION_DATE
*IS =1
REC(EXPRESSION=.07692LOOKUP(EXP),TIME="TMVL(-11,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-10,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-9,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-8,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-7,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-6,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-5,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-4,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-3,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-2,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(-1,%TIME_SET%)",SALARY="Salary_MO")
REC(EXPRESSION=0 LOOKUP(EXP),TIME="TMVL(%TIME_SET%)",SALARY="Salary_MO")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
Thanks and Regards,
Krishna.Hi,
Thanks for understanding my problem and for the right solution . Finally I have solved this problem by using TMVL function in the script. It is working fine now.
Script Logic:
*LOOKUP Staff_Additions
*DIM EXP:SALARY=Salary_Redis
*DIM CATEGORY=BUDGET
*DIM CLIENT_GROUP=1010
*DIM DATASRC=INPUT
*DIM INTCO=Non_InterCo
*DIM RPTCURRENCY=LC
*DIM TIME="%TIME_SET%"
*DIM ACCOUNT=41000
*ENDLOOKUP
*START_BADI ROUND
QUERY = OFF
WRITE = OFF
DECIMAL = 2
*END_BADI
*WHEN CATEGORY
*IS "BUDGET"
*WHEN INTCO
*IS "Non_InterCo"
*WHEN JOB_TITLE
*IS "No_JobTitle"
*WHEN SALARY
*IS "Salary_Redis"
*WHEN RPTCURRENCY
*IS "LC"
*WHEN DATASRC
*IS "INPUT"
*WHEN EMPLOYEE.ABSENCE_DATE
*IS "1"
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-11,%TIME_SET%),SALARY=Salary_MO)
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-10,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.09615 LOOKUP(EXP),TIME=TMVL(-9,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-8,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-7,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.09615 LOOKUP(EXP),TIME=TMVL(-6,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-5,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-4,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.09615 LOOKUP(EXP),TIME=TMVL(-3,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-2,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.07692 LOOKUP(EXP),TIME=TMVL(-1,%TIME_SET%),SALARY="Salary_MO")
REC(EXPRESSION=.09615 LOOKUP(EXP),TIME=%TIME_SET%,SALARY="Salary_MO")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
Thanks and Regards,
Krishna. -
BPC 10.1 Unified Environment
Hello Experts,
My client has some questions around unified environment.Please help me understand it better
1) If we have a bpc model exactly same in classic environment and an unified environment,Will the model in unified environment be faster in performance.If yes then why so?
2)How difficult will be to migrate the development from a classic environment to unified environment?Will it be a total new development or there is a migration tool?
3)I understand that bpc script is replaced by fox script? Is the fox script ready to use or it will come in future?
4) Will the foxscript be faster than bpc script?
5) Will the reports run faster in unified environment?
Thanks
SenoyHello All,
Thanks for your inputs.Based on your comments and from other posts, I have noted down the Key Differences between BPC Classic and Unified Version.Please let me know in case I have missed something or needs any correction
Criteria
BPC Classic
BPC Unified
BPC Script
BPC script would be running in Application server and so the performance would be less as compared to Unified Version
Scripting would be in FOX script.This FOX script would run directly on Database Server and so the performance would be good
Reporting
Performance would be good as the data retrieval would be from HANA database
Performance would be good as the data retrieval would be from HANA database
BW IP
You cant use BW IP functionality
BPC Unified will incorporate most of the IP features
Data for Underlying Models
BPC Classic Environment has models which is not tightly integrated with BW
BPC Unified Environment Models can have Actual and Plan data sitting in different cubes and tighly integrated with BW
BW Master Data Access
Not Possible
Unified Version allows real time Data Access to Master data
BW Query Access
Not Possible
It can access BW queries too
HANA service Pack
BW 7.40 SP5 requires HANA SP7, so HANA SP7 is required for BPC 10.1 as well.
BW 7.40 SP5 requires HANA SP7, so HANA SP7 is required for BPC 10.1 as well.
Software component CPMBPC required to be installed?
CPMBPC( as well as HANABPC) is only need to be installed when BPC Classic is to be used
BPC 10.1 Unified is to be used, install SAP_BW is already enough
EPM add-in for BPC 10.1?
EPM add-in 10.0 SP16 onwards
EPM add-in 10.0 SP16 onwards
Can BOBJ Analysis be used in front end office?
No.Only EPM Addin
EPM Addin or BOBJ AO as front end interface
Data Model support?
Based on Account Based Model
Supports Keyfigure Model
Comments
Comment Functionality Available
Comments not Yet Available
Consolidation
Available
Consolidation not Yet Available
Business Rules
Available
Not Available yet
Drill Through Functionality
Available
Not Available yet
Member Formulas
Available
Not Available yet
Journals
Available
Not Available yet
Controls
Available
Not Available yet
User Exits
ABAP User Exits
SQL User exits
FULL Hana Integration
Its not a full HANA Integration
It’s a Full HANA integration
Currency Translation
Possible with Business Rules
Not Possible as Business Rules are not yet configured
Migration to Unified
Migration from Classic to Unified not possible.It would be a fresh Implementation
No need of Migration
Flexibilty Rating
Very Highly Flexible
Medium Flexibilty
Can Classic and Unified be present in the same server
Yes
Yes
Auditing
Can be set at Admin
It has to be done in Backend RSA1 Transaction
BPC Admin
Entire web client has been rebuilt with HTML5 technology
Entire web client has been rebuilt with HTML5 technology
Language Support
Both Hebrew and Arabic language are supported with BPC 10.1 in web interface and EPM add-in.
Both Hebrew and Arabic language are supported with BPC 10.1 in web interface and EPM add-in.
Owner
Business Owned
IT owned -
Hello,
I have a question but I did not see the answer in the BPC help.
I make a study on generic requirements for a BI data collection tool and try to see how many functions BPC cover.
Does BPC send emails of notifications using the BPF ? I mean mainly when a validation is needed for example to go next step to advise the user that his data has been validated or rejected ?
Thank you for the answer.
Eric DelmotteHi Eric,
You can definitely do that.
Automatic e-mail messages can be sent to BPF users to remind them to perform their appointed BPF tasks. In the When should users be notified section, use the two drop down menus to specify a number of days prior to the start of, or after the start of the BPF frequency you specified in Step 1.
While adding a step, in the Properties fields, use the check boxes to indicate if you want to:
u2022 Enable alerts. Reserved for future use.
u2022 Enable completion criteria. Completion criteria may be enabled if Work Status has been enabled in the controlling application of the BPF. If defined here, the selected combinations of members must be set to the specified work status before the step can be considered complete. See Managing work status.
u2022 Enable reviewers. This allows reviewers (as defined in the 'Reviewer' property of the drive dimension) to review the step. If you want to define an action that the reviewer must perform in order to review the step, select Set/Modify Custom Review Actions.
u2022 Send email to reviewers. This option becomes active when you choose Enable reviewers. When you choose this option, an email is sent to the stepu2019s reviewers when a step is identified by the user as complete. The email subject line communicates the following: u201C<Step_Name> step of <BPF_Name> has been completed by <User>u201D. The email uses the name of the person who completed the step as the emailu2019s sender. To set the text for the body of the email, choose Define email message. Note that if you do not define the custom email message, the above-mentioned email subject line is repeated in the body of the email.
Hope this helps. -
Hi Experts,
We are using SAP BPC 7.5 NW Version SP08. We are using a script logic that calculates the opening value of inventory(ASSTCAINVAMO) for each month except the 1st month of financial year for which the value is entered from an input schedule. The opening value of inventory of each subsequent months are calculated when the parameters for production(e.g. OSDA) are entered from a separate input schedule. The following script logic is written for the calculation:
*FOR %TIM_MEM%=%TIME_SET%
*XDIM_MEMBERSET TIME =%TIM_MEM%
*WHEN P_ACCT2
*IS "OSDA",
REC(EXPRESSION=[P_ACCT2].[ASSTCAINVAMO]+[P_ACCT2].[RDPA][P_ACCT2].[EFFA][P_ACCT2].[OSDA]-[P_ACCT2].[CONVAMUR][P_ACCT2].[RDPU][P_ACCT2].[EFFU][P_ACCT2].[OSDU]-([P_ACCT2].[SALQAMBC]+[P_ACCT2].[SALQAMM]),P_ACCT2="ASSTCAINVAMO",TIME=TIME.NEXT)
*ENDWHEN
*COMMIT
*NEXT
The loop works fine, but it seems the list of time values are not coming in proper sequence. For example, the loop is running for 2011.NOV before it iterates for 2011.OCT. So when it iterates for 2011.NOV, it is not getting the opening value for the month and consequently 2011.DEC's opening value is calculated assuming 2011.NOV's opening value to be 0. In the input schedule the months are in proper sequence.
Is there any way out so that the months come in proper sequence in the logic as well?
Thanks in advance for any help.We had similar issue . we changed TIME members from Monthnames to numbers . i.e changed 2011.JAN to 2011.01 . Then you get correct result as you are expecting . Issue when using month names in combination of TMVL is that , instead of getting 2011. MAY for TMVL(1,2011.APR) , it gets 2011.FEB . TMVL function some how takes alphabetical order instead of taking month order . Not sure if this behavior is with service pack . But never saw any thread reporting this issue .
Anyways ,you can wait for other responses as i am too curious to know if any one faced this issue and how did they resolve. -
Use property value in *REC EXPRESSION statement
Hi,
How can I use the value of a property in a *REC EXPRESSION statement.
Assuming I have a property PRIORYEAR in my TIME dimension that indicates the same period in the previous year
Example: ID: 2009.JAN, PRIORYEAR=2008.JAN
I want to fetch the value from the PRIORYEAR with something like:
*REC(EXPRESSION=([TIME].PRIORYEAR),ACCOUNT="RENTASPERCSALES")
But it won't work. I tried few other options such as
*REC(EXPRESSION=([TIME].CurrentMember.Properties("PRIORYEAR")),ACCOUNT="RENTASPERCSALES")
to no avail.
Any suggestion would be greatly appreciated.
Thanks
RegisHi Regis,
Just checking, have you tried using 'TMVL' function in your script logic. Please check the help.sap for the usgae and some examples.
We could use TMVL in all the following places.
- in a 'WHEN' statment
- in an REC expression
- and also in a scoping statement.
We had some issues validating the script logic with TMVL in SP04 and teh same have been resolved in SP05. You might have to write the logic and validate the logic if your BPC version has any SP related issues.
Example:
*WHEN TIME
*IS TMVL(-1, 2010.DEC)
*REC(FACTOR=1, TIME=201.DEC)
*ENDWHEN
we could also use TMVL with a data manager prompt value such %TIME_SET%.
Thanks -
Error in the Input scchduled.Object variable or with block varaible not set
Hai Experts ,
In the input schdueld , data is not accepting ..
Its shows error : Object variable or with block varaible not set
Please help..
Regards
Daya.........Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Error: Object variable or With block variable not set.
Hi,
when i try to fill the control tables and browse for the target period in HFM (sys 9.3.1) i get the error: Error: Object variable or With block variable not set.
When browsing for the target value in the location for the value no problem occurs.
Anybody a clue?Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Code 91 - Caused Error: (Object variable or With block variable not set)
Hi,
We are using FDM 9.3.1. We have enabled batch processing.
We are having following process being followed
- Batch Loader script will pull the data from dwh table for each entity, scenario, year and period
- Batch processing is set to serial and processlevel set to Up-To-Check
- We had following five files created for Location - EMAFF100
i. 1_EMAFF100_ACT_May-2011_RR.txt
ii. 1_EMAFF100_ACT_Jun-2011_RR.txt
iii. 1_EMAFF100_ACT_Jul-2011_RR.txt
iv. 1_EMAFF100_ACT_Aug-2011_RR.txt
v. 1_EMAFF100_ACT_Sep-2011_RR.txt
Batch loader process completed the processing for May - 2011, Jul - 2011, Aug-2011, Sep-2011.
But for Jun 2011 it has given the following error in the 'tbatchinformation' table and failed at import stage.
40751.6239236111 1_EMAFF100_ACT_JUN-2011_RR.TXT 2 2 91-Object variable or With block variable not set
When we checked the view error log from tool menu we found following
** Begin FDM Runtime Error Log Entry [2011-07-27-14:58:29] **
ERROR:
Code......................................... 91
Description.................................. File [1_EMAFF100_ACT_Jun-2011_RR.txt] Caused Error: (Object variable or With block variable not set)
Procedure.................................... clsBatchLoader.mFileCollectionProcess
Component.................................... upsWBatchLoaderDM
Version...................................... 931
Thread....................................... 5600
IDENTIFICATION:
User......................................... ncreighton
Computer Name................................ HYAPSDEV1
App Name..................................... EMATTEST
Client App................................... WebClient
CONNECTION:
Provider..................................... ORAOLEDB.ORACLE
Data Server..................................
Database Name................................ hydev_serv
Trusted Connect.............................. False
Connect Status.. Connection Open
GLOBALS:
Location..................................... EMAFF100
Location ID.................................. 762
Location Seg................................. 16
Category..................................... ACT
Category ID.................................. 13
Period....................................... Jun - 2011
Period ID.................................... 30/06/2011
POV Local.................................... False
Language..................................... 1033
User Level................................... 1
All Partitions............................... False
Is Auditor................................... False
We then re submitted data for Jun period and saw batch process got successfully completed and June data got imported successfully and also rest other processes got through.
Can any one provide exact cause for this error? As we have automated the data load from DWH to FDM And then to HFM. Hence when such error comes it disturbs lot of processing there on. Appreciate your early response.
Thanks in advance.Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Load Hierarchy Error "object variable or with block variable not set"
Hi gurus
When I try to load a dimension by package I get this error "object variable or with block variable not set" and I can not select the hierarchy of the dimension
You know how to fix this issue?
Thanks
NayadethHi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Importing existing worksheet yields "Object variable or With Block variable not set" error
There is not much more to say. I try to import the worksheet, but it gives that error. I do not see anywhere I can enter VAB either. FYI, I am working with SharePoint 2007 but there was no forum for that.
Hi SAP collegues,
At my site, BPC Excel created this problem too "Object Variable or With Block Variable not set" .
It turned out that this is symptom of a a dys-functioning BPC COM Plug-in in XL2007 or XL2010!
This is a consequence that your Excel recently crashed while using BPC. And it relates to an Excel Add-in becoming disabled when the applications crashes. Please check the following.
Note before doing the following, close all other open Excel and BPC sessions.
Within Excel go to File à Options
Select the Add-Ins option on the left
Select the <<COM Add-ins >> option in the Manage drop down, and click Go
Make sure that the Planning and Consolidation option is selected. If not, mark this box and click OK.
If you do not see anything listed, return to the Add-in screen and select the Disabled Items option, and see if Planning and Consolidation is listed there.
Let me know if you have any queries,
Kind Regards,
robert ten bosch -
Using offset for global variables in FOX
Dear all,
I'm using global variables (i.e. defined in planning area)in my FOX formulas by using VARV-command.
I'm doing this for fiscal year, which has default value current year. However I'd like to use this variable also for next year thus creating the following code:
DATA CURYEAR TYPE 0FISCYEAR.
DATA NEXTYEAR TYPE 0FISCYEAR.
CURYEAR = VARV(Z021VA01).
NEXTYEAR = CURYEAR+1.
This gives a syntax error. Anabody any idea how I can use offset in the FOX for my variables?
Thanks in advance!
Kind regards, HarjanHarjan,
Use TMVL function to get the offsets.
DATA CURYEAR TYPE 0FISCYEAR.
DATA NEXTYEAR TYPE 0FISCYEAR.
CURYEAR = VARV(Z021VA01).
NEXTYEAR = TMVL(CURYEAR, +1).
hope it helps. -
Hi gurus, i have two application. First
PROP_GRP;
Dimensions:
REGION
MATERIAL: I have master data of materials and i have a property for zprodh1 members which are in other application.
CURRENCY
ENTITY
PG_ACCT
TIME
COUNTRY
CATEGORY
MATL_PROP_GRP;
Dimensions:
REGION
MATL_GRP
CURRENCY
ENTITY
TIME
COUNTRY
MPG_ACCT
CATEGORY
ZPRODH1: I have all hierarchy members like master data.
for example:
zprodh1
id
001
002
003
material
id----
zprodh1
xyz00wert----
001
zvt9901123----
001
dajsjdıaj----
002
I wrote this code:
*WHEN_REF_DATA=MASTER_DATA
*XDIM_MEMBERSET GP_ACCT=SF4000
*XDIM_MEMBERSET MATERIAL = xyz00wert
*XDIM_MEMBERSET CATEGORY= 120
*XDIM_MEMBERSET ENTITY=1200
*XDIM_MEMBERSET CURRENCY= USD
*XDIM_MEMBERSET COUNTRY= US
*XDIM_MEMBERSET REGION =201
*LOOKUP MATL_PROP_GRP
*DIM MATL_GROUP="NA_MTLG"
*DIM CURRENCY="NA_PB"
*DIM MPG_ACCT="UH_1000"
*DIM POLYSKA:ZPRODH1=MATERIAL.ZPRODH1
*ENDLOOKUP
*WHEN PG_ACCT
*IS SF4000
*REC(EXPRESSION=%VALUE%*LOOKUP(POLYSKA) ,PG_ACCT=SF2000)
*ENDWHEN
*ENDWHEN
This code doesn't work and i get this error:
[WARNING!] NO MEMBER SPECIFIED FOR DIMENSION:ZPRODH1 WILL QUERY ON ALL BASE MEMBERS.
Any idea?
Thanks in advance.It is resolved, ujkt function does not work.
Now, i have a problem about this code.
*LOOKUP MATL_PROP_GRP
*DIM CURRENCY="NA_PB"
*DIM MPG_ACCT="UH_1000"
*DIM POLYSKA:ZPRODH1=MATERIAL.ZPRODH1
*DIM POLYSKA:TIME=TMVL(-1,TIME)
*ENDLOOKUP
How i can use tmvl function in lookup?
Thanks in advance.
Maybe you are looking for
-
Hi, I am scheduling a report to run in background. In this report it is creating background jobs automatically for different company codes. It submits the 1st background job and waits until it finishes. Then 2nd job starts in background and continu
-
How to add a Folder inside a Folder ? (non)
I have tried even going directly to the srf file to do the grouping manually. Bear in mind that I have performed this successfully on an existing SAP folder. But if I tried doing it on a form i've created with the screen painter the results are simp
-
Groupware Transaction is rejected in CRM Online
Hello All, Appointments and Tasks are replicating fine from CRM to Groupware. But when I create an appointment in Groupware ( in our case Lotus ), I get an email from the CRMAdmin saying 'Transaction is rejected in CRM Online' Does anyone know how to
-
Hi all, I want to create a job based on a database event. I want to delete records in a table that are older then for example 4 years old. Tha tabel has a create_date attribute. Is this possible? Ps. Currently I would create a procedure that would ch
-
DynaDock usb 3.0 with ubuntu 12.10
It would be really nice to get works the DynaDock usb 3.0 with the last available Ubuntu distribution. Here some users that would appreciate to get this running: http://ubuntuforums.org/showthread.php?p=12481010#post12481010 regards Stefano