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

SMARTFORMS LOOP

former_member191391
Participant
0 Likes
1,245

How to write "Do 5 times" loop in smartforms.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,200

Hi,

Look at the below thread ..

Regards

Sudheer

11 REPLIES 11
Read only

Former Member
0 Likes
1,201

Hi,

Look at the below thread ..

Regards

Sudheer

Read only

Former Member
0 Likes
1,200

Populate an internal table with 5 single values and loop through that in the flow logic.

Read only

0 Likes
1,200

That's the funda sir ji .. i want to do it without internal table as we do in . EDITOR

as Do 5 times or .. while ... end While loop

Read only

0 Likes
1,200

Just insert program line, write the code like in editor. Its also a editor only.

Read only

0 Likes
1,200

if I write

do 5 times.

count = count + 1.

write count.

enddo.

It will print in editor but i want it in Smart form

Thankyou & regards

Read only

0 Likes
1,200

Hello,

You can do it via Loop selection or even using section with condition.

For loop selection,you can go thoru standard sap example provided in the system with :sf_example*

Thanks.

Read only

Former Member
0 Likes
1,200

Hello,

You can use section with conditions in smartforms.There you can mention repetetive processing & condition can check the counter.

Yuo can search for example in your SAP system with option: sf_example*

Thanks.

Read only

0 Likes
1,200

Hi,

Whats sf_example ... where to search it.

Condition is working well , only problem i am facing is loop is not iterating if I dont take help of Internal Table.

I am looking is there any other option to run loop 5 times other than INTERNAL TABLE.

Thanks & Regards.

Read only

0 Likes
1,200

Hello,

the example you can search in smartforms list in sap system.i guess it's sf_example_01 or something similar to it.Try removing internal table option & give condition for counter in section.

Read only

Former Member
0 Likes
1,200

Hi

You can go to the flow logic there with that LOOP option there is another one PROGRAM LINES.

It will open a editor(small like Notepad with INPUT parameters and output parameters). there you can write your "Do 5 times" Loop

By

Yuvaram

Read only

former_member191391
Participant
0 Likes
1,200

Thankyou every one