Subscreen Problems

Hi, experts.
I have a problem with subscreen.
PROCESS BEFORE OUTPUT.
  MODULE status_100.
  CALL SUBSCREEN z_subscreen INCLUDING sy-repid number.
PROCESS AFTER INPUT.
  MODULE cancel AT EXIT-COMMAND.
  CALL SUBSCREEN z_subscreen.
  MODULE user_command_100.
When I run a program, a "module cancel AT EXIT-COMMAND" doesn't work.
How can i solve this problem?
Thanks.
Larissa.

Larissa
The GUI Status of screen 100 (In your case), should have a Function Key with type EXIT....
Thanks
Amol Lohade

Similar Messages

  • Multiple Selection on Subscreen - PROBLEM!

    Hi,
    I call a Function from a Program. This Function calls a screen with a SUBCREEN AREA.  For this SUBSCREEN AREA I set SELET-OPTIONS.  When executing the PROGRAM, we get to see this screen and subscreen area with select-options. BUT IT IS IMPOSSIBLE TO OPEN MULTIPLE SELECTION for them. I  click on the arrow and no window pops up for Multiple selection.
    How to make it work?  thanks in advance.
    Julia
    Please help!
    Edited by: JulNikiforova on Jun 18, 2010 12:37 PM

    baguhan,
    then replace with this code.
    DECLARE
    Num_Total_Records NUMBER;
    Num_Loop_I           NUMBER;
    BEGIN
    GO_BLOCK(<BLOCK_NAME>);
    FIRST_RECORD;
    LAST_RECORD;
    Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
    FIRST_RECORD;
    FOR Num_Loop_I IN 1..Num_Total_Records LOOP
    IF <CHECKBOX> = 1 THEN
    <................................................>
    END IF;
    NEXT_RECORD;
    END LOOP;
    <................................................>
    END;
    Regards,
    Manu.

  • Problem with customised subscreen in ME21N

    I am using BadI ME_GUI_PO_CUST  & ME_PROCESS_PO_CUST to add a customized subscreen in the header. But the subscreen is only visible with ME23N & ME22N not with ME21N . I am new to BadI, so help is needed.
    I have used the following code:
    In BadI ME_GUI_PO_CUST with interface IF_EX_ME_GUI_PO_CUST~SUBSCRIBE the code i ve written .. the following code ..
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    * we want to add a customer subscreen on the item detail tab
    CHECK im_application = 'PO'.
    CHECK im_element = 'HEADER'.
    * each line in re_subscribers generates a subscreen. We add one
    * subscreen in this example
    CLEAR re_subscribers[].
    * the name is a unique identifier for the subscreen and defined in this
    * class definition
    ls_subscriber-name = subscreen1.
    * the dynpro number to use
    ls_subscriber-dynpro = '0002'.
    * the program where the dynpro can be found
    * "Created in a module pool program in SE80 to hold the subscreen in
    *the tcode me21n, me22n, me23n*
    ls_subscriber-program = 'ZME_GUI_PO_CUST_SCREEN'.
    * each subscreen needs his own DDIC-Structure
    ls_subscriber-struct_name = 'CI_EKKODB'.
    * a label can be defined
    ls_subscriber-label = text-001.
    * the position within the tabstrib can be defined
    ls_subscriber-position = 13.
    * the height of the screen can be defined here. Currently we support two
    * screen sizes:
    * value <= 7 a sevel line subscreen
    * value > 7 a 16 line subscreen
    ls_subscriber-height = 7.
    APPEND ls_subscriber TO re_subscribers.
    In IF_EX_ME_GUI_PO_CUST~MAP_DYNPRO_FIELDS i ve changed the follwoing .......
    type-pools : MMMFD.
    FIELD-SYMBOLS: <mapping> LIKE LINE OF ch_mapping.
    LOOP AT ch_mapping ASSIGNING <mapping>.
    CASE <mapping>-fieldname.
    WHEN 'ZZPAYMENT'. <mapping>-metafield = mmmfd_cust_03.
    ENDCASE.
    ENDLOOP.
    In the badi ME_PROCESS_PO_CUST, their is a method called FIELDSELECTION_HEADER
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER .
    DATA: l_persistent TYPE mmpur_bool.
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    * if the item is already on the database, we disallow to change field
    * badi_bsgru
    l_persistent = im_item->is_persistent( ).
    IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_03.
    IF sy-subrc IS INITIAL.
    * <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    ENDIF.
    I have figured out the issue but do not the idea to fix the issue. I have put a break-point in  the badi ME_PROCESS_PO_CUST, having the method called FIELDSELECTION_HEADER & run the tcode ME21N. In the line  l_persistent = im_item->is_persisten & IF l_persistent EQ mmpur_yes and found out that the value of mmpur_yes  equal to 'X',  l_persistent is blank.
    Suggestion is widely accepted.
    Thanks & regards
    Feluda

    Try like this.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_HEADER .
    DATA: l_persistent TYPE mmpur_bool.
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    * if the item is already on the database, we disallow to change field
    * badi_bsgru
    l_persistent = im_item->is_persistent( ).
    IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_03.
    IF sy-subrc IS INITIAL.
    * <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    ELSE.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = mmmfd_cust_03.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    ENDIF.
    ENDIF.
    Let me know if you still have the problem.
    Thanks,
    Jyothi

  • Selection OPTION: Date input problem in Module POOL through Subscreen

    Dear ALL,
    Being new to ABAP, I am struck in a Problem.
    Requirement:
    I want an option on the Screen( My Screen 9000) for Date Range. Through this Date-Range I want to filter and pull some data from
    Database.
    As Date Range Selection option is possible only through Sub-Screen integration. Hence I integrated a Sub-Screen 400 (as below) and named the Sub-Screen area as SEL on my screen.
    Problem: As soon as I enter the dates on the screen, then those dates are not taken up by the code.
    During debugging I saw the the S_datum-low and S_datum-high are empty (in fact 00000000)
    The code follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
      Call SUBSCREEN SEL  INCLUDING sy-repid '400'.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9000.
    DATA:  gv_datum     Type   dats,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
        SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    Plz help where I am missing something.
    Regards
    Chandan

    Call the subscreen during the AT SELECTION-SCREEN event.
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    AT SELECTION-SCREEN.
       CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
       SET PF-STATUS '0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
       CASE sy-ucomm.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Problem with Hiding fields of selection screen which is called as subscreen

    Hello All,
    I have problem while hiding the selection screen which is called as subscreen.
    Flow of my logic:
    Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
    user enter some value in field and either he press change or dispaly
    When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
    Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
    How can i hide the fields and where i need to hide fields?
    Please post some codes.
    Regards,
    Lisa

    you can refer the sample code which i mentioned in your previous post. that will solve the problem.

  • Facing problem with call subscreen area in standard infotype

    Dear SAP Guru's,
    I have enhanced standard infotype 0185 from PM01, in assign enhancement tab it create multiple screens ,
    my program name ZP018500, screen number 0200 generated,
    on  0200 screen i need to display two subscreens tfor that
    i have created subscreen area  on srcreen 0200 which is already a subscreen.
    and i am calling two subscreen 0201 and 0202 on that  subscreen area.
    while creating entries for 0185 infotype  my screen keep going in continious loop for call subscreen statement on 0200 screen number.
    roll in fail, session terminated error coming because of this.
    is it correct to create subscreen area on subscreen and calling subscreen on that.
    Guide me to solve the issue.
    Thanks and Regards,
    Syed

    Dear Gopal,
    Thanks for the reply,
    But i can't make 0200 screen as normal screen because it is automatically generated by system while enhancing the standard infotype,
    Please let me know any other solution.
    Regards,
    Syed Taj

  • Problem while adding subscreen in MM02

    Hi all,
    Thx for ur reply bur while adding the subscreen in my custom program(mm02) saplzmgd1 , what shall i write in the PBO and PAI event?
    or shall i copy the existing screen n make modifications ther?
    what if i have to add another field of my own in the existinh subscreen added to mara by append structure, in that case, what shall be ther at PBO and PAI ??
    Regds
    Gunjan

    The whole procedure what to do is described in detail in the IMG:
    e.g.
    PBO:
      MODULE INIT_SUB.
      MODULE GET_DATEN_SUB.
      MODULE FELDAUSWAHL.
      MODULE SONDERFAUS.
      MODULE SONFAUSW_IN_FGRUPPEN.
      MODULE FELDHISTORIE.                "Aenderungsdienst
      MODULE BILDSTATUS.
      MODULE ZUSREF_VORSCHLAGEN_B.
      MODULE REFDATEN_VORSCHLAGEN.
      MODULE ZUSREF_VORSCHLAGEN_A.
      MODULE INIT_SUB_1000.               "YOUR CODING
      MODULE SET_DATEN_SUB.
    PAI:
      MODULE GET_DATEN_SUB.
    Start YOUR CODING
      FIELD: MARC-....
             MODULE MARC_...
      MODULE OK_CODE....
    End YOUR CODING
      MODULE SET_DATEN_SUB.

  • Problem in Calling Subscreens

    Hi,
    my main screen number is 1001 and in that screen i have a tabstrip with subscreens 1002,1003,1004,1005,1006.Each tab has an ALV...
    When i click on excute button in my main screen 1001 then i need to call all the subscreens and all the ALV's should be displayed.
    My coding...
    Module user-command 1001.
    Case Sy-ucomm.
    When 'EXCE'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1002'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1003'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1004'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1005'.
    CALL SUBSCREEN TAB_SCA INCLUDING sy-repid '1006'.
    endcase.
    endmodule.
    but error is displayed as "," or "ID ... FIELD ..." expected after "SUBSCREEN".
    Guys Please let me know if someone knows the solution.
    Regards,
    Chaithanya.

    Hi,
    In PAI event, you should not use INCLUDING SY-REPID SCREEN_NO
    This is causing error.
    Wrting CALL SUBSCREEN TAB_SCA only once is enough as you are displaying
    multiple subscreens in same subscreen area.
    Regards,
    Vishal
    Edited by: Vishal Jadhav on Dec 9, 2008 3:54 PM

  • Want check box checked as default for a newly added subscreen in ME21N

    Hi Guys,
                 I have added a subscreen in ME21N with one field with check box.
    When I enter ME21N I should get that checkbox CHECKED automatically.
    How to do this.
    And one more thing is when manually putting checkmark,when I press enter that check mark is getting deselected.How to overcome this???
    I have used screen exit
                                      SAPLXM06 
                                      screen: 0101   for this subscreen.
    Thanks in Advance.
    Prasad.

    Hi,
    the deselection problem could be caused of an incorrect name of that screen field name. You should check in screen painter if that check box field name is the same name as your data object (e.g. gv_checkbox) .
    Unfortunately it is not possible to define default values within Screen Painter. You have to do this in PBO.
    Regards
    Mark-André

  • Problem with custom checkbox in tx. IP02

    Hi experts,
    I added some new fields to IP02 in a new tab. One of this fields is a checkbox and I need to control whenever it is selected or not in order to enable/disable some other fields in the dynpro.
    I created a module "init_fields" in PBO where I control if the checkbox is 'X' or '' but if only goes to that module if I assign a function code 'ULTI' to the checkbox. And then I always get the same error "Requested function ULTI is not available here".
    Does anybody know where the problem is ??
    Regards,
    Marí

    Hi Madhu,
    It's a new tab and inside there are some new fields. The one I need to control whenever it is selected or not, is a checkbox (char1). The problem appears when the report control gets out off the subscreen because the function code 'ULTI' (created by me) doesnt' exist...

  • Add button to BP subscreen Identification Numbers

    Hi gurus,
    in transaction BP there is a tab called Identification. On this tab a subscreen area Identification Numbers exists which contains a screen (SAPLBUD0 - 1520). We want some added logic on the screen by means of a new button. I think it is not possible to add a button because the screen is hard-coded, so what I thought should happen is that a copy of the screen is made including the new button.
    And now my problem occurs, how do I replace the former screen(SAPLBUD0 - 1520) with the new screen on that particular screen area?
    kind regards,
    Wim van Erp

    I've found it. trx. BUS3 contains the specific screen.
    regards.

  • Problem with creating a new file in the Filter

    hi,
    i have the following problem.
    1) For all requests ending with *.xml (for example requests such as http://www.asdf.com/feeds/myfile.xml ) i have mapped it to a filter
    2 ) In the filter i did the following...................
    //getting the file name from the url
    //create the file if it does not exists..................
    chain(request,reponse);
    //done
    problem is
    3) a) For files which iam not creating in filter (i.e files which are already there) the response is proper it is returning a xml file
    b) But for files which are not there already , which we are creating in the filter dynamically it is showing a 404 (i.e file not found message)
    But if i refresh again in the browser it is getting a valid XML file.......................................
    I could not able to figure it out why it is returning 404 error in cases where the file is being created dynamically.................................
    Can any one guide me resolving this problem?

    Hi pawan
    Try this badi :   MB_MIGO_BADI  -
    (BAdI in MIGO for External Detail Subscreens)  as the name suggest ,
    If you want to add a screen in header level use : Method : PBO_header an code as :
        e_cprog   = 'ZMMPRM0001'.     """ Your screen created
        e_dynnr   = '1000'.                     "Your screen No
        e_heading = 'TEXT ID '(004).    """" Name of the screen to be created .
      ELSE .
        e_cprog   = 'ZMMPRM0001'.
        e_dynnr   = '1000'.                     "External fields: Display
        e_heading = 'TEXT ID '."(004).
    or if at item level
    u can use methid : PBO_DETAIL
    for item level screen creation . and code in the same maaner ..
    You can explore the remaning methods as per your requirements .
    Hope it helps ..!
    Regrads
    Swapnil P KAmble

  • After Showing ERROR message make the field editable in subscreen.

    Hello Experts,
    I have a requirment where i have added a subscreen to the standard screen of ME31K for creating the contract. In my Subcreen i have my custom screen fields that i'm updating in EKKO table through include structure.
    Now if user forget to fill the details in my custom fields in the subscreen then i'm giving the error message prompting the user to fill the value in fields.
    But the problem is the screen is locked there itself i want to make the field editable so that user can enter some value in the fields. I can not use the stuatus or information message here because doing this i will get the item overview screen which should not come as i want to restrict the user to header details only and fill all the custom fields.
    Please provide me with your helpful responses.
    Thnaks,
    Naveen

    Hi Naveen,
    Sorry for the delay.
    The code which I gave for popup, i hope its being shown in an IF . . . ENDIF.
    So in that condition u can add the following :
    IF < ur condition >
       < Call message FMs >
        SET SCREEN SY-DYNNR.   "this would set screen to current screen which is 0201
        EXIT.
    ENDIF.
    Other than this if you like you can set some parameters in the PAI of this screen which redirect to current screen based on some conditions.
    So u can manually set OK-CODE and CALFCODE as SPACE, but i dont know how much this can impact the process.
    So please follow the above code.
    This is available in
    Main Program     SAPMM06E
    Source code of   MM06EF0F_FCODE_CALL
    IF OK-CODE EQ SPACE AND
       CALFCODE EQ SPACE.
      SET SCREEN SY-DYNNR.
      EXIT.
    ENDIF.
    Hope this helps.
    Regards,
    Ateet

  • How to call table control in subscreen in module pool program

    Hi all,
    I have req,need call table control in subscreen,but have done but when scroll bar value getting changed ,
    please guide how to do it.if its possable send the code.
    regards
    santosh

    Hi,
    The navigation happens like this.
    Consider you have a main screen and 2 subscreens.
    When you click or do some event in the Subscreen 2 (lets say this is the one that has the table control), this will first trigger PAI of the Main Screen. In the flow logic of the Main screen, you would have written call subscreen <subscreen area1> and call subscreen <subscreen area2>.
    Now the subscreens get triggered based on the order in which you have written in the flow logic.
    So, here the modules before the first call subscreen statement in the Main Screen PAI is all executed. Now, it goes to the subscreen on which you have triggered an event and executes the modules in the subscreen.
    This is how the execution goes when you have subscreens.
    So there is no problem with the navigation. You only have to worry about the screen where you have the table control. Just debug and find where data is getting changed or duplicated.

  • Subscreen in module pool

    Hi,Iam new to module pool.My requirement is to display data on the same screen in table control when the end user clicks on a pushbutton.For that I have created a work area in the main screen.I have created a subscreen with the table control I want data I want.But it is getting displayed immediately when the first screen is getting displayed.It should get displayed when user clicks on a pushbutton.
    I think my question is clear,if not PLZ tell me where to clarify.

    Hi,
    i got a solution for your problem and i tried it and is successful, i hope this wil resolve your problem.
    as you said when you execute the transaction the table control wil be displayed, but for that you  creat one more empty subscreen and make it default subscreen.
    then you assign your subscreen with table control to be called when pushbutton is pressed.
    DATA: NUMBER(3) TYPE N VALUE '300'. "empty subscreen
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN AREA INCLUDING SY-REPID NUMBER.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN AREA.
    in report program.
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'DISPLAY'.
    NUMBER = '200'. "subscreen with table control
    WHEN 'BACK'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    regards,
    prakash reddy .s

Maybe you are looking for

  • OIM 11g R2 - Transferring accounts from one user to another user

    Hi, In OIM  11g R2,we have a requirement that we need to transfer accounts from one user to anothe user.For example,an user "User1" has AD and Exchange Accounts provisioned.Now we wanted to to transfer these AD and Exchange accounts to another user "

  • How to reduce the weight of SharePoint master page.

    Hi I have given my sharePoint master page (without any additional content) & source-generated in browser. we want to reduce the weight of the page(source) can anyone tell me what are the things from the below-master page I can remove. our master page

  • Oracle 8i + Apache 1.3.9 + PHP 3.0.14

    I have installed oracle 8.1.5 with patch 2 on my redhat 6.1, it seems to work fine ( sqlplus svrmgrl, etc. ). So I recompiled my PHP 3.0.14 to use OCI8. But something must be wrong. When I restarted Apache to load php module, it died immediately. In

  • What's "SVGA"? Need that for an HDTV hook up?

    I'm preparing to set up my friend's Mini, when it arrives. She will be using her new Samsung HD TV, with a VGA input. I already gathered that I need a Male to Male VGA cable (the adaptor comes in the box, right?) But I was just now on monoprice.com t

  • HT1768 PC won't install driver for ipad

    Although previously I have had no problem connecting my ipad to my PC today it wouldn't connect saying it couldn't find the driver so I uninstalled the driver and tried to re-install it but although it found the driver it wouldn't re-install with the