Skip to Content
author's profile photo Former Member
Former Member

Need to display a pop up with some I/O fields and push button???

Hi,

I need to Display a pop-up screen asking the user to enter some input value and then take some action based on clicking a button in pop up.

Regards

Rajneesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:00 AM

    Hi,

    check the link.

    http://www.sap-img.com/abap/abap-pop-up-window.htm

    Regards,

    Anirban

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:18 AM

    Hi,

    u can use this function module for popup.

    CALL FUNCTION 'POPUP_TO_CONFIRM'

    EXPORTING

    text_question = 'Do You want to Proceed with the Predefined values'

    text_button_1 = l_c_yes

    text_button_2 = l_c_no

    display_cancel_button = ''

    start_column = 30

    start_row = 10

    IMPORTING

    answer = l_ans

    EXCEPTIONS

    text_not_found = 1

    OTHERS = 2.

    CASE sy-subrc.

    WHEN 1.

    MESSAGE e010. " TEXT_NOT_FOUND

    WHEN 2.

    MESSAGE e350. " OTHERS

    ENDCASE.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:28 AM

    Hi

    Good

    Check this code , hope this would help you to solve your problem.

    TABLES:

    sscrfields. "Fields on selection screens

    DATA:

    gd_scftx TYPE smp_dyntxt. "function key 1 properties

    *----


    • SELECT OPTIONS / PARAMETERS - SELECTION SCREEN DISPAY

    *----


    SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE txtblk01.

    PARAMETERS:

    up_kokrs TYPE kokrs OBLIGATORY DEFAULT '0002'.

    SELECT-OPTIONS:

    us_bukrs FOR t001-bukrs.

    PARAMETERS:

    up_gjahr TYPE gjahr OBLIGATORY.

    SELECT-OPTIONS:

    us_poper FOR t009b-poper OBLIGATORY NO-EXTENSION.

    SELECTION-SCREEN END OF BLOCK box1.

    SELECTION-SCREEN BEGIN OF BLOCK box2 WITH FRAME TITLE txtblk02.

    PARAMETERS:

    ur_rgion RADIOBUTTON GROUP rb1 DEFAULT 'X' USER-COMMAND rbg1,

    ur_cmpny RADIOBUTTON GROUP rb1,

    ur_waers RADIOBUTTON GROUP rb1.

    PARAMETERS:

    up_waers TYPE waers DEFAULT 'USD'.

    SELECTION-SCREEN END OF BLOCK box2.

    SELECTION-SCREEN BEGIN OF SCREEN 9000 AS WINDOW TITLE txtblk03.

    PARAMETERS:

    up_cegrp TYPE grpname,

    up_prctg TYPE grpname.

    SELECTION-SCREEN END OF SCREEN 9000.

    SELECTION-SCREEN FUNCTION KEY 1.

    AT SELECTION-SCREEN.

    IF sscrfields-ucomm = 'FC01'.

    CALL SELECTION-SCREEN 9000 STARTING AT 10 05.

    ENDIF.

    INITIALIZATION.

    txtblk01 = 'General Selections'.

    txtblk02 = 'Output Currency Selection'.

        • fill-up of value for function key 1

        gd_scftx-icon_id = icon_display_more.

        gd_scftx-quickinfo = text-ss1.

        sscrfields-functxt_01 = gd_scftx.

        Thanks

        mrutyun^

        Add a comment
        10|10000 characters needed characters exceeded

      • author's profile photo Former Member
        Former Member
        Posted on Jul 25, 2008 at 06:28 AM

        Plz find below method to pop wup with input value field.

        data : it_sval like sval occurs 0 with header line.

        it_sval-tabname = 'MARA'.

        it_sval-fieldname = 'MATNR'.

        it_sval-value = l_maktx.

        it_sval-field_attr = '02'. "Inactive Input Field

        append it_sval.

        clear it_sval.

        it_sval-tabname = 'MARA'.

        it_sval-fieldname = 'MTART'.

        it_sval-value = header_table-sbmeh. "Active Input Value

        it_sval-field_attr = '01'.

        append it_sval.

        clear it_sval.

        call function 'POPUP_GET_VALUES'

        exporting

        popup_title = 'Shelf Life Expiration Date'

        importing

        returncode = l_returncode

        tables

        fields = it_sval[]

        • EXCEPTIONS

        • ERROR_IN_FIELDS = 1

        • OTHERS = 2

        .

        if sy-subrc <> 0.

        • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

        • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

        endif.

        Add a comment
        10|10000 characters needed characters exceeded

      • Posted on Jul 25, 2008 at 06:29 AM

        HI,

        Use this Fm which works as per ur requirement.

        CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'
          EXPORTING
            textline1            = 'Please enter company code'
        *   TEXTLINE2            = ' '
        *   TEXTLINE3            = ' '
            titel                = 'Please enter value in this field'
            valuelength          = 4
         IMPORTING
           ANSWER               = l_ans
           VALUE1               = l_val
         EXCEPTIONS
           TITEL_TOO_LONG       = 1
           OTHERS               = 2
                  .
        
        IF l_ans EQ 'J'. Continue
        "do ur processing.
        ELSE.
        EXIT.
        ENDIF.
        "l_val has the entered value.
        

        Thanks,

        Vinod.

        Add a comment
        10|10000 characters needed characters exceeded

      • author's profile photo Former Member
        Former Member
        Posted on Jul 25, 2008 at 06:07 AM

        Hi,

        go to screen painter se51 and design screen with all fields as per your requirement and in attributes of the screen check screen type as dialog module type then that screen will appear as pop up dialog box. call this screen in your program where you want.

        Hope this will give some idea.

        Regards,

        Aswini.

        Add a comment
        10|10000 characters needed characters exceeded

      • author's profile photo Former Member
        Former Member
        Posted on Jul 25, 2008 at 06:13 AM

        Hi,

        Create a new screen with the contents that you want on POP-UP screen..

        call this scrren on click of ALV.. give the screen starting and ending paramaeters

        Thanks,

        Khushbu.

        Add a comment
        10|10000 characters needed characters exceeded

      Before answering

      You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
      You must be Logged in to submit an answer.

      Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.