Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create Variable (Loop)

Dear all,

I need a loop which is done for the countries "bg", "sk", "cz" ... and so on, which is performed in the SAP script (not via Excel or that like)

Actually I wanted to use the normal VBA codes to create a variable but it doesn't work

e.g.

Dim ctr(5) As String

ctr(1) = "bg"

ctr(2) = "sk)

and so on

Have you any idea how I can create this vector?

thanks

br

Michael


Former Member
replied

Hello Michael,

welcome in the Scripting Language forum.

Try this:

Dim ctr(4)

ctr(0) = "dk"

ctr(1) = "en"

ctr(2) = "de"

ctr(3) = "us"

For i = 0 To UBound(ctr) - 1

  MsgBox ctr(i)

Next

Let us know your results.

Cheers

Stefan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question