Skip to Content
0
Former Member
Jun 25, 2009 at 11:59 AM

Set and Get Parameter ID

4373 Views

Hi All,

I have two Abap programs and in one program I was set the value Globally. The code is,

DATA: para1(10) VALUE 'DATA',
        para2(10).

  SET PARAMETER ID: 'zgbl' FIELD para1.

In the second program I used the Get parameter ID.

data : para2(10).
get PARAMETER ID 'zgbl' field para2.

if sy-subrc eq 0.
write : para2.
ELSEIF sy-subrc eq 4.
write : 'Not Found'.
  endif.

But it didnt work and the Sy-subrc is always 4.

Can any one Help Me.

Helps will be appreciated.