Hi Gurus,
we'are tryning to determine the block numbers for a specified resource into Tcode /sapapo/res01
( Block planning / Create Blocks / Insert Blocks)
We only found one BADI that could help us : /SAPAPO/MC01_BLK , method BLOCK_CHANGES_PUBLISH.
But this method doesn't allow any Block number change.
Checking the standard code, we noticed an interesting form :
in Include /SAPAPO/LMC01_RULF99 , perform propose_blocknr_from_user ,
its parameters correspond to want we want to modify but its code is empty, it only contains following comments :
* from here, a block number can be set by from a customer * enhancement (modification, by now) * In order to activate, above Form propose_blocknr_for_line, * set global variable gb_blocknr_active = 'X', * and enter customer specific coding in order to determine the * block number below.
* implement customer-specific functionality to determine * new block numbers here (as a modification). * Write new block number into CC_BLOCKNR. * Use LC_RESID as internal ID for ressource, * and LC_SIMVERSID as internal ID for planning version, * if required. * Also, some methods of class /SAPAPO/CL_TMC01TB may * be helpful in order to determine new block numbers * (like method BLOCKNR_IS_UNIQUE)
Do we have to modify the standard code in this perform, or is there another method to determine block numbering among project specific rules ?
Thanks' in advance for responding !