Skip to Content

Re: Prompt User to select from screen display options

Hi,

I need a FM whereby I could display possible values for User to select and then return to continue the processing.

User will need to click on the screen selection and then the OK icon.

Please assist.

Thanks

Add comment
10|10000 characters needed characters exceeded

8 Answers

  • Posted on Aug 01, 2006 at 09:45 AM

    Hello,

    Try FM : FIELD_CHOICE

    Regards,

    Naimesh

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 09:48 AM

    hi,

    Check this

    POPUP_WITH_TABLE_DISPLAY_OK

    REUSE_ALV_POPUP_TO_SELECT -


    To show POPPU and Select

    <b>Please Reward Points & Mark Helpful Answers</b>

    To mark Helpful Answers ;click radio Button next to the post.

    RadioButtons

    <b>o</b> Helpful Answer

    <b>o</b> Very helpful Answer

    <b>o</b> Problem Solved.

    Click any of the above button next to the post; as per the anwers

    <b>To close the thread; Click Probelm solved Radio Button next to the post , which u feel is best possible answers</b>

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      I had decided to use FM REUSE_ALV_POPUP_TO_SELECT.

      However, when I exeute it, I can only see the heading but not the data.

      here's my codes

      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

      EXPORTING

      I_TITLE = 'Please select correct email address'

      I_SELECTION = 'X'

      • I_ALLOW_NO_SELECTION =

      I_ZEBRA = 'X'

      I_SCREEN_START_COLUMN = 10

      I_SCREEN_START_LINE = 1

      I_SCREEN_END_COLUMN = 80

      I_SCREEN_END_LINE = 20

      I_CHECKBOX_FIELDNAME = 'CHK'

      • I_LINEMARK_FIELDNAME =

      I_SCROLL_TO_SEL_LINE = 'X'

      • I_TABNAME = ITAB03

      I_TABNAME = 'ITAB04'

      I_STRUCTURE_NAME = 'X_FIELDCAT'

      it_fieldcat = IT_FIELDCAT

      • IT_EXCLUDING =

      • I_CALLBACK_PROGRAM = 'SAPLSZA1'

      I_CALLBACK_PROGRAM = 'SAPLKKBL'

      • I_CALLBACK_USER_COMMAND =

      • IS_PRIVATE =

      IMPORTING

      • ES_SELFIELD = ls_selfield

      E_EXIT = ld_exit

      TABLES

      T_OUTTAB = ITAB04

      • EXCEPTIONS

      • PROGRAM_ERROR = 1

      • OTHERS = 2

      .

      Please advice.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 09:48 AM

    Hi you can use this FM.

    C100_SELSCREEN_SHOW_AS_POPUP

    POPUP_TO_CONFIRM_STEP

    Regards,

    Sumit.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 09:53 AM

    You can try function module F4_FIELD_ON_VALUE_REQUEST

    Pass the Table name and Field name as import parameter and you will get Pop up screen with possible values to select.

    Hope this helps.

    Regards

    Damasus Fernandez

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 10:07 AM

    Hi Colin,

    use FM 'F4IF_INT_TABLE_VALUE_REQUEST'

    in AT SELECTION-SCREEN ON VALUE-REQUEST FOR 'your parameter/select'.

    At the moment i havn't an SAP-System.

    Perhaps, if you need, i can give you an Example later.

    Hope this helps you.

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 07:55 AM

    Hi Colin,

    here a short example:

    TYPE-POOLS: SLIS.

    DATA: FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

    WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.

    SELFIELD TYPE SLIS_SELFIELD.

    *

    PROGNAME = SY-REPID.

    *

    • Feldkatatalog vorbereiten auf Basis der ITAB-Definitionen

    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

    EXPORTING

    I_PROGRAM_NAME = PROGNAME

    I_INTERNAL_TABNAME = 'ITAB'

    I_CLIENT_NEVER_DISPLAY = 'X'

    I_INCLNAME = PROGNAME

    CHANGING

    CT_FIELDCAT = FIELDCAT

    EXCEPTIONS

    INCONSISTENT_INTERFACE = 1

    PROGRAM_ERROR = 2

    OTHERS = 3.

    *

    LOOP AT FIELDCAT INTO WA_FIELDCAT.

    • Für alle Spalten Key_Information ausschalten

    MOVE ' ' TO WA_FIELDCAT-KEY.

    • Für alle Spalten nur Mittel_Text anzeigen.

    MOVE 'M' TO WA_FIELDCAT-DDICTXT.

    • Für alle Spalten soll nicht 0 NICHT angezeigt werden.

    MOVE 'X' TO WA_FIELDCAT-NO_ZERO.

    • Für alle Spalten Key_Information ausschalten

    MOVE ' ' TO WA_FIELDCAT-KEY.

    • Spalte ausblenden

    CASE WA_FIELDCAT-FIELDNAME.

    WHEN 'MATNR.

    MOVE 'X' TO WA_FIELDCAT-NO_OUT.

    ENDCASE.

    • Spaltenüberschriften

    CASE WA_FIELDCAT-FIELDNAME.

    WHEN 'MAKTX'.

    MOVE 'shorttext' TO WA_FIELDCAT-SELTEXT_M.

    ENDCASE.

    *

    MODIFY FIELDCAT INDEX SY-TABIX FROM WA_FIELDCAT .

    *

    ENDLOOP.

    *

    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'

    EXPORTING

    I_TITLE = 'Titel'

    I_TABNAME = 'ITAB'

    IT_FIELDCAT = FIELDCAT

    IMPORTING

    ES_SELFIELD = SELFIELD

    TABLES

    T_OUTTAB = ITAB

    EXCEPTIONS

    PROGRAM_ERROR = 1

    OTHERS = 2.

    *

    it works very good. At first you have to fill the ITAB as you want.

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 08:10 AM

    Hi Colin,

    i have tried your code. It works OK!.

    Are you sure that you have filled ITAB04?

    Use debugger to test it.

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 10:10 AM

    Hi Colin,

    third answer.

    Your Problmen is <b>I_STRUCTURE_NAME = 'X_FIELDCAT'</b>

    Look at the Docu of I_STRUCTURE_NAME. It must be

    a structur wich you use in your internal table.

    Like include structure ... .

    If you create your own internal table you cannot

    use I_STRUCTURE_NAME!

    Hope this helps you.

    Regards, Dieter

    Add comment
    10|10000 characters needed characters exceeded