cancel
Showing results for 
Search instead for 
Did you mean: 

APO DP: how to delete values in macro or program to reset the KF to blank?

Former Member
0 Kudos

Hello,

I am on a project with SAP SCM 5.00.

In the planning area, we are using for the key figures the indicator "Zero allowed" to differentiate zero values from blank values.

In a macro or ABAP program, we would like to be able to reset the key figure value for a day to blank. We are able to reset it to zero, but did not find anyway to reset it to blank.

Manually this is possible: when we go in the planning book and click on the delete button on that key figure*day, it indeed deletes the values and puts a blank.

Would you know any way to do so in a program or macro?

Thanks a lot,

Matthieu

Edited by: Matthieu Lepelley on Jul 22, 2008 5:17 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Thanks a lot for your answer.

We could use that macro and make some tests and it works fine.

Yet we would like to use this functionality in a program, and we are not able to find what is the function module used by the macro. We went in debug but no clue !

Would you have an idea how we could find this function module, or would you know it?

Or if not do you know if there is a function module to launch macros within a program, without passing by a background job (and like this we could input the selection that we want in the program)?

Thanks again,

Matthieu

Former Member
0 Kudos

Hi,

If I understand you right, you are trying to set a day's value for a keyfigure to null or blank.

Create a macro with just for that day and in keyfigure properties, you can select "Initialization". When you execute, it just makes that key for that date as blank. The pre req for this is to have the zeros allowed checked for this keyfigure in the planning area.