I have created a Gateway project and under Create_Entity method calling a RFC. Through RFC I am passing the data to 'OPEN_FORM', 'WRITE_FORM', 'CLOSE_FORM' for getting the SAP Script form. In response I am getting a mail having Sap Script form as attachment but all the fields value are coming as blank.
I have gone through some of the earlier threads and have defined ITCPO field on TOP Include of RFC but still getting the blank form. Can somebody please help me regarding the same. What could be the possible issue.
Thanks for the help in advance.
the most common issue you might have, is that through the RFC-Call the main-program of the form is different as the main-program from your global variables.
To solve it, you can pass the main-program (where your global vars are filled) during the open_form call with function start_form.
Put a break-point at open_form and have a look. Pretty sure this is the issue...