Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

fm for calling save dialouge box to save file in a system from sap

Former Member
0 Kudos

fm for calling save dialouge box to save file in a system from sap

Step by step of its usage pls,

thank you,

Regards,

Jagrut BharatKumar Shukla

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

FM is

<b>POPUP_TO_DECIDE_LIST</b>



USAGE:

CASE r_ucomm.

WHEN 'SAVE'.
DATA: l_answer." no need to specify type
DATA: t_spopli LIKE spopli OCCURS 0 WITH HEADER LINE.
t_spopli-varoption = 'PDF'.
APPEND t_spopli.

t_spopli-varoption = 'EXCEL'.
APPEND t_spopli .


CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
         EXPORTING
*          CURSORLINE               = 1
*          MARK_FLAG                = ' '
*          MARK_MAX                 = 1
*          START_COL                = 0
*          START_ROW                = 0
           textline1                = 'SELECT THE FORMAT OF THE OUTPUT'
*          TEXTLINE2                = ' '
*          TEXTLINE3                = ' '
           titel                    = 'SAVE AS'
*          DISPLAY_ONLY             = ' '
        IMPORTING
          ANSWER                   =  l_answer
         tables
           t_spopli                 = t_spopli
        EXCEPTIONS
          NOT_ENOUGH_ANSWERS       = 1
          TOO_MUCH_ANSWERS         = 2
          TOO_MUCH_MARKS           = 3
          OTHERS                   = 4  .

       IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
IF l_answer = '2'.

CALL FUNCTION 'GUI_DOWNLOAD'

endif.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

6 REPLIES 6

Former Member
0 Kudos

hi

FM is

<b>POPUP_TO_DECIDE_LIST</b>



USAGE:

CASE r_ucomm.

WHEN 'SAVE'.
DATA: l_answer." no need to specify type
DATA: t_spopli LIKE spopli OCCURS 0 WITH HEADER LINE.
t_spopli-varoption = 'PDF'.
APPEND t_spopli.

t_spopli-varoption = 'EXCEL'.
APPEND t_spopli .


CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
         EXPORTING
*          CURSORLINE               = 1
*          MARK_FLAG                = ' '
*          MARK_MAX                 = 1
*          START_COL                = 0
*          START_ROW                = 0
           textline1                = 'SELECT THE FORMAT OF THE OUTPUT'
*          TEXTLINE2                = ' '
*          TEXTLINE3                = ' '
           titel                    = 'SAVE AS'
*          DISPLAY_ONLY             = ' '
        IMPORTING
          ANSWER                   =  l_answer
         tables
           t_spopli                 = t_spopli
        EXCEPTIONS
          NOT_ENOUGH_ANSWERS       = 1
          TOO_MUCH_ANSWERS         = 2
          TOO_MUCH_MARKS           = 3
          OTHERS                   = 4  .

       IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
IF l_answer = '2'.

CALL FUNCTION 'GUI_DOWNLOAD'

endif.

regards

ravish

<b>plz dont forget to reward points if helpful</b>

former_member194669
Active Contributor
0 Kudos

Hi,

Use fm POPUP_TO_CONFIRM.

Points are always Wecome

aRs

Former Member
0 Kudos

Hi

use

WS_POPUP_SAVE_DATA

W3_POPUP_SAVE_DATA

MAFI_POPUP_TO_CONFIRM_SAVE

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Hi,

CALL METHOD abap_pgeditor->abap_editor->execute_function

CHANGING

fcode = fcode.

where fcode = ED_DOWNLOAD

Reward if useful!

Former Member
0 Kudos

Former Member
0 Kudos

hi jagrut

i have edited my answer. plz check the same for how to use.

regards

ravish