‎2006 Sep 01 1:27 PM
Hi ,
Is there any way to call an element in Sap script without changing the driver program ?
Priti
‎2006 Sep 01 1:39 PM
Hi,
U can copay the driven program and make it as Z program.
Now can u add ur element in ur z driven program
‎2006 Sep 01 1:40 PM
Hi,
I think we can not do that.
Thanks and Regards,
Bharat Kumar Reddy.V
‎2006 Sep 01 1:41 PM
You can create your own subroutines to populate data from database into Sapscript variables. Below is the link where you can have more information.
‎2006 Sep 01 1:47 PM
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
‎2006 Sep 01 3:00 PM
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