cancel
Showing results for 
Search instead for 
Did you mean: 

accessing the value from text element in SAPscript

Former Member
0 Kudos

Hi,

I have a problem in SAPscript.I have created a Z-layout set and using a std driver program to print it. Now in main window inside text element 325 I am getting the invoice line item details and in text element 330 I am getting the grand total of net price of all line items.

My requirement is to access the grand total into text element 325(i.e. before printing the line items i want to print the total value).How can do this?

Thanks in advance..

Regards,

Amol

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In the Driver program, you need to call the WRITE_FORM function module with Element 330 before 325 then this is possible,

Regards

Sudheer

Former Member
0 Kudos

Hi,

Since u r using standard Print program, we can't change the program.

so try under the Text Element 325, call a subroutine. in that subroutine

fetch the grand total values.

I think u might be knowing how to use the subroutines in SAP Scripts.

Might this help to solve ur problem.

Thanks

Dinakar.

Former Member
0 Kudos

Yes i can not modify the program.I have called subroutine in the element 325.But as this element is getting called inside the loop the total is printing before each item.Can get the total number of table entries in my subroutine which is called from the script.so that I can set reset the flag and depending on this flag i am able to print the total only once.