<?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: How to create a ztable using program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204149#M1203976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;to call those recording statements, after saving it will automatically comes to SHDB main window..there select u r recorded name--&lt;DEL&gt;&amp;gt;click on PROGRAM button&lt;/DEL&gt;&lt;DEL&gt;&amp;gt;give a program name of u wish&lt;/DEL&gt;&lt;DEL&gt;-&amp;gt;selct the transfer from recording radio button&lt;/DEL&gt;-&amp;gt;the code will be automatically pasted into u r program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do some mall modification in u r program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 12:15:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T12:15:19Z</dc:date>
    <item>
      <title>How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204140#M1203967</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;How to create a ztable using programs for SQL database? &lt;/P&gt;&lt;P&gt;Can anyone plz explain it with a program!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 04:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204140#M1203967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T04:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204141#M1203968</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;Try this for creating and inserting data using native SQL.&lt;/P&gt;&lt;P&gt;REPORT zzz_jaytest.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Creating a table. No need of giving semicolon or colon for each statement.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exec sql.&lt;/P&gt;&lt;P&gt;create table stu_det ( regno char(10) primary key,&lt;/P&gt;&lt;P&gt;                       name char(20) not null,&lt;/P&gt;&lt;P&gt;                       total number(3) )&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting first record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exec sql.&lt;/P&gt;&lt;P&gt;insert into stu_det values ('R1000', 'Ganesh', 500)&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Inserting Second record&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;exec sql.&lt;/P&gt;&lt;P&gt;insert into stu_det values ('R1001', 'Murugan', 480)&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 04:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204141#M1203968</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-02-11T04:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204142#M1203969</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 to create a Ztable, call this FM module in ur program and pass necessary fields to this FM.&lt;/P&gt;&lt;P&gt;It'll create Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_DD_TABL_ADD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for creating Domain , Data element etc check in Se37 --&amp;gt; put RS_DD* and press F4.U'll get FM for each and every action u do in SE11.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 04:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204142#M1203969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T04:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204143#M1203970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Your purpose can be achieved through BDC programming too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:
t_bdcdata type table of bdcdata with header line.
start-of-selection.


perform bdc_dynpro      using 'SAPMSRD0' '0102'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ADD'.
perform bdc_field       using 'RSRD1-TBMA'
                              'X'.
perform bdc_field       using 'RSRD1-TBMA_VAL'
                              'ztable_demo'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '=CHANGE_MAINTFLAG'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_field       using 'DD02D-CONTFLAG'
                              'A'.
perform bdc_field       using 'DD02D-MAINFLAG'
                              'X'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '=DEF'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_field       using 'DD02D-CONTFLAG'
                              'A'.
perform bdc_field       using 'DD02D-MAINFLAG'
                              'X'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_field       using 'DD03D-ROLLNAME(01)'
                              'mandt'.
perform bdc_field       using 'DD03D-FIELDNAME(01)'
                              'mandt'.
perform bdc_field       using 'DD03P-KEYFLAG(01)'
                              'X'.
perform bdc_field       using 'DD03P-NOTNULL(01)'
                              'X'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_field       using 'DD03D-ROLLNAME(02)'
                              'S_CARR_ID'.
perform bdc_field       using 'DD03D-FIELDNAME(02)'
                              'carrid'.
perform bdc_field       using 'DD03P-KEYFLAG(02)'
                              'X'.
perform bdc_field       using 'DD03P-NOTNULL(02)'
                              'X'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_field       using 'DD03D-ROLLNAME(03)'
                              'S_CONN_ID'.
perform bdc_field       using 'DD03D-FIELDNAME(03)'
                              'connid'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SE13'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_dynpro      using 'SAPLSPO1' '0300'.
perform bdc_field       using 'BDC_OKCODE'
                              '=YES'.
perform bdc_dynpro      using 'SAPLSTRD' '0100'.
perform bdc_field       using 'BDC_CURSOR'
                              'KO007-L_DEVCLASS'.
perform bdc_field       using 'BDC_OKCODE'
                              '=TEMP'.
perform bdc_field       using 'KO007-L_AUTHOR'
                              'SAPDEV02'.
perform bdc_dynpro      using 'SAPMSEDS' '0050'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SICH'.
perform bdc_field       using 'DD09V-TABART'
                              'APPL0'.
perform bdc_field       using 'DD09V-TABKAT'
                              '0'.
perform bdc_field       using 'ALLOWSTATE-NOT_ALLOWED'
                              'X'.
perform bdc_dynpro      using 'SAPMSEDS' '0050'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BACK'.
perform bdc_field       using 'DD09V-TABART'
                              'APPL0'.
perform bdc_field       using 'DD09V-TABKAT'
                              '0'.
perform bdc_field       using 'ALLOWSTATE-NOT_ALLOWED'
                              'X'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '=WB_ACTIVATE'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_dynpro      using 'SAPLSEWORKINGAREA' '0205'.
perform bdc_field       using 'BDC_OKCODE'
                              '=WEIT'.
perform bdc_dynpro      using 'SAPLSPO1' '0300'.
perform bdc_field       using 'BDC_OKCODE'
                              '=NO'.
perform bdc_dynpro      using 'SAPLSD41' '2200'.
perform bdc_field       using 'BDC_OKCODE'
                              '=WB_BACK'.
perform bdc_field       using 'DD02D-DDTEXT'
                              'Ztable'.
perform bdc_dynpro      using 'SAPMSRD0' '0102'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BACK'.
perform bdc_field       using 'RSRD1-TBMA'
                              'X'.
