<?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 Exception when creating project using RFC /.NET connector in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-creating-project-using-rfc-net-connector/m-p/1899796#M375873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to create a project plan in SAP using .net connector 2.0. After putting in all the values and verifying that the requested parameters are supplied, i call an RFC. But it raises an exception&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'SAP.Connector.RfcSystemException' occurred in sap.connector.rfc.dll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional information: Please assign investment prog to WBS&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Here is more information about the process.&lt;/P&gt;&lt;P&gt;Please let me know what I am doing wrong or where I can find more information about this. I am not the one doing the RFC, I was just told how to call it. It seems to work fine when tested through SAP Logon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Dim failTBl As New BAPIRETURN1Table&lt;/P&gt;&lt;P&gt;        Dim successTBl As New BAPIRETURN1Table&lt;/P&gt;&lt;P&gt;        Dim mspObject As New ZPROJ_INPUT&lt;/P&gt;&lt;P&gt;        Dim mspObjectTable As New ZPROJ_INPUTTable&lt;/P&gt;&lt;P&gt;        Dim cs As String = "blah blah....&lt;/P&gt;&lt;P&gt;        Dim mspProxy As New SAPProxy1(cs)&lt;/P&gt;&lt;P&gt;'populate the mspObjectTbl with all the rows&lt;/P&gt;&lt;P&gt;'and then call the rfc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mspProxy.Zbapi_Project_Create_Msp("X", "X", "X", "X", "X", mspObjectTable, failTBl, successTBl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The X bascially mean do the tasks:&lt;/P&gt;&lt;P&gt;1. check if porject already exists&lt;/P&gt;&lt;P&gt;2. create project&lt;/P&gt;&lt;P&gt;3. create wbs&lt;/P&gt;&lt;P&gt;4. create network&lt;/P&gt;&lt;P&gt;5. create activity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mspObjectTable contains the project plan in the form of rows.&lt;/P&gt;&lt;P&gt;The failTbl contains all messages of the actions that failed&lt;/P&gt;&lt;P&gt;The successTbl contains all messages of the successful actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Jan 2007 13:48:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-20T13:48:51Z</dc:date>
    <item>
      <title>Exception when creating project using RFC /.NET connector</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-creating-project-using-rfc-net-connector/m-p/1899796#M375873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to create a project plan in SAP using .net connector 2.0. After putting in all the values and verifying that the requested parameters are supplied, i call an RFC. But it raises an exception&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;An unhandled exception of type 'SAP.Connector.RfcSystemException' occurred in sap.connector.rfc.dll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional information: Please assign investment prog to WBS&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Here is more information about the process.&lt;/P&gt;&lt;P&gt;Please let me know what I am doing wrong or where I can find more information about this. I am not the one doing the RFC, I was just told how to call it. It seems to work fine when tested through SAP Logon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Dim failTBl As New BAPIRETURN1Table&lt;/P&gt;&lt;P&gt;        Dim successTBl As New BAPIRETURN1Table&lt;/P&gt;&lt;P&gt;        Dim mspObject As New ZPROJ_INPUT&lt;/P&gt;&lt;P&gt;        Dim mspObjectTable As New ZPROJ_INPUTTable&lt;/P&gt;&lt;P&gt;        Dim cs As String = "blah blah....&lt;/P&gt;&lt;P&gt;        Dim mspProxy As New SAPProxy1(cs)&lt;/P&gt;&lt;P&gt;'populate the mspObjectTbl with all the rows&lt;/P&gt;&lt;P&gt;'and then call the rfc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mspProxy.Zbapi_Project_Create_Msp("X", "X", "X", "X", "X", mspObjectTable, failTBl, successTBl)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The X bascially mean do the tasks:&lt;/P&gt;&lt;P&gt;1. check if porject already exists&lt;/P&gt;&lt;P&gt;2. create project&lt;/P&gt;&lt;P&gt;3. create wbs&lt;/P&gt;&lt;P&gt;4. create network&lt;/P&gt;&lt;P&gt;5. create activity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mspObjectTable contains the project plan in the form of rows.&lt;/P&gt;&lt;P&gt;The failTbl contains all messages of the actions that failed&lt;/P&gt;&lt;P&gt;The successTbl contains all messages of the successful actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jan 2007 13:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-creating-project-using-rfc-net-connector/m-p/1899796#M375873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-20T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when creating project using RFC /.NET connector</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-creating-project-using-rfc-net-connector/m-p/1899797#M375874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am not sure am in the right category. If not, moderator please help me to movve it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am also not sure if this helps, but here is the autogenerated code when an RFC is dragged into the sapproxy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception points to &lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;results = SAPInvoke("Zbapi_Project_Create_Msp", new Object() { _&lt;/P&gt;&lt;P&gt;                            Zact_Cre,Znet_Hdr_Cre,Zproj_Exist_Chk,Zwbs_Cre,Zwbs_Hry_Cre,Zproj_Input,Zreturn_Fail,Zreturn_Success })&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Public Overridable Sub Zbapi_Project_Create_Msp ( _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZACT_CRE", RfcType := RFCTYPE.RFCTYPE_CHAR, Optional := true, Direction := RFCINOUT.IN, Length := 1, Length2 := 2), _&lt;/P&gt;&lt;P&gt;     XmlElement("ZACT_CRE", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByVal Zact_Cre As String, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZNET_HDR_CRE", RfcType := RFCTYPE.RFCTYPE_CHAR, Optional := true, Direction := RFCINOUT.IN, Length := 1, Length2 := 2), _&lt;/P&gt;&lt;P&gt;     XmlElement("ZNET_HDR_CRE", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByVal Znet_Hdr_Cre As String, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZPROJ_EXIST_CHK", RfcType := RFCTYPE.RFCTYPE_CHAR, Optional := true, Direction := RFCINOUT.IN, Length := 1, Length2 := 2), _&lt;/P&gt;&lt;P&gt;     XmlElement("ZPROJ_EXIST_CHK", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByVal Zproj_Exist_Chk As String, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZWBS_CRE", RfcType := RFCTYPE.RFCTYPE_CHAR, Optional := true, Direction := RFCINOUT.IN, Length := 1, Length2 := 2), _&lt;/P&gt;&lt;P&gt;     XmlElement("ZWBS_CRE", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByVal Zwbs_Cre As String, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZWBS_HRY_CRE", RfcType := RFCTYPE.RFCTYPE_CHAR, Optional := true, Direction := RFCINOUT.IN, Length := 1, Length2 := 2), _&lt;/P&gt;&lt;P&gt;     XmlElement("ZWBS_HRY_CRE", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByVal Zwbs_Hry_Cre As String, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZPROJ_INPUT",RfcType := RFCTYPE.RFCTYPE_ITAB, Optional := false, Direction := RFCINOUT.INOUT), _&lt;/P&gt;&lt;P&gt;     XmlArray("ZPROJ_INPUT", IsNullable := False, Form := XmlSchemaForm.Unqualified), _&lt;/P&gt;&lt;P&gt;     XmlArrayItem("item", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByRef Zproj_Input As ZPROJ_INPUTTable, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZRETURN_FAIL",RfcType := RFCTYPE.RFCTYPE_ITAB, Optional := false, Direction := RFCINOUT.INOUT), _&lt;/P&gt;&lt;P&gt;     XmlArray("ZRETURN_FAIL", IsNullable := False, Form := XmlSchemaForm.Unqualified), _&lt;/P&gt;&lt;P&gt;     XmlArrayItem("item", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByRef Zreturn_Fail As BAPIRETURN1Table, _&lt;/P&gt;&lt;P&gt;     &amp;lt;RfcParameter(AbapName := "ZRETURN_SUCCESS",RfcType := RFCTYPE.RFCTYPE_ITAB, Optional := false, Direction := RFCINOUT.INOUT), _&lt;/P&gt;&lt;P&gt;     XmlArray("ZRETURN_SUCCESS", IsNullable := False, Form := XmlSchemaForm.Unqualified), _&lt;/P&gt;&lt;P&gt;     XmlArrayItem("item", IsNullable := False, Form := XmlSchemaForm.Unqualified)&amp;gt; _&lt;/P&gt;&lt;P&gt;     ByRef Zreturn_Success As BAPIRETURN1Table)&lt;/P&gt;&lt;P&gt;        Dim results As Object()&lt;/P&gt;&lt;P&gt;        results = SAPInvoke("Zbapi_Project_Create_Msp", new Object() { _&lt;/P&gt;&lt;P&gt;                            Zact_Cre,Znet_Hdr_Cre,Zproj_Exist_Chk,Zwbs_Cre,Zwbs_Hry_Cre,Zproj_Input,Zreturn_Fail,Zreturn_Success })&lt;/P&gt;&lt;P&gt;        Zproj_Input = CType(results(0), ZPROJ_INPUTTable) &lt;/P&gt;&lt;P&gt;        Zreturn_Fail = CType(results(1), BAPIRETURN1Table) &lt;/P&gt;&lt;P&gt;        Zreturn_Success = CType(results(2), BAPIRETURN1Table) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2007 10:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-when-creating-project-using-rfc-net-connector/m-p/1899797#M375874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-21T10:17:21Z</dc:date>
    </item>
  </channel>
</rss>

