<?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 Create Cutomer with BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820594#M350793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a customer with an external customer number (phone number). I have tried using BAPI_CUSTOMER_CREATEFROMDATA1 and got an exception of CX_SY_DYN_CALL_ILLEGAL_TYPE type. the value of cxIllegalDynCallType-&amp;gt;parameter is 'RETURN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The company needs to distinguish its customers by their phone numbers. The customer calling the company will be recognized from its phone number by the telephony application and the customer will be asked to enter his order using the phone keypad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is:&lt;/P&gt;&lt;P&gt;data cxIllegalDynCallType type ref to CX_SY_DYN_CALL_ILLEGAL_TYPE.&lt;/P&gt;&lt;P&gt;data cxSyDynCallParamMissing type ref to CX_SY_DYN_CALL_PARAM_MISSING.&lt;/P&gt;&lt;P&gt;data cxRoot type ref to CX_ROOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;personalData-firstname   = 'Tolga'.&lt;/P&gt;&lt;P&gt;personalData-lastname    = 'Ak&amp;amp;#305;nc&amp;amp;#305;'.&lt;/P&gt;&lt;P&gt;personalData-city        = '&amp;amp;#304;zmir'.&lt;/P&gt;&lt;P&gt;personalData-po_box      = '35120'.&lt;/P&gt;&lt;P&gt;personalData-street      = 'Atatürk Bulvar&amp;amp;#305;'.&lt;/P&gt;&lt;P&gt;personalData-house_no    = '13'.&lt;/P&gt;&lt;P&gt;personalData-tel1_numbr  = '3881756'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;optionalPersonalData-delyg_plnt = '5001'.&lt;/P&gt;&lt;P&gt;optionalPersonalData-ship_cond  = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copyReference-salesorg   = '5000'.&lt;/P&gt;&lt;P&gt;copyReference-distr_chan = '01'.&lt;/P&gt;&lt;P&gt;copyReference-division   = '02'.&lt;/P&gt;&lt;P&gt;copyReference-ref_custmr = '2323309823'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PI_PERSONALDATA              = personalData&lt;/P&gt;&lt;P&gt;      PI_OPT_PERSONALDATA      = optionalPersonalData&lt;/P&gt;&lt;P&gt;     PI_COPYREFERENCE            = copyReference&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;     CUSTOMERNO                       = customerNo&lt;/P&gt;&lt;P&gt;     RETURN                                 = bapiResult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;catch CX_SY_DYN_CALL_ILLEGAL_TYPE into cxIllegalDynCallType.&lt;/P&gt;&lt;P&gt;  write cxIllegalDynCallType-&amp;gt;parameter.&lt;/P&gt;&lt;P&gt;catch CX_SY_DYN_CALL_PARAM_MISSING into cxSyDynCallParamMissing.&lt;/P&gt;&lt;P&gt;  write cxSyDynCallParamMissing-&amp;gt;parameter.&lt;/P&gt;&lt;P&gt;catch CX_ROOT into cxRoot.&lt;/P&gt;&lt;P&gt;  write cxRoot-&amp;gt;cx_root.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2007 10:09:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-02T10:09:44Z</dc:date>
    <item>
      <title>Create Cutomer with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820594#M350793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a customer with an external customer number (phone number). I have tried using BAPI_CUSTOMER_CREATEFROMDATA1 and got an exception of CX_SY_DYN_CALL_ILLEGAL_TYPE type. the value of cxIllegalDynCallType-&amp;gt;parameter is 'RETURN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The company needs to distinguish its customers by their phone numbers. The customer calling the company will be recognized from its phone number by the telephony application and the customer will be asked to enter his order using the phone keypad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is:&lt;/P&gt;&lt;P&gt;data cxIllegalDynCallType type ref to CX_SY_DYN_CALL_ILLEGAL_TYPE.&lt;/P&gt;&lt;P&gt;data cxSyDynCallParamMissing type ref to CX_SY_DYN_CALL_PARAM_MISSING.&lt;/P&gt;&lt;P&gt;data cxRoot type ref to CX_ROOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;personalData-firstname   = 'Tolga'.&lt;/P&gt;&lt;P&gt;personalData-lastname    = 'Ak&amp;amp;#305;nc&amp;amp;#305;'.&lt;/P&gt;&lt;P&gt;personalData-city        = '&amp;amp;#304;zmir'.&lt;/P&gt;&lt;P&gt;personalData-po_box      = '35120'.&lt;/P&gt;&lt;P&gt;personalData-street      = 'Atatürk Bulvar&amp;amp;#305;'.&lt;/P&gt;&lt;P&gt;personalData-house_no    = '13'.&lt;/P&gt;&lt;P&gt;personalData-tel1_numbr  = '3881756'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;optionalPersonalData-delyg_plnt = '5001'.&lt;/P&gt;&lt;P&gt;optionalPersonalData-ship_cond  = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copyReference-salesorg   = '5000'.&lt;/P&gt;&lt;P&gt;copyReference-distr_chan = '01'.&lt;/P&gt;&lt;P&gt;copyReference-division   = '02'.&lt;/P&gt;&lt;P&gt;copyReference-ref_custmr = '2323309823'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_CUSTOMER_CREATEFROMDATA1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PI_PERSONALDATA              = personalData&lt;/P&gt;&lt;P&gt;      PI_OPT_PERSONALDATA      = optionalPersonalData&lt;/P&gt;&lt;P&gt;     PI_COPYREFERENCE            = copyReference&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;     CUSTOMERNO                       = customerNo&lt;/P&gt;&lt;P&gt;     RETURN                                 = bapiResult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;catch CX_SY_DYN_CALL_ILLEGAL_TYPE into cxIllegalDynCallType.&lt;/P&gt;&lt;P&gt;  write cxIllegalDynCallType-&amp;gt;parameter.&lt;/P&gt;&lt;P&gt;catch CX_SY_DYN_CALL_PARAM_MISSING into cxSyDynCallParamMissing.&lt;/P&gt;&lt;P&gt;  write cxSyDynCallParamMissing-&amp;gt;parameter.&lt;/P&gt;&lt;P&gt;catch CX_ROOT into cxRoot.&lt;/P&gt;&lt;P&gt;  write cxRoot-&amp;gt;cx_root.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 10:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820594#M350793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create Cutomer with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820595#M350794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you show the declaration for the bapiResult ?&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;P&gt;data: bapiResult type BAPIRETURN1.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 10:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820595#M350794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Cutomer with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820596#M350795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it was of type bapireturn. i corrected it and got a message in bapiresult saying 'Fill all the requeired fields'. where can i supply the customer no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 10:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820596#M350795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Cutomer with BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820597#M350796</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 think it is not asking for the customer number. There must be some other field that is mandatory. Try to create a Customer with the same data you have through the transaction Xd01 and see what exactly is it asking for.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 10:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-cutomer-with-bapi/m-p/1820597#M350796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T10:26:12Z</dc:date>
    </item>
  </channel>
</rss>

