<?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- call transaction or batch input session? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466783#M833202</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;SEE THIS PROGRAM WHERE i had uploaded the data from excel sheet to internal table and then to application sever &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Report ZSD_EXCEL_INT_APP&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSD_EXCEL_INT_APP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: file_nm type localfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of it_tab1,&lt;/P&gt;&lt;P&gt;f1(20),&lt;/P&gt;&lt;P&gt;f2(40),&lt;/P&gt;&lt;P&gt;f3(20),&lt;/P&gt;&lt;P&gt;end of it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab type table of ALSMEX_TABLINE with header line,&lt;/P&gt;&lt;P&gt;file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab2 type it_tab1 occurs 1,&lt;/P&gt;&lt;P&gt;wa_tab2 type it_tab1,&lt;/P&gt;&lt;P&gt;w_message(100) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for file_nm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM_NAME = SYST-REPID &lt;/P&gt;&lt;P&gt;DYNPRO_NUMBER = SYST-DYNNR &lt;/P&gt;&lt;P&gt;FIELD_NAME = ' ' &lt;/P&gt;&lt;P&gt;STATIC = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MASK = ' ' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;file_name = file_nm&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;MASK_TOO_LONG = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh it_tab2[].clear wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file = file_nm.&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 = file&lt;/P&gt;&lt;P&gt;i_begin_col = '1'&lt;/P&gt;&lt;P&gt;i_begin_row = '1'&lt;/P&gt;&lt;P&gt;i_end_col = '10'&lt;/P&gt;&lt;P&gt;i_end_row = '35'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;intern = it_tab&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case it_tab-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f1 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f2 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f3 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_tab2 to it_tab2.&lt;/P&gt;&lt;P&gt;clear wa_tab2.&lt;/P&gt;&lt;P&gt;endat.&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;data : p_file TYPE rlgrap-filename value 'TEST3.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&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;&lt;/P&gt;&lt;P&gt;Display error messages if any. &lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE e001(zsd_mes).&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Data is downloaded to the application server file path&lt;/P&gt;&lt;P&gt;LOOP AT it_tab2 INTO wa_tab2.&lt;/P&gt;&lt;P&gt;TRANSFER wa_tab2 TO p_file.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Close the Application server file (Mandatory).&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab2 into wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 09:02:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-11T09:02:55Z</dc:date>
    <item>
      <title>bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466777#M833196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bdc- call transaction or batch input session? which is more effective and widely used and why? &lt;/P&gt;&lt;P&gt;is the following command generally used in bdc&lt;/P&gt;&lt;P&gt;SPLIT ITAB-COMMA AT ',' INTO RECORD-MATNR_001 RECORD-MBRSH_002&lt;/P&gt;&lt;P&gt;RECORD-MTART_003 RECORD-KZSEL_01_004 RECORD-MAKTX_005 RECORD-MEINS_006.&lt;/P&gt;&lt;P&gt;*RECORD-MTPOS_MARA_007.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 13:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466777#M833196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466778#M833197</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 Call transaction method, if you got any error records then move those error records to the session, so here you need to write both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and come to your code, you will get the data in an internal table(which will contain all the from the flat file) then splitiing the data and sending into the their own individuval feidls&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 13:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466778#M833197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466779#M833198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;The use of the upload method majorly depends on the application and the volume of the data need to be handled and also the corectness of teh data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally call transaction is much faster than teh session method but in BDC's performance comes next to Accuracy of the upload. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In call transaction you error handling need to be handled explicitly, which is little difficlut. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In session we have many advantages over the call transaction, for example in call transaction if there are 100 transactions are failed, then you need to correct these 100 records and prepare a new file and again run the complete program where as in session, in SM35 you can run the session in error mode and correct the transactions. &lt;/P&gt;&lt;P&gt;for further clarity refer SAP documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 19:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466779#M833198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466780#M833199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sudhseer,&lt;/P&gt;&lt;P&gt;i couldnt understand your answer properly,could you please make more clear about that  especially that splitting part&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 03:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466780#M833199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T03:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466781#M833200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;STRONG&gt;suja&lt;/STRONG&gt; !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is nothing to Confuse with &lt;STRONG&gt;Split&lt;/STRONG&gt; Command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see let us assume that you have one flat file.&lt;/P&gt;&lt;P&gt;ok.&lt;/P&gt;&lt;P&gt;in that flat file the data is like this..!&lt;/P&gt;&lt;P&gt;here am using &lt;STRONG&gt;COMMA&lt;/STRONG&gt; as delimiter. ok&lt;/P&gt;&lt;P&gt;Gd : genral data for Customer or vendor master.&lt;/P&gt;&lt;P&gt;for each vendor let us assume having a couple of bank accounts.&lt;/P&gt;&lt;P&gt;BD : bank details&lt;/P&gt;&lt;P&gt;so while populating the particular customer we hav to populate the bank details alo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GD,1000,0001,0002,mr.,xxx ......... etc&lt;/P&gt;&lt;P&gt;BD,1000,de,90998770,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1000,de,90998771,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1000,de,90998772,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1000,de,90998773,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;GD,1001,0001,0002,mr.,yyy ......... etc&lt;/P&gt;&lt;P&gt;BD,1001,de,90998779,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1001,de,90998778,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1001,de,90998777,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt;BD,1001,de,90998776,hdfc,atm .....etc&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ok this is my flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now take one internal table like this :&lt;/P&gt;&lt;P&gt;data : begin of it_totaldata occurs 0,&lt;/P&gt;&lt;P&gt;         dummy(200),&lt;/P&gt;&lt;P&gt;         end of it_totaldata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at first we have up load the data into it_totaldata by using &lt;STRONG&gt;GUI_UPLOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after uploading data into internal table &lt;STRONG&gt;it_totaldata&lt;/STRONG&gt; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then we have to &lt;STRONG&gt;SPLIT&lt;/STRONG&gt; the data with respect to the identifier.&lt;/P&gt;&lt;P&gt;see at start of each record i used &lt;STRONG&gt;GD&lt;/STRONG&gt; and &lt;STRONG&gt;BD&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;that is general data (General data) m Bank details (BD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now am splinting the data ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put conditon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_totaldata.&lt;/P&gt;&lt;P&gt;if it_totaldata+0(2) = 'GD'.&lt;/P&gt;&lt;P&gt;split it_totaldata at ',' into VAR " this is variable to hold identifier&lt;/P&gt;&lt;P&gt;                                     it_gd_data-lifnr&lt;/P&gt;&lt;P&gt;                                     it_gd_data-bukrs&lt;/P&gt;&lt;P&gt;                                     &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                     &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                     &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                     &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                     &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;append it_gd_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif it_totaldata+0(2) = 'BD'&lt;/P&gt;&lt;P&gt;split it_totaldata  at ','  into VAR " this is variable to hold identifier&lt;/P&gt;&lt;P&gt;                                       it_bd_Data-banks&lt;/P&gt;&lt;P&gt;                                       it_bd_Data-bankl&lt;/P&gt;&lt;P&gt;                                       it_bd_Data-bankn&lt;/P&gt;&lt;P&gt;                                       &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                       &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                       &lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; append it_bd_data.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any further Queries regarding let me know ok.!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward me,&lt;/P&gt;&lt;P&gt;Cheers ,&lt;/P&gt;&lt;P&gt;Rajesh!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rajesh  k on Mar 8, 2008 9:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 04:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466781#M833200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T04:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466782#M833201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rajesh,&lt;/P&gt;&lt;P&gt;thank you for explaining about the split command.that is clear. now tell me is it possible to do bdc for an excelfile as your source file.&lt;/P&gt;&lt;P&gt;what else can be your source files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: suja thomas on Mar 11, 2008 7:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 06:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466782#M833201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T06:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466783#M833202</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;SEE THIS PROGRAM WHERE i had uploaded the data from excel sheet to internal table and then to application sever &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Report ZSD_EXCEL_INT_APP&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSD_EXCEL_INT_APP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: file_nm type localfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of it_tab1,&lt;/P&gt;&lt;P&gt;f1(20),&lt;/P&gt;&lt;P&gt;f2(40),&lt;/P&gt;&lt;P&gt;f3(20),&lt;/P&gt;&lt;P&gt;end of it_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab type table of ALSMEX_TABLINE with header line,&lt;/P&gt;&lt;P&gt;file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab2 type it_tab1 occurs 1,&lt;/P&gt;&lt;P&gt;wa_tab2 type it_tab1,&lt;/P&gt;&lt;P&gt;w_message(100) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for file_nm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM_NAME = SYST-REPID &lt;/P&gt;&lt;P&gt;DYNPRO_NUMBER = SYST-DYNNR &lt;/P&gt;&lt;P&gt;FIELD_NAME = ' ' &lt;/P&gt;&lt;P&gt;STATIC = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MASK = ' ' &lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;file_name = file_nm&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;MASK_TOO_LONG = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh it_tab2[].clear wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file = file_nm.&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 = file&lt;/P&gt;&lt;P&gt;i_begin_col = '1'&lt;/P&gt;&lt;P&gt;i_begin_row = '1'&lt;/P&gt;&lt;P&gt;i_end_col = '10'&lt;/P&gt;&lt;P&gt;i_end_row = '35'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;intern = it_tab&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;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case it_tab-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f1 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '004'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f2 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when '008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tab2-f3 = it_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_tab2 to it_tab2.&lt;/P&gt;&lt;P&gt;clear wa_tab2.&lt;/P&gt;&lt;P&gt;endat.&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;data : p_file TYPE rlgrap-filename value 'TEST3.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&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;&lt;/P&gt;&lt;P&gt;Display error messages if any. &lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE e001(zsd_mes).&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Data is downloaded to the application server file path&lt;/P&gt;&lt;P&gt;LOOP AT it_tab2 INTO wa_tab2.&lt;/P&gt;&lt;P&gt;TRANSFER wa_tab2 TO p_file.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Close the Application server file (Mandatory).&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab2 into wa_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 09:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466783#M833202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T09:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: bdc- call transaction or batch input session?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466784#M833203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi eshwar,&lt;/P&gt;&lt;P&gt;usually we create the flatfile on presentation server. does creating it on application server has any significance?does using the flat file on A.S  for bdc require anycode different from the usual bdc ?please answer me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"if it_totaldata+0(2) = 'GD'." what does this code mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: suja thomas on Mar 12, 2008 7:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 06:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-call-transaction-or-batch-input-session/m-p/3466784#M833203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T06:11:03Z</dc:date>
    </item>
  </channel>
</rss>