perform bdc_field       using 'RSRD1-TBMA_VAL'
                              'ZTABLE_DEMO'.
call transaction 'SE11' using t_bdcdata..


form BDC_DYNPRO  using    value(p_program)
                          value(p_num).
clear t_bdcdata.
t_bdcdata-program = p_program.
t_bdcdata-dynpro = p_num.
append t_bdcdata.
endform.                    " BDC_DYNPRO


form BDC_FIELD  using    value(p_fnam)
                         value(p_fval).
clear t_bdcdata.
t_bdcdata-fnam = p_fnam.
t_bdcdata-fval = p_fval.
append t_bdcdata.
endform.                    " BDC_FIELD&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 04:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204143#M1203970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T04:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204144#M1203971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m getting a short dump if i use those queries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Dump :&lt;/P&gt;&lt;P&gt;The error occurred in the current database connection "DEFAULT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 06:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204144#M1203971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T06:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204145#M1203972</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;It is because you might have executed the same code again.&lt;/P&gt;&lt;P&gt;exec sql.&lt;/P&gt;&lt;P&gt;drop table stu_det&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;P&gt;Execute it first in another program and then execute the earlier which I had given.It will create a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 10:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204145#M1203972</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-02-11T10:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204146#M1203973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayanthi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the table is created . But when i go to se11 and try to display the table, it says &lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Table name does not exist&amp;gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where will the table be stored? How to check if its created?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 11:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204146#M1203973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T11:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204147#M1203974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot see the table in the DDIC because you have not create the table there. &lt;/P&gt;&lt;P&gt;EXEC SQL CREATE TABLE creates only a table directly on the database and not in the DDIC. &lt;/P&gt;&lt;P&gt;And pls. be careful, EXEC SQL is heavily platform dependent, programs using EXEC SQL are very often not running w/o problems on all supported DB platforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204147#M1203974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T12:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204148#M1203975</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;Using BDC it is possible...&lt;/P&gt;&lt;P&gt;just record the creation of table by going to transaction SHDB...there give a name and transaction..do the steps..once u done with the recording just save it and call them into u r program...&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204148#M1203975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204149#M1203976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;to call those recording statements, after saving it will automatically comes to SHDB main window..there select u r recorded name--&lt;DEL&gt;&amp;gt;click on PROGRAM button&lt;/DEL&gt;&lt;DEL&gt;&amp;gt;give a program name of u wish&lt;/DEL&gt;&lt;DEL&gt;-&amp;gt;selct the transfer from recording radio button&lt;/DEL&gt;-&amp;gt;the code will be automatically pasted into u r program.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do some mall modification in u r program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204149#M1203976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T12:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204150#M1203977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FM [DD_CREATE_TABLE|https://www.sdn.sap.com/irj/scn/advancedsearch?query=dd_create_table&amp;amp;cat=sdn_all].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204150#M1203977</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-02-11T12:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204151#M1203978</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;You can check the entries in the table by using select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Sample for performing form addition in EXEC SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zzz_jaytest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_name(20) type c,&lt;/P&gt;&lt;P&gt;       v_total type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_regno(10) TYPE c DEFAULT 'R1000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This directly selects the details of the record for the entered regno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and writes the information directly using performing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;addition.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the result of a SELECT command is a table, the system reads the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;result set line by line in a loop. For each line, the system calls the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;subroutine form .We can terminate the loop using the EXIT FROM SQL&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;statement in the subroutine form. If the result of the selection is a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;single record, form is only called once.We can only use this addition&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in a SELECT command.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL PERFORMING write_details.&lt;/P&gt;&lt;P&gt;SELECT name, total INTO :v_name, :v_total FROM stu_det&lt;/P&gt;&lt;P&gt;       WHERE regno = :p_regno&lt;/P&gt;&lt;P&gt;ENDEXEC.&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  WRITE_details&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;      text&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 write_details.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Student Details:', p_regno, v_name, v_total.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "WRITE_details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From documentation:&lt;/P&gt;&lt;P&gt;In a Native SQL statement, data is passed between the ABAP program and the database using host variables. A host variable is an ABAP variable that is identified as such in the Native SQL statement by a preceding colon (&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 02:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204151#M1203978</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2009-02-12T02:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a ztable using program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204152#M1203979</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;Please check following instructions to create Ztable using program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a table maintainance program for a z table &lt;/P&gt;&lt;P&gt;In transaction SE11, in the attribute tab of your z table check table maintenance check box. Go to SM30 transaction, enter the ztable name and click on maintain button.  Here you can enter new entries into the ztable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a PARAMETER TRANSACTION for the transaction for SM30 .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow these steps : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. go to transaction SE93 , give your own transaction code say ztran_tab, for maintaining your ztable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Click on create button and check the radio button Transaction with parameters (PARAMETER TRANSACTION) and click on the tick button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the next screen enter default values: &lt;/P&gt;&lt;P&gt;                        transaction : SM30 &lt;/P&gt;&lt;P&gt;                        check the check box skip initial screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Scroll down you will find a table control for default values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Name of the screen field      |       value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    VIEWNAME                          |       your ztable name &lt;/P&gt;&lt;P&gt;    SHOW                                    |         X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as you have created a custom transaction for maintaining your ztable this transaction can be called from any program with CALL transaction 'XXX'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you. &lt;/P&gt;&lt;P&gt;Thanks...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mandar kale on Feb 12, 2009 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 10:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-ztable-using-program/m-p/5204152#M1203979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T10:33:07Z</dc:date>
    </item>
  </channel>
</rss>

