cancel
Showing results for 
Search instead for 
Did you mean: 

MNU_ETOOLS_REFRESH without dialog box

Former Member
0 Kudos

I'm trying to create a macro using the MNU_ETOOLS_REFRESH or MNU_ETOOLS_EXPAND command. Once the data is refreshed, I am running some calculations and then would like to submit the data using a MNU_ESUBMIT command. I need to do this multiple times.

The issue that I am having is that I can not run the etools command without a dialog box (Do you want clear existing input data?) coming up. I have tried multiple alternatives, but it seems that any command that refreshes data gives me that dialog box. Is there any way to refresh data without any dialog box? Does anyone know the code behind the MNU_ETOOLS_REFRESH command?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try changing the input schedule to a report using BEFORE_REFRESH and change it back to an input schedule in AFTER_REFRESH vba code.

Hope this helps you.

Karthik AJ

Former Member
0 Kudos

Thank you for the response - changing the workbook to a Report did solve the problem of the dialog box, but could you provide information on how to change the workbook from an Input schedule to a Report in the macro? I found some info on the BEFORE_REFRESH function, but not on a command to change from an Input schedule to a Report. Any help would be appreciated. Thanks again.

BEFORE_REFRESH

???

BEFORE_REFRESH = True

End Function

Former Member
0 Kudos

Hi,

Please use this URL;

http://help.sap.com/saphelp_bpc75/helpdata/en/5A/69200C88AA40C9B18844A25259F147/frameset.htm

Use this workbook variable EV__WBEVMODE__ to change the workbook mode as input schedule or report.

Karthik AJ

Former Member
0 Kudos

Thank you - I believe this resolves my problem. I'm testing it with various different numbers, but have gotten it to work once without any issues.

Answers (0)