<?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: Insert into Ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010675#M711460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined a new it_table and I have passed all the information inside, &lt;/P&gt;&lt;P&gt;then  &lt;/P&gt;&lt;P&gt;insert Ztable from table it_table.&lt;/P&gt;&lt;P&gt;It works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 09:02:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-12T09:02:13Z</dc:date>
    <item>
      <title>Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010670#M711455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have to insert an internal table to ZTable (table of dictionary).&lt;/P&gt;&lt;P&gt;But  I don't know why I only can insert one row. Can anyone help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_FICHERO INTO WA_FICHERO.
PERFORM  LOAD.
 PERFORM INSERT_INTO_TABLE.
ENDLOOP.

FORM LOAD.
  ZTABLE-PEDIDO = WA_FICHERO-NUM_PED.
  ZTABLE-SOLICITANTE = WA_FICHERO-SOLIC.
  ZTABLE-FECHA = FECHA.
  ZTABLE-HORA = HORA. 
  ZTABLE-STATUS1 = STATUS_P
  ZTABLE-STATUS2 = STATUS_F. 
ENDFORM.

FORM INSERT_INTO_TABLE.
  INSERT ZTABLE.
    IF SY-SUBRC = 0.
      MESSAGE I005. 
    ELSE.
      MESSAGE I006.
    ENDIF.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2007 19:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010670#M711455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-10T19:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010671#M711456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the key fields of ZTABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Nov 2007 19:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010671#M711456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-10T19:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010672#M711457</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; May be the key fields values must be same that is why it is inserting only one row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Insert ZTABLE from &amp;lt;Work Area&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2007 09:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010672#M711457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-11T09:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010673#M711458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOAD.&lt;/P&gt;&lt;P&gt;  wa_ZTABLE-PEDIDO = WA_FICHERO-NUM_PED.&lt;/P&gt;&lt;P&gt;  wa_ZTABLE-SOLICITANTE = WA_FICHERO-SOLIC.&lt;/P&gt;&lt;P&gt;  wa_ZTABLE-FECHA = FECHA.&lt;/P&gt;&lt;P&gt;  wa_ZTABLE-HORA = HORA. &lt;/P&gt;&lt;P&gt;  wa_ZTABLE-STATUS1 = STATUS_P&lt;/P&gt;&lt;P&gt;  wa_ZTABLE-STATUS2 = STATUS_F. &lt;/P&gt;&lt;P&gt;append wa_ztable  to ztab.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ztab into wa_ztable.&lt;/P&gt;&lt;P&gt;**- Lock the table for updation&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ENQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      mode_rstable   = 'E'&lt;/P&gt;&lt;P&gt;      tabname        = 'ZTABLE'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      foreign_lock   = 1&lt;/P&gt;&lt;P&gt;      system_failure = 2&lt;/P&gt;&lt;P&gt;      OTHERS         = 3.&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; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**- Updating the values in the afterbilled table.&lt;/P&gt;&lt;P&gt;  Insert ztable form table ztab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**- Unlock the table after Updation.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_E_TABLEE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      mode_rstable = 'E'&lt;/P&gt;&lt;P&gt;      tabname      = 'ZTABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 07:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010673#M711458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T07:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010674#M711459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only the following code will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FICHERO INTO WA_FICHERO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT INTO ZTABLE VALUES WA_FICHERO.&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;IF YOU DONT WANT LIKE ABOVE.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FICHERO INTO WA_FICHERO.&lt;/P&gt;&lt;P&gt;PERFORM  LOAD.&lt;/P&gt;&lt;P&gt; PERFORM INSERT_INTO_TABLE.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM LOAD.&lt;/P&gt;&lt;P&gt;  ZTABLE-PEDIDO = WA_FICHERO-NUM_PED.&lt;/P&gt;&lt;P&gt;  ZTABLE-SOLICITANTE = WA_FICHERO-SOLIC.&lt;/P&gt;&lt;P&gt;  ZTABLE-FECHA = FECHA.&lt;/P&gt;&lt;P&gt;  ZTABLE-HORA = HORA. &lt;/P&gt;&lt;P&gt;  ZTABLE-STATUS1 = STATUS_P&lt;/P&gt;&lt;P&gt;  ZTABLE-STATUS2 = STATUS_F. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM INSERT_INTO_TABLE.&lt;/P&gt;&lt;P&gt;  INSERT INTO ZTABLE VALUES  WA_FICHERO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      MESSAGE I005. &lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE I006.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 08:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010674#M711459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010675#M711460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have defined a new it_table and I have passed all the information inside, &lt;/P&gt;&lt;P&gt;then  &lt;/P&gt;&lt;P&gt;insert Ztable from table it_table.&lt;/P&gt;&lt;P&gt;It works well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 09:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010675#M711460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T09:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010676#M711461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid , collision/ deadlocks while trying to insert / Modify tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to lock the table before updation and unlock it after the saem.&lt;/P&gt;&lt;P&gt;Refer to my revious post in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 09:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010676#M711461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T09:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert into Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010677#M711462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: WA_ZTABLE TYPE ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FICHERO INTO WA_FICHERO.&lt;/P&gt;&lt;P&gt;PERFORM  LOAD.&lt;/P&gt;&lt;P&gt; PERFORM INSERT_INTO_TABLE.&lt;/P&gt;&lt;P&gt;CLEAR WA_ZTABLE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM LOAD.&lt;/P&gt;&lt;P&gt;  WA_ZTABLE-PEDIDO = WA_FICHERO-NUM_PED.&lt;/P&gt;&lt;P&gt;  WA_ZTABLE-SOLICITANTE = WA_FICHERO-SOLIC.&lt;/P&gt;&lt;P&gt;  WA_ZTABLE-FECHA = FECHA.&lt;/P&gt;&lt;P&gt;  WA_ZTABLE-HORA = HORA. &lt;/P&gt;&lt;P&gt;  WA_ZTABLE-STATUS1 = STATUS_P&lt;/P&gt;&lt;P&gt;  WA_ZTABLE-STATUS2 = STATUS_F. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM INSERT_INTO_TABLE.&lt;/P&gt;&lt;P&gt;  INSERT INTO ZTABLE VALUE WA_ZTABLE.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      MESSAGE I005. &lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE I006.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Muthurajan Ramkumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 09:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-ztable/m-p/3010677#M711462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T09:32:41Z</dc:date>
    </item>
  </channel>
</rss>

