<?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 direct table infotype Vs PA30 function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736490#M1111373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;case closed, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 03:17:57 GMT</pubDate>
    <dc:creator>former_member207153</dc:creator>
    <dc:date>2009-06-08T03:17:57Z</dc:date>
    <item>
      <title>INSERT into direct table infotype Vs PA30 function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736486#M1111369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you adv what is significant differences between using INSERT sql command to insert data into PA infotype table compare with PA30 function (Using BDC)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone give good example of using FM which have similar action with BDC PA30 function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason is , i did create program to update infotype using INSERT Sql command but i have doubt that i miss several step behin PA30 function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Rudy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 23:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736486#M1111369</guid>
      <dc:creator>former_member207153</dc:creator>
      <dc:date>2008-11-04T23:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT into direct table infotype Vs PA30 function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736487#M1111370</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;as you mentioned there might be some logic behind transaction and you miss it in your program. It is always better to use BAPI or BDC than direct write to the SAP table. Try to check this FM HR_ECM_INSERT_INFOTYPE. It looks like general FM for inserting info types (I've never used it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 00:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736487#M1111370</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-11-05T00:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT into direct table infotype Vs PA30 function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736488#M1111371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use direct table update for PA infotype or any standard table you may have following disadvantages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. On screen validations are all by passed.&lt;/P&gt;&lt;P&gt;2. Change log if needs to be updated will never happen.&lt;/P&gt;&lt;P&gt;3. Any other infotype updation after the currnt infotype (if configured) will never happen.&lt;/P&gt;&lt;P&gt;4. I am not even sure about the consistency of the database if somewhere the updation fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be many more which I am not able to recollec right now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 04:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736488#M1111371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T04:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT into direct table infotype Vs PA30 function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736489#M1111372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Below is the code which is upadting infotype 169 ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_p0169 TYPE STANDARD TABLE OF pa0169 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: wa_p0169  TYPE p0169.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fill your data in wa_p0169..(all the required filed are must )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   wa_p0169-INFTY = '0169'.(do not forget to fill in work area )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now pass this work area ...like below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM update_pa0169_infotype USING wa_p0169.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_pa0169_infotype  USING  p_wa_0169 TYPE p0169.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_action_ins  TYPE pspar-actio VALUE 'MOD',&lt;/P&gt;&lt;P&gt;           c_infty_0169  TYPE prelp-infty VALUE '0169'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  DATA: it_return  TYPE bapireturn1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lock the employee&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM emp_enqueue USING p_wa_0169-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Note: FM needed in bulK processing&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_PSBUFFER_INITIALIZE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the Infotype&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    infty                  = c_infty_0169&lt;/P&gt;&lt;P&gt;    number                 = p_wa_0169-pernr&lt;/P&gt;&lt;P&gt;    SUBTYPE                = '401K'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OBJECTID               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    LOCKINDICATOR          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    validityend            = p_wa_0169-endda&lt;/P&gt;&lt;P&gt;    validitybegin          = v_begda1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    RECORDNUMBER           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    record                 = p_wa_0169&lt;/P&gt;&lt;P&gt;    operation              = c_action_ins&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TCLAS                  = 'A'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    DIALOG_MODE            = '0'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NOCOMMIT               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    VIEW_IDENTIFIER        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    SECONDARY_RECORD       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    return                 = it_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if it_return-MESSAGE is not initial .&lt;/P&gt;&lt;P&gt;     delete it_file .&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; commit work .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dequeue this employee when done&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM emp_dequeue USING p_wa_0169-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM emp_enqueue USING p_pernr LIKE prelp-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Enqueue this employee to modify&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      number = p_pernr&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     RAISE enqueue_FAILED.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM emp_dequeue USING p_pernr LIKE prelp-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      number = p_pernr&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;     RAISE DEQUEUE_FAILED.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 05:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736489#M1111372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T05:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT into direct table infotype Vs PA30 function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736490#M1111373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;case closed, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 03:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-into-direct-table-infotype-vs-pa30-function/m-p/4736490#M1111373</guid>
      <dc:creator>former_member207153</dc:creator>
      <dc:date>2009-06-08T03:17:57Z</dc:date>
    </item>
  </channel>
</rss>

