Skip to Content
Former Member
Nov 06, 2013 at 07:40 AM

Getting table data from subroutine to SAPScript


Hello Experts,

I have a requirement which asks to display 3 new fields on the MEDRUCK form.

> Copied the MEDRUCK form to ZMEDRUCK.

> To display the whole table data, I selected the rows from the table and using 'SAVE_TEXT' function module I am writing all the records to standard text.

After writing in the standard text, using INCLUDE statement I am displaying in the form.

Here, I had an issue in displaying the data.

When I execute the ME4N transaction, I could see list of contracts in which I select one and print preview, the data displays fine for the first time.

Then when I go back and select another contract from the list of contracts and print preview, I could see the same data which is displayed for first contract is being displayed for this contract too.

Is there a way to clear the standard text after printing on the form?

Any inputs are highly appreciated.