<?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: BAPI or Function for ME41? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236454#M140947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Said,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies give you wrong BAPI.&lt;/P&gt;&lt;P&gt;Please try this FM &amp;lt;b&amp;gt;ME_CREATE_REQUISITION_EXT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2006 20:10:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-08T20:10:11Z</dc:date>
    <item>
      <title>BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236449#M140942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any BAPI or Function Module exists to create VENDOR &lt;/P&gt;&lt;P&gt;QUOTATION(ME41). I need to write an Inquiry into the SAP-System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Said&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 19:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236449#M140942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236450#M140943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Said,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this BAPI &amp;lt;b&amp;gt;BAPI_VENDOR_CREATE&amp;lt;/b&amp;gt; .&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 19:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236450#M140943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T19:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236451#M140944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. But i need a Bapi or Function to insert an Quotation, not a vendor! It is Transactioncode ME41 (Vendorquotation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 19:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236451#M140944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236452#M140945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use function module BAPI_REQUISITION_CREATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 19:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236452#M140945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T19:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236453#M140946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Check the below mentioned BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_QUOTATION_CREATEFROMDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 20:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236453#M140946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T20:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236454#M140947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Said,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies give you wrong BAPI.&lt;/P&gt;&lt;P&gt;Please try this FM &amp;lt;b&amp;gt;ME_CREATE_REQUISITION_EXT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 20:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236454#M140947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T20:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236455#M140948</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;&lt;/P&gt;&lt;P&gt;and thank you for your Messages! When I use the BAPI BAPI_REQUISITION_CREATE, where can i change the DOC_Type, because the DOC_TYPE for Inquiry is "AN". But then i get a Message that "AN" is not supported! &lt;/P&gt;&lt;P&gt;The same Problem for the BAPI BAPI_QUOTATION_CREATEFROMDATA. There i can only use the DOC_TYPE for the QUOTATION in the Sales and not for the Purchase!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last BAPI ME_CREATE_REQUISITION_EXT is not remotable? Is it possible to use it nevertheless?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Said Acharkaoui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 20:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236455#M140948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T20:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236456#M140949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching sample code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass DOC_TYPE parameter using REQUISITION_ITEMS-DOC_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set up requisition Item&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR ATB_REQ_ITEM.&lt;/P&gt;&lt;P&gt;  REFRESH ATB_REQ_ITEM.&lt;/P&gt;&lt;P&gt;  LOOP AT BAN.&lt;/P&gt;&lt;P&gt;    IF BAN-MAT_GRP = '020004'.&lt;/P&gt;&lt;P&gt;      BAN-GR_IND = ' '.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      BAN-GR_IND = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    BAN-IR_IND = 'X'.&lt;/P&gt;&lt;P&gt;    BAN-MATERIAL = BAN-PUR_MAT.&lt;/P&gt;&lt;P&gt;    BAN-ASSIGNED = 'X'.&lt;/P&gt;&lt;P&gt;    IF BAN-DOC_TYPE = 'YC'.  "For confirmation orders, adopt req price&lt;/P&gt;&lt;P&gt;      BAN-PO_PRICE = '2'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING BAN TO ATB_REQ_ITEM.&lt;/P&gt;&lt;P&gt;    APPEND ATB_REQ_ITEM.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set up requisition item accounting information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR ATB_REQ_ITEM_ACCT.&lt;/P&gt;&lt;P&gt;  REFRESH ATB_REQ_ITEM_ACCT.&lt;/P&gt;&lt;P&gt;  LOOP AT BSC.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING BSC TO ATB_REQ_ITEM_ACCT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;uncomment out the following code if you want to force an error.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF sy-tabix = 2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     atb_req_item_acct-g_l_acct = 'xxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    APPEND ATB_REQ_ITEM_ACCT.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;set up requisition item text information&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR ATB_REQ_ITEM_TEXT.&lt;/P&gt;&lt;P&gt;  REFRESH ATB_REQ_ITEM_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT BANTX.&lt;/P&gt;&lt;P&gt;    IF NOT BANTX-TEXT_LINE IS INITIAL.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING BANTX TO ATB_REQ_ITEM_TEXT.&lt;/P&gt;&lt;P&gt;      APPEND ATB_REQ_ITEM_TEXT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ATB_RETURN.&lt;/P&gt;&lt;P&gt;  REFRESH ATB_RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Aufruf BAPI zum Erzeugen der Bestellanforderung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_REQUISITION_CREATE'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            NUMBER                         = H_BANFN&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            REQUISITION_ITEMS              = ATB_REQ_ITEM&lt;/P&gt;&lt;P&gt;            REQUISITION_ACCOUNT_ASSIGNMENT = ATB_REQ_ITEM_ACCT&lt;/P&gt;&lt;P&gt;            REQUISITION_ITEM_TEXT          = ATB_REQ_ITEM_TEXT&lt;/P&gt;&lt;P&gt;            RETURN                         = ATB_RETURN&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS                         = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 20:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236456#M140949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T20:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236457#M140950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the code, but how can i use this code? I am using Java with JCo. I am not a ABAP-developper! How can i use this code in my Java-Application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i do not understand what happens with the DOC-Type!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood, i had to use the Requisition and change the DOC_TYPE, or what are the relations between these Points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Said&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 20:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236457#M140950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T20:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236458#M140951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must be passing data to REQUISITION_ITEMS in your function call.&lt;/P&gt;&lt;P&gt;This has one of the fields DOC_TYPE.&lt;/P&gt;&lt;P&gt;I am not sure how are u passing data to this RFC from Java. But i can just suggest that from Java the Document Type variable needs to be assigned to this field.&lt;/P&gt;&lt;P&gt;If you specify clearly how are you passing data to this function, it will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2006 21:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236458#M140951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-08T21:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236459#M140952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EME013Document type YC not allowed with doc.  category B (Please check input)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know about that?&lt;/P&gt;&lt;P&gt;f change 'YC' by 'NB' it works correctly but it generates a purchase requisition when I need to create an RFQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, someone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for my english, Im fron Arg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thenks&lt;/P&gt;&lt;P&gt;Adr!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 14:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236459#M140952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI or Function for ME41?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236460#M140953</link>
      <description>&lt;P&gt;You can use FM :BS01_MM_QUOTATION_CREATE&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt; METHOD CREATE_QUOTATION.&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*Data Definition&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt; DATA:&lt;BR /&gt; L_QUOTATION TYPE BAPIEKKOC-PO_NUMBER,&lt;BR /&gt; L_CNT_I TYPE EBELP.&lt;BR /&gt;&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*Constants Definition&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt; CONSTANTS:&lt;BR /&gt; L_C_INDXKEY TYPE INDX-SRTFD VALUE 'ARIBA_RFQ',&lt;BR /&gt; L_C_ZA TYPE RELID VALUE 'ZA'.&lt;BR /&gt;&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt;*Internal Table &amp;amp; Workarea Definition&lt;BR /&gt;*----------------------------------------------------------------------*&lt;BR /&gt; DATA:&lt;BR /&gt; IT_ITEMS TYPE STANDARD TABLE OF BS01MMITEM,&lt;BR /&gt; IT_SCHEDULES TYPE STANDARD TABLE OF BS01MMSCHEDULE,&lt;BR /&gt; IT_EXTN TYPE STANDARD TABLE OF BAPIPAREX,&lt;BR /&gt; L_WA_EXTN TYPE BAPIPAREX,&lt;BR /&gt; IT_RETURN TYPE BAPIRET2_T,&lt;BR /&gt; IT_ERRORS TYPE EHFNDT_SBJ_SRC_T100_KEYS.&lt;BR /&gt;&lt;BR /&gt; LOOP AT C_INPUT_TAB ASSIGNING FIELD-SYMBOL(&amp;lt;FS_INPUT_TAB&amp;gt;).&lt;BR /&gt;*--Fill Log Header--*&lt;BR /&gt; APPEND VALUE #( MSGID = C_MSGID&lt;BR /&gt; MSGNO = '160'&lt;BR /&gt; ATTR1 = &amp;lt;FS_INPUT_TAB&amp;gt;-SUPPLIERCODE&lt;BR /&gt; ATTR2 = &amp;lt;FS_INPUT_TAB&amp;gt;-ITEMCODE ) TO G_ERRORS.&lt;BR /&gt;&lt;BR /&gt;*--Validate any existing RFQ exists with same Item Code &amp;amp; Supplier--*&lt;BR /&gt; IF LINE_EXISTS( G_QUOTATION[ SUPPLIER = &amp;lt;FS_INPUT_TAB&amp;gt;-SUPPLIERCODE&lt;BR /&gt; ITEM = &amp;lt;FS_INPUT_TAB&amp;gt;-ITEMCODE ] ).&lt;BR /&gt; IF &amp;lt;FS_INPUT_TAB&amp;gt;-ETP &amp;gt; SY-DATUM.&lt;BR /&gt; APPEND VALUE #( MSGID = C_MSGID&lt;BR /&gt; MSGNO = '000'&lt;BR /&gt; ATTR1 = TEXT-001&lt;BR /&gt; ATTR2 = TEXT-002&lt;BR /&gt; ATTR3 = TEXT-003 ) TO G_ERRORS.&lt;BR /&gt; CONTINUE.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt;*--Fill Header--*&lt;BR /&gt; L_CNT_I = L_CNT_I + 10.&lt;BR /&gt; DATA(L_WA_HEADER) = VALUE BS01MMHEAD(&lt;BR /&gt; CO_CODE = C_1000&lt;BR /&gt; DOC_CAT = C_A&lt;BR /&gt; DOC_TYPE = 'ZH20'&lt;BR /&gt; DOC_DATE = &amp;lt;FS_INPUT_TAB&amp;gt;-STARTMONTH&lt;BR /&gt; CREATED_ON = &amp;lt;FS_INPUT_TAB&amp;gt;-STARTMONTH&lt;BR /&gt; ITEM_INTVL = C_0010&lt;BR /&gt; VENDOR = &amp;lt;FS_INPUT_TAB&amp;gt;-SUPPLIERCODE&lt;BR /&gt; PURCH_ORG = C_1000&lt;BR /&gt; PUR_GROUP = C_A01&lt;BR /&gt; QUOT_DEAD = &amp;lt;FS_INPUT_TAB&amp;gt;-ETP&lt;BR /&gt; MAST_COND = ABAP_TRUE&lt;BR /&gt; LANGUAGE = VALUE #( G_SUPPLIER[ SUPPLIER = &amp;lt;FS_INPUT_TAB&amp;gt;-SUPPLIERCODE ]-SUPPLIER&lt;BR /&gt; DEFAULT SPACE ) ).&lt;BR /&gt;*--Fill Items--*&lt;BR /&gt; DATA(L_WA_ITEMS) = VALUE BS01MMITEM(&lt;BR /&gt; DOC_ITEM = L_CNT_I&lt;BR /&gt; SHORT_TEXT = &amp;lt;FS_INPUT_TAB&amp;gt;-ITEMCODE&lt;BR /&gt; CO_CODE = C_1000&lt;BR /&gt; PLANT = C_1000&lt;BR /&gt; MAT_GRP = '01'&lt;BR /&gt; TARGET_QTY = C_9999&lt;BR /&gt; QUANTITY = C_9999&lt;BR /&gt; UNIT = C_TAG&lt;BR /&gt; ACCTASSCAT = 'U' ) .&lt;BR /&gt; APPEND L_WA_ITEMS TO IT_ITEMS.&lt;BR /&gt;&lt;BR /&gt;*--Fill Schedules Lines--*&lt;BR /&gt; DATA(L_WA_SCHEDULES) = VALUE BS01MMSCHEDULE(&lt;BR /&gt; DOC_ITEM = L_CNT_I&lt;BR /&gt; SERIAL_NO = ''&lt;BR /&gt; DEL_DATCAT = '1'&lt;BR /&gt; DELIV_DATE = &amp;lt;FS_INPUT_TAB&amp;gt;-ETP&lt;BR /&gt; QUANTITY = C_9999&lt;BR /&gt; CREATE_IND = C_R&lt;BR /&gt; DEL_DATCAT_EXT = C_D ).&lt;BR /&gt; APPEND L_WA_SCHEDULES TO IT_SCHEDULES.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*--Call FM to create RFQ--*&lt;BR /&gt; CALL FUNCTION 'BS01_MM_QUOTATION_CREATE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; QUOTATION_HEADER = L_WA_HEADER&lt;BR /&gt; SKIP_ITEMS_WITH_ERROR = ABAP_TRUE&lt;BR /&gt; IMPORTING&lt;BR /&gt; QUOTATION = L_QUOTATION&lt;BR /&gt; TABLES&lt;BR /&gt; QUOTATION_ITEMS = IT_ITEMS&lt;BR /&gt; QUOTATION_ITEM_SCHEDULES = IT_SCHEDULES&lt;BR /&gt; RETURN = IT_RETURN&lt;BR /&gt; EXTENSIONIN = IT_EXTN.&lt;BR /&gt; IF L_QUOTATION IS NOT INITIAL.&lt;BR /&gt;*--Fill Success Message--*&lt;BR /&gt; APPEND VALUE #( MSGID = C_MSGID&lt;BR /&gt; MSGNO = '161'&lt;BR /&gt; ATTR1 = L_QUOTATION ) TO G_ERRORS.&lt;BR /&gt; ELSE.&lt;BR /&gt;*--Fill Error Message--*&lt;BR /&gt; IT_ERRORS = VALUE #( FOR L_WA_RETURN IN IT_RETURN&lt;BR /&gt; ( MSGID = L_WA_RETURN-ID&lt;BR /&gt; MSGNO = L_WA_RETURN-NUMBER&lt;BR /&gt; ATTR1 = L_WA_RETURN-MESSAGE_V1&lt;BR /&gt; ATTR2 = L_WA_RETURN-MESSAGE_V2&lt;BR /&gt; ATTR3 = L_WA_RETURN-MESSAGE_V3&lt;BR /&gt; ATTR4 = L_WA_RETURN-MESSAGE_V4 ) ).&lt;BR /&gt; APPEND LINES OF IT_ERRORS TO G_ERRORS.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt; CLEAR:&lt;BR /&gt; L_WA_HEADER,L_QUOTATION,IT_ITEMS,IT_SCHEDULES,IT_ERRORS,IT_RETURN,IT_EXTN.&lt;BR /&gt;&lt;BR /&gt; ENDLOOP.&lt;BR /&gt; ENDMETHOD.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 11:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-or-function-for-me41/m-p/1236460#M140953</guid>
      <dc:creator>ayyappan_venugopal2</dc:creator>
      <dc:date>2020-02-11T11:59:00Z</dc:date>
    </item>
  </channel>
</rss>

