<?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: Help with insert into table, using work area. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038365#M418913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by infotype specific fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Ans: The table HRP9007 is the database table for custom infotype 9007.&lt;/P&gt;&lt;P&gt;infotypes are information units used to maintain master data in HR module. it is a framework provided by SAP, with a combination of tables, structures and modulepool screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;infotype 9007 has the following basic componets: &lt;/P&gt;&lt;P&gt;HRP9007 - table&lt;/P&gt;&lt;P&gt;HRI9007 - structure&lt;/P&gt;&lt;P&gt;MP900700 - module pool program (with screens 1000, 2000 and 3000)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you go into HRP9007 from SE11, you can see three includes, HRIKEY, HRIADMIN and HRI9007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRIKEY fields are the key fields common to any PD (personnel development)infotypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRIADMIN fields are the administration fields like last changed by...etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRI9007 include contains the fields which will be populated by the end user from  infotype maintenance screen (PP01 transaction for PD infotypes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence, HRI include/structure is also called as include with the data fields.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 04:24:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-15T04:24:50Z</dc:date>
    <item>
      <title>Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038353#M418901</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;What maybe wrong with the insert statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables hrp9007.&lt;/P&gt;&lt;P&gt;data testtab type hrp9007.&lt;/P&gt;&lt;P&gt;testtab-plvar = '99'.&lt;/P&gt;&lt;P&gt;testtab-istat = '1'.&lt;/P&gt;&lt;P&gt;testtab-begda ='03/14/2007'.&lt;/P&gt;&lt;P&gt;testtab-endda = '12/31/9999'.&lt;/P&gt;&lt;P&gt;insert into hrp9007 values testtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single begda from hrp9007 into subloc&lt;/P&gt;&lt;P&gt;  where plvar  eq '99'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting garbage value when I print "begda"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038353#M418901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038354#M418902</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;I think the date format maybe problem,  try with YYYYMMDD format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;R. Rengaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038354#M418902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038355#M418903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;insert hrp9007 from testtab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038355#M418903</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-15T03:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038356#M418904</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 try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables hrp9007.

data testtab type hrp9007.
testtab-plvar = '99'.
testtab-istat = '1'.
testtab-begda ='20070314'.
testtab-endda = '99991231'.
insert hrp9007 from testtab.

commit work.

select single begda from hrp9007 into subloc
where plvar eq '99'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it does not work, please check the appropriate date format for begda and endda fields.&lt;/P&gt;&lt;P&gt;Perhaps you can use FM CONVERSION_EXIT_BEGDA_INPUT for date conversion.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038356#M418904</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-03-15T03:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038357#M418905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because of the date formats. since you are hardcoding the date in a specific format, the system will give garbage values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the solution. use WRITE TO statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE 20070314 TO testtab-begda.&lt;/P&gt;&lt;P&gt;WRITE 99991231 TO testtab-endda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try using COMMIT WORK after the insert statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038357#M418905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038358#M418906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try with this .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    INSERT hrp9007  FROM testtab.&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;  I think  date format might be not compatable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038358#M418906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038359#M418907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables hrp9007.&lt;/P&gt;&lt;P&gt;data testtab type hrp9007.&lt;/P&gt;&lt;P&gt;testtab-plvar = '99'.&lt;/P&gt;&lt;P&gt;testtab-istat = '1'.&lt;/P&gt;&lt;P&gt;testtab-begda ='20070314'.&lt;/P&gt;&lt;P&gt;testtab-endda = '99991231'.&lt;/P&gt;&lt;P&gt;insert into hrp9007 values testtab.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;select single begda from hrp9007 into subloc&lt;/P&gt;&lt;P&gt;where plvar eq '99'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if begda and endda are date fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038359#M418907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038360#M418908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied and pasted your code. &lt;/P&gt;&lt;P&gt;I still get the same garbage value when I print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4//20/03/1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038360#M418908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T03:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038361#M418909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check that field in the domain level, may be some convertion routines attached to the domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 03:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038361#M418909</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-15T03:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038362#M418910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try testtab-begda = sy-datum and testtab-endda = sy-datum. This is just &lt;/P&gt;&lt;P&gt;to ensure that it is the data type datum is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, i was wondering why there is no infotype specific fields in your insert statement? your statement inserts data only in to the infotype key fields, not into the data fields...(i mean not into any of the HRI structure fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 04:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038362#M418910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T04:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038363#M418911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The domain is DATUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date field (YYYYMMDD) stored as char(8)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I am using the same in my code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still getting same garbage value.&lt;/P&gt;&lt;P&gt;&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>Thu, 15 Mar 2007 04:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038363#M418911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T04:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038364#M418912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to ABAP. What do you mean by infotype specific fields in the insert statements. Would you please be more elaborate "your statement inserts data only in to the infotype key fields, not into the data fields...(i mean not into any of the HRI structure fields)."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 04:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038364#M418912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T04:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with insert into table, using work area.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038365#M418913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by infotype specific fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Ans: The table HRP9007 is the database table for custom infotype 9007.&lt;/P&gt;&lt;P&gt;infotypes are information units used to maintain master data in HR module. it is a framework provided by SAP, with a combination of tables, structures and modulepool screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;infotype 9007 has the following basic componets: &lt;/P&gt;&lt;P&gt;HRP9007 - table&lt;/P&gt;&lt;P&gt;HRI9007 - structure&lt;/P&gt;&lt;P&gt;MP900700 - module pool program (with screens 1000, 2000 and 3000)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you go into HRP9007 from SE11, you can see three includes, HRIKEY, HRIADMIN and HRI9007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRIKEY fields are the key fields common to any PD (personnel development)infotypes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRIADMIN fields are the administration fields like last changed by...etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HRI9007 include contains the fields which will be populated by the end user from  infotype maintenance screen (PP01 transaction for PD infotypes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hence, HRI include/structure is also called as include with the data fields.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 04:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-insert-into-table-using-work-area/m-p/2038365#M418913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T04:24:50Z</dc:date>
    </item>
  </channel>
</rss>

