how to get total price in sapscript form?

Answer Posted / shweta thakur

suppose you want totat of netpr from purcahsing item header
table(EKPO).
IN SE38 you will have to define write_form in main loop
like this:
loop at it_ekpo into wa_ekpo .
call function 'write_form'
exporting
element = 'tm'
window = 'main' . "provide window name
total = total + wa_ekpo-netpr.
endloop.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to design the windows in script?

544


How would you call a subroutine in sap script?

570


How can you copy forms from one client to other?

521


what is the use of outline option?

1742


How can I copy sapscripts from one client to another, or export/import them?

564






I want to take the back up of my script layout into my hard disk to be loaded later. What should I do?

533


In what format does sap script store text ?

563


What does read_text?

561


What is the use of the position and size command in sapscripts?

536


How to edit standard SAPSCRIPT called by standard program ?

6184


Is it possible to create a sapscript without a main window?

620


you want to link to a layout set. What abap 4 commands will you use?

534


How can I format the date being displayed in the sapscript?

550


How can I format the time in the sapscript?

553


Where do u set the default paragraph?

546