on 09-26-2012 1:13 PM
*XDIM_MEMBERSET TIME = 2012.JAN
*XDIM_MEMBERSET CATEGORY = ACTUAL
*WHEN A_ACCOUNT
*IS AC110000
*REC(EXPRESSION=1,TIME=2012.TOTAL)
*ENDWHEN
*COMMIT
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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!
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.