<?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: Getting Error While inserting a record in table PDSNR through Tcode PA30 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059420#M1612568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Were you able to fix the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 13:53:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-30T13:53:41Z</dc:date>
    <item>
      <title>Getting Error While inserting a record in table PDSNR through Tcode PA30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059419#M1612567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im doing a transaction in  TCode PA30 by entering a pernr and infty as 14 and wage type. &lt;/P&gt;&lt;P&gt;My need is when im entering a particular wage type in PA30 with infotype 14 , for that particular wage type and infotype i need to assign a different cost centre. This requirement was doing now manually by changing the cost centre form EDIT - &amp;gt; Maintain Cost Assignment. &lt;/P&gt;&lt;P&gt;But my Client Needs to do it automatically. by comparing the wage type and infotype the cost centre needs to get automatically updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i use the Enhancement &lt;STRONG&gt;EXIT_SAPFP50M_002&lt;/STRONG&gt; * INCLUDE ZXPADU02.* and wrote coding like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE innnn-infty.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;To check whether the record belong to pa0014&lt;/P&gt;&lt;/LI&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;If so,check the wage type for the updation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI level="9" type="ul"&gt;&lt;P&gt;If so update the values of cost center assignments in the table assob and asshe&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;when '0014'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if innnn-subty eq '2211'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;Select the last updated sequence number in the table pdsnr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm eq 'UPD' or sy-ucomm eq 'INS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from pa0001 into wa_0001 where pernr eq INNNN-pernr and&lt;/P&gt;&lt;P&gt;                                               endda eq '99991231'.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_EPPRELE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_PREL            = 'E'&lt;/P&gt;&lt;P&gt;   MANDT                = SY-MANDT&lt;/P&gt;&lt;P&gt;   PERNR                = INNNN-pernr&lt;/P&gt;&lt;P&gt;   INFTY                = INNNN-INFTY&lt;/P&gt;&lt;P&gt;   SUBTY                = INNNN-SUBTY&lt;/P&gt;&lt;P&gt;&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;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : lv_pdsnr.&lt;/P&gt;&lt;P&gt;select MAX( pdsnr ) from pdsnr into lv_pdsnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_pdsnr = lv_pdsnr + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_assob-pdsnr = lv_pdsnr.&lt;/P&gt;&lt;P&gt;    ls_assob-pernr = INNNN-pernr.&lt;/P&gt;&lt;P&gt;    ls_assob-bukrs = wa_0001-bukrs. "'1001'.&lt;/P&gt;&lt;P&gt;    ls_assob-gsber = wa_0001-gsber. "'0001'.&lt;/P&gt;&lt;P&gt;    ls_assob-kokrs = wa_0001-kokrs. "'1000'.&lt;/P&gt;&lt;P&gt;    ls_assob-kostl = '1-1361'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_asshr-pdsnr = lv_pdsnr.&lt;/P&gt;&lt;P&gt;    ls_asshr-pernr = INNNN-pernr.&lt;/P&gt;&lt;P&gt;    ls_asshr-infty = innnn-infty.&lt;/P&gt;&lt;P&gt;    ls_asshr-subty = innnn-subty.&lt;/P&gt;&lt;P&gt;    ls_asshr-begda = sy-datum.&lt;/P&gt;&lt;P&gt;    ls_asshr-endda = '99991231'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ls_PDSNR-pdsnr = lv_pdsnr.&lt;/P&gt;&lt;P&gt;    ls_PDSNR-PDGRP = '5B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into pdsnr values ls_pdsnr.&lt;/P&gt;&lt;P&gt;insert into asshr values ls_asshr.&lt;/P&gt;&lt;P&gt;insert into assob VALUES ls_assob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'DEQUEUE_EPPRELE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_PREL       = 'E'&lt;/P&gt;&lt;P&gt;   MANDT           = SY-MANDT&lt;/P&gt;&lt;P&gt;   PERNR           = INNNN-pernr&lt;/P&gt;&lt;P&gt;   INFTY           = INNNN-INFTY&lt;/P&gt;&lt;P&gt;   SUBTY           = INNNN-SUBTY.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to update the three tables PDSNR, ASSOB,ASSHR.&lt;/P&gt;&lt;P&gt;Its getting Updated correctly, But when i goto EDIT - &amp;gt; Maintain Cost Assignment to do some changes and while saving the data i get the following Error Message :&lt;/P&gt;&lt;P&gt;You Cannot insert data in table : PDSNR.&lt;/P&gt;&lt;P&gt;Message no. P2715&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Anyone please suggest me how to solve this issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijayan.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059419#M1612567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-05T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error While inserting a record in table PDSNR through Tcode PA30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059420#M1612568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Were you able to fix the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 13:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059420#M1612568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-30T13:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error While inserting a record in table PDSNR through Tcode PA30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059421#M1612569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check number range PD_SEQ_NR (transaction SNRO), the error occurs in the database update when you try to insert existing numbers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059421#M1612569</guid>
      <dc:creator>r_peters</dc:creator>
      <dc:date>2015-05-26T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error While inserting a record in table PDSNR through Tcode PA30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059422#M1612570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-33611"&gt;http://scn.sap.com/docs/DOC-33611&lt;/A&gt;Hi Vijayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please search for the right point where to enhance in the transaction PA30. for each of your action there will be a BADI Triggered. check the relevant interface parameters of the BADI that helps you,&lt;/P&gt;&lt;P&gt;You can use it SXV_GET_CLIF_BY_NAME Function module to find the right place.&lt;/P&gt;&lt;P&gt;I would suggest to see the example in the document attached which might be helpful to you for finding it easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-while-inserting-a-record-in-table-pdsnr-through-tcode-pa30/m-p/8059422#M1612570</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2015-06-11T07:36:54Z</dc:date>
    </item>
  </channel>
</rss>

