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

Adding Text View/Input fields dynamically on module pool screen

karanshaheri
Participant
0 Likes
2,294

Hello All,

I have a requirement in which Add button is provided.

On every action of add button 1 input field/text view should be added on the module pool screen.

Please can anyone provide me the wayout with some code snippet or the method to how to go about this requirement.

Thanks in advance.

7 REPLIES 7
Read only

Former Member
0 Likes
1,268

This message was moderated.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,268

You make a table control in disabled mode and add button insert. Once user clicks on it you enabled the first line and so on.

Nabheet

Read only

Former Member
0 Likes
1,268

This message was moderated.

Read only

former_member219762
Contributor
0 Likes
1,268

Hi,

We cannot add fields dynamically in module pool but we can hide fields.So define fields as many you want and hide them first. When user click on add make them visible.Otherwise you can use table control as said above.

Regards,

Sreenivas.

Read only

Former Member
0 Likes
1,268

Dear Karan Shaheri,

         Use the step-loop to get your desire result. You will get as many text boxes as you want. Find some examples of step-loop and implement it.

Regards,

Read only

Former Member
0 Likes
1,268

Hi,

Design the screen fully first then you can use SCREEN to hide and show. As per you want. Please see below site.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba70535c111d1829f0000e829fbfe/content.htm

Thanks,

Arun

Read only

Former Member
0 Likes
1,268

Hi Karan,

If you want to add one new field everytime when the user will click ADD BUTTON,

than you have to take one table control and u have to add one line everytime in table control when the user will click ADD BUTTON.

Thanks

Tarak