<?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: Catch Message Type S after calling transaction in batch input ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468876#M833837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what is your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it that you run Batch Input Session and, a Message S is not letting the batch input continue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is it that everything works fine, but you don't want to display message type S in results after the batch input has ran?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there is a way to suppress any specific type of messages. You have to hit "Enter" to get past some of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 17:18:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T17:18:02Z</dc:date>
    <item>
      <title>Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468873#M833834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have writen an function module wich calls an Batch Input. I'm trying to catch all messages into the a local message- table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION ... MODE 'N'&lt;/P&gt;&lt;P&gt;                                      MESSAGES INTO P_MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although a message type 'S' is displayed. But I have to catch this message, because otherwise this message is displayed at the RF- Screen.&lt;/P&gt;&lt;P&gt;Can somebody tell me, how to catch messages type 'S' after calling Batch Input?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 14:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468873#M833834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468874#M833835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this FM FORMAT_MESSAGE to get the messages you have all the find which are populated in Message tab.&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;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 14:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468874#M833835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T14:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468875#M833836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry. But I think you haven't understand me right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I try to catch all Messages in the message tabel, the Message Type 'S' like "TO xy has been created" is displayed. I have to avoid, that this message is displayed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I don't know how I can additionally catch this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 14:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468875#M833836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468876#M833837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what is your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it that you run Batch Input Session and, a Message S is not letting the batch input continue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is it that everything works fine, but you don't want to display message type S in results after the batch input has ran?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there is a way to suppress any specific type of messages. You have to hit "Enter" to get past some of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 17:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468876#M833837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T17:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468877#M833838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi eva ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this example for getting messages into a message table in the uploading of bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  Z_50835_BDCTEST&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*report name&lt;/P&gt;&lt;P&gt;REPORT  z_50835_bdctest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delcaring tables&lt;/P&gt;&lt;P&gt;TABLES: mara, makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: file TYPE ibipparms-path,&lt;/P&gt;&lt;P&gt;      fname TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declaring internal tables of type bdcdata and bdcmsgcoll&lt;/P&gt;&lt;P&gt;DATA: git_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      git_msg LIKE bdcmsgcoll  OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declaring internal table for data in local file(presentation server).&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF git_upload1 OCCURS 0,&lt;/P&gt;&lt;P&gt;      matnr TYPE mara-matnr,&lt;/P&gt;&lt;P&gt;      maktx TYPE makt-maktx,&lt;/P&gt;&lt;P&gt;      meins TYPE mara-meins,&lt;/P&gt;&lt;P&gt;      matkl TYPE mara-matkl,&lt;/P&gt;&lt;P&gt;      END OF git_upload1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*declaring an internal table to hold the errors of the data in local file((presentation server).&lt;/P&gt;&lt;P&gt;DATA : git_error LIKE git_upload1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;*a variable to hold the messges&lt;/P&gt;&lt;P&gt;       msg(100) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selection screen&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file(128) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calling function to find the file in presentation server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_NAME        = SYST-CPROG&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ''&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           = file&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  MOVE file TO p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*start-of-selection&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  MOVE p_file TO fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calling function upload to upload the file presentation server&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = fname&lt;/P&gt;&lt;P&gt;     filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;     has_field_separator           = 'T'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            = VIRUS_SCAN_PROFILE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    = FILELENGTH&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        = HEADER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      = git_upload1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ACCESS_DENIED                 = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISK_FULL                     = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DP_TIMEOUT                    = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*populating the bdc data table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT git_upload1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR git_bdcdata.&lt;/P&gt;&lt;P&gt;    REFRESH git_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '0060' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values USING 'BDC_CURSOR' 'RMMG1-MTART'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values USING 'BDC_OKCODE' '=AUSW'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values USING 'RMMG1-MATNR' git_upload1-matnr.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values USING 'RMMG1-MBRSH' 'M'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values USING 'RMMG1-MTART' 'FERT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '0070' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(13)'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'BDC_OKCODE' '=ENTR'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'MSICHTAUSW-KZSEL(01)' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'MSICHTAUSW-KZSEL(12)' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'MSICHTAUSW-KZSEL(13)' 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '0080' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'BDC_CURSOR' 'RMMG1-LGORT'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'BDC_OKCODE' '=ENTR'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'RMMG1-WERKS' '1000'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'RMMG1-LGORT' '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '4004' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MAKT-MAKTX' git_upload1-maktx.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-MEINS' git_upload1-meins.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-MATKL' git_upload1-matkl.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-MTPOS_MARA' 'NORM'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'BDC_CURSOR' 'MARA-VOLEH'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-BRGEW' '10 '.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-GEWEI' 'KG'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-NTGEW' '10'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-VOLUM' '10'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-VOLEH' 'L'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '4000' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values   USING 'BDC_OKCODE' '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MAKT-MAKTX' git_upload1-maktx.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARA-MEINS' git_upload1-meins.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-DISGR' '0031'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-DISMM' 'AP'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-DISPO' '000'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'BDC_CURSOR' 'MARC-DISLS'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-DISLS' 'LL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_dynpro USING 'SAPLMGMM' '4000' 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values        USING 'BDC_OKCODE' '=BU'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MAKT-MAKTX' git_upload1-maktx.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'BDC_CURSOR' 'MARC-MRPPP'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-DZEIT' '1'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-WEBAZ' '0'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_values       USING 'MARC-FHORI' '000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'MM01' USING git_bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO git_msg.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MOVE GIT_UPLOAD1 TO GIT_ERROR.&lt;/P&gt;&lt;P&gt;    APPEND GIT_ERROR.&lt;/P&gt;&lt;P&gt;    perform session.&lt;/P&gt;&lt;P&gt;    PERFORM check.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*end of call transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*begin of session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calling funntion to start a session&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     client                    = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEST                      = FILLER8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     group                     = 'ses200'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    holddate                  = sy-datum&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     keep                      = 'X'&lt;/P&gt;&lt;P&gt;     user                      = sy-uname&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RECORD                    = FILLER1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROG                      = SY-CPROG&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QID                       = QID&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     client_invalid            = 1&lt;/P&gt;&lt;P&gt;     destination_invalid       = 2&lt;/P&gt;&lt;P&gt;     group_invalid             = 3&lt;/P&gt;&lt;P&gt;     group_is_locked           = 4&lt;/P&gt;&lt;P&gt;     holddate_invalid          = 5&lt;/P&gt;&lt;P&gt;     internal_error            = 6&lt;/P&gt;&lt;P&gt;     queue_error               = 7&lt;/P&gt;&lt;P&gt;     running                   = 8&lt;/P&gt;&lt;P&gt;     system_lock_error         = 9&lt;/P&gt;&lt;P&gt;     user_invalid              = 10&lt;/P&gt;&lt;P&gt;     OTHERS                    = 11&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*moving the error records in to git_error table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calling the function to insert error data into another internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;        tcode                  = 'MM01'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POST_LOCAL             = NOVBLOCAL&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRINTING               = NOPRINT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SIMUBATCH              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CTUPARAMS              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        dynprotab              = git_bdcdata&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       internal_error         = 1&lt;/P&gt;&lt;P&gt;       not_open               = 2&lt;/P&gt;&lt;P&gt;       queue_error            = 3&lt;/P&gt;&lt;P&gt;       tcode_invalid          = 4&lt;/P&gt;&lt;P&gt;       printing_invalid       = 5&lt;/P&gt;&lt;P&gt;       posting_invalid        = 6&lt;/P&gt;&lt;P&gt;       OTHERS                 = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*calling the function to close the session&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BDC_CLOSE_GROUP'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_open    = 1&lt;/P&gt;&lt;P&gt;      queue_error = 2&lt;/P&gt;&lt;P&gt;      OTHERS      = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*end of session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form to populate three fileds of bdcdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro  USING    value(p_0125)&lt;/P&gt;&lt;P&gt;                          value(p_0126)&lt;/P&gt;&lt;P&gt;                          value(p_0127).&lt;/P&gt;&lt;P&gt;  CLEAR git_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  git_bdcdata-program    =  p_0125.&lt;/P&gt;&lt;P&gt;  git_bdcdata-dynpro     =  p_0126.&lt;/P&gt;&lt;P&gt;  git_bdcdata-dynbegin   =  p_0127.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND git_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form to populate the rest 2 fields in bdcdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_values  USING    value(p_0131)&lt;/P&gt;&lt;P&gt;                          value(p_0132).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR git_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  git_bdcdata-fnam = p_0131.&lt;/P&gt;&lt;P&gt;  git_bdcdata-fval = p_0132.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND git_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*form to check whether we have any error records in the given file and passing them to git_error if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT git_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       id              = git_msg-msgid&lt;/P&gt;&lt;P&gt;     LANG                =   SY-LANGU&lt;/P&gt;&lt;P&gt;       no              = sy-msgno&lt;/P&gt;&lt;P&gt;       v1              = sy-msgv1&lt;/P&gt;&lt;P&gt;       v2              = sy-msgv2&lt;/P&gt;&lt;P&gt;       v3              = sy-msgv3&lt;/P&gt;&lt;P&gt;       v4              = sy-msgv4&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       msg             = msg&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       not_found       = 1&lt;/P&gt;&lt;P&gt;       OTHERS          = 2&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      WRITE:/ msg.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 10, 2008 11:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 17:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468877#M833838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T17:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468878#M833839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that's a message that doesn't affect the transaction (like an information message about sorting an alv) and you don't want to display it in a report, just delete that specific message from the messages table after call transaction is done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 17:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468878#M833839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T17:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468879#M833840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is it that everything works fine, but I don't want to display message type S. The S- Message is displayed although I have stored the BI- Messages in the message table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Eva Schießl on Mar 10, 2008 9:12 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 08:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468879#M833840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468880#M833841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the messages are stored in an internal table.  once you have all the messages (or before your transfer them from one internal table to yours), delete all the rows where 'MSGTYP' is equal to 'S'.  You may not have a field named exactly as 'MSGTYP', but something similar should be there.  If you are not sure which field, run it in debugger to find out all the fileds of your internal table.  &lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 15:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468880#M833841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468881#M833842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following is what you will need to delete rows from an internal table.  Check out detailed syntax for "Delete".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE itab WHERE logexp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468881#M833842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Message Type S after calling transaction in batch input ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468882#M833843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eva - I don't think you can do this directly; however, once the batch input is finished, you could call your own message saying something like 'Transaction complete'. That will overwrite the success message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 17:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/catch-message-type-s-after-calling-transaction-in-batch-input/m-p/3468882#M833843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T17:39:38Z</dc:date>
    </item>
  </channel>
</rss>

