12-17-2013 12:43 PM
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
12-18-2013 5:05 AM
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.
12-17-2013 12:46 PM
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
12-17-2013 1:01 PM
Hi nabheet,
i tried it by all ways but every time my listbox is being refreshed after the selection through the listbox.
Dhananjay
12-17-2013 1:05 PM
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
12-17-2013 1:10 PM
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 ?
12-17-2013 12:56 PM
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))
12-17-2013 1:07 PM
Hi Sivaganesh ,
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.
12-17-2013 1:11 PM
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.
12-18-2013 5:05 AM
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.
10-10-2023 1:08 AM