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 do we define text symbols?

677


What is the use of rstxscrp program?

731


What is sap script?

659


Different types of ABAP memory ?

2095


How can I change the page size of the layout?

683






Can we add new records to the already displayed ALV list.

3408


In sap scripts, how will u link form with the event driven?

659


How do I create boxes in sapscript?

742


How to find the driver program for the given sapscript?

686


What are step loops? How do you program page down page up in step loops?

2234


How can I create a shaded box?

681


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

749


What is the print program?

711


How to pass the variables to forms ?

1629


Disadvantage of Move-corresponding Statement ?

2547