<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gui_file_save_dialog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205293#M764116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do a where-used search; one of examples you will find is FM LIST_CONVERT_TO_DAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2007 14:02:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-07T14:02:25Z</dc:date>
    <item>
      <title>gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205292#M764115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have sample code using FM GUI_FILE_SAVE_DIALOG?&lt;/P&gt;&lt;P&gt;thank you. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 13:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205292#M764115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205293#M764116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do a where-used search; one of examples you will find is FM LIST_CONVERT_TO_DAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205293#M764116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T14:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205294#M764117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello March&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For these kinds of frontend interactions you should use the static methods of class &amp;lt;b&amp;gt;CL_GUI_FRONTEND_SERVICES&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;    Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205294#M764117</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-07T14:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205295#M764118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help..:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205295#M764118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T14:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205296#M764119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;report ZBDCPGM
       no standard page heading line-size 255.

include bdcrecx1.

data : begin of itab occurs 0,
        matnr like mara-matnr,
        mbrsh like mara-mbrsh,
        mtart like mara-mtart,
        meins like mara-meins,
        maktx like makt-maktx,
       end of itab.

DATA: rc TYPE i,
      flag TYPE i VALUE 1,
      it_files TYPE filetable,
      bdc_data TYPE STANDARD TABLE OF bdcdata WITH HEADER LINE.


SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
PARAMETERS: p_file(1024) TYPE c OBLIGATORY.
SELECTION-SCREEN : END OF BLOCK b1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.


  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
  CHANGING
     file_table              = it_files
     rc                      = rc.

 READ TABLE it_files INDEX 1 INTO p_file.
start-of-selection.

perform getdata.

perform open_group.
loop at itab.
perform bdc_dynpro      using 'SAPLMGMM' '0060'.
perform bdc_field       using 'BDC_CURSOR'
                              'RMMG1-MTART'.
perform bdc_field       using 'BDC_OKCODE'
                              '=AUSW'.
perform bdc_field       using 'RMMG1-MATNR'
                              itab-matnr.
perform bdc_field       using 'RMMG1-MBRSH'
                              itab-mbrsh.
perform bdc_field       using 'RMMG1-MTART'
                              itab-mtart.
perform bdc_dynpro      using 'SAPLMGMM' '0070'.
perform bdc_field       using 'BDC_CURSOR'
                              'MSICHTAUSW-DYTXT(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENTR'.
perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                              'X'.
perform bdc_dynpro      using 'SAPLMGMM' '3004'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BU'.
perform bdc_field       using 'MARA-MEINS'
                              itab-meins.
perform bdc_field       using 'MARA-MTPOS_MARA'
                              'NORM'.
perform bdc_field       using 'BDC_CURSOR'
                              'SKTEXT-MAKTX(01)'.
perform bdc_field       using 'SKTEXT-MAKTX(01)'
                              itab-maktx.
perform bdc_transaction using 'MM01'.
endloop.
perform close_group.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  getdata
*&amp;amp;---------------------------------------------------------------------*
form getdata.
DATA: file TYPE string.
  file = p_file.

  CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
            filename                = file
            has_field_separator     = 'X'
       TABLES
            data_tab                = itab
       EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            OTHERS                  = 17.
*IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.

endform.                    " getdata&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello March ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this above code, your problem gets resolved!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205296#M764119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: gui_file_save_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205297#M764120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you.:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-file-save-dialog/m-p/3205297#M764120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-07T14:15:45Z</dc:date>
    </item>
  </channel>
</rss>

