cancel
Showing results for 
Search instead for 
Did you mean: 

Generate script logic record without any scoped signed data? BPC 7.5 NW

Former Member
0 Kudos
Hi,
Is it possible to write a record back to BPC if the scoped data set has no signed data?
I am attempting to create some logic script that gives a 'Warning' status to a BPC data manager package so that this script can be called from ABAP, if a warning icon it to be shown.
I am writing data to a calculated member on purpose; 2012.TOTAL so generate the warning, but would like to do it without the requirement for signed data. This is because I would like to reduce any maintenance overhead by BPC support team to ensure a particular entity / signed data entry etc. is in the system.
It is of course possible to leave the scoping to just the TIME dimension, but no members hold 2012.TOTAL as it is calculated, and 2012.JAN has a lot of data so query time is exceptionally long. I want this to be very fast!
Thanks,
Nick

*XDIM_MEMBERSET TIME = 2012.JAN
*XDIM_MEMBERSET CATEGORY = ACTUAL

*WHEN A_ACCOUNT
*IS AC110000
*REC(EXPRESSION=1,TIME=2012.TOTAL)
*ENDWHEN

*COMMIT

Accepted Solutions (0)

Answers (1)

Answers (1)

krishna_priya1
Contributor
0 Kudos

Not sure about requirement of the task that you are implementing(ie getting warning message in the DM package ) .

But from the script perspective , if you want to run for lesser duration , maintain a record manually in the month which you wont use much ,may be 2005.Jan , account : AC110000, category : Actual .Run this script with time scope as 2005.JAN .

former_member186338
Active Contributor
0 Kudos

Hi Nick,

Why not to use a simple BADI like we use in our system to set some flag:

Script:

//*************************************************** ALLOW WRITE TO ACT

*START_BADI WRITE2ACT

WRITE=OFF

QUERY=OFF

DEBUG=OFF

*END_BADI

B.R. Vadim

former_member186338
Active Contributor
0 Kudos

And the BADI code itself:

method IF_UJ_CUSTOM_LOGIC~EXECUTE.
" Allow write to CATEGORY ACT
DATA l_importact TYPE C.

   l_importact = 'X'.
   EXPORT importact = l_importact TO MEMORY ID 'Z_VALIDATOR_IMPORTACT'.

   cl_ujk_logger=>empty_line( ).
   cl_ujk_logger=>log( '=========================================================' ).
   cl_ujk_logger=>log( '# Access to ACT is allowed now!                         #' ).
   cl_ujk_logger=>log( '=========================================================' ).

endmethod.

Vadim

Former Member
0 Kudos

Hi Varim,

Thanks for your input.

I was wondering since you are very handy with script logic and BAdIs..

Do you know how to make the icon in a data manager package show was 'Warning' rather than fail? We have tried sending back a few different code types but it seems that the Package has 'succeeded' before the BAdI has completed running.

It is apparent that if the BAdI fails then the DM package fails, by raising an exception, then the DM package catches these - but we are not sure about warnings!?

Any input would be appreciated!

former_member186338
Active Contributor
0 Kudos

Hi Nick,

We are currently investigating the same issue - how to control the icon and the status of DM package from the BADI launched in the DM script. No clear solution right now. I will post later if we archive some meaningful results.

B.R. Vadim