cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax for CASE / WHEN in SNP Macros.

Former Member
0 Kudos

Dear APO Gurus,

I'm having problems using CASE when in SNP macros, even though I've tried quite a few syntaxes.

could someone please tell me how to Use CASE WHEN (WHEN WHEN WHEN...) ENDCASE in macros ? this would save me an awful lot of IF

Thanks in advance,

Hugues

Accepted Solutions (0)

Answers (1)

Answers (1)

rico_frenzel
Explorer
0 Kudos

Hi,

you can import an example macro to see how the CASE usage works. In order to do so, perform the following.

1.) Enter Makro Builder and enter your new macro book

2.) In the Menu, choose "Edit" -> "Import macros"

3.) Choose "SAP Example and template macros" as reference book

4.) use "Using the Case statement" as reference macro.

This will import the example macro which you can take as reference.

Best regards

Rico Frenzel