Skip to Content

How detect in feeder class the UIBB (Tab Page) wich is being executing

Hi experts

I made some changes to WDA standard aplication wich uses FPM framework.

I added two tab pages (main views) to application using the FPM configuration editor , the component is PIQ_MBSS_OIF and i created (added) in my Z configuration these two tabpages each one with one FPM_LIST_UIBB table ,because the tabpages shows a records list.

I have the feeder class used by tables (FPM_LIST_UIBB) , with this feeder class i can manage the records to be showed in each tab page , i just enhanced this class adding some test code and it works.

Now i need to determine in my feeder class wich one of the tab pages is being calling in order to i can filter (change) the records to show in each tab page:

TabPage1 (original) -> call feeder class X -> shows 4 records

TabPage2 (new) -> call the same feeder class X -> show same 4 records

TabPage3 (new)-> call the same feeder class X -> show same 4 records

How can i detect in feeder class X wich tab page is being executing ? (i hope i explained right)

Thanks & Regards

Frank

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 12, 2011 at 08:52 PM

    Hi Frank,

    This is a complex process. i am not sure if you can solve this with the instruction given here in this forum.

    One of the solution might be defining a parameter list in the

    1) if_fpm_guibb~get_parameter_list method.

    data ls_parameter_descr type fpmgb_s_param_descr.

    ls_parameter_descr-name = 'TAB_ID'.

    ls_parameter_descr-type = 'Define your own DDIC domain with values like TAB_1,TAB_2'.

    append ls_parameter_descr to rt_parameter_descr.

    2) in the if_fpm_guibb~initialize. method read this parameter and set to the global attribute in the feeder class.

    • get parameter

    read table it_parameter into ls_parameter with key name = 'TAB_ID'.

    if sy-subrc <> 0.

    gv_TAB_ID = 'TAB_1'. "default

    else.

    assign ls_parameter-value->* to <lv_value> casting.

    gv_TAB_ID = <lv_value>.

    endif.

    3) you can use this gv_tab_id in the other methods like get_data to control the logic.

    4)When you configuring the feeder class, you can press the edit parameter button. Here you can choose the value

    from the dropdown for that configuration. for.ex TAB_1 .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 12, 2011 at 09:03 PM

    Please let me explain more:

    TabPage1(original) -> containing UIBB table list (FPM_LIST_UIBB), configuration Original, Feeder Class X -> shows 4 records

    TabPage2(new) -> containing UIBB table list (FPM_LIST_UIBB), configuration Z2, same Feeder Class X -> show same 4 records

    TabPage3(new)-> containing UIBB table list (FPM_LIST_UIBB), configuration Z3, same Feeder Class X -> show same 4 records

    The feeder class is executing for same component (FPM_LIST_UIBB) but with different configurations , what i need to do is in feeder class detect wich TabPage is being executing for show differents records in each tab page.

    Is there any way to detect in feeder class wich TapPage is being executing (or wich configuration is being executing) ?

    I know i can change the feeder class for each UIBB table list by changing configurations Z2 and Z3 , but then i have to create two Z copy classes and duplicate the code in these, so i need to know is is there any way to do changes in only one (original) class.

    Any help will be usefull.

    Thanks & Regards

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Baskaran

      I had forgotten update trade, i implemented the enhancements with your tips and these works so good , in my class i receive wich tab page is executing so i manage records to show with some method , so my application changes are solved.

      This Floor Plan Manager tool worked ok for my requirement .

      Now my only doubt is about how create translations for the titles of the new tab pages i created and how to transport the new Z configuration to next environment, but i will investigate about this in other trade.

      Thanks & Regards

      Frank.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.