How to write a module pool (M) program for the DEMO_DYNPRO_TABSTRIP_server

Hi,
How does someone write a module pool program (type m ) like the one which is given as an example for tabstrip control (paging through the app.server which is a report program). Please check the code given in the abap tutorial by sap below.
REPORT DEMO_DYNPRO_TABSTRIP_server.
CONTROLS MYTABSTRIP TYPE TABSTRIP.
DATA: OK_CODE TYPE SY-UCOMM,
SAVE_OK TYPE SY-UCOMM.
DATA NUMBER TYPE SY-DYNNR.
MYTABSTRIP-ACTIVETAB = 'PUSH2'.
NUMBER = '0120'.
CALL SCREEN 100.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE USER_COMMAND INPUT.
SAVE_OK = OK_CODE.
CLEAR OK_CODE.
IF SAVE_OK = 'OK'.
MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
MYTABSTRIP-ACTIVETAB.
ELSE.
MYTABSTRIP-ACTIVETAB = SAVE_OK.
CASE SAVE_OK.
WHEN 'PUSH1'.
NUMBER = '0110'.
WHEN 'PUSH2'.
NUMBER = '0120'.
WHEN 'PUSH3'.
NUMBER = '0130'.
ENDCASE.
ENDIF.
ENDMODULE.
I am finding the problem with the below statements .
MYTABSTRIP-ACTIVETAB = 'PUSH2'.
NUMBER = '0120'.
CALL SCREEN 100.
how do I write them in a module and how I can ensure that the functionality is not changed?
Thanks in advance,
Ajith c

Hi
All Tabstribs use the same subarea SUB (see the dynpro 100), in PBO it needs to indicate the program and subscreen number have to be loaded in that subarea.
In PBO of screen 100 you can see the line:
CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
The variable NUMBER is managed in the USER_COMMAND:
  save_ok = ok_code.
  CLEAR ok_code.
  IF save_ok = 'OK'.
    MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
                                  mytabstrip-activetab.
  ELSE.
    mytabstrip-activetab = save_ok.
    CASE save_ok.
      WHEN 'PUSH1'.
        number = '0110'.
      WHEN 'PUSH2'.
        number = '0120'.
      WHEN 'PUSH3'.
        number = '0130'.
    ENDCASE.
  ENDIF.
But this module is triggered as soon as you press a button on screen 100 (you have to considere the label of tabstrip is a pushbutton),
so it needs to initialize the variable NUMBER for the first time screen 100 is called, that mean it needs to indicate which is the first tab has to be shown at the beginning, so you have the code:
mytabstrip-activetab = 'PUSH2'.  
number = '0120'.
CALL SCREEN 100.
The same code can be included in the PBO in the following way:
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  MODULE INIT_TABSTRIP. "<--- New Module
  CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  CALL SUBSCREEN SUB.
  MODULE USER_COMMAND.
MODULE INIT_TABSTRIP.
  IF NUMBER IS INITIAL.
    mytabstrip-activetab = 'PUSH2'.  
    number = '0120'.
  ENDIF.
ENDMODULE.
The line:
mytabstrip-activetab = 'PUSH2'. 
is to indicate which tabstrip has to be placed in foreground (remember every tabstrip is a pushbutton, so every tabstrip has an own ok_code)
Max

Similar Messages

  • HOW TO STOP you are opening this program for the first time

    I continue to get the warning "you are opening this program for the first time".  I don't want that warning to ever appear again for any program.  How to permanently get this warning to never again appear?
    Best regards,
    Steve Schulte
    Wednesday 21 November 2012

    Thomas,
    The reason I don't want these warnings (especially for programs that I have had on my Mac for years!) is because I now use ecamm's "Printopia" to send items from my iPad3 running iOS 6.0.1 to my MacBook Pro-13 (mid-2010) running Mountain Lion 10.8.2 -- and in order to do this:
    1.  Both my iPad and Mac have to be on the same WiFi network.
    2.  The Mac has to be awake, cannot be in the "sleep" mode
    OK but in order to wake my Mac, I've found that using the app "Remote" on my iPad to open iTunes AND PLAY A SONG will "waken" my Mac*.
    So now, for example, I send a .jpg file to my Mac.  I have it set so that GraphicConverter opens when a .jpg file is to be opened.  OK but if this warning appears (and even though I have had GraphicConverter on the Mac since the beginning of time…) I sometimes (like today) get this warning.  Of course I am not at my Mac and yet when I eventually go to my Mac-- there is that dialog box sitting there and until I click OK the photo doesn't open (and on my iPad I don't get a confirmation that it has been sent, because it hasn't until I click OK on the Mac).
    This could happen for other types of files, too - text files or Word documents etc.
    It seems to happen when I UPDATE a program, like when GC went from 8.3 to 8.3.1 for example.
    Thanks for any additional comments.
    *Perhaps there is a better / faster / easier way to "waken" my Mac from my iPad?  This is the only way I have found so far…

  • HOW TO WRITE QUERY OR PL/SQL PROGRAM FOR THIS

    I HAVE TABLE X
    SELECT ENO FROM X
    ENO
    123
    423
    332
    562
    678
    986
    621
    WHEN I RUN PL/SQL PROGRAM I WILL PASS PARAMETER
    FOR EXAMPLE LIKE 134
    I NEED OUTPUT LIKE
    134 EXIST OUTPUT
    123
    423
    332
    562
    621
    134 NOT EXIST OUTPUT
    678
    986
    Regards
    Dev

    This?
    <tested in TOAD>
    SQL> accept my_parm
    old: with t as (
    select '123' eno from dual union all
    select '423' from dual union all
    select '332' from dual union all
    select '562' from dual union all
    select '678' from dual union all
    select '986' from dual union all
    select '621' from dual )
    select eno || ' ' || output_type results
    from (
    select to_char(&&my_parm) eno, 'EXIST OUTPUT' output_type, 1 output_id
    from dual union all
    select null eno, null output_type, 3 output_id
    from dual union all
    select to_char(&&my_parm) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
    from dual union all
    select
    eno,
    null,
    case when regexp_instr(eno,'[' || &&my_parm || ']') >0
    then 2
    else 5
    end output_id
    from t
    order by output_id, eno
    new: with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    SQL> with t as (
       select '123' eno from dual union all
       select '423' from dual union all
       select '332' from dual union all
       select '562' from dual union all
       select '678' from dual union all
       select '986' from dual union all
       select '621' from dual )
    select eno || ' ' || output_type results
    from (
       select to_char(134) eno, 'EXIST OUTPUT' output_type, 1 output_id
       from dual union all
       select null eno, null output_type, 3 output_id
       from dual union all
       select to_char(134) eno, 'NOT EXIST OUTPUT' output_type, 4 output_id
       from dual union all
       select  
          eno,
          null,
          case when regexp_instr(eno,'[' || 134 || ']') >0
             then 2
             else 5
          end output_id
       from t
    order by output_id, eno
    RESULTS            
    134 EXIST OUTPUT   
    123                
    332                
    423                
    621                
    134 NOT EXIST OUTPUT
    562                
    678                
    986                
    10 rows selected.Message was edited by:
    MScallion

  • How to create a module pool program

    Dear Guru
    I want to know know how to create a module pool program from se80 step by step. I want to know the steps where i will get the four includes like form routines, PAI, PBO, and global data please its very urgent.
    Thanks & regards
    Saifur Rahaman

    hi Saifur Rahaman,
    goto se80 then click find program,
    next u want any name of the program enter as,
    Attribute type as find Module pool click it.
    next u want any package and save and activate.
    program name with create screen with any number then
    click layout and u want any object and save , actived.
    click flow logic , four types as PBO and PAI and POV, POH.
    PBO---> Trigger is before screen.
    its applied for display screen and inactive or no display screen only
    PAI--->Trigger is after screen
    when u want button then its processed.
    POV--> Value requested for F4.
    POH-->Help requested for F1.
    Reward if useful,
    S.Suresh.

  • How to copy a module pool program

    Hi All,
    How to copy a module pool program from one system (Organization) to other system(organization) i.e. from one company to other company. My requirement is to how to download & upload module pool program.
    Regards,
    Rajesh Vasudeva

    Hi,
    Check the below link
    [How to DOWNLOAD  a whole module pool program????]
    [Download the Module pool program]
    Cheers,
    Surinder

  • How to configure Application module pooling?

    I want to know wheather bc4j container itself manages Application module pooling if yes then please tell me is there any file to set parameters for congiguration like one which we have for apache web server.
    If no then please let me know how to create applicatiom module pooling.
    Thanks in advance.

    Application module pooling is configurable through an application module configuration. In order to edit an application module configuration you may right click an application module and select Configurations...
    The BC4J data web beans and the BC4J JSP datatags are both application pool clients. The BC4J documentation includes descriptions of the application pool properties. The documentation also includes a code sample which illustrates how to write your own pool client.

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • Differance between module pool & report programming

    hi can any 1 tell me what is a big difference between module pool & report programs why is the need of module pool if we can do all the things with report program, please tell me technically how it behave
    Please search for available information before posting
    Edited by: kishan P on Sep 6, 2010 11:22 AM

    Hi, Ashwinv
    Welcome to SCN
    Please Search Before Posting any More
    Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!!
    Thanks and Regards,
    Faisal

  • Does anyone have any notes on how to create a module pool?

    Hi,
    I have created a new task type called "Notice Period Change Date" which I need to default in a task date of 5 years service (from their hiring date). Having read up on this I think I need to create a module pool and link via the dynamic action but I am a bit unsure on how to do this.
    Any assistance would be greatly appreciated.
    Thanks
    Hannah

    I think that you could use a dynamic action to create this new task date.
    Create the dynamic action on the infotype 0000 when the action type (MASSN) = hiring,
    Call infotype 0019 with the subtype = your new task type.
    Then call a function (F) to add 5 years to the hire date (P0000-BEGDA) and put the result into the task date field P0019-TERMN
    Take a look at the dynamic actions table T588Z - there are probably some examples already there.
    Mark

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

  • So I've changed my hard drive for an ssd and now I've been told to enable trim now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    so I've changed my hard drive for an ssd and now I've been told to enable trim  ?  now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    Use an app called chameleon ssd optimizer.
    I enabled trim with it after almost a year of having installed a Samsung 840 pro SSD and my read/write speeds almost quadrupled.
    I would definite;y advise using it even though Samsung SSD's come with there own garbage disposal.
    Hope that helps.

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

  • How to install only Roxio CD Burner Program from the Recovery CDs?

    I bought a T400 a few weeks ago in Korea.
    But my company uses English, so I had to install a Windows XP English version.
    However, at that time I lost the Roxio software.
    I have the recovery CDs for T400 Windows XP PRO SP2.
    If it is possible, then please let me know how to install only Roxio CD Burner Programs from the Recovery CDs.
    Thanks.

    Hello,
    unfortunately it´s not possible to install just one program from recovery cd´s.
    But on Lenovo support pages, there you should find your software and applications.
    Please visit with IE and let autodetect your system.
    Then you should able to choose which type of software is availible for you.
    Choose CD and DVD drives.
    Hopefully the T400 department is up to date now.
    Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
    Please insert your type, model (not S/N) number and used OS in your posts.
    I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
    TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
     English Community       Deutsche Community       Comunidad en Español

  • How to write triggers on startup and shutdown of the server?

    Plz advice.
    How to write triggers on startup and shutdown of the server?
    I could write it but nothing happened!!!

    Small code example for you:
    [email protected]> @ connect mob/mob
    [email protected]> create or replace trigger shutdown_trigger
    2 before shutdown on database
    3 begin
    4 insert into shut_table values(sysdate);
    5 end;
    6 /
    Trigger created.
    [email protected]> create or replace trigger start_trigger
    2 after startup on database
    3 begin
    4 insert into start_table values(sysdate);
    5 end;
    6 /
    Trigger created.
    [email protected]> @ connect "/ as sysdba"
    [email protected]> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    [email protected]> startup
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    ORACLE instance started.
    Total System Global Area 64036368 bytes
    Fixed Size 454160 bytes
    Variable Size 50331648 bytes
    Database Buffers 12582912 bytes
    Redo Buffers 667648 bytes
    Database mounted.
    Database opened.
    [email protected]> select * from mob.start_table;
    START_DAT
    14-SEP-06
    [email protected]> select * from mob.shut_table;
    SHUT_DATE
    14-SEP-06
    Best Regards
    Krystian Zieja / mob

  • Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    Can you get a power point program for the mac, my daughter has a power point assignment and i am not sure how to do it on the mac

    You can use a free alternative like openoffice for this:
    http://www.openoffice.org/porting/mac/
    or libre office which is a fork of open office:
    http://www.libreoffice.org/

Maybe you are looking for

  • GE70 2OE won't go past bios screen

    Hi, I bought a new GE70 2OE 7 days ago and I'm having trouble with it. It came with window 8 pre installed. I did all the update then upgraded to windows 8.1 and all went fine. I also made my recovery disks before any updates and after all the update

  • Elements increases JPG file size - case # 0181346249

    I just asked this of Adobe. Couldn't find anything this specirfic in the forums, anyone have anything on this? Thanks in advance.  Lee ~~~~~~~~~~~~ On/about 12/4/09 I upgraded Elements from 6 to 8. Since that date I have discovered that the file size

  • Copy info record

    Hi Gurus, Is there any way I can copy an info record? All the data in one info record is same as the other, except the Vendor no. Is there a way, I can create a duplicate version of the previous info record and just change the Vendor number? Thanks,

  • I keep getting an accompllished screen when transferring favorites, but they are not where they are supposed to be.

    ha e been trying to get my favorites moved from internet explorer. I'm being told it's done, but I cannot find the place they have been stored.

  • Cannot install critical update on my Offigejet 7410

    Hello-I have an Officejack 7410 multi function printer and Win 7,32bit  Home premium operating system. I get the error message that the patch doesnot apply to my printer. I had to re-install the printer's pogram because the HP solution did not instal