<?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 RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &amp;lt;itab&amp;gt; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638014#M1665466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INSERT&lt;/STRONG&gt; (l_nametab) &lt;STRONG&gt;FROM TABLE&lt;/STRONG&gt; &amp;lt;dynamic_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;DATA: l_nametab TYPE TABNAME VALUE 'PA0002'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dynamic_table&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;DATA: dy_table2 type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).&lt;/P&gt;&lt;P&gt;ASSIGN dy_table2-&amp;gt;* TO &amp;lt;dynamic_table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but I received this runtime error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DBIF_RSQL_INTERNAL_ERROR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Internal error when accessing a table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The current ABAP/4 program terminated due to&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;an internal error in the database interface.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;An internal error in the database interface occurred during access to&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the data of table "PA0002 ".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The situation points to an internal error in the SAP software&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or to an incorrect status of the respective work process.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For further analysis the SAP system log should be examined&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(transaction SM21).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For a precise analysis of the error, you should supply&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;documents with as many details as possible.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how can it be solved?&lt;/P&gt;&lt;P&gt;I'll really apreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Feb 2012 19:12:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-26T19:12:10Z</dc:date>
    <item>
      <title>RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638014#M1665466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INSERT&lt;/STRONG&gt; (l_nametab) &lt;STRONG&gt;FROM TABLE&lt;/STRONG&gt; &amp;lt;dynamic_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;DATA: l_nametab TYPE TABNAME VALUE 'PA0002'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;dynamic_table&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;DATA: dy_table2 type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).&lt;/P&gt;&lt;P&gt;ASSIGN dy_table2-&amp;gt;* TO &amp;lt;dynamic_table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... but I received this runtime error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DBIF_RSQL_INTERNAL_ERROR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Internal error when accessing a table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The current ABAP/4 program terminated due to&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;an internal error in the database interface.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;An internal error in the database interface occurred during access to&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the data of table "PA0002 ".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The situation points to an internal error in the SAP software&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or to an incorrect status of the respective work process.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For further analysis the SAP system log should be examined&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(transaction SM21).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For a precise analysis of the error, you should supply&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;documents with as many details as possible.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how can it be solved?&lt;/P&gt;&lt;P&gt;I'll really apreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 19:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638014#M1665466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-26T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638015#M1665467</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;Your code it seems to be ok, so I don't think the error can be due by your code, you should explain how you fill your dynamic table or you should check if there is a problem for that table in your db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Feb 2012 22:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638015#M1665467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-26T22:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638016#M1665468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I upload this data if I'm reading the info from an Input File.&lt;/P&gt;&lt;P&gt;The FM HR_INFOTYPE_OPERATION is useless because the UNAME fild doesn't remain into the record. They really need these field.&lt;/P&gt;&lt;P&gt;The main idea of these program is to read the Input File Line, wich can belong to any infotype.&lt;/P&gt;&lt;P&gt;I'm already reading the Infotype data from the input file and I need to transfer it to the PAXXXX table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, a little explanation of it:&lt;/P&gt;&lt;P&gt;This program is to INSERT DATA INTO HR TABLES... &lt;/P&gt;&lt;P&gt;The FM HR_INFOTYPE_OPERATION is useless in this process... &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;Only with INSERT dbtab it has to be done!!!&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Read HR data from an input file. The data type of the file lines is PRELP.&lt;/P&gt;&lt;P&gt;2.- Get the input file data into an internal table (TYPE PRELP) using the ABAP Method CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;3.- Get the DDic. Table Name using CONCATENATE 'PA' wa_file-infty INTO l_nametab.&lt;/P&gt;&lt;P&gt;4.- Get the DDic.Struct.Name using CONCATENATE 'P' wa_file-infty INTO l_nametype.&lt;/P&gt;&lt;P&gt;5.- Assign values with the same code:&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;                 &amp;lt;dyn_wa&amp;gt;,&lt;/P&gt;&lt;P&gt;                 &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;dyn_table2&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;                 &amp;lt;dyn_wa2&amp;gt;,&lt;/P&gt;&lt;P&gt;                 &amp;lt;dyn_field2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: dy_table2 type ref to data,&lt;/P&gt;&lt;P&gt;        dy_line2  type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: dy_table type ref to data,&lt;/P&gt;&lt;P&gt;        dy_line  type ref to data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CREATE DATA dy_table TYPE STANDARD TABLE OF (l_nametype).&lt;/P&gt;&lt;P&gt;            ASSIGN dy_table-&amp;gt;* TO &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            " Create dynamic work area and assign to FS&lt;/P&gt;&lt;P&gt;            CREATE DATA dy_line LIKE LINE OF &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;            ASSIGN dy_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab). &lt;/P&gt;&lt;P&gt;            ASSIGN dy_table2-&amp;gt;* TO &amp;lt;dyn_table2&amp;gt;.&lt;/P&gt;&lt;P&gt;            " Create dynamic work area and assign to FS&lt;/P&gt;&lt;P&gt;            CREATE DATA dy_line2 LIKE LINE OF &amp;lt;dyn_table2&amp;gt;.&lt;/P&gt;&lt;P&gt;            ASSIGN dy_line2-&amp;gt;* TO &amp;lt;dyn_wa2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.- Convert the Input File Line from PRELP type to PNNNN type with the ABAP method&lt;/P&gt;&lt;P&gt;      CL_HR_PNNNN_TYPE_CAST=&amp;gt;PRELP_TO_PNNNN            EXPORTING        PRELP  = wa_file&lt;/P&gt;&lt;P&gt;                                                                                IMPORTING        PNNNN  = &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.- As &amp;lt;dyn_wa2&amp;gt; and &amp;lt;dyn_table2&amp;gt; are of PANNNN Data Type, there is an structure with the MANDT field to be assigned to it:&lt;/P&gt;&lt;P&gt;" Type Definition&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF type_mandt,&lt;/P&gt;&lt;P&gt;          mandt TYPE MANDT,&lt;/P&gt;&lt;P&gt;       END OF type_mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Structure Definition&lt;/P&gt;&lt;P&gt;DATA: wa_mandt TYPE type_mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Structure value assignation&lt;/P&gt;&lt;P&gt;wa_mandt-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8.- Assign corresponding values and INSERT INTO dbtab&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING &amp;lt;dyn_wa&amp;gt; TO &amp;lt;dyn_wa2&amp;gt;. "XXXX&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING wa_mandt TO &amp;lt;dyn_wa2&amp;gt;.&lt;/P&gt;&lt;P&gt;          APPEND &amp;lt;dyn_wa2&amp;gt; TO &amp;lt;dyn_table2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INSERT (l_nametab) FROM TABLE &amp;lt;dyn_table2&amp;gt; ACCEPTING DUPLICATE KEYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9.- In these code line, the menctioned runtime error appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it can be solved...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 01:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638016#M1665468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-27T01:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638017#M1665469</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;This error occurs when the structure from which the data is inserted into the table does not match with the table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just compare both of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aravind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 13:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638017#M1665469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638018#M1665470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aravind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I has already done that comparisson and there are not differences between them. &lt;/P&gt;&lt;P&gt;&lt;U&gt;The workFlow is:&lt;/U&gt; &lt;/P&gt;&lt;P&gt;I read from HR file with GUI_DOWNLOAD into a internal table TYPE PRELP. &lt;/P&gt;&lt;P&gt;I use the CL_HR_PNNNN_TYPE_CAST=&amp;gt;PRELP_TO_PNNNN method to CAST the file line TO a PNNNN line.&lt;/P&gt;&lt;P&gt;I move PNNNN line to a dynamic structure TYPE PAxxxx and I also move the MANDT value up to the PAxxxx structure.&lt;/P&gt;&lt;P&gt;... and...&lt;/P&gt;&lt;P&gt;I try to INSERT INTO PAxxxx using dynamic structures and tables to achive it, but the error appears...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 13:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638018#M1665470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638019#M1665471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Think you sould find a bapi before trying the insert into standard table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 14:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638019#M1665471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638020#M1665472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Take a look at SM21 for the actual SQL error message (*)&lt;/P&gt;&lt;P&gt;- Truly you must not use INSERT statement on standard table, where are the checks for consistency , &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; good luck for next steps... (**)&lt;/P&gt;&lt;P&gt;- MOVE-CORRESPONDING &amp;lt;dyn_wa&amp;gt; TO &amp;lt;dyn_wa2&amp;gt;. " Are you sure, check via debug the value of &amp;lt;dyn_wa2&amp;gt; after the statement (***)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) Is it mapping invalid data, duplicate records, other database error message...(ORA-0060 or the like)&lt;/P&gt;&lt;P&gt;(**) Exception - if you are copying data to a sandbox&lt;/P&gt;&lt;P&gt;(***) Try to map like CL_HR_PNNNN_TYPE_CAST methods, basically are you sure your field symbols are recognized for structure by Abap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638020#M1665472</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-02-28T15:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638021#M1665473</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM HR_INFOTYPE_OPERATION is useless because the UNAME fild doesn't remain into the record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, you should use it to perform operations on HR infotypes... you could then implement a badi to update the uname field accordingly.... Even, I think it's better to use an UPDATE..SET statement after HR_INFOTYPE_OPERATION successfully created the record (At least you only update 1 field on an existing record...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the INSERT statement on a standard infotype is not something advisable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manu D'Haeyer on Feb 28, 2012 4:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 15:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638021#M1665473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638022#M1665474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really would like to use the FM HR_INFOTYPE_OPERATION but the client really need the UNAME and AEDTM fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the reason why I'm using the INSERT. I saw that the problem is not the INSERT statement. Is the GUI_DOWNLOAD method. When I read the data using it, something is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the data in both sides and it seems to be equal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I don't know how can it be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 22:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638022#M1665474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T22:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic &lt;itab&gt;</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638023#M1665475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Manu has given you the answer. Use the FM and change the fields you need to after the data has been inserted. Since the FM uses the logic from the dialogs for the individual infotypes, you won't be able to change the data there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would process the file in two steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Read the file and use the FM to do the inserts&lt;/P&gt;&lt;P&gt;2) Read the file again and change the fields you need to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing it in that order will hopefully reduce the chances of lock conflicts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 22:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-trying-to-insert-dbtab-from-dynamic-lt-itab-gt/m-p/8638023#M1665475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-28T22:26:55Z</dc:date>
    </item>
  </channel>
</rss>

