Module pool creation of new button

I have to aad 1 modif button in a screen the condition is like this as i ckick on that modif button it should go to some given transaction and in that new transaction screen if i click to save, back(F3),EXIT(SHIFT+F3) or cancle (F12) it turns over then automatically on the first screen from which it came.

Do like below
if ok_code  = 'MODI' .  " for your modify button
call transaction ' you transaction name '.
now
if  sy-ucomm = 'SAVE' or 'EXIT' or 'BACK' or 'CANC' .
call screen 'your basic screen no.'.
endif.
endif.
reward if helpful

Similar Messages

  • Trigger a workflow from module pool screen at save button

    Hi,
    I am new to workflow.Please help me.My requirement is trigger a custom workflow from module pool screen at save button.
    Scenario is: Create a Z screen for material creation and after pressing save button workflow should trigger to approver and approver emailid should be fetch from Z table and have to provide a link in work flow for Z t-code which displays a report of material pending for approval..
    Please suggest me process how i can acheive this..
    Thanks

    Hi,
    If you're using standard bapi's to save the material, you can then use either the standard events which are already triggered or you coul add a change document for material changes or creation.
    Then this event can be the trigger of your custom workflow.
    Kind regards, Rob Dielemans

  • Custome module pool creation

    Hi All,
    I have a requirement to create a module pool for maintaining data for some custom tables I created in SAP.
    I'd like to ask what the quickest way to create a module pool for the above is. I have been able to create maintenance screens using the extended table maintenance tool but there is a requirement for a more user friendly holistic approach.
    Any helpful suggestions will be greatly appreciated.
    Regards,
    Andy.
    Moderator message - This is not the place to learn module pool programing. Please try to ask a specific question.
    Edited by: Rob Burbank on Apr 16, 2009 9:14 AM

    Do like below
    if ok_code  = 'MODI' .  " for your modify button
    call transaction ' you transaction name '.
    now
    if  sy-ucomm = 'SAVE' or 'EXIT' or 'BACK' or 'CANC' .
    call screen 'your basic screen no.'.
    endif.
    endif.
    reward if helpful

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

  • Probelm in module pool selection screen

    Hi,
    I wanted to create transaction variant for my selection screen which i have to design through module pool
    if use the following code im not able to get the screen fields during trancation varian creation
    call screen 1001.
    SELECTION-SCREEN BEGIN OF SCREEN 101.
      SELECTION-SCREEN BEGIN OF BLOCK BL1.
       select-options:s_matnr for mara-matnr.
      SELECTION-SCREEN END  OF  BLOCK BL1.
    Kindly giv me a solution for the above query.
    Thanks In Advance,
    Santhiya B

    Hi,
    The easy way out is use a report program so you can have a normal selection screen and enjoy the variant capability for free. You can then do a 'call screen' so the rest of your processing will behave like a dialog program.
    If that's not possible, here's another option. It's not elegant, but I've done it. If others have better ways, please do share.
    1) Create a dummy program (ZXXXVARI). In this program, all it needs is the selection fields similar to what you have in your module pool.
    2) Add buttons to your dialog screen so users can choose variants, save variant, etc.
    3) Define internal array VALUTAB LIKE RSPARAMS.
    4) When user wants to save their selection, populate VALUTAB, then call FUNCTION 'RS_CREATE_VARIANT' EXPORTING CURR_REPORT = "ZXXXVARI", etc., or call function 'RS_CHANGE_CREATED_VARIANT', depending on whether the variant already exists on the table VARI or not.
    5) When user wants to choose a variant to use, just display the variants in VARI under his id. Once he selects a variant, CALL FUNCTION 'RS_VARIANT_CONTENTS' to retrieve the values saved and put them on the dialog screen.

  • How to trigger abap report from module pool

    hi,
    continuing with this link
    table control this is done (Module pool )
    there were two buttons (accept and delete )in the module pool..so when the user  clik 'accepts '  the records (from table control ) then it shud call abap report which will run in background..
    so how do we pass the values selected from table control to the abap report in one go.....as only one background job has to run..say if there are  10 entries then it shud take all the 10 entries and trigger the abap report where it will do the processing with the selected 10 records in the abap report.
    Thanks
    Mohan..

    Declare the parameters of the report as select options and call it using submit statement.
    link:[http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm]

  • Using module pool pgm, Con't modify the table field valus

    Hello frnds,
    i m create one rpt using module pool pgm, click display button display the table values .
    Iwant to modify some fields that changes is update to table.
    Bellow coding is correct or not, how can modify the fields with save changes.
    TABLES : ZRFIM1.
    DATA: ZREPNO TYPE ZRFIM1-ZREPNO,
    ZPLANT TYPE ZRFIM1-ZPLANT,
    ZRIMNO TYPE ZRFIM1-ZRIMNO,
    ZRIMDAT TYPE ZRFIM1-ZRIMDAT,
    DISPLAY TYPE C,
    CLEAR TYPE C,
    EXIT TYPE C,
    SAVE TYPE C,
    OK_CODE LIKE SY-UCOMM.
    data : itab type table of zrfim1 with default key.
    data : wa_itab type zrfim1.
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    text
    SET PF-STATUS 'SAVE'.
    AT USER-COMMAND.
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE PROGRAM.
    WHEN 'DISPLAY'.
    SELECT SINGLE ZREPNO ZPLANT ZRIMNO ZRIMDAT FROM ZRFIM1
    INTO (ZRFIM1-ZREPNO, ZRFIM1-ZPLANT, ZRFIM1-ZRIMNO, ZRFIM1-ZRIMDAT)
    WHERE ZREPNO = ZRFIM1-ZREPNO.
    WHEN 'CLEAR'.
    CLEAR ZRFIM1.
    WHEN 'SAVE'.
    select single * from zrfim1 into wa_itab where ZREPNO = ZRFIM1-ZREPNO.
    wa_itab-zrepno = ZREPNO.
    wa_itab-zplant = ZPLANT.
    wa_itab-zrimno = ZRIMNO.
    wa_itab-zrimdat = ZRIMDAT.
    modify zrfim1 from wa_itab.
    ENDCASE.
    endmodule.
    Thanks in advance.

    hello,
    change the code like:
    (IF ZRFIM1 is the structure has been used on screen)
    wa_itab-zrepno = ZRFIM1-ZREPNO.
    wa_itab-zplant = ZRFIM1-ZPLANT.
    wa_itab-zrimno = ZRFIM1-ZRIMNO.
    wa_itab-zrimdat = ZRFIM1-ZRIMDAT.
    modify zrfim1 from wa_itab.
    thanks
    K.

  • Push button logic for module pool

    I have 3 radio buttons ( group) and 2 buttons
    ok and cancel
    When the user selects a radio button and clicks on ok button i need to include an include program ( another program)
    if the user clicks on cancel button , i need to exit out of the screen
    Please send some logic for this. I am new to module pool programming.
    I will reward for helpful answers, immediately
    Thanks in advance

    Write down under PAI Event ...
    do not use sy-ucomm always except sub screen..
    case ok_code.
    when 'OK'.
    use ur include program logic'.
    when 'CANC'.
    leave to screen 0.
    endcase.
    always Function should be 4 Char.
    Reward Points if it is helpful.
    Thanks
    Seshu

  • Hi I am New Module Pool Programming

    Hi Experts,
                          I am New To Module Pool Programming , my requirement is
         i am having two check boxes in the screen , after clicking the check boxes,
         if i go press a button in Set-pf Status SmartForm Should Trigger , i am not able to select two check boxes  at a time i provided function codes for the Check boxes it is not  working as i required , can any body tell me the proper solution ,
    if two check boxes are selected smartform sholud execute twice to get two print-outs.
    Thanks & Regards
    Bhaskar Rao.M.

    Bhaskar,
      For tw check boxes give diff. group id.
    In Module PAI
    MODULE callprog.
    Double click on callprog.
    Inbetween module callprog  and endmodule.Write below code.
    IF check1 eq 'X'
    Use here SUBMIT PROG 'smartform  prog name' .
    ENDIF.
    IF check2 eq 'X'
    Use here SUBMIT PROG 'smartform  prog name' .
    ENDIF.
    Pls. reward if useful....

  • Standard New button for creation of bp is not appeared in ic agent bp role's main page.

    I have checked in.htm page of ICCMP_BP_MUL_S/BuPaSearchB2B which is getting called in web.
    in line no. 45 of .htm page there is condition to check whether new button should be displayed or not, when this condition is true no_bp_create is initial then only new button appears in ic agent.
    I have debugged so many times but unable to find out from where no_bp_create flag is populated and in conclusion new button is not appeared .
    I think there is some authorization which should be assigned to user for creation of bp so that above said flag (no_bp_create) is not getting populated.
    if i am on right track so please let me know which authorization is to be assigned to user so that user can see new button in ic_agent.

    Hi Sunny,
    The parameter no_bp_create is being set in the do_init_context method of the view controller class of same view but the value is being fetched using a badi.
    The authorization to create BP can be enabled by implementing the BADI BADI_CRM_BP_UIU_AUTHORITY (or enhancement spot CRM_UIU_BP_ENHANCEMENT).
    Users can be authorized to create/edit data for different UI components using this badi.
    In this badi put the condition for the application name may be as (based on your scenario or explore more)  cl_crm_ic_bp_constants=>gc_bp_create OR OR  cl_crm_ic_bp_constants=>gc_bp_edit and set the value of parameter cv_not_allowed = abap_false. Then you should be able to see the New button.
    Regards,
    Shobhit

  • How to handle The Back button on Module Pool screen

    Hi Gurus,
                  I have created a module pool screen. In that screen I have used some input/output fields(text box) which i have marked mandatory by making the input field as "required" under program tab.
    now when running the screen if no data is entered into these mandatory input field then BACK button does not work. First I have to enter some data into the input filed only then the BACK button works. How should i code so that the back button works even without entering the data into these mandatory fields.

    hi,
    use AT EXIT-COMMAND with the module.
    eg. module user_command at exit command.
    then there will be no problem.

  • How to enable the 'FIND' Button in Module Pool Screen. Logic please

    Hi All,
       I am writing one Module Pool Program. I have one requirement like I have to put FIND, FIND+ buttons on different screens.
       I am able to do the code for normal FIND. According to my requirement I have to display one Popup when the user click on FIND button. Once he entered some value it should find all the records and all the fields and display the list of hits in another popup. This whole process should as same as in SE11 Transaction functionality.
       Example: SE11 ->Table Entries -> and click the FIND Button. I need the same functionality in my Program.
       Please let me know ASAP. If you provide some code sample it will be Great.
    Thanks & Regards
    Kiran

    Hi
    If you have just implemented the code for FIND I believe u need to add some little modifications for FIND+.
    U need only to manage the position of the last found value, so u need to go on from that position for FIND+.
    The position should have the two coordinates X (the position in the record) and Y (the number of the record):
    - FOUND should start for postion = 0, 0
    - FOUND+ should start for position = X, Y
    Max

  • Creation of new storage pool on iomega ix12-300r failed

    I have a LenovoEMC ix12-300r (iomega version).
    IX12-300r serial number: 2JAA21000A
    There is at present one storagepool (SP0) consisting of 8 drives (RAID5).
    HDD 1-8 (existing SP0): ST31000520AS CC38
    I have aquired 4 new Seagate ST3000DM001 drives as per recommendation on this forum:
    https://lenovo-na-en.custhelp.com/app/answers/detail/a_id/33028/kw/ix12%20recommended%20hdd 
    I want to make a new storage pool with these 4 drives:
    HDD9-12 (new HDD and SP1): ST3000DM001-1CH166 CC29
    I have used diskpart to clean all 4 drives and the IX12-300r can see the drives just fine.
    When I try to make a new storage pool, naming it SP1 as the only storage pool is named SP0, I get an error: "Storage Pool Creation Failed"
    Please advise as to how I can get these drives up and running.
    Regards
    Kristen Thiesen
    adena IT

    I have pulled the 8 hdd from storage pool 0.
    Then I rebooted with the 4 new hdd in slot 9 - 12.
    Result: http://device IP/manage/restart.html, with the message: Confirmation required. You must authorize overwrite existing data to start using this device. Are you sure you want to overwrite existing data?k [yes] / [no]
    I then answer yes four times anticipating that each new drive needs an acceptance, but the dialog just keeps poping up...
    Then I shut down the device and repositioned the 4 new drives to slot 1-4 - but the same thing happened...
    Any suggestions?

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • Func- Code for Radio-button in Module-pool Prg.

    Hi Friend's.
    I have define 2 Radio button
    on Module-pool screen.
    I am not been able to triger the Radio button in
    Pai .
    How can i assign the function code for
    radio-button in module-pool.
    pls can any one help me

    Hi,
    For radion buttons, what ever the name you will give that name only will hold that value ( Either selected or not ). But this variable should be declared as global variable in main program.
    Still if you want to assign function code, you can assign one like other fields on the screen.

Maybe you are looking for

  • IMac running slow (Etrecheck in post)

    Problem description: iMac running slow, Finder becomes unresponsive. Over the last 5 years I think I've installed and removed so many programs that I've left OSX a mess. I know enough about computers to confidently make mistakes. The memory and cpu a

  • Multiple Hierarchies from Single Dimension Table in OBIEE-11g?

    Is it possible to have Multiple Hierarchies from Single Dimension Table in OBIEE-11g? Like 1)Year-Qtr-Month-Weeks 2)Year-Month-Days

  • Script to Rerun Successful Advertisement on Multiple Systems

    Hi Guys, I need to rerun a particular advertisement for a package on multiple computers. I Am able to run it on a single system via the right click tools but how do it do it for multiple systems. Is there a script for this which could be provided ? M

  • Link is not highlighted 8330

    I'm a realtor so I send out several e-mail with links to view homes from my PC. I Also have the same e-mail forward to me . But when the e-mail comes threw on my blackberry the link is listed but not highlighted for me to open it. Can someone please

  • Safari doesn't keep me signed in to my ATT/Yahoo account...

    Even though I have the box checked "Keep me signed in for 2 weeks unless I sign out" -- it doesn't/won't keep me signed in -- every time I quit and re-start Safari/open Safari I have to login all over again -- and this has only happened since the las