I am trying to use a variable in a macro on the demand planning grid. The logic needs to go as follows.
Initialize a user defined variable and set to 0 at the default event.
If a change is made to certain rows, set the variable to 1 at the default event.
Then if the variable is 1, add the rows together at the default event.
I have all of it written except for the variable part. I looked in the SAP help and could not find what I needed. I also searched the forum with no luck. I am looking for what the syntax needs to be and what elements are needed to accomplish this.
Can someone please help?