Application Development 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: 

problem with listbox in subscreen

Private_Member_15166
Active Contributor
0 Kudos
558

Hi Experts,

i am new in abap..so please help me

I am facing the problem with the data populating to the List Box of a screen element.

I have a tab strip control screen 3 tabs and having 3 sub screens for each tab. The problem is I have some couple of List box screen elements for this sub screens and when I am populating the Key and Text values to this fields it is not getting displayed when I select the list instead when the PAI of the main screen is triggered  it is displaying the values.

I have checked it with the F4IF_INT_VALUE REQUEST and VRMSET_VALUES but still there is no and even I have tried it placing in the POV and in PBO but still there is no luck. If I will do the same logic to the normal screen it works fine.

Please let me know if anyone knows how to handle the above scenario and let me know whether this can be possible or not.

Thanks in advance.

Regards,

Dhananjay

1 ACCEPTED SOLUTION

Private_Member_15166
Active Contributor
181

Thanks for all your comments... i got the answer after performing a test code and matching it step by step to original one. Just tickmark the output field also in the screen attribute of listbox.

9 REPLIES 9

nabheetscn
Active Contributor
0 Kudos
181

Why dont you do it in PBO of subscreen on which you have the list box and fill the values using VRM_SET_VALUES

Nabheet

0 Kudos
181

Hi nabheet,

i tried it by all ways but every time my listbox is being refreshed after the selection through the listbox.

Dhananjay

0 Kudos
181

It is because when you select a value and then press enter...control goes to PBO after PAI..check in debugging your list values code shall not get triggered again it will reset all the values...

Nabheet

0 Kudos
181

yeah may be this is the case.. my function is again called inside the subscreen output module.

how to overcome this problem.??

may you give me a simple example using tabstrip,screen and subscreen ?

sivaganesh_krishnan
Contributor
0 Kudos
181

hi dhananjay,

try writing the FM in PBO, when each time the module pool execute PBO also executes so you can get the values in list box while the progarm loading and also after the input.

for further understanding learn the event processing.

Also see the sample program here :Dropdown Boxes (SAP Library - ABAP Programming (BC-ABA))

0 Kudos
181

Hi ,

The example you provided , i had seen this.

This case is working fine with the screen only but when i am taking subscreen inside the tabstrip of main screen after selecting the values, the list i am selecting is not populating in the dropdown menu.

0 Kudos
181

hi,

Write the FM inside the Subscreen PBO . It will work ..

lets say 9000 is the main screen and 9001 is your subscreen , then double click on 9001 write your code in PBO.

Private_Member_15166
Active Contributor
182

Thanks for all your comments... i got the answer after performing a test code and matching it step by step to original one. Just tickmark the output field also in the screen attribute of listbox.

0 Kudos
181

great!!! helped me a lot. thank you very much