Module Programming...!!

Hi ,
            In Se80 ...i have created a subscreen.In PAI,we are giving one populating Message.
it has Conitue and Cancel.
               Once user clicks for Continue,I want it shld reach in it's initial screen.
leave Screen etc etc is not working ...Code is like that.
CALL FUNCTION 'POPUP_TO_CONFIRM'
         EXPORTING
              titlebar              = text-006
              text_question         = wf_text
              text_button_1         = co_yes_button
              text_button_2         = co_no_button
              display_cancel_button = space
              popup_type            = co_warning
         IMPORTING
              answer                = wf_answer.
    CASE wf_answer.
      WHEN co_2.
        MESSAGE e132(/dceur/zais_msg) .
      WHEN co_1.
      "I want changes here ..without furthere processing It shld reach in it's initial screen.
    ENDCASE.
  ENDIF.
Rgds,
Raghav

Hi,
You can do this way :
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-006
text_question = wf_text
text_button_1 = co_yes_button
text_button_2 = co_no_button
display_cancel_button = space
popup_type = co_warning
IMPORTING
answer = wf_answer.
CASE wf_answer.
WHEN co_2.
MESSAGE e132(/dceur/zais_msg) .
WHEN co_1.
LEAVE TO SCREEN 0.
ENDCASE.
ENDIF.
thanks.
Rgds,

Similar Messages

  • How to insert a standard selection screen on moduled program?

    Hi All,
    Selection screen can be easily done in classic report by just simply invoking the event "SELECTION-SCREEN"
    SELECTION-SCREEN BEGIN OF ...
    SELECT-OPTIONS ...
    PARAMETERS ...
    In the case of moduled program, there will be a PBO and PAI, I have a requirement on my 2nd screen where I need to have a selection screen, but the SELECTION-SCREEN event is not applicable for NOT TYPE 1(Executable) Program.
    My Dialog Program Flow:
    Main Screen -> Display Screen (should be SELECTION SCREEN) -> Output (3rd screen)
    What's the best alternative solution on this scenario?
    Thanks.

    Hi All,
    I layout and detailed my question, please see my scenario below:
    screen 9000
    MODULE user_command_9000 INPUT.
      CASE ok_code.
         WHEN 'CREATE'.
            CALL SCREEN 9001.
         WHEN 'DISPLAY'.
             "SHOULD CALL A SELECTION SCREEN HERE
             "AFTER THE SELECTION SCREEN, IS ANOTHER SCREEN FOR OUTPUT
        ENDCASE.
    TOP include
    SELECTION-SCREEN BEGIN OF SCREEN 9003 AS SUBSCREEN.
      PARAMETERS P_PLANT TYPE T001W-WERKS.
      SELECT-OPTIONS: S_MATNR    FOR MARA-MATNR,
                      S_LICHA    FOR MCHA-LICHA,
                      S_LIFNR    FOR LFA1-LIFNR.
    SELECTION-SCREEN END OF SCREEN   9003.
    Questions:
    1. on the PAI of my main screen 9001, how can I call the SUBSCREEN I created using CALL SUBSCREEN?
        the code:
            CALL SUBSCREEN 9001 INCLUDING 'PROG_NAME' '9002',
         is not working / syntax error.
    2. Should I call it like this?
        WHEN 'DISPLAY'.
           CALL SCREEN 9002.
       Screen 9002 PBO
            CALL SUBSCREEN 9001INCLUDING 'PROG_NAME' 9002',
         is not working / syntax error.
    Thanks all.
    Edited by: Jaime Cabanban on Dec 2, 2009 5:29 PM

  • Which table contains function module program name

    Hi,
    Which table contains function module program name.
    Regards,
    raj

    Hi,
    We have one function module called 'FUNCTION_INCLUDE_INFO'.
    Where u ll get the program name to which it belongs to, function group and the include number. (e.g if the function group program name contains 9 function modules and ur function module  is in 3rd include then it will return the include name to which it belongs )

  • Need help in Module Programming

    Hi Friends,
              Can anyone send me the step by step document for creating a module program. It will be helpfull even if you send me sample code for creating a module program.
    Regards,
    Ranjith

    Go to transactions
    DWDM
    ABAPDOCU - > ABAP User Dialogs - > Screens
    Regards
    Gopi

  • Table control in module program

    hi,
    i don't know about table control in module program.so please send the faq's ?

    hi
    ganapathi
    Table Controls in ABAP Programs
    To handle table controls in ABAP programs, you must declare a control in the declaration part of the program for each table control using the following statement:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    this is all information about table control still if u have any quiries my mailid is [email protected]
    plzz reward if usefull
    dont forget to reward

  • Module Programming  PBO and PAI flow.

    Hi,
    I am new to module programming,
    My req are -  I have 4 input fields and button in my first screen(1000)
    After user enters these values then I have to validate this values in the database and then
    I need to update 1 field value in the database. After updating I need to display the results in second screen (2000).
    Can any one please let me know what is the process in PBO and PAI modules.
    How to write code .
    1.     where to validate field values
    2.     where to write code for updating database.
    3.     where to write code for displaying success/failure message in second screen(2000)
    4.     where to write declarations.
    Thanks a lot for ur time .
    I highly appreciate ur help.
    Venkat.

    Hello
    Check this out:
                                INCLUDES                                 *
    INCLUDE ZIMMFORM001_TOP.
    INCLUDE ZIMMFORM001_PBO.
    INCLUDE ZIMMFORM001_PAI.
    Main Process
    START-OF-SELECTION.
    CALL SCREEN 100. -> double click
    END-OF-SELECTION.
    Uncomment the following:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.   -> double click
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.  -> double click
    *&  Include           ZIMMFORM001_TOP
    Global Definitions                                   *
    "Your definitions
    *&  Include           ZIMMFORM005_PBO
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MEN'.  -> double click -> CREATE SCREEN STATUS 'EXE' AND 'BACK'
      SET TITLEBAR 'ZTIT'.  -> double click
    INITIATE WHATEVER YOU NEED
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&  Include           ZIMMFORM001_PAI
    *&      Module  USER_COMMAND_0100  INPUT
          text
    INSIDE THE CASE YOU CAN VALIDATE.WHEN 'EXE' IS SELECTED FOR EXAMPLE.
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXE'.
          PERFORM validate_form.
          PERFORM save_form_to_db.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this helps, dont forget to reward
    GABRIEL
    Message was edited by:
            Gabriel Fernando Pulido V.

  • Error . Copying Module Program

    Hello Friends ,
    I am trying to copy a module program SAPMZZTES1  with screens 1000 , 1100 , 1200 , 1300 , 1400 to another module pool program SAPMZZTES2 which would be a replica of the ealier module pool program .
    When I go to SE51 and do copy SAPMZZTES1 1000 to SAPMZZTES2 1000 . It gives me the following error .
    Program SAPMZZTES2 does not exist .
    Please advise .
    Thanks & Regards,

    HI,
    1. Go to SE38
    2. give the program name as SAPMZZTES1.
    3. Click on copy button (Ctrl + F5) or Programs --> Copy menuitem.
    4. Provide new name as SAPMZZTES2
    5. click copy and select all check boxes..
    it copies the program into SAPMZZTES2.
    <b>HARI: what is the difference between my solution and Sajan Solution?</b>
    Regards
    SAB

  • Steps  For Creating Module programming ?

    hi..
       if u have any documentation for creating module programming means  please send to me .
    Thanks in advance
    Deepa

    Hi,
    Go through This Link:--[http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm]
    [http://abaplovers.blogspot.com/2008/03/sap-abap-module-pool-programming.html]
    [http://abaplovers.blogspot.com/2008/03/sap-abap-tutorial-module-pool.html]
    [http://abaplovers.blogspot.com/2008/03/sap-abap-tutorial-module-pool_17.html]
    Regards
    Sandipan

  • Error in module program - Invalid field format( screen error )

    In the module program i have added 1  input field named gv_pallet of 1 character. while processing the transaction when i put value 1 in this input field and press a button i am getting error ' Invalid field format( screen error ) .
    I am not geting any clue whats the eror . can anyone able to tell me the error.
    Point will be guranted .
    Regards

    No need to loop to check whether data is changed after PBO, just check System Field SY-DATAR, it will be set to 'X' if any field was changed.
    So the following code is enough;
    IF SY-DATAR EQ 'X'.
       PERFORM SAVE_DATA.
    ENDIF.
    Regards
    Karthik D

  • APIs for Module Programming

    Hello
    I am planning to use Adapter Module programming for one of the scenario.I had browsed through the help.sap.com for its documentation but could not find APIs for the same which will be useful in programming.
    Does anyone knows where to find the same?
    Thanks in advance.
    Regards
    Rajeev

    Sergey,
    Thanks for the reply. I am having the same PDF which has detailed description about how to program for Module programing..But I was refering to somekind of the javadoc where we r able to see available classes,interfaces and their methods.
    Regards
    Rajeev

  • Difference between HR programing & other module programming

    Hi
    What are difference between HR programming & other module programming?
    This is one of interview questions from IBM.
    Any body can answer for me?
    WIth Regards,Jaheer.

    Dear Jaheer,
    Advanced Business Application Programming ABAP is SAP's fourth generation language. All of R/3's applications and even parts of its basic system are developed in ABAP. ABAP is used for customization and modification of SAP applications. 
    In HR ABAP use of select statements significantly less than in other areas of ABAP development, Logical databases have limited applications in other modules but are very useful in HR. Also, you really need to understand the infotype time constraint concept since the data organization in HR is Employee-Time based,     When you cannot get the information that you need out of the logical DB look at the function modules starting with HR* and RH*. These function modules will provide you with multiple ways of accessing data to save time. Worst-case scenario, use a select statement.
    In addition to the LDB, HR programming also involves the use of Macros for data extraction,
    The storage an access of data is different,
    Authorization checks.
    The Human Resources module uses a system of data grouped together called infotypes. The Human Resources module uses a system of data grouped together called infotypes. And storing bulk data like time management and Payroll data in Cluster files. HR Programming involves data extraction and manipulation from these infotypes and clusters using LDB/MACRO and function modules.
    Infotypes mirror a quantity of connected data records; infotypes are identifiable through a four character numerical string .
    You can save the infotypes as time-dependent to enable a retroactive evaluation of Employee data.
    The infotypes appear as an entry screen for the user, through which you can maintain infotype records. Infotypes can be processed individually or in fast entry mode.
    Regards,
    VIjay

  • Access control based on module/ program

    Hello All,
    In standard edition is there a way to we control user access based on the module / program.
    like if the user is accessing the database throught sql*plus then he should have only read access.
    Thanks
    sankar

    Hi sankar
    amazing how often this is asked, however Oracle database authenticates the username, not the end-user client,
    but you can use the following reference to at best thwart access from client programs that you do not like:
    note 281229.1 How to Restrict Access to the Database With Specific Tools (e.g. TOAD) or Applications
    It is important to realize any info sent from the client like program name, module and client_id (unless set by the database)
    cannot be trusted, so this is at best a method to discourage the use of what you think are 'illegal' clients,
    greetings,
    Harm ten Napel
    Edited by: hnapel on Feb 12, 2013 8:29 AM

  • (Can't load tod module) Program terminated ?

    Hi
    I have a NetraX1 500 mhz, and i reinstalled Solaris 8. Now when I boot up I get this error:
    Executing last command: boot
    Boot device: disk File and args:
    SunOS Release 5.8 Version Generic_108528-07 64-bit
    Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
    (Can't load tod module) Program terminated
    ok
    Does anyone know what is wrong here?
    Thanks
    -jc

    he Netra X1 won't even boot from the image, with a "can't load tod module"
    error.
    A fresh jumpstart image with the latest mis.netra-x1.....zip file does
    work. The latest zip file is named mis.netra-x1.259-3836-03.zip .
    The way to access them is to start with http://www.sun.com/netra , click
    on NETRA SOLUTIONS in the table, click on Sun Solutions, and then Software
    Drivers in the Netra X! Software Drivers column.
    Hope this helps.
    Senthilkumar
    Developer Technical Support
    Sun Microsystems, Inc.
    http://www.sun.com/developers/support

  • Module Programming libraries availibility

    Hello
    I am planning for adapter module programming.I refered to the documentation which suggests that we should have aii_af_lib.sda, aii_af_svc.sda and aii_af_cpa_svc.sda library files for the same.
    Can someone upload the files at some location (say my email id:[email protected] or [email protected]) or give me idea how to install the service pack 13 which is required for the same?
    Thanks in advance.
    Regards
    Rajeev

    Sameer,
    That was very helpful..i completed my scenario with that..
    cheers
    rajeev

  • How to call Infotype Module Program from an executable prog

    Dear Gurus
    I need your help and ill be very grateful if you help me out with my query.
    My query is that. when we use pa30 transaction and enter the personal number and enter the infotype to create data it opens an Module Pool program with screen.
    I'm trying to make a report through which i want to call that infotype module pool program.
    the problem I'm facing is that I'm not able to send the parameters to that module program.
    Ill be very thankful to you if you help me out.
    Regards
    Saad

    use the following code.
    SET PARAMETER ID 'PER' FIELD personal_number.
        CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
    pass valid pernr to personal_number.

  • Call screen into module program?

    hi all,
       i am trying to call the screen of sap standard program into my customized module program can anyone please tell me how to call screen of another program into my program?
    thanks
    john

    Hi,
    First set the values which needs to be passed using the following statement:
    SET PARAMETER ID <pid> FIELD <f>.
    then call your screen using the statement:
    call screen 'SCREEN_NUMBER'.
    if the screen is of a standard transaction then do set the required values through set parameter statement and then call the screen as
    CALL TRANSACTION <tcod> [AND SKIP FIRST SCREEN] [USING <itab>].

Maybe you are looking for

  • Adobe Illustrator CS2 v 12.0.1 and Windows 7

    We just got new computers for our office (Dell M4500) with Windows 7 and Office 2010.  I re-installed Adobe Illustrator CS2 v 12.0.1 on the machine and today I started it for the first since I re-installed it. Before starting Illustrator, I was going

  • Tools - Pages - Rotate Acrobat X

    I can rotate a scanned document into PDF using the View pulldown menu or right clicking on the document and clicking rotate clockwise.  However, if I click on tools, then pages, then rotate, nothing will happen after I click OK.  Can anyone help?  I

  • Add a system status in CS? and how is it related?

    Is it possible to add a system status (not the user status) in CS? (for equipments like status "INAC") If yes, how is the relation made between a GI of movement type 551 (scrapping) and a automatic change of status in transaction IE02. What I want is

  • Where can I find Photoshop Elements 7 Upgrade Version as a free download?

    I have the installation media, but my slot-loading Superdrive just spits it out. I tried downloading the full version from the Adobe website but it didn't accept my product key, presumably because the key is for the upgrade version only.  So far, I h

  • Final Cut Studio on new iMac running MacOS 10.8

    Several days ago, my beloved MacBook Pro died. While its portability will be missed, money is tight and the Apple Store's offer of a refurbished new-for-late-2012 iMac was an offer I could not refuse. MY NEW HARDWARE: refurb new-for-2012 iMac, 2.9 GH