<?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: Planned Indpendent Requirement BAPI question... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547123#M248697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following code in include 'ZX60EU01':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  l_matnr type pbpt-matnr,&lt;/P&gt;&lt;P&gt;  l_posnr type pbpt-posnr,&lt;/P&gt;&lt;P&gt;  l_werks type pbpt-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_matnr = fxpbpt-matnr.&lt;/P&gt;&lt;P&gt;l_posnr = fxpbpt-posnr.&lt;/P&gt;&lt;P&gt;l_werks = fxpbpt-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fxpbpt-knttp = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify fxpbpt&lt;/P&gt;&lt;P&gt;       transporting knttp&lt;/P&gt;&lt;P&gt;       where posnr = l_posnr&lt;/P&gt;&lt;P&gt;       and   matnr = l_matnr&lt;/P&gt;&lt;P&gt;       and   werks = l_werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2006 15:45:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-07T15:45:11Z</dc:date>
    <item>
      <title>Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547117#M248691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have created a program that will load PIRs from a file using the PIR BAPI. When I execute MS04 I found that the loaded PIRs are not associated with a program. So, I went back to MD61 and discovered that on the second screen of the transaction you can click the header link and enter a 'Q' under account assignment. When you click enter a subscreen opens that allows you to enter a WBS that represents a program. How do I accomplish the same via the BAPI. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 12:34:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547117#M248691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547118#M248692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I doubt you would be able to pass the account assignment or the WBS as the BAPI parameters for PIR BAPI.&lt;/P&gt;&lt;P&gt;There is a function-exit which is inside this BAPI, which you can specifically use to populate the account assignment and WBS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the BAPI 'BAPI_REQUIREMENTS_CREATE', there is a function module 'REQUIREMENTS_MAINTAIN' at line no. 96.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this function module 'REQUIREMENTS_MAINTAIN', there is a subroutine call 'PERFORM USER_EXIT_001 TABLES EPBPT EPBET' at line no. 75 which contains the customer function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside this customer function 'CUSTOMER-FUNCTION '001'' you could populate the 'PBPT-KNTTP' for account assignment and 'PBPT-PSPEL' for the WBS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sathish Poomelil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2006 14:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547118#M248692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-02T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547119#M248693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sathish,&lt;/P&gt;&lt;P&gt;Great tip! I've thoroughly investigated the code as per your suggestion. I notice that any value I set in the customer function 001 appears to be lost as soon as control is returned to the REQUIREMENTS_MAINTAIN function module. For instance...if I do a simple assignment of a value to PBPT-KNTTP the field is reset to NULL. How do I overcome this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 12:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547119#M248693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T12:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547120#M248694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After assigning the value to KNTTP, did you modify the internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**-assign value &lt;/P&gt;&lt;P&gt;fdpbpt-knttp = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**-Modify internal table&lt;/P&gt;&lt;P&gt;modify fdpbpt transporting knttp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 14:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547120#M248694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547121#M248695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;I've also discovered that I have to add the KNTTP field to BAPISITEMR and then pass it as an optional parameter in the BAPI. That is the only way the field is recognized and the code will execute.&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;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 15:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547121#M248695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T15:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547122#M248696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt; The modify causes a dump...stating there is no cursor available to perform the create, change or delete.&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;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 15:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547122#M248696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547123#M248697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following code in include 'ZX60EU01':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  l_matnr type pbpt-matnr,&lt;/P&gt;&lt;P&gt;  l_posnr type pbpt-posnr,&lt;/P&gt;&lt;P&gt;  l_werks type pbpt-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_matnr = fxpbpt-matnr.&lt;/P&gt;&lt;P&gt;l_posnr = fxpbpt-posnr.&lt;/P&gt;&lt;P&gt;l_werks = fxpbpt-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fxpbpt-knttp = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify fxpbpt&lt;/P&gt;&lt;P&gt;       transporting knttp&lt;/P&gt;&lt;P&gt;       where posnr = l_posnr&lt;/P&gt;&lt;P&gt;       and   matnr = l_matnr&lt;/P&gt;&lt;P&gt;       and   werks = l_werks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2006 15:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547123#M248697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-07T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Planned Indpendent Requirement BAPI question...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547124#M248698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish,&lt;/P&gt;&lt;P&gt;mgmnt will not allow me to do the modify in the user exit. i decided to create a z_bapi. i've added the necessary fields to the struct and changed the code in the bapi to include my fields in the create / change of the modified bapi. This will mean extra work to review bapi on SAP version upgrade but it appears to be a graceful solution to my problem. Thanks much for your help.&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;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 18:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/planned-indpendent-requirement-bapi-question/m-p/1547124#M248698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T18:34:02Z</dc:date>
    </item>
  </channel>
</rss>

