Hi
I have a sapscript, to which I need to pass data from my program.
So I am opening the form using open_form with the form name and using WRITE_FORM to pass data to an element in script. then closing the form using CLOSE_FORM.
It is not passing data to sap script. When I debug and check, the values are not being passed and just displaying the blank script.
I dont have much experience in scripts. Cound anyone let me know how to resolve this?
please find the code below, which I am using.
VIQMEL-MATNR = 'AAA'.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
dialog = space
form = 'ZUS_QM_DEVIATION'
language = sy-langu
options = struct.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'TEXT1'
window = 'MAIN'.
where VIQMEL-MATNR is a place holder in script and that is in window main and text element is 'TEXT1'.
Please help me out.
Thanks,
Pallavi.