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

Layout set

Former Member
0 Likes
585

Hi ,

Is there any way to call an element in Sap script without changing the driver program ?

Priti

5 REPLIES 5
Read only

Former Member
0 Likes
554

Hi,

U can copay the driven program and make it as Z program.

Now can u add ur element in ur z driven program

Read only

Former Member
0 Likes
554

Hi,

I think we can not do that.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
554

You can create your own subroutines to populate data from database into Sapscript variables. Below is the link where you can have more information.

http://sap.niraj.tripod.com/id18.html

Read only

0 Likes
554

hi,

If you dont want to change the driver program and if there is some subroutine in the driver program that fetches the value, then you can simply call this subroutine in your form using peform-endperform statement.

/:DEFINE &S_DATE& = ' '

/:PERFORM get_date IN PROGRAM zreport

/:USING &SALESORDER&

/:CHANGING &S_DATE&

/:ENDPERFORM

Here you are passing salesorder value and getting the date by calling the subroutine get_date in the program zreport.

Regards,

Richa

Read only

Former Member
0 Likes
554

Hi Priti,

It is not possible to call a named text <b>element</b> in a SAPScript without changing the driver program. If you want to fetch and print some data with is not beeing passed by driver program then you can do it using PERFORM...ENDPEROFRM control command of SAPScript.

Thanks and Regards,

Bharat Kumar Reddy.V