This blog explains how to create a macro which will make row "Total" not editable in transaction /SAPAPO/SDP94.
- Use function "ACT_LEVEL" inside the "If" condition. If ACT_LEVEL ( ) > 0, this means that the level is not the total level.
- Then choose the Row that you want to use this functionality and change the attribute.
- Inside that you will use function ROW_INPUT ( 1 ). If X = 1, the status of the row is set to Ready for Input.
- The last step is to use the ELSE condition. Put Row as an attribute.
- Inside that you will use function ROW_INPUT ( 0 ). If X = 0, the status of the row is set to Read-Only (write-protected).
Note that I also used the function ROW_BG to change the background color of the row. See example below:
You should put this macro in the events "Level change" and "Start" because when you open /SAPAPO/SDP94 and when you change the level the macro will be executed.
And here is the result in /SAPAPO/SDP94 transaction. The gray background color means that you can't change the row. The green background color means that the row is ready for input:
a) When you open /SAPAPO/SDP94:
b) If you select detaills (all):