<?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: PR creation through upload. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-creation-through-upload/m-p/5834241#M1316992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you do a recording for your BDC; try to create multiple line items in a PR.&lt;/P&gt;&lt;P&gt;You will understand then how to handle multiple line items.&lt;/P&gt;&lt;P&gt;You will have to make use of step loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be fields like EBAN-MATNR(01), EBAN-MATNR(02) in your recording.&lt;/P&gt;&lt;P&gt;So the (01) (02) is for the step-loop. This is because of the table control used to add line items.&lt;/P&gt;&lt;P&gt;So incase you want to pass multiple items then your FNAM field in BDCDATA should contain the corresponding field with the step-loop value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of BDC why not go for a BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI 'BAPI_REQUISITION_CREATE' is used to create the purchase requistion. It would be more easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also handling ME51N via BDC will be difficult because of the OOPs concepts used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jun 2009 10:40:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-20T10:40:12Z</dc:date>
    <item>
      <title>PR creation through upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-creation-through-upload/m-p/5834240#M1316991</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 have created a batch upload program to create PR in me51.&lt;/P&gt;&lt;P&gt;the following problems i am facing.&lt;/P&gt;&lt;P&gt;1&amp;gt; for each line item my program is creating a new pr. i am not able to do any looping there to run this. i guess my bdc is wrong or what.?? help.(i am running counter also)&lt;/P&gt;&lt;P&gt;2&amp;gt; I am not able to catch , i mean to display the pr no. which is created there.&lt;/P&gt;&lt;P&gt;3&amp;gt; other thing i want to know that i want to call tcode me51n after me51 to include certain customized portion. can i do that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;any sample code or tips will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 10:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-creation-through-upload/m-p/5834240#M1316991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-20T10:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: PR creation through upload.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pr-creation-through-upload/m-p/5834241#M1316992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you do a recording for your BDC; try to create multiple line items in a PR.&lt;/P&gt;&lt;P&gt;You will understand then how to handle multiple line items.&lt;/P&gt;&lt;P&gt;You will have to make use of step loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be fields like EBAN-MATNR(01), EBAN-MATNR(02) in your recording.&lt;/P&gt;&lt;P&gt;So the (01) (02) is for the step-loop. This is because of the table control used to add line items.&lt;/P&gt;&lt;P&gt;So incase you want to pass multiple items then your FNAM field in BDCDATA should contain the corresponding field with the step-loop value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of BDC why not go for a BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI 'BAPI_REQUISITION_CREATE' is used to create the purchase requistion. It would be more easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also handling ME51N via BDC will be difficult because of the OOPs concepts used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2009 10:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pr-creation-through-upload/m-p/5834241#M1316992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-20T10:40:12Z</dc:date>
    </item>
  </channel>
</rss>

