none
Need to create new employee in SAP RRS feed

  • Question

  • Hi

    I need to create a new employee in SAP system via Biztalk WCF adapter

    I have used "BAPI_PERSDATA_CREATE  " for that.  I am passing EmployeeNumber as well as Validitybegin & End . I am getting the following .

    <?xml version="1.0" encoding="utf-8" ?>
    - <BAPI_PERSDATA_CREATEResponse xmlns="http://Microsoft.LobServices.Sap/2007/03/Rfc/">
      <EMPLOYEENUMBER>0</EMPLOYEENUMBER>
      <VALIDITYBEGIN>00000000</VALIDITYBEGIN>
      <VALIDITYEND>00000000</VALIDITYEND>
      <LOCKINDICATOR />
      <OBJECTID />
      <RECORDNUMBER>0</RECORDNUMBER>
    - <RETURN>
      <TYPE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">E</TYPE>
      <ID xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">PG</ID>
      <NUMBER xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">1</NUMBER>
      <MESSAGE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">Personnel number not yet assigned</MESSAGE>
      <LOG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <LOG_MSG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</LOG_MSG_NO>
      <MESSAGE_V1 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V2 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V3 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V4 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      </RETURN>
      <SUBTYPE />

     </BAPI_PERSDATA_CREATEResponse>

    and also

    Commit response comes as below

    <?xml version="1.0" encoding="utf-8" ?>

    - <BAPI_TRANSACTION_COMMITResponse xmlns="http://Microsoft.LobServices.Sap/2007/03/Rfc/">
    - <RETURN>
      <TYPE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <ID xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <NUMBER xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</NUMBER>
      <MESSAGE xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <LOG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <LOG_MSG_NO xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</LOG_MSG_NO>
      <MESSAGE_V1 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V2 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V3 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <MESSAGE_V4 xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <PARAMETER xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <ROW xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/">0</ROW>
      <FIELD xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      <SYSTEM xmlns="http://Microsoft.LobServices.Sap/2007/03/Types/Rfc/" />
      </RETURN>
      </BAPI_TRANSACTION_COMMITResponse>

    I am not getting any errors. Do you have any idea why emplyee number is 0 ?

    Thank you

    Wednesday, February 15, 2012 3:50 AM

Answers

  • This seems to be due to incorrect data, or your SAP system configuration. Your local SAP expert should be able to tell you which RFC/BAPI to call, and what inputs to pass in to the parameters.


    -- Please mark as answered if this answers your question.

    Wednesday, February 15, 2012 11:30 AM

All replies