[saphelp] Re: Dynamic code???

  • From: saphelp@xxxxxxxxxxxxx
  • To: <saphelp@xxxxxxxxxxxxx>
  • Date: Fri, 26 Jul 2002 08:29:06 +0200

Ah... that rings a bell.
Thanks. :)


-----Original Message-----
From: saphelp@xxxxxxxxxxxxx [mailto:saphelp@xxxxxxxxxxxxx]
Sent: 26 July 2002 08:27
To: saphelp@xxxxxxxxxxxxx
Subject: [saphelp] Re: Dynamic code???

Check out the GENERATE command, you can define an internal table and insert
your code in it and then use the GENERATE command to execute it.

Max Merolla
ABAP Developer
011 809 2199
072 384 4955

                      .org                     To:       
                      Sent by:                 cc:                              
                      saphelp-bounce@fr        Subject:  [saphelp] Dynamic 
                      2002-07-25 16:30                                          
                      Please respond to                                         


Does anyone here know how to build a string then Execute it.

Data: w_field1(10) type c,
         w_field2(10) type c,
         w_field3(10) type c,
         w_field4(10) type c,
         w_field5(10) type c,
         w_command(100) type c.

w_field1 = "Perform".
w_field2 = "SUB_ROUTINE".
w_field3 = "using".
w_field4 = "w_filed5".

concatenate w_field1 w_field2 w_field3 w_field4 into w_command seperated by
Now what would I do if I wanted to execute w_command as a command???

Thanks in advance.

(See attached file: InterScan_Disclaimer.txt)

Please note that this eMail, and the contents thereof, is subject to 
the standard Sasol eMail disclaimer which may be found at:  

If you cannot access the disclaimer through the URL attached and 
you wish to receive a copy thereof please send an eMail to 
disclaimer@xxxxxxxxxx You will receive the disclaimer by return eMail.

Other related posts: