<?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: Create Purchase Requisition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889249#M1479800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yassine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coud not add LSTAR in structure BAPI_TE_REQUISITION_ACCOUNT in an append which is in table EBKN, i have the error message: you cannot have 2 fields LSTAR, because LSTAR exists in table EBKN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By creating field LSTAR in another append in structure BAPI_TE_REQUISITION_ACCOUNT, there is no mapping between LSTAR of BAPI_TE_REQUISITION_ACCOUNT and EBKN-LSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 May 2010 10:04:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-07T10:04:30Z</dc:date>
    <item>
      <title>Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889246#M1479797</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;I'd like to Create a Purchase Requisition by bapi: BAPI_REQUISITION_CREATE.&lt;/P&gt;&lt;P&gt;In this Purchase Requisition, i'd like to have Activity Type which is in EBKN: EBKN-LSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the bapi, i don't find a field corresponding to LSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 14:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889246#M1479797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889247#M1479798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mehdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to fill in the table extensionin in the entry of your bapi, with the data that you did not found:&lt;/P&gt;&lt;P&gt;*"      EXTENSIONIN STRUCTURE  BAPIPAREX OPTIONAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to put 'BAPI_TE_REQUISITION_ACCOUNT' into extensionin-structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the structure BAPI_TE_REQUISITION_ACCOUNT (SE11) you have to add LSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can put a break point in this Include:  LMEWQF01, then you will see what system will do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then with this instruction:&lt;/P&gt;&lt;P&gt;            MOVE-CORRESPONDING wa_bapi_te_account TO cht_ebkn."#EC ENHOK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System will transfer data of extensionin into cht_ebkn-lstar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that it was helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yassine NEJMY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 15:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889247#M1479798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T15:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889248#M1479799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mehdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_REQUISITION_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have this user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT_SAPLMEWQ_001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In thgis you can populate the missing field values under extension table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;extensionin            = extensionin&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code for extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA LT_EXTENSION TYPE TABLE OF BAPIPAREX.
DATA WA_EXTENSION LIKE LINE OF LT_EXTENSION.

  LOOP AT requisition_items INTO WA_ITEM.
    LV_COUNT = LV_COUNT + 1.
    LV_CHAR1 = LV_COUNT.
    CONCATENATE '000' LV_CHAR1 '0' INTO LV_ITEMNUMBER.
* Extensionstruktur füllen
    WA_EXTENSION-STRUCTURE = 'BAPI_TE_REQUISITION_ITEM'.
* Positionnumber (5)=00010, Fieldcontent of Zzlfdatx = X, Fieldcontent of ZZlfdat = lfdat
    WA_EXTENSION-VALUEPART1 = WA_SC_ITEM-DELIV_DATE.
    CONCATENATE LV_ITEMNUMBER  WA_SC_ITEM-DELIV_DATE INTO WA_EXTENSION-VALUEPART1 RESPECTING BLANKS.
    APPEND WA_EXTENSION TO LT_EXTENSION.
    CLEAR WA_EXTENSION.
    CS_RQ_DOCUMENT-IT_EXTENSIONIN = LT_EXTENSION.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if there are any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 16:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889248#M1479799</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2010-05-06T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889249#M1479800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yassine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coud not add LSTAR in structure BAPI_TE_REQUISITION_ACCOUNT in an append which is in table EBKN, i have the error message: you cannot have 2 fields LSTAR, because LSTAR exists in table EBKN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By creating field LSTAR in another append in structure BAPI_TE_REQUISITION_ACCOUNT, there is no mapping between LSTAR of BAPI_TE_REQUISITION_ACCOUNT and EBKN-LSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 10:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889249#M1479800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889250#M1479801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Using BAPI_PR_CREATE ( Enjoy Transaction...!)&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 10:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889250#M1479801</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-05-07T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Purchase Requisition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889251#M1479802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot use BAPI_PR_CREATE because i'm working on the Idoc PREQCR which uses BAPI_REQUIREMENT_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 10:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-purchase-requisition/m-p/6889251#M1479802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T10:37:18Z</dc:date>
    </item>
  </channel>
</rss>

