Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating and using elements in Sapscript

0 Likes
1,768

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

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,278

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?

Read only

Former Member
0 Likes
1,278

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

Read only

0 Likes
1,278

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