Skip to Content
0
Former Member
Feb 22, 2006 at 01:44 PM

Dynamic operations

548 Views

Hi:

I just this sample code to make dynamic updates:

REPORT  Z_DUMMY_ATG NO STANDARD PAGE HEADING.

DATA: STRING_1 TYPE STRING,
      STRING_2 TYPE STRING.

STRING_1 = 'NAME = ''Alvaro'' LAST_NAME = ''Tejada'''.
STRING_2 = 'SEQUENCE = 1'.

UPDATE ZDUMMY_TABLE
SET (STRING_1)
WHERE (STRING_2).

IF SY-SUBRC EQ 0.
WRITE:/ 'Ok!'.
ELSE.
WRITE:/ 'Error!'.
ENDIF.

It works fine on my SAP 5....But in my MiniSap 4.6D it doesn't work....Any way i can achieve this? I want to make it a reusable as possible.

Greetings,

Blag.