Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

what are program lines in smart forms

Former Member
0 Likes
2,867

hi

what are program lines in smart forms ? what is the use?

4 REPLIES 4
Read only

Former Member
0 Likes
1,395

program lines in the smartform provide provision of writing ABAP code in SMARTFORMs...

one of the example for it can be use of counter.. you can define a variable in these program lines.. and increment it the loop so that you can have a count of the loop .. or record...

Read only

Former Member
0 Likes
1,395

the program lines in smartforms are use in the same way as we use ABAP editor...the only thing whatever variables or internal tables u are using in that program lines u need to mention thta in imput and output above...

if u want a particular variable or internal table to be used in future define that in output...else u define it in input....

see the thread

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ccab6730-0501-0010-ee84-de050a6c...

Read only

Former Member
0 Likes
1,395

hi

good

You can use the PROGRAM LINES node to calculate the page totals in Table node.

Table Node has three sections:

Header: (Triggered once in the beginning of a page)

Create a Program lines node to reset the value of TOTAL to 0.

Main Area (For each row of internal table)

Create a Program lines node to add the Value to TOTAL

Footer (Triggered once in the End of a page)

Display the TOTAL

Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.

2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters

reward point if helpful.

thanks

mrutyun^

Read only

Former Member