Skip to Content
0
Former Member
Jun 28, 2005 at 01:42 PM

Call sapscript form from an OO class method?

436 Views

Hi,

I'm trying to call a sapscript from a class method like:

method mymethod.

call function 'OPEN_FORM'.....

call function 'START_FORM'......

call function 'WRITE_FORM'....

.....

endmethod.

The layout and the fixed texts comes out correctly and I can print the form;

BUT

All the variable fields are lost!

In a normal program I define:

data: mymara type mara.

perform: fill_mymara.

call function 'WRITE_FORM'

...and mymara is available in the script and I can use it like:

&mymara-matnr&

But If I do the same inside a method..... NOTHING!

So the question:

Do you know I can I pass the data to a form from a OO class method?

Many thanks,

Lorenzo