Dynamic addition of tabs to tabstrip

hi gurus ,
can ne1 plz tell me how can we hav dynamic tabs on the tabstrip control .
one of the way is to have max no of tabs n making them visible n invisible .
but wat the problem is dat the text on the tabs is also dynamic i don knw its value in advance .
if any1 knws how to do dis then plzzz reply asap . its urgent
pts wil b rewarded for sure ....

1. Create program in SE38 type module pool and Activated
2. Go to SE51 give the program name and screen number then Layout Editor in drags tabstrip with wizard.
3. Automacaly code is generated.
4. Subscreen(101) add the two Check Boxs (CH1,CH2).
5. Changed the Tab1 properties on Program in Click check box <b>OUTPUT Field only</b>
then tab text also you give Dynamic
PROGRAM ZTAB1 .
FUNCTION CODES FOR TABSTRIP 'TAB2'
CONSTANTS: BEGIN OF C_TAB2,
             TAB1 LIKE SY-UCOMM VALUE 'TAB2_FC1',
             TAB2 LIKE SY-UCOMM VALUE 'TAB2_FC2',
             TAB3 LIKE SY-UCOMM VALUE 'TAB2_FC3',
           END OF C_TAB2.
DATA FOR TABSTRIP 'TAB2'
CONTROLS:  TAB2 TYPE TABSTRIP.
DATA:      BEGIN OF G_TAB2,
             SUBSCREEN   LIKE SY-DYNNR,
             PROG        LIKE SY-REPID VALUE 'ZTAB1',
             PRESSED_TAB LIKE SY-UCOMM VALUE C_TAB2-TAB1,
           END OF G_TAB2.
DATA:      OK_CODE LIKE SY-UCOMM.
DATA:A(1),B(1).
OUTPUT MODULE FOR TABSTRIP 'TAB2': SETS ACTIVE TAB
MODULE TAB2_ACTIVE_TAB_SET OUTPUT.
  TAB2-ACTIVETAB = G_TAB2-PRESSED_TAB.
  CASE G_TAB2-PRESSED_TAB.
    WHEN C_TAB2-TAB1.
      G_TAB2-SUBSCREEN = '0101'.
    WHEN C_TAB2-TAB2.
      G_TAB2-SUBSCREEN = '0102'.
    WHEN C_TAB2-TAB3.
      G_TAB2-SUBSCREEN = '0103'.
    WHEN OTHERS.
     DO NOTHING
  ENDCASE.
ENDMODULE.
INPUT MODULE FOR TABSTRIP 'TAB2': GETS ACTIVE TAB
MODULE TAB2_ACTIVE_TAB_GET INPUT.
  CASE OK_CODE.
    WHEN C_TAB2-TAB1.
      G_TAB2-PRESSED_TAB = C_TAB2-TAB1.
    WHEN C_TAB2-TAB2.
      G_TAB2-PRESSED_TAB = C_TAB2-TAB2.
    WHEN C_TAB2-TAB3.
      G_TAB2-PRESSED_TAB = C_TAB2-TAB3.
    WHEN OTHERS.
     DO NOTHING
  ENDCASE.
ENDMODULE.
<b>MAIN SCREEN 100</b>
MODULE STATUS_0100 OUTPUT.
LOOP AT SCREEN.
IF SCREEN-NAME = 'TAB2_TAB2'.
   IF A = 1.
      SCREEN-ACTIVE = 1.
   ELSEIF A = 0.
      SCREEN-ACTIVE = 0.
   ENDIF.
ENDIF.
IF SCREEN-NAME = 'TAB2_TAB3'.
    IF B = 1.
      SCREEN-ACTIVE = 1.
    ELSEIF B = 0.
      SCREEN-ACTIVE = 0.
    ENDIF.
ENDIF.
MODIFY  SCREEN.
ENDLOOP.
ENDMODULE.                 " STATUS_0100  OUTPUT
<b>* SUBSCREEN 103</b>
MODULE USER_COMMAND_0110 INPUT.
CASE OK_CODE.
WHEN 'CH1'.
    IF A = 0.
       A = 1.
    ELSEIF A = 1.
           A = 0.
    ENDIF.
WHEN 'CH2'.
    IF B = 0.
       B = 1.
    ELSEIF B = 1.
           B = 0.
    ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_0110  INPUT
Message was edited by:
        Durga Vinta

Similar Messages

  • Mandatory field in sales order additional data tab

    Hi,
    I have added an extra field in additional data tab of sales order. 
    How can i make this field as mandatory for certain sales organisations ?
    TIA

    since it's conditional, I think I would add code in SAVE_DOCUMENT_PREPARE subroutine in MV45AFZZ, based on transaction code, prior values (YVBAP) and current values (XVBAP), and issue an error message, allowing user to return to the screens displaying Item table control, when the field is not properly populated.

  • VA01 creation of new feild in Additional data tab B and populating values

    Hi All ,
           I had created  a new field zzordqty in VA01 item level -> additional Data  Tab B  SE51 -> SAPMV45A-> 8459.
          The values while creating a sales order are coming from Inbound FM Idoc_input_orders .  for this particular field the value is stored in segment E1EDP35 when QUALZ is 011 the value of CUSADD is to be shown of the screen of VA01.
          For this I had tried to create a enhancement point in FM Idoc_input_orders , and tried to capture the value of CUSADD into XVAP-ZZORDQTY .
           But as soon as i come out of the enhancment point the value of XVBAP-ZZORDQTY BECOMES 0 .
           And at the screen level of SAPMV45A i had created a PBO and transfered the values from XVBAP TO VBAP .
            But since the values are getting cleared , the value of zzordqty is zero and also niether it s getting updated at table level .
            I request to let me know , how should i proceed further , either to use exists or badi's
    Thanks & Regards,
    Kavitha

    hi,
    you can do it in include MV45AOZZ. the method should be for module in PBO of subscreen 8459.
    and ifyou are not able to pass it to any standard structures( like xvap, or vbap or some thing like that) you can export it from PBO or PAI module) and catch it in the save exits (user exits)
    Edited by: Soumyaprakash Mishra on Oct 2, 2009 11:08 AM

  • Addition of new field in VA02 and VA01 in additional data tab B

    Hi,
    I have added a new field called delivery date to additional data tab B in both tcodes va01 and va02. Now, while creating or changing a sales order, if the Sales group is I00 then this field should be filled up mandatorily. For va01 and va02 i have done all the required coding where all this is done on pressing the save button when we are in the additional data b tab.It would throw an error message if the date is wrong and a wrning if it is empty (provided sales group is I00). I did the coding in 4462 screen.
    My requirement now is that if somebody doesnt go to the 'additional data b' tab n try to save the Sales order then also it should throw a warning or error stating that delivery date field should be filled up. Where exactly should i place the coding now? if it is screen 4900 then can someone suggest me at what place should the coding be done.
    Regards,
    Puja

    Hi Puja,
    Seems you have added the fields at item level in sales order and for this you must have appended the additional fields
    in vbap table. So to validate these fields you can use USEREXIT_CHECK_VBAP available in MV45AFZB user exit include.
    The fields you appended will be available in vbap structure, add your validation here or even in USEREXIT_SAVE_DOCUMENT_PREPARE  available in MV45AFZZ which is called before saving the sales order.
    Regards,
    Pawan

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

  • Add new fields to additional data tab in customs declaration

    Hello friends,
    My requirement is to add Z fields in the additional data tab in transaction /SAPSLL/CL_CUS_02 of GTS. I would also like to know If its possible to create a new tab all together in /SAPSLL/CL_CUS_02 where in we can add fields from a custom table.
    Thanks a lot in advance. Your help will be highly appreciated.
    Regards,
    Koustubh

    Hi Koustubh,
    As Dave pointed out, there is a BadI for extra tab on declaration Item and Header.
    There is an example implementation already available in the System. I believe that 1 BadI will no be enough for what you need.
    UI enhancement BadI uses standard CUHD and CUIT tables to store the extended data ( via table APPEND ), in order to save content to Z* table you will need a separate BaDI.
    Also, If you intend to use this extra data in outbound message / declaration Idoc, extra BadI has to be used and also the basic IDoc type will need to be extended with your Z* segment. Thats probably 2-3 BadIs working in tandem.
    Can you tell what is the purpose of the extra data / extra tab ?
    Best Regards,
    Branislav Petricek

  • When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it, fix?

    When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it. I've tried switching my homepage to different things (new tab, firefox home, show blank page) but I always get an additional new tab to open. How do I get only a single page to open?

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    '''For Firefox versions previous to 29.0:'''
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox"[[Image:Button reset]] button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    '''For Firefox 29.0 and above:'''
    #Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''.
    Now, a new tab containing your troubleshooting information should open.
    #At the top right corner of the page, you should see a button that says "Reset Firefox"[[Image:Button reset]]. Click on it.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Auto Pay Program : query in Additional Log Tab page in F110

    Hello Experts,
    In T-Code F110, on Additional Log Tab page, could you please explain for whats the purpose these check boxes, their meaning/importance & when all/each one of them could be used :
    1. Due date check
    2. Payment method selection in all cases
    3. Pmnt method selection if not successful
    4. Line items of payment documents
    This something which worrying me & i request your help.

    Hi,
    These check boxes determine what to be written on to the logs.
    For instance, if 'Due date check' is ticked, and if an invoce does not meet the criteria,  it will be written on the logs.  But, if it is not checked, such data will not be available in the logs.
    Regards,
    Sridevi

  • Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView

    Hi,
    My requirement is to hide the thet tabs ALL MY Trips,All my Travel REquest,All my travel Plans,Pending expense report from the tabstrip ALl my Expense report in Travel and Expense Application.
    I have gone through the thread and the sap note mentioned in
    Re: Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
    My problem is tabs that has to be deleted /hidden does not present in the Development system, but exist in the QA or the prd system.
    So how to implement the note when data is not present in the dev system and only exist in the QA/PRD system.
    Pleas eprovide me your valuable inputs.
    Thanks in advance.
    Pooja

    Implemneted the note and problem is solved.

  • Grouping field value in the additional data tab is saved with capital lette

    Hi,
    Whenever I change the value in the 'Grouping field' in the additional data tab, it gets saved with all letter caps.
    For e.g, if i enter 'Manager'.. it gets saved as 'MANAGER'.
    what could be the reason for this? Is there any configuration for this?
    Regards,
    Simmi

    Hi Simmi,
    For Grouping and Search Field, this seems to be the standard system behaviour in cProjects and as per my knowledge there are no settings for the same.
    Probably you can raise an OSS message regarding the same.
    Regards,
    Vivek Pandey

  • "Leave tab" event for tabs in TabStrip UI

    Hi
    I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
    In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

    In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
    Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter.

  • Long text for a field in Additional Data tab of DMS

    i have a field in additional data tab called Name , how can a long text be assigned to that field

    Hello Mr. Vijay,
    Classification Configuration master data which we need in Additional Data tab. Presently In our SAP system we have limitation for just 30 character for each characteristic if i correct just confirm me please
    Regards
    Arun kaul

  • Bank Details by corporation in Vendor Master Additional Details tab

    Hi,
    What is the use of "Bank Details by corporation" in Vendor Master Additional Details tab.
    How & from where the values are getting updated in these fields.
    Do suggest.
    Regards,

    Hi
    What you are telling in all probablity is an enhancement to std Vendor Master in SAP. There are various BADI which can be implemented to build in as per business requirements in SAP . Some of the BADI available are:
    VENDOR_ADD_DATA_CS
    VENDOR_ADD_DATA
    VENDOR_ADD_DATA_BI
    it is difficult to comment what has been implemented and with what logic. SAP Note 580266 provides details of these BADI. You should also check BADI implementations in SE18 or SE19 with help of your ABAP Colleague,
    Regards
    Sanil Bhandari

  • Screen Exit for adding custom fields in Additional Data tab in ME21N

    I need a screen exit or whatever other method for adding custom fields to the additional data tab at header level.
    I also need a similar exit for adding a filed at item level.
    Thanks in advance
    Martin

    Hello,
    1st find badi or exit and then create screen ...and assign the screen group and screen no for that implementation....some steps i can give u i did with SPRO tcode....
    please check it for VA02
    SPRO u2013 SAP Reference IMG ---  Logistics General --- Basic partner u2013 customers -- Control u2013 Adaption of customers own masters data element u2013 prepare modification of customer free enhancement of customer master record
    1)Screen group                                  description
            zs                                           creating badi      --- (save)
           click on (label tab pages) u2013 new entries
           number u2013 10 , function code u2013 zs10 ,  description u2013 func ---(save) u2013(back)
    2)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS
         (desc u2013 impl for cust) u2013 (save)
        interfaceu2014(check_add_on_active) double click on it
    3)the above screen appear --  write the code in it u2013 (save) --- (activate) u2013 (back) u2013 (save)
         -- (activate) u2013 (back)
       Business adds in customer sub screens
    4)select (FM_CUSTOMER_ADD) u2013 copy
         Implementation name u2013 ZAS1
         (description -- cust) u2013 in attribute u2013 (give screen group name)
    5)go to interfaces (GET_TAXI_SCREEN)  double click on it
       (save)  --- (activate) 
    6)(SAVE)  -- 
        Goto SE38  -- CREATE PROGRAM WITH NAME (ZQW) type module pool
         Goto SE51  -- Prog : ZQW
           Screen : 200 (Create)
          Goto layout u2013 design the screen
    7)save u2013 activate
       then goto transaction : va02
    For User Exit's
    goto to tcode->status->program name->double click on that,
    then goto to-> attribute take the package name and
    Goto SMOD tcode ->Utilities->give the package name and F8
    then a list of exits will display for that tcode as well as that package.
    u can check the table MODSAP
    u can check the table MODACT
    For BADI's,
    1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
    keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
    then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
    2)Goto to tcode->status->program name->double click on that program will display's
    then  press crtl+F then cl_exithandler
    Thank u ,
    santhosh

  • Problem on tab in tabstrip

    Hi all,
       I want to execute particular code or event when i select a particular tab. But in standard only one event is available, that execute every time when i select any tab in tabstrip.Plz reply....
    Regards,
    Ramesh.

    hi,
    You can use selected tab property of tabstrip, just bind it to attribute
    says tab, node selected_tab and read that attribute by code wizard,
    suppose you have 3 tab name tab1, tab2, tab3
    i.e,
    DATA LO_ND_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_SELECTED_TAB TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_SELECTED_TAB TYPE WD_THIS->ELEMENT_SELECTED_TAB.
      DATA LV_TAB LIKE LS_SELECTED_TAB-TAB.
    navigate from <CONTEXT> to <SELECTED_TAB> via lead selection
      LO_ND_SELECTED_TAB = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_SELECTED_TAB ).
    get element via lead selection
      LO_EL_SELECTED_TAB = LO_ND_SELECTED_TAB->GET_ELEMENT(  ).
    get single attribute
      LO_EL_SELECTED_TAB->GET_ATTRIBUTE(
        EXPORTING NAME =  `TAB`
        IMPORTING  VALUE = LV_TAB ).
    case lv_tab.
    when 'tab1'.
    *do somthing'
    when 'tab2'.
    *do somthing
    when 'tab3'.
    *do somthing.
    when  others.
    exit.
    endcase.
    Y N

Maybe you are looking for

  • Need info on how to get the little pictures like Adobe website has next to the title of the page??

    I know how to enter title text but i need to know how to get an image next to the title of the page please help??

  • Creative Zen Microphoto 8GB hangs

    Hello, I have seen a lot of posts on the same subject here, but have not seen any resolution yet. I am sure the story sounds familiar... hangs at "Creative" logo, I go into recovery mode, and run scan disk or format etc... They don't work. I have eve

  • Expoert out of Final Cut Pro to ATV

    How best to export DV footage out of FCP to use on ATV? No "Movie to AppleTV" export option from FCP like in QuickTime. Wouldn't it show up in FCP if it's in QT? Thanks

  • Oracle 10gXE: Schema with Apex

    Hello, I have following Software in use: Windows2000 Professional, Oracle 10g XE, Apex 2.xxx My Problem: I have an user with the name "admin". This user has created all objects (table,trigger, ...) with apex. So all the created object by the user "ad

  • Role of Team Lead in support project

    Gurus Can anybody share your experiences on the roles and responsibilities , scope of work of a team lead and give some tips and tricks to perform best as team lead in a support project. Thanks in advance