<?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: BDC using call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295678#M501232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;As explained above&lt;/P&gt;&lt;P&gt;there is no diff in output in both mode,&lt;/P&gt;&lt;P&gt;the diff lies in displaying the screen during BDC execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With A mode all screen will be dispalyed , with N it will be executed in background.and will not stop processing at Errorenous record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 12:27:16 GMT</pubDate>
    <dc:creator>former_member632991</dc:creator>
    <dc:date>2007-05-14T12:27:16Z</dc:date>
    <item>
      <title>BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295675#M501229</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; Iam uploading the data by using call transaction method using Tcode ff67.In this when &lt;/P&gt;&lt;P&gt;i upload the data using mode A iam able to get desired output(ie if there is any error in the input file it is showing the error message).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but by using the mode N iam not able to get the error messages.The record is updating.&lt;/P&gt;&lt;P&gt;iam attaching the code below&lt;/P&gt;&lt;P&gt;&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;START-OF-SELECTION.&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;  CLEAR gu_upload.&lt;/P&gt;&lt;P&gt;  REFRESH gu_upload.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     UPLOAD THE DATA FROM FLAT FILE TO INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  PERFORM file_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  iopt-dismode = c_mode.&lt;/P&gt;&lt;P&gt;  iopt-updmode = c_upd.&lt;/P&gt;&lt;P&gt;  iopt-defsize = c_def_size.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     POPULATE THE DATA THROUGHSCREENS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  PERFORM bdc_upload.&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; END-OF-SELECTION.&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;*DISPLY THE ERROR RECORDS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; PERFORM DISPLAY-DATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM file_upload                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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;FORM file_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename                = p_file&lt;/P&gt;&lt;P&gt;            i_begin_col             = c_begcol&lt;/P&gt;&lt;P&gt;            i_begin_row             = c_begrow&lt;/P&gt;&lt;P&gt;            i_end_col               = c_endcol&lt;/P&gt;&lt;P&gt;            i_end_row               = c_endrow&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            intern                  = int_count&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;            upload_ole              = 2&lt;/P&gt;&lt;P&gt;            OTHERS                  = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT int_count.&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT int_count-col OF STRUCTURE gu_upload TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    &amp;lt;fs&amp;gt; = int_count-value.&lt;/P&gt;&lt;P&gt;    AT END OF row.&lt;/P&gt;&lt;P&gt;      APPEND gu_upload.&lt;/P&gt;&lt;P&gt;      CLEAR gu_upload.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;*kishhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh&lt;/P&gt;&lt;P&gt;  LOOP AT gu_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    itab-vgman = gu_upload-vgman.&lt;/P&gt;&lt;P&gt;    itab-valut =  gu_upload-valut.&lt;/P&gt;&lt;P&gt;    itab-kwbtr = gu_upload-kwbtr.&lt;/P&gt;&lt;P&gt;    itab-chect_kf = gu_upload-chect_kf.&lt;/P&gt;&lt;P&gt;    APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;*kishiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "file_upload&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;      Form  BDC_UPLOAD&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;FORM bdc_upload.&lt;/P&gt;&lt;P&gt;  LOOP AT gu_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;    REFRESH bdcdata.&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;      POPULATE THE DATA FOR FIRST SCREEN&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;perform bdc_dynpro      using 'SAPMF40K' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FEBMKA-JNAME'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-BUKRS'&lt;/P&gt;&lt;P&gt;                              'IN14'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-HBKID'&lt;/P&gt;&lt;P&gt;                              gu_upload-hbkid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-HKTID'&lt;/P&gt;&lt;P&gt;                              gu_upload-hktid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-AZNUM'&lt;/P&gt;&lt;P&gt;                              gu_upload-aznum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-AZDAT'&lt;/P&gt;&lt;P&gt;                              gu_upload-azdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-SSALD'&lt;/P&gt;&lt;P&gt;                              gu_upload-ssald.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-ESALD'&lt;/P&gt;&lt;P&gt;                              gu_upload-esald.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-BUDTM'&lt;/P&gt;&lt;P&gt;                              gu_upload-budtm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-MNAM1'&lt;/P&gt;&lt;P&gt;                              gu_upload-mnam1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-JNAME'&lt;/P&gt;&lt;P&gt;                              gu_upload-jname.&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;      POPULATE THE DATA FOR SECOND SCREEN&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;    DATA : fnam(20) TYPE c,&lt;/P&gt;&lt;P&gt;          idx      TYPE c.&lt;/P&gt;&lt;P&gt;    MOVE 1 TO idx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF40K' '8000'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'FEBMKK-CHECT_KF(03)'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'FEBMKA-VGMAN(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING fnam&lt;/P&gt;&lt;P&gt;                                    itab-vgman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'FEBEP-VALUT(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING fnam itab-valut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'FEBMKA-KWBTR(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING fnam itab-kwbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'FEBMKK-CHECT_KF(' idx ')' INTO fnam.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field USING fnam itab-chect_kf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      idx = idx + 1.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF40K' '8000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FEBMKK-CHECT_KF(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SICH'.&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;      POPULATE THE DATA FOR FOURTH SCREEN&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;perform bdc_dynpro      using 'SAPMF40K' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FEBMKA-BUKRS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BUCH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-BUKRS'&lt;/P&gt;&lt;P&gt;                              'IN14'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-HBKID'&lt;/P&gt;&lt;P&gt;                              gu_upload-hbkid.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-HKTID'&lt;/P&gt;&lt;P&gt;                              gu_upload-hktid.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-AZNUM'&lt;/P&gt;&lt;P&gt;                              gu_upload-aznum.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-AZDAT'&lt;/P&gt;&lt;P&gt;                              gu_upload-azdat.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-SSALD'&lt;/P&gt;&lt;P&gt;                              gu_upload-ssald.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-ESALD'&lt;/P&gt;&lt;P&gt;                              gu_upload-esald.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-BUDTM'&lt;/P&gt;&lt;P&gt;                              gu_upload-budtm.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-MNAM1'&lt;/P&gt;&lt;P&gt;                              gu_upload-mnam1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'FEBMKA-JNAME'&lt;/P&gt;&lt;P&gt;                              gu_upload-jname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform bdc_dynpro      using 'SAPMF40K' '0101'.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             '/EENDE'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'FEBMKA-BUKRS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF40K' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EABBR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'FEBMKA-BUKRS'.&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;      USING THE CALL TRANSACTION&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;    PERFORM call_transaction.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CLEAR BDCDATA.                      "&amp;lt;--- Add here&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   REFRESH BDCDATA.                 "&amp;lt;--- Add here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " BDC_UPLOAD&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;      Form  VALIDATE_INPUT_FILE&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;FORM validate_input_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            def_path         = ' c:\ '&lt;/P&gt;&lt;P&gt;            mask             = ',&lt;STRONG&gt;.txt,&lt;/STRONG&gt;.*.'&lt;/P&gt;&lt;P&gt;            mode             = 'O'&lt;/P&gt;&lt;P&gt;            title            = 'Upload '&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            filename         = p_file&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inv_winsys       = 1&lt;/P&gt;&lt;P&gt;            no_batch         = 2&lt;/P&gt;&lt;P&gt;            selection_cancel = 3&lt;/P&gt;&lt;P&gt;            selection_error  = 4&lt;/P&gt;&lt;P&gt;            OTHERS           = 5.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0 AND sy-subrc &amp;lt;&amp;gt; 3.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e100(zm) WITH text-007.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " VALIDATE_INPUT_FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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;FORM bdc_dynpro USING program dynpro.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field USING fnam fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;  bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "bdc_field&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;      Form  CALL_TRANSACTION&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;FORM call_transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_index LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION  c_tcode USING bdcdata&lt;/P&gt;&lt;P&gt;                            MODE c_mode&lt;/P&gt;&lt;P&gt;                            update 'S'&lt;/P&gt;&lt;P&gt;                            MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*POPULATE THE ERROR RECORDS INTO INTERNAL TABLE&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-ESALD = GU_UPLOAD-ESALD.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-SSALD = GU_UPLOAD-SSALD.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-BUDTM = GU_UPLOAD-BUDTM.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-VGMAN = GU_UPLOAD-VGMAN.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-VALUT = GU_UPLOAD-VALUT.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-KWBTR = GU_UPLOAD-KWBTR.&lt;/P&gt;&lt;P&gt;    GU_DOWNLOAD-CHECT_KF = GU_UPLOAD-CHECT_KF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND GU_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DISPLAY THE PROGRESS OF PROCESS&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PERCENTAGE       = 0&lt;/P&gt;&lt;P&gt;   TEXT             = 'Downloading is in process'.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;*DOWNLOADING THE ERROR RECORD&lt;/P&gt;&lt;P&gt;    LV_OUT = P_FNAME2.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        FILENAME               =  LV_OUT&lt;/P&gt;&lt;P&gt;        WRITE_FIELD_SEPARATOR  =	 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DATA_TAB 	          =  GU_DOWNLOAD.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT messtab[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    PERFORM format_message.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " CALL_TRANSACTION&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;      Form  DISPLAY-DATA&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;FORM display-data.&lt;/P&gt;&lt;P&gt;  SKIP.&lt;/P&gt;&lt;P&gt;  WRITE: 'SY-SUBRC' , sy-subrc.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " DISPLAY-DATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM FORMAT_MESSAGE                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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;FORM format_message.&lt;/P&gt;&lt;P&gt;  DATA: l_msg(100),&lt;/P&gt;&lt;P&gt;   l_index LIKE sy-tabix.&lt;/P&gt;&lt;P&gt;  LOOP AT messtab.&lt;/P&gt;&lt;P&gt;    READ TABLE gu_upload INDEX l_index.&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        = messtab-msgid&lt;/P&gt;&lt;P&gt;              lang      = sy-langu&lt;/P&gt;&lt;P&gt;              no        = messtab-msgnr&lt;/P&gt;&lt;P&gt;              v1        = messtab-msgv1&lt;/P&gt;&lt;P&gt;              v2        = messtab-msgv2&lt;/P&gt;&lt;P&gt;              v3        = messtab-msgv3&lt;/P&gt;&lt;P&gt;              v4        = messtab-msgv4&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              msg       = l_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;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WRITE:/ l_msg.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  WRITE:/ l_msg.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 10:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295675#M501229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T10:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295676#M501230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use mode 'E' for displaying the error, in mode N no error messges are displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 11:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295676#M501230</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-05-14T11:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295677#M501231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;This is Vijay..&lt;/P&gt;&lt;P&gt;can anyone help me from this...&lt;/P&gt;&lt;P&gt;Is there any difference in the output when we select the Mode as A and N...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295677#M501231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295678#M501232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;As explained above&lt;/P&gt;&lt;P&gt;there is no diff in output in both mode,&lt;/P&gt;&lt;P&gt;the diff lies in displaying the screen during BDC execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With A mode all screen will be dispalyed , with N it will be executed in background.and will not stop processing at Errorenous record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 12:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295678#M501232</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2007-05-14T12:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295679#M501233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Yes definetly there is an difference between mode A and N.&lt;/P&gt;&lt;P&gt;When you are executing in back ground, both will behaves like same in case of result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when you are using in foreground, Some errors will be seen ,&lt;/P&gt;&lt;P&gt;Example, especially when you are using Quantity and unit of measurement.&lt;/P&gt;&lt;P&gt;Suppose, You are coding Unit of measurment and data is not getting populated.&lt;/P&gt;&lt;P&gt;That means, data is not coming from file. The if is fore ground, call transaction will be successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If the same is ran in background. It shows error i.e calltransaction will be failure. Sy-subrc = 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Manju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 13:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295679#M501233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T13:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295680#M501234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manju Nagendra Beedam,&lt;/P&gt;&lt;P&gt;Then what can be done in this case...i mean how to make sy-subrc in Call Transaction to be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dany&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 19:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295680#M501234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T19:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295681#M501235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijayd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u just define one structute with bdcmsgcoll, &lt;/P&gt;&lt;P&gt;that structrue  u can pass into call transaction ,&lt;/P&gt;&lt;P&gt;ie call trnasaction 'ft67' mode 'A' into &amp;lt;ur defined structure&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can see your error messages in ur defined structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 07:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295681#M501235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T07:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295682#M501236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not getting the error message then simply check sy-subrc to be 0 or not after call transaction&lt;/P&gt;&lt;P&gt;n give message with the text returned from the format_message fn module which is used to format the error message which you get after sending the error number to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 17:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295682#M501236</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2007-06-06T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: BDC using call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295683#M501237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_transaction tables return USING tcode p_rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*DATA : T_BDCMSGCOLL LIKE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR w_ctu_params.&lt;/P&gt;&lt;P&gt;  w_ctu_params-dismode = 'N'.&lt;/P&gt;&lt;P&gt;  w_ctu_params-updmode = 'S'.&lt;/P&gt;&lt;P&gt;  w_ctu_params-cattmode = ' '.&lt;/P&gt;&lt;P&gt;  w_ctu_params-defsize = ' '.&lt;/P&gt;&lt;P&gt;  w_ctu_params-racommit = ' '.&lt;/P&gt;&lt;P&gt;  w_ctu_params-nobinpt = 'X'.&lt;/P&gt;&lt;P&gt;  w_ctu_params-nobiend = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION tcode USING t_bdcdata OPTIONS FROM w_ctu_params&lt;/P&gt;&lt;P&gt;                                         MESSAGES INTO t_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    IF p_rule = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add 1 to successful PWS creation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      new_pws = new_pws + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add 1 to successful WSR creation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ELSEIF p_rule = 'W'.&lt;/P&gt;&lt;P&gt;      new_wsr = new_wsr + 1.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; On successful WSR creation, create selection table for submit to&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; RPTSHF00 (to generate WSR)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF new_wsr &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      PERFORM create_sel_tab.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH t_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at t_bdcmsgcoll.&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        = t_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;          LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;          NO        = t_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;          V1        = t_bdcmsgcoll-MSGV1&lt;/P&gt;&lt;P&gt;          V2        = t_bdcmsgcoll-MSGV2&lt;/P&gt;&lt;P&gt;          V3        = t_bdcmsgcoll-MSGV3&lt;/P&gt;&lt;P&gt;          V4        = t_bdcmsgcoll-MSGV4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          MSG       = err_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;      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;      move err_msg to w_return-message.&lt;/P&gt;&lt;P&gt;      append w_return to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_transaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 17:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-using-call-transaction/m-p/2295683#M501237</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2007-06-06T17:06:08Z</dc:date>
    </item>
  </channel>
</rss>

