cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a subform inside loop

meenakshi-btp
Explorer
0 Kudos

Hello Experts,

We have a requirement where we have to call a subform as many times as number of entries in an internal Table.

Here is the subform:

In the driver program, we have an internal table with 4 languages. I have to do mapping for those 4 languages so that the above subform appears 4 times, once for each language. Later on, if user wants to add or remove any entry, he can do it by using the Add and Remove buttons. Add/Remove buttons are working fine and the user can Add/Remove language details manually.

My question is, can we call this subform multiple times based on internal table entries?

Can you help me with this?

Accepted Solutions (1)

Accepted Solutions (1)

alasivanand
Explorer
0 Kudos

Hello Meenakshi,

The answer for your question, " can we call this subform multiple times based on internal table entries?", is  YES.

Process:

Expected: You are Passing the table as an Interface parameter to the form.

  • Please keep the Subform which need to be printed for each row of the table inside the Data Subform of the table.
  • Now you will get the subform printed for each and every line of the form.
  • To restrict the presence of the subform based on the Internal table entries, write a script to hide/display the subform inside the IndexChange event.

Please let me know if additional details required.

Reward if useful.

Cheers,

Sivanand Ala

Answers (0)