Hi Sooraj,
- In the first step, you set an value only for the initial column. However, in the second step, the macro tries to access unassigned cells of workdays row.
- You can either copy the same value (SHIPH) to all the cells of workdays row or use a variable i.e. LAYOUTVARIABLE_SET(preferred way).
- To avoid the error, make use of EVAL macro function. Pl try the following macro code snippet
EVAL( BUCKET_BDATE[i] < LAYOUTVAR_VALUE( 'shiph' ) )
AND
DET_LEVEL( '9AMATNR' ; 'X' ) = 1
AND
DET_LEVEL( '9ALOCNO' ; 'X' ) = 1
- To make sure, your logic works without any error, you need to consider the periodicity of your horizon.
- Rajesh