<?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: Error in processing BDC session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453883#M1999773</link>
    <description>&lt;UL&gt;&lt;LI&gt;One transaction and no screen in the BDC, check that you have put data in bdcdata in your code (check the BDC_DYNPRO and FIELD forms, did you inadvertently rename the internal table)&lt;/LI&gt;&lt;LI&gt;Did you look at SM21 (check the system log)?&lt;/LI&gt;&lt;LI&gt;Will you handle some error codes (display some error message)&lt;/LI&gt;&lt;LI&gt;Wouldn't you rather use BAPI_SALESORDER_CREATEFROMDAT2 than BDC&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 27 Sep 2021 13:49:45 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2021-09-27T13:49:45Z</dc:date>
    <item>
      <title>Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453880#M1999770</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;I am uploading VA01 using BDC session method . This is my first BDC. I have created GROUP3 session and processing it. While processing this error is coming. How to solve it. Please check the code and the screenshots.



report ZVA01_5_SESS
       no standard page heading line-size 255.
TYPES : BEGIN OF ty_final,
          vkorg    TYPE vbak-vkorg,
          vtweg    TYPE vbak-vtweg,
          kunnr    TYPE kuagv-kunnr,
          kunnr_we TYPE kuwev-kunnr,
          bstkd    TYPE vbkd-bstkd,
        END OF ty_final.
DATA : it_final   TYPE TABLE OF ty_final,
       wa_final   TYPE ty_final,
       it_bdcdata TYPE TABLE OF bdcdata WITH HEADER LINE,
       wa_bdcdata TYPE bdcdata.
DATA : bdcmsg TYPE TABLE OF bdcmsgcoll.
*       file type string.
PARAMETERS : p_file TYPE rlgrap-filename.

TYPES : fs_struct(4096) TYPE c OCCURS 0.
DATA :  w_struct TYPE fs_struct.


include bdcrecx1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME  = SYST-CPROG
      DYNPRO_NUMBER = SYST-DYNNR
*     FIELD_NAME    = ' '
    IMPORTING
      FILE_NAME     = p_file.
*file = p_file.
*AT SELECTION-SCREEN.
*perform open_group.
* Upload excel file into SAP
  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
*     I_FIELD_SEPERATOR    =
     I_LINE_HEADER        = 'X'
      I_TAB_RAW_DATA       = w_struct
      I_FILENAME           = p_file
    TABLES
      I_TAB_CONVERTED_DATA = it_final
    EXCEPTIONS
      CONVERSION_FAILED    = 1
      OTHERS               = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
  ENDIF.

start-of-selection.
CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
      CLIENT = SY-MANDT
*     DEST   = FILLER8
      GROUP  = 'GROUP3'
*      HOLDDATE = sy-datum
      KEEP   = 'X'
      USER   = sy-uname
*     RECORD = FILLER1
*     PROG   = SY-CPROG
*     DCPFM  = '%'
*     DATFM  = '%'
* IMPORTING
*     QID    =
 EXCEPTIONS
     CLIENT_INVALID            = 1
     DESTINATION_INVALID       = 2
     GROUP_INVALID             = 3
     GROUP_IS_LOCKED           = 4
     HOLDDATE_INVALID          = 5
     INTERNAL_ERROR            = 6
     QUEUE_ERROR               = 7
     RUNNING                   = 8
     SYSTEM_LOCK_ERROR         = 9
     USER_INVALID              = 10
     OTHERS = 11
    .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
  ENDIF.

LOOP AT it_final INTO wa_final.
*perform open_group.

perform bdc_dynpro      using 'SAPMV45A' '0101'.
perform bdc_field       using 'BDC_CURSOR'
                              'VBAK-SPART'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'VBAK-AUART'
                              'OR'.
perform bdc_field       using 'VBAK-VKORG'
                              wa_final-vkorg.
perform bdc_field       using 'VBAK-VTWEG'
                              wa_final-vtweg.
perform bdc_field       using 'VBAK-SPART'
                              ''.
perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'BDC_CURSOR'
                              'VBKD-BSTKD'.
perform bdc_field       using 'VBKD-BSTKD'
                              wa_final-bstkd.
perform bdc_field       using 'KUAGV-KUNNR'
                              wa_final-kunnr.
perform bdc_field       using 'KUWEV-KUNNR'
                              wa_final-kunnr_we.
*perform bdc_dynpro      using 'SAPMSSY0' '0120'.
*perform bdc_field       using 'BDC_CURSOR'
*                              '05/10'.
*perform bdc_field       using 'BDC_OKCODE'
*                              '=CHOO'.
*perform bdc_dynpro      using 'SAPMV45A' '4001'.
*perform bdc_field       using 'RV45A-KETDAT'
*                              '06.10.2021'.
*perform bdc_field       using 'RV45A-KPRGBZ'
*                              'D'.
*perform bdc_field       using 'VBKD-PRSDT'
*                              '25.09.2021'.
perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'VBKD-BSTKD'
                               wa_final-bstkd.
perform bdc_field       using 'KUAGV-KUNNR'
                              wa_final-kunnr.
perform bdc_field       using 'KUWEV-KUNNR'
                               wa_final-kunnr_we.
*perform bdc_field       using 'RV45A-KETDAT'
*                              '06.10.2021'.
*perform bdc_field       using 'RV45A-KPRGBZ'
*                              'D'.
*perform bdc_field       using 'VBKD-PRSDT'
*                              '25.09.2021'.
*perform bdc_field       using 'VBKD-ZTERM'
*                              'ZB01'.
*perform bdc_field       using 'VBKD-INCO1'
*                              'FOB'.
*perform bdc_field       using 'VBKD-INCO2'
*                              'From the Plant'.
*perform bdc_field       using 'BDC_CURSOR'
*                              'RV45A-MABNR(01)'.
perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'VBKD-BSTKD'
                              wa_final-bstkd.
perform bdc_field       using 'KUAGV-KUNNR'
                               wa_final-kunnr.
perform bdc_field       using 'KUWEV-KUNNR'
                              wa_final-kunnr_we.
*perform bdc_field       using 'RV45A-KETDAT'
*                              '06.10.2021'.
*perform bdc_field       using 'RV45A-KPRGBZ'
*                              'D'.
*perform bdc_field       using 'VBKD-PRSDT'
*                              '25.09.2021'.
*perform bdc_field       using 'VBKD-ZTERM'
*                              'ZB01'.
*perform bdc_field       using 'VBKD-INCO1'
*                              'FOB'.
*perform bdc_field       using 'VBKD-INCO2'
*                              'From the Plant'.
*perform bdc_field       using 'BDC_CURSOR'
*                              'RV45A-MABNR(01)'.
perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SICH'.
perform bdc_field       using 'VBKD-BSTKD'
                              wa_final-bstkd.
perform bdc_field       using 'KUAGV-KUNNR'
                              wa_final-kunnr.
perform bdc_field       using 'KUWEV-KUNNR'
                              wa_final-kunnr_we.
*perform bdc_field       using 'RV45A-KETDAT'
*                              '06.10.2021'.
*perform bdc_field       using 'RV45A-KPRGBZ'
*                              'D'.
*perform bdc_field       using 'VBKD-PRSDT'
*                              '25.09.2021'.
*perform bdc_field       using 'VBKD-ZTERM'
*                              'ZB01'.
*perform bdc_field       using 'VBKD-INCO1'
*                              'FOB'.
*perform bdc_field       using 'VBKD-INCO2'
*                              'From the Plant'.
*perform bdc_field       using 'BDC_CURSOR'
*                              'RV45A-MABNR(01)'.
**perform bdc_transaction using 'VA01'.

*perform close_group.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
       TCODE                  = 'VA01'
*       POST_LOCAL             = NOVBLOCAL
*       PRINTING               = NOPRINT
*       SIMUBATCH              = ' '
*       CTUPARAMS              = ' '
      TABLES
        DYNPROTAB              = it_bdcdata
     EXCEPTIONS
       INTERNAL_ERROR         = 1
       NOT_OPEN               = 2
       QUEUE_ERROR            = 3
       TCODE_INVALID          = 4
       PRINTING_INVALID       = 5
       POSTING_INVALID        = 6
       OTHERS                 = 7
              .
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
    ENDIF.
REFRESH it_bdcdata.

*perform close_group.

  ENDLOOP.
*  perform close_group.
  CALL FUNCTION 'BDC_CLOSE_GROUP'
   EXCEPTIONS
     NOT_OPEN          = 1
     QUEUE_ERROR       = 2
     OTHERS            = 3
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
  ENDIF.
              "BDC_DYNPRO

                "BDC_FIELD&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1983462-issue-1-1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1983463-issue-1-2.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Saurav Lahiry&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 09:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453880#M1999770</guid>
      <dc:creator>former_member574106</dc:creator>
      <dc:date>2021-09-27T09:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453881#M1999771</link>
      <description>&lt;P&gt;I think you have nothing it your table IT_FINAL.&lt;/P&gt;&lt;P&gt;Did you try to debug the program ? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 10:27:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453881#M1999771</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-09-27T10:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453882#M1999772</link>
      <description>&lt;P&gt;The message says: "&lt;STRONG&gt;Batch input queue error. Check the system log&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;So, I suggest that you check the system log.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453882#M1999772</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-27T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453883#M1999773</link>
      <description>&lt;UL&gt;&lt;LI&gt;One transaction and no screen in the BDC, check that you have put data in bdcdata in your code (check the BDC_DYNPRO and FIELD forms, did you inadvertently rename the internal table)&lt;/LI&gt;&lt;LI&gt;Did you look at SM21 (check the system log)?&lt;/LI&gt;&lt;LI&gt;Will you handle some error codes (display some error message)&lt;/LI&gt;&lt;LI&gt;Wouldn't you rather use BAPI_SALESORDER_CREATEFROMDAT2 than BDC&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453883#M1999773</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-09-27T13:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453884#M1999774</link>
      <description>&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;Thanks a lot for the prompt reply. I checked the program and on debugging, i found that I_BDCDATA is coming empty. If you check my code, I have given wa_final at all of the appropriate places, but still I_BDCDATA is coming empty. Also I checked the system log. There is some error which I am unable to understand. please guide me as to how to correct the error respectively. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurav Lahiry&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1983486-issue-1.jpeg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453884#M1999774</guid>
      <dc:creator>former_member574106</dc:creator>
      <dc:date>2021-09-27T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453885#M1999775</link>
      <description>&lt;P&gt;Could you use screenshot software to just capture the area you want and not the whole screen? SAP Community it not designed for zooming the screenshots. For instance, I use greenshot but there are many other software.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453885#M1999775</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-27T17:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in processing BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453886#M1999776</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;saurav.lahiry&lt;/SPAN&gt; Each "PERFORM bdc_field" appends a line to BDCDATA, not IT_BDCDATA. It's normal that IT_BDCDATA is empty, you never initialize it.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 17:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-processing-bdc-session/m-p/12453886#M1999776</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-27T17:54:11Z</dc:date>
    </item>
  </channel>
</rss>

