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

Structures used in perform statement in scripts ?

1406


What is a workflow ?

1513


What is difference between script and report?

613


How can I prevent page-break in the message that is to be displayed?

523


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

3207






Explain composer. What does it do?

533


How to transfer the objects? Have you transferred any objects ?

2429


What is the work you have done in the MM module and what programs did you use for creating views in MM ?

1692


What is the use of perform statement in scripts ?

1540


Explain the header data in layout set.

549


Hello ABAP GURUS.. I WANT TO KNOW DO WE DEVELOPE SCRIPTS FROM SCRATCH OR WE USE STANDARD SCRIPTS OF SAP..? AND WHAT LOGO WE HAVE IN STANDARD IN LOGO WINDOW OF STANDARD SCRIPT BUSINESS DOCUMENTS...?

2538


In what format does sap script store text ?

561


How many main windows can we create in one script?

555


Explain the pages in layout set.

527


What are Change Pointers ?

1457