<?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  BAPI_CONTRACT_CREATE  return Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125553#M986392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xiaoguang Yang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it is late to solve your problem, I answer your question for future queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the value you are passing to your table field gt_itemx-item_no. You are entering 'X' value, but the fact is this field requires the position number you are managing at that point. So, you should inform gt_itemx-item_no = '00010' or the position number you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem and it was really difficult for me to solve it, because the error messages make you think the problem much different than the real one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be useful!.&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;Juan Carlos Lancha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 11:53:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T11:53:27Z</dc:date>
    <item>
      <title>Bapi  BAPI_CONTRACT_CREATE  return Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125550#M986389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i create mm contract use bapi  BAPI_CONTRACT_CREATE,i get return error like this:&lt;/P&gt;&lt;P&gt;1	E	BAPI	001	No instance of object type PurchasingContract has been created. External reference: # 1&lt;/P&gt;&lt;P&gt;2	E	06	026	Please enter material number or account assignment category&lt;/P&gt;&lt;P&gt;3	E	06	079	Unit of measure  not defined for language EN&lt;/P&gt;&lt;P&gt;4	E	ME	083	Enter Order Unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But,i confirm the Unit already defined for language EN.&lt;/P&gt;&lt;P&gt;So i can't understand the error.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------" /&gt;&lt;P&gt;report  ztest_yangxg16.&lt;/P&gt;&lt;P&gt;data: gs_header	type	bapimeoutheader,&lt;/P&gt;&lt;P&gt;      gs_headerx	type	bapimeoutheaderx,&lt;/P&gt;&lt;P&gt;      gs_purchasingdocument	type	bapimeoutheader-number.&lt;/P&gt;&lt;P&gt;data: gt_return	                  like	bapiret2                  occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item	                  like	bapimeoutitem             occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_itemx	                  like	bapimeoutitemx            occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_account	                  like	bapimeoutaccount          occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_accountprofitsegment	      like	bapimeoutprofitsegment    occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_accountx	                  like	bapimeoutaccountx         occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_delivery_address	      like	bapimeoutaddrdelivery     occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_cond_validity	      like	bapimeoutvalidity         occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_cond_validityx	      like	bapimeoutvalidityx        occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_condition	            like	bapimeoutcondition        occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_conditionx	      like	bapimeoutconditionx       occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_cond_scale_value	like	bapimeoutitemscaleval     occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_cond_scale_quan	      like	bapimeoutitemscalequan    occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_item_text	            like	bapimeoutitemtext         occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_header_text	            like	bapimeouttext             occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_cond_validity	      like	bapimeoutheadvalidity     occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_cond_validityx	      like	bapimeoutheadvalidityx    occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_condition	            like	bapimeoutheadercond       occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_conditionx	      like	bapimeoutheadercondx      occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_cond_scale_val	      like	bapimeoutscalevalue       occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_head_cond_scale_quan	      like	bapimeoutscale            occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_partner	                  like	bapimeoutpartner          occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_partnerx	                  like	bapimeoutpartnerx         occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_extensionin	            like	bapiparex                 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      gt_extensionout           	like	bapiparex                 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*header&lt;/P&gt;&lt;P&gt;gs_header-comp_code = '1000'.&lt;/P&gt;&lt;P&gt;gs_header-doc_type = 'ZMK'.&lt;/P&gt;&lt;P&gt;gs_header-vendor = '0000002100'.&lt;/P&gt;&lt;P&gt;gs_header-pmnttrms = '1026'.&lt;/P&gt;&lt;P&gt;gs_header-purch_org = '1000'.&lt;/P&gt;&lt;P&gt;gs_header-pur_group = '177'.&lt;/P&gt;&lt;P&gt;gs_header-currency = 'USD'.&lt;/P&gt;&lt;P&gt;gs_header-vper_start = '20080701'.&lt;/P&gt;&lt;P&gt;gs_header-vper_end = '20080711'.&lt;/P&gt;&lt;P&gt;gs_header-incoterms1 = 'FOB'.&lt;/P&gt;&lt;P&gt;gs_header-incoterms2 = 'dalian'.&lt;/P&gt;&lt;P&gt;gs_header-dscnt1_to = '35'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_headerx-comp_code = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-doc_type = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-vendor = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-pmnttrms = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-purch_org = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-pur_group = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-currency = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-vper_start = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-vper_end = 'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-incoterms1 =  'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-incoterms2 =  'X'.&lt;/P&gt;&lt;P&gt;gs_headerx-dscnt1_to = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ITEM&lt;/P&gt;&lt;P&gt;gt_item-item_no = 1.&lt;/P&gt;&lt;P&gt;gt_item-material = 'WANGLTEST'.&lt;/P&gt;&lt;P&gt;gt_item-plant = '1001'.&lt;/P&gt;&lt;P&gt;*gt_item-STGE_LOC = ''.&lt;/P&gt;&lt;P&gt;gt_item-matl_group = '111020201'.&lt;/P&gt;&lt;P&gt;gt_item-target_qty = 3.&lt;/P&gt;&lt;P&gt;gt_item-po_unit = 'PC'.&lt;/P&gt;&lt;P&gt;gt_item-po_unit_iso = 'PC'.&lt;/P&gt;&lt;P&gt;gt_item-orderpr_un = 'PC'.&lt;/P&gt;&lt;P&gt;gt_item-orderpr_un_iso = 'PC'.&lt;/P&gt;&lt;P&gt;gt_item-conf_ctrl = '0001'.&lt;/P&gt;&lt;P&gt;gt_item-net_price = '100'.&lt;/P&gt;&lt;P&gt;append gt_item.&lt;/P&gt;&lt;P&gt;clear gt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_itemx-item_no = 'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-material = 'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-plant =  'X'.&lt;/P&gt;&lt;P&gt;*gt_itemx-STGE_LOC =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-matl_group =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-target_qty =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-po_unit =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-po_unit_iso =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-orderpr_un_iso =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-orderpr_un = 'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-conf_ctrl =  'X'.&lt;/P&gt;&lt;P&gt;gt_itemx-net_price = 'X'.&lt;/P&gt;&lt;P&gt;append gt_itemx.&lt;/P&gt;&lt;P&gt;clear gt_itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_CONTRACT_CREATE'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    header                      = gs_header&lt;/P&gt;&lt;P&gt;   headerx                     = gs_headerx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VENDOR_ADDRESS              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TECHNICAL_DATA              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt;   purchasingdocument          = gs_purchasingdocument&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXP_HEADER                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;   return                       = gt_return&lt;/P&gt;&lt;P&gt;    item                        = gt_item&lt;/P&gt;&lt;P&gt;    itemx                       = gt_itemx&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gs_purchasingdocument is initial.&lt;/P&gt;&lt;P&gt;  call function 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;  write: / gs_purchasingdocument.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  call function 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;  write: / '  fail'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 14:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125550#M986389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi  BAPI_CONTRACT_CREATE  return Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125551#M986390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Yang,&lt;/P&gt;&lt;P&gt;check in MM03, if this material u r using exists?&lt;/P&gt;&lt;P&gt;also, chk variuos views for this material for all data being complete?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign points, if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 15:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125551#M986390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T15:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi  BAPI_CONTRACT_CREATE  return Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125552#M986391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,i checked it,it seems ok!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 18:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125552#M986391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T18:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi  BAPI_CONTRACT_CREATE  return Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125553#M986392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Xiaoguang Yang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it is late to solve your problem, I answer your question for future queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the value you are passing to your table field gt_itemx-item_no. You are entering 'X' value, but the fact is this field requires the position number you are managing at that point. So, you should inform gt_itemx-item_no = '00010' or the position number you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same problem and it was really difficult for me to solve it, because the error messages make you think the problem much different than the real one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would be useful!.&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;Juan Carlos Lancha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 11:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125553#M986392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T11:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi  BAPI_CONTRACT_CREATE  return Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125554#M986393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go into the table T006 and check the entry over there. If the entry exists then check the corresponding ISO code and provide in your program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 16:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-contract-create-return-error/m-p/4125554#M986393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T16:11:26Z</dc:date>
    </item>
  </channel>
</rss>

