<?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 Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657582#M881043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have check the 'KEEP SESSSION' in your selection screen to keep your session in SM35 after processing else by default deletes the session after processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So rerun the transaction with checking the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 02:30:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-14T02:30:28Z</dc:date>
    <item>
      <title>BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657578#M881039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick question w.r.t  a program for BDC Table control. I have written a dialog program containing one screen based on all the fields from the table SBOOK. Whatever the data entered into those fields will be inserted into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i would like to write a BDC program for the above transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While creating an internal table structure, I have browsed the Data elements of table SBOOK. I found a field FLDATE with length 8. Shall i declare it an 8 or 10 ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is, whether i should declare the length of the fields in internal table same as that of Database table or else i can declare my custom lengths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 17:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657578#M881039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-13T17:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657579#M881040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For BDC use external format and width, e;g. for date use 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Also look for thread like &lt;SPAN __jive_macro_name="thread" id="809599"&gt;&lt;/SPAN&gt; to manage line number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 18:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657579#M881040</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-04-13T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657580#M881041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI I AM PUTTING MY CODE OVER HERE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
report ZVKBDCTRANSACTION
       no standard page heading line-size 255.

DATA : BEGIN OF IT_DUMMY OCCURS 0,
	DUMMY(100) TYPE C,
	END OF IT_DUMMY.

DATA : BEGIN OF ITAB OCCURS 0,
CARRID(3) TYPE C,
CONNID(4) TYPE C,
FLDATE(11) TYPE C,
PRICE(15) TYPE C,
PLANETYPE(10) TYPE C,
END OF ITAB.

DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

 CALL FUNCTION 'WS_UPLOAD'
   EXPORTING
     FILENAME                      = 'C:\USERS\VAMC\DOCUMENTS\FLINFO1.TXT'
    TABLES
     data_tab                      = IT_DUMMY
            .
 IF sy-subrc &amp;lt;&amp;gt; 0.
WRITE 'ERROR'.
 ENDIF.

LOOP AT IT_DUMMY.
ITAB-CARRID = IT_DUMMY-DUMMY+0(3).
ITAB-CONNID = IT_DUMMY-DUMMY+3(4).
ITAB-FLDATE = IT_DUMMY-DUMMY+7(11).
ITAB-PRICE = IT_DUMMY-DUMMY+18(15).
ITAB-PLANETYPE = IT_DUMMY-DUMMY+33(10).
APPEND ITAB.
ENDLOOP.

*LOOP AT ITAB.
*WRITE: ITAB-CARRID, ITAB-CONNID, ITAB-FLDATE, ITAB-PRICE, ITAB-PLANETYPE.
*ENDLOOP.




include bdcrecx1.

start-of-selection.

LOOP AT ITAB.

perform open_group.

perform bdc_dynpro      using 'SAPMZ_TPSCREEN02' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SAVE'.
perform bdc_field       using 'BDC_CURSOR'
                              'SFLIGHT-PLANETYPE'.
perform bdc_field       using 'SFLIGHT-CARRID'
                              'AA'.
perform bdc_field       using 'SFLIGHT-CONNID'
                              '17'.
perform bdc_field       using 'SFLIGHT-FLDATE'
                              '12/02/2009'.
perform bdc_field       using 'SFLIGHT-PRICE'
                              '3355'.
perform bdc_field       using 'SFLIGHT-PLANETYPE'
                              '737-200SF'.
perform bdc_dynpro      using 'SAPMZ_TPSCREEN02' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BACK'.
perform bdc_field       using 'BDC_CURSOR'
                              'SFLIGHT-CARRID'.
perform bdc_field       using 'SFLIGHT-CARRID'
                              'AA'.
perform bdc_field       using 'SFLIGHT-CONNID'
                              '17'.
perform bdc_field       using 'SFLIGHT-FLDATE'
                              '12/02/2009'.
perform bdc_field       using 'SFLIGHT-PRICE'
                              '3.355,00'.
perform bdc_field       using 'SFLIGHT-PLANETYPE'
                              '737-200SF'.
perform bdc_transaction using 'Z_TPSCREEN02'.

perform close_group.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Flat file Contains 3 records.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AA 0017 10/11/2006 6655 737-200&lt;/P&gt;&lt;P&gt;LH 0400 11/12/2005 3322 737-200SF&lt;/P&gt;&lt;P&gt;AA 0017 10/11/2004 4433 737-200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After Executing this code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It generated all return codes 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what a return code 0 means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went to SM35 and processed my session in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my surprise, I didn't find my session in any tabs, Its missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea what has happened exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 19:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657580#M881041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-13T19:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657581#M881042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if you did process this report in background, you will probably find a short dump in ST22 for it, since you are using WS_UPLOAD. WS stands for WorkStation. However, if you are processing in background, you can't upload a file from your local workstation, since the program will be running on application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to upload a file in background, you will have to upload it from application server. Put file on application server using transaction cg3z. If record size is too long, find someone from basis to put file on application server, or write a report yourself to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Return code sy-subrc = 0, means that 'everything' is OK.&lt;/P&gt;&lt;P&gt;sy-subrc = 4, normally states that there is an error, however when transporting development objects from A to B, sy-subrc = 4, is still ok, but some warnings.&lt;/P&gt;&lt;P&gt;Every return code &amp;gt; 4, is (mayor) error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Apr 13, 2008 10:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Apr 2008 20:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657581#M881042</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-13T20:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657582#M881043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have check the 'KEEP SESSSION' in your selection screen to keep your session in SM35 after processing else by default deletes the session after processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So rerun the transaction with checking the checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 02:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657582#M881043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T02:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657583#M881044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able see my session in Processed Tab. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 04:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657583#M881044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T04:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657584#M881045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivaram..&lt;/P&gt;&lt;P&gt;    You Can specify field lengths as per the database table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its Help full...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 09:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-table-control/m-p/3657584#M881045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T09:33:24Z</dc:date>
    </item>
  </channel>
</rss>

