‎2016 Jun 10 4:22 PM
Hi,
I am updating a copy of standard form MR_PRINT and in the info box I need to include data that is going to have multiple rows. I would like to know how i can create a element and call it to return the data. I was thinking about using a perform but do not believe that a perform can call an element. Please let me know if this is also correct.
Thanks,
Jim
‎2016 Jun 11 5:36 PM
It seems to be a SAPscript basic question:
1 - How to create an element?
SE71 -> create a window -> create an element
2 - How to call an element?
Function module WRITE_FORM
Could you please elaborate your question?
‎2016 Jun 13 5:16 AM
Hi Jim,
Do you have a standard print program or custom one?
If its a standard print program, then better go for INCLUDE command in SAP Script. You could write the logic in a Include Program and call it in your SAP Script.
Thanks.
Vijay
‎2016 Jun 13 4:55 PM
Hi,
It is the standard print driver program for script MR_PRINT, which I have copied to a z program. Right now I have to put 2 lines of data Name, phone number and email these could be for up to 5 people. At the moment I am calling a perform and just using the 3 variables I require and changing 15 variable the 3 X 5 possible entries returned from the perform. I am just looking for a cleaner way of doing it and thought the element may be a better way, but did not want to change too much of the driver program. So any info would be appreciated I have not done SAPScript before.
Also the window I am putting this in is the Info window which used to be a CONSTANT window I have changed it to VARIABLE, however it is not expanding with the data.. Any suggestions as to how I can correct this as well?
Thanks for any input,
Jim