Small doubt on displaying variables in sap script
Can anyone let me know if i am in the correct way or not.
i'm modifying one existing script. to display some data in the script i am doing like this :
get the data into itab.
loop at itab into wa.
call FM write_form
element = 'TEXT'.
in the layout i am using this elements and variables
S1 <D1>&WA-FIELD1&</> <D1>&WA_FIELD2&</>
but the work in not having any data in the layout whereas before call write_form its having data.
can anyone suggest me who to deal with this.