Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

Macro - Row "Total" not editable in /SAPAPO/SDP94

$
0
0

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:

 

macro3.png

 

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.

 

events.png

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:

sdp94.png

 

b) If you select detaills (all):

sdp9541.png


Viewing all articles
Browse latest Browse all 2548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>