Find button in dialog screen

i am searching material number in find button in my table control.
its working fine for one material number. it displays that in top_line of table control.
but my input is matches with more than one records in internal table means its showing only one record in top line.
how to increment my top line. all material number matches are arrange from top of line.pls tell me how to write code for that
MODULE TBL_CTRL_0112_USER_COMMAND INPUT.
CASE SY-UCOMM.
WHEN 'FIND'.
        REFRESH tab.
        DATA: P_TC_NAME TYPE DYNFNAM,
              NEXT_LINE TYPE I.
        FIELD-SYMBOLS <TC> TYPE CXTAB_CONTROL.
      clear ok_code.
      TAB-TABNAME = 'MARA'.
      TAB-FIELDNAME = 'MATNR'.
      TAB-VALUE = ''.
      APPEND TAB.
      CALL FUNCTION 'POPUP_GET_VALUES'
        EXPORTING
          POPUP_TITLE           = 'FIND'
          START_COLUMN          = '5'
          START_ROW             = '5'
        TABLES
          FIELDS                = TAB.
     LOOP AT TAB WHERE VALUE IS NOT INITIAL.
      READ TABLE GIT_ZSD_SLS_PLN_I_OT_P WITH KEY MATNR = TAB-VALUE.
       IF SY-SUBRC = 0.
         TBL_CTRL_0112-TOP_LINE = SY-TABIX.
         ENDIF.
     ENDLOOP.
MOderator Message: Duplicate Post.
Edited by: kishan P on Nov 15, 2010 2:18 PM

hi,
  go to SE51 in that go to layout , inthat to the left hand side of the screen u can find some icons in that u can find Button select and drag on to screen. then set the attributes like function code.
in pai,
handle that button.
case sy-ucomm,
when 'fcode'.
ur logic.
endcase.
Rgds.,
subash

Similar Messages

  • 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

  • How to add find button

    I want to add a find button in a screen, so what is the concept and code to impliment the functionality of find button.
    Points will be rewarded if help full.
    Thanks & Regards.
    SC Mahanta.

    hi,
    here i have done same...
    when user press find button , one screen get call and i enter search term in that and then it finds the row with same string...
    if u want so then do like this
    MODULE user_command_1000 INPUT.
    CASE sy-ucomm.
    WHEN 'BACK' OR 'UP' OR 'CANC'.
    LEAVE PROGRAM.
    WHEN 'FND'.
    CALL SCREEN 1001 STARTING AT 37 5 ENDING AT 87 22.
    ENDCASE.
    ENDMODULE. " user_command_1000 INPUT
    when user enters search term u need to call ur main screen
    MODULE user_command_1001 INPUT.
    CASE sy-ucomm.
    WHEN 'OK'.
    CALL SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    now u will have on module in PBO in which u fetching data...
    write this in that module..
    MODULE fetch_data OUTPUT.
    SELECT matnr matkl INTO CORRESPONDING FIELDS OF TABLE itab
    FROM mara
    WHERE matnr BETWEEN '000000000000000101' AND '000000000000000115'.
    IF strin IS NOT INITIAL.
    wa_itab-mark = 'X'.
    LOOP AT itab.
    IF itab-matnr = strin.
    line1 = sy-tabix.
    EXIT.
    ENDIF.
    ENDLOOP.
    IF line1 0.
    MODIFY itab INDEX line1 FROM wa_itab TRANSPORTING mark.
    SET CURSOR LINE line1.
    tab1-top_line = line1.
    ENDIF.
    ENDIF.
    ENDMODULE. " fetch_data OUTPUT
    strin is variable of screen 1001 in which i give search term..
    reward if usefull.

  • I have just updated my MBP to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    I have just updated my MBP 17 / retina display to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    The button response has changed. 
    Short press : sleep
    Medium press (2-3 sec) : restart, shutdown, sleep dialog
    Long press : force shutdown. (Same as before)

  • Mt iPhone shows unread messages that aren't there! I have held down the power and home buttons until blank screen and apple icon appear only to find it is cleared, but within minutes the unread messages reappear! Please help

    Mt iPhone shows unread messages that aren't there! I have held down the power and home buttons until blank screen and apple icon appear only to find it is cleared, but within minutes the unread messages reappear! Please help

    Have you restored the iphone through itunes?
    You say the unread messages aren't there but then they appear?

  • Dialog Screen on Preview Button of ME21N

    How to Call Dial Dialog Screen on Print Preview Button in Transaction ME21N?

    Hello,
    I am really not very sure if you can give another dialog box to take the user entry for Print out or Adobe output.
    I had rather suggest you to implement the header badi to create a customer screen and then in that give a radio button option in which the user would select the type of output required.
    This would considerably reduce your time and make your work easier.
    Please revert if you are unclear with this.
    Regards,
    RK

  • HT201272 Can somebody tell me why there is no "purchase" button on my screen?  I pull up my wish list- and am ready to purchase- but cannot find the button.  I feel stupid- but it's just nowhere to be found on my screen.  Please help.

    Can somebody please tell me why there is no "purchase" button on my screen?  I go to my WISH LIST and am ready to purchase but I cannot find the button.  I feel ridiculous.  Please help.

    There used to a 'buy all' button on the wish list screen but for some reason that has been removed from the current version of iTunes, you can only buy items individually by clicking on their prices (not the downward pointing arrow next to the price).

  • How do i reset my apple security questions when i cant find there is no reset button on my screen and i tried itunes and iclould

    how do i reset my apple security questions when i cant find there is no reset button on my screen and i tried itunes and iclould

    See Kappy's previous discussion.
    HT5312 How to recover security...: Apple Support Communities

  • BDC for Modal dialog screen

    Hello,
      I'm creating a bdc for create customer transaction (FD01). The problem I'm currently having is on maintaining the "other communication" details for the customer. The requirement I have is to maintain only the communication type "URI". But I can't find the correct program and screen number for this modal dialog. anyone have an idea?
    Thanks?
    MP

    Hi, thanks for all the reply. However, everything has been tried. The modal screen dialog I was refering at does not contain any program or screen details when I use F1. This screen does not appear in SHDB when doing the recording. SAPLSLVC_FULLSCREEN/0700 is not the screen I'm refering at.
    When you click on the "Other Communication", there will appear the screen I'm refering at having the list of all other communication type you need to maintain (Fax, Telephone, E-mail, URI). This screen is somehow similar the way serach help functions. I'm basically concern on URI. So what I need to do is place the cursor on URI and click on the check button or double cliking URI is ok. This is the part missing on my bdc, choosing the URI in the modal dialog screen. Upon debugging, it seems that a Function is responsible in displaying the screen.Any idea?
    Message was edited by: Marlon Pita

  • How to print the dialog screen result

    Experts,
    Iam using dynpro and as a result a graph is printed on the screen container. This is my final screen and I want to take a print of that container with graph. so I have activated the print button in the functional keys by selecting the normal application function type.
    my screen output is graph as i said.
    My program code is like below
    PROGRAM  Z_GRP_PRT.
    TYPE-POOLS: GFW.
    DATA PARAMS LIKE PRI_PARAMS.
    DATA: OK_CODE TYPE SY-UCOMM,SAVE_OK LIKE  OK_CODE,
          VALUES TYPE TABLE OF GPRVAL WITH HEADER LINE,
          COLUMN_TEXTS TYPE TABLE OF GPRTXT WITH HEADER LINE.
    DATA: DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
      SET PF-STATUS 'YUSR1'.
      REFRESH VALUES.
      REFRESH COLUMN_TEXTS.
      VALUES-ROWTXT = 'Prod1 '.
      VALUES-VAL1 = 1.
      VALUES-VAL2 = 5.
      VALUES-VAL3 = 6.
      VALUES-VAL4 = 7.
      APPEND VALUES.
      VALUES-ROWTXT = 'Prod2 '.
      VALUES-VAL1 = 0.
      VALUES-VAL2 = 5.
      VALUES-VAL3 = 2.
      VALUES-VAL4 = 5.
      APPEND VALUES.
      COLUMN_TEXTS-COLTXT = 'time1'.
      APPEND COLUMN_TEXTS.
      COLUMN_TEXTS-COLTXT = 'time2'.
      APPEND COLUMN_TEXTS.
      COLUMN_TEXTS-COLTXT = 'time3'.
      APPEND COLUMN_TEXTS.
      COLUMN_TEXTS-COLTXT = 'time4'.
      APPEND COLUMN_TEXTS.
      CALL FUNCTION 'GFW_PRES_SHOW'
        EXPORTING
          CONTAINER         = 'CONTAINER'
          PRESENTATION_TYPE = GFW_PRESTYPE_LINES
        TABLES
          VALUES            = VALUES
          COLUMN_TEXTS      = COLUMN_TEXTS
        EXCEPTIONS
          ERROR_OCCURRED    = 1
          OTHERS            = 2.
      IF SY-SUBRC <> 0.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    MODULE USER_COMMAND_1000 INPUT
    MODULE USER_COMMAND_1000 INPUT.
      OK_CODE = SY-UCOMM.
      SAVE_OK = OK_CODE.
      CASE SAVE_OK.
        WHEN 'EXIT' OR 'BACK'.
          LEAVE PROGRAM.
        WHEN 'PRINT'.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              DESTINATION      = 'LOCA'
              COPIES               = COUNT
              LIST_NAME         = 'TEST'
              LIST_TEXT           = 'Test NEW-PAGE PRINT ON'
             IMMEDIATELY    = 'X'
              RELEASE            = 'X'
              NEW_LIST_ID       = 'X'
              EXPIRATION         = DAYS
              LINE_SIZE            = 79
              LINE_COUNT        = 23
              LAYOUT               = 'X_PAPER'
              SAP_COVER_PAGE = 'X'
              RECEIVER            = 'SAP*'
              DEPARTMENT      = 'System'
              NO_DIALOG          = ' '
            IMPORTING
              OUT_PARAMETERS = PARAMS
              VALID          = VALID.
          IF VALID = 'X'.
            NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG.
            WRITE / 'First line'.
          ENDIF.
    NOTE : Following code is tried and not printing anything so commented **********
       WHEN 'PRINT'.
         data : lv_program type sy-repid,
                lv_dynnr   type sy-dynnr.
                lv_program =  sy-repid.
                lv_dynnr   = sy-dynnr.
         CALL FUNCTION 'RS_SCRP_PRINT_IN_LIST'
             EXPORTING
               dynnr = lv_dynnr
               Progname = lv_program
               fullscr = 'X'
               EXCEPTIONS
                 cancelled = 1
                 not_found = 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    Now, Iam getting a print out like
    SAP logo printed with stars and with all the parameters I have passed to the function module
    Iam not getting the graph as my output. I have tried another code calling 'RS_SCRP_PRINT_IN_LIST'. It is not even giving me any reply. The screen just blinks one time when I press the print button on the screen when I use the commented code function module.
    I just want to print a graph in the screen container. Should I have to convert the screen graph as a list ?
    Then how to do it. Post the complete code of any possible help. Please help me with this and keep my thanks in advance.I don't want to use hard copy.

    please  go through the link   here it was  give the step  .. first you have to create the short cut of the  sap desktop  ......  
    <a href="http://">http://www.sapdevelopment.co.uk/tips/debug/debug_popup.htm</a>
    reward  points  if  it is  usefull ...
    Girish

  • Module Pool - Error message on a Modal Dialog screen with input

    Hello All,
    I have a modal dialog screen which is called on F4 help of a input field. This dialog screen has radio buttons on it to select. On selection, we check if the user is authorized to that option. If not, raise and error message with command MESSAGE msgid.....
    When the error message pops-up and when clicked ok on it, the radio buttons on the modal dialog screen gets disabled. I want to have the modal dialog box to be able to accept the new radio button as input.
    Can anyone please suggest.
    Thanks,
    Smita

    Put all of your Radio buttons in the CHAIN ... ENDCHAIN with one module.
    CHAIN.
        FIELD rb1.
        FIELD rb2.
        FIELD rb3.
        MODULE check_chain ON CHAIN-REQUEST.   "<< implement logic in check_Chain
      ENDCHAIN.
    If you want, you can even disable the options before displaying the screen. Do all necessary checks in the PBO and based on that disable the options.
    Regards,
    Naimesh Patel

  • How to suppress the protocol dialog screen in ALV grid ?

    To check the values in the ALV grid we make use of the method add_protocol_entry from the class interface CL_ALV_CHANGED_DATA_PROTOCOL. The coloring of the wrong cells in the ALV grid is a nice feature but the popup screen that appears on every entry that is incorrect is not so nice. Is there a possibility to suppress this dialog screen without stopping the coloring feature? Or is there an other way to get this coloring feature in the specific cells of the ALV grid. We have already tried the emphasize option in the field catalog but in this case the coloring of a cell disappears when the cursor is set on the colored field in the ALV grid.
    I hope somebody can help us.
    Thanks and greetings,
    Ad Pegels
    Suiker Unie
    Netherlands

    As I understand by adding the PROTOCOL you are trying to validate some fields and display those with a different color.
    Instead, if you can validate and can change the color manually I think the pop ups can be avoided. All you have to  do is to add a nested internal table to the main internal table that has the display data. This nested table will be of type LVC_T_STYLE. You can add rows, one for each field that you want to display in a different color and also spcify the style in which you want to display.
    Once you do that those fields should be displayed with different colors.
    Regards,
    Ravi
    Note : Please allocate points if you find this useful.

  • Creating push button on Selection screen application toolbar

    Hi Friends,
    this is a HR-ABAP report. I have to create a push button on Selection screen. when user clicks on that push button 'MODAL DIALOG BOX' has to be displayed containing some data.
    plz kindly give some sample code to do this.
    Regards,
    Radhika Dasharatha.

    Hi,
    1)Use SELECTION-SCREEN  PUSHBUTTON /10(20) PUSH USER-
      COMMAND 'ABC'. in selection screen.
    2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.
    3) At selection screen.
      if sy-ucomm eq 'ABC'.
    call FM HR_BE_GE_MODAL_DIALOG
    endif.
    Thanks
    Sandeep
    Reward if useful

  • Selection-screen in a Dialog Screen

    Hello,
       I want to create a selection screen in a dialog screen with all its functionality specially the option for multiple selection like want I'm doing in a report-type program. Is this possible?
    tnx,
    Jeff

    Hi Jeffrey
    As Harald mentioned, it is possible. You can check out Re: Store select-options on database to find some more information.
    As another thing, since you are a new SDN member, you are welcome and let me introduce you the SDN forums pointing system: You can assign points to posts you find while helpful solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)
    Kind regards...
    *--Serdar

  • Adding a Forward functionality on the Workitem dialog screen itself

    Hi SDM forum members,
    I am having some issues with adding a forward functionality to a custom dialog screen.
    I  tried to add a forward button on the WI screen , which in the background calls a fm that basically calls
    SWL_SELECT and then SWL_WI_FORWARD FM , for some reason the forwarding does not complete as expected .To explain further , suppose i am forwarding to X user the the WI still shows up in my inbox , and Workflow log shows both users assigned as agent( me and X) and though there is forwarded icon against user X  in the log -> view agent box . The Wi status is ERROR.
    example of error-
    Error handling for work item 000000055578
    Message no. SWF_RUN630
    This explians nothing to me but my guess is the issue is that WI gets completed because i execute it while forwarding it .
    Now if i get the WI id and input it to the above mentioned FM (se37) then it is forwards correctly.i can see the change in SWI1 log too. it is assigned correctly to user X with the forwarded icon and everything.
    So  i thought maybe i need to change the status of the Wi back to ready , but that is not possible, can't go back in status, Error again  .So i tried doing exit_cancelled in the WF , that does not work either , because that does not  forward the WI  atall.
    So my question is has anybody forwarded the WI  by providing an option on the WI execute screen? Is it possible using the SWW fm's ?
    Please let me know if anybody has any  solutions / ideas/ thoughts.
    I wish i could put in some screensshots , but anyways i hope you understand what i am saying , if not maybe i can elaborate further later.
    thank you ,
    Preeta

    Hi,
    Try with these FM's:
    SAP_WAPI_FORWARD_WORKITEM
    And for information: SAP_WAPI_FORWARDING_INFO_GET
    PS: Status change from COMPLETED to READY is not allowed/possible
    Regards,

Maybe you are looking for

  • IPC pricing gross value for products in catalog

    Hello all, In ISA b2b application I need to add a new column with gross value for products in catalog. Here is how I've tryed : </i> <!-- CBI Added gross price -->                <td align="right" >                     <%IPCItem priceRef2;           

  • Multiple desktops/different icons?

    I am a student and I use my new mbp for lots of school related things, and it would be so easy and much neater looking if I could have all school related links and icons on one desktop, and personal things on another. But I can't figure out how; no m

  • Can I move project files between a mac and a pc?

    I have a PC desktop, which I run Adobe Premiere CS4 and work mainly on.  I am looking into buying a mac book pro to use in the field and for some work while traveling.  I was wondering if I could start a project at home (I work on Firewire Portable D

  • Question about Order Online / Delivery

    Hi everyone, I am thinking about order a MBP online. But there has one thing which i worry about. Sorry about that if you think that question is stupid, but it is my first time to order something so expensive on the internet, so i am a bit worry Beca

  • EXIF tag used as 'Description'

    What EXIF tag does iPhoto 09 use as description when I import JPGs? With iPhoto 08 it worked when I set the 'Object Name' before importing but since I upgraded to 09 that does no longer work I can still see the description for photos I imported when