0 Comments
  1. 1. Enable safe typing in the binding (this, more than often, will safe you headache of dealing w/ date and other numerical problem when converting one message to another in BizTalk (to and from SAP)
  2. 2. When pulling data from something like BAPI_EMPLOYEE_GETDATA that returns things back in an array, make sure you pass an empty node of the array that you are interested in inside the REQUEST message.  For example, in BAPI_EMPLOYEE_GETDATA... if you are interested in ARCHIVELINK and  PERSONAL_DATA being returned in the RESPONSE message, construct the REQUEST message like so:

    <ns0:BAPI_EMPLOYEE_GETDATA …>
      <ns0:AUTHORITY_CHECK>X</ns0:AUTHORITY_CHECK>
      <ns0:DATE>20090912</ns0:DATE>
      <ns0:EMPLOYEE_ID>0100001<ns0:EMPLOYEE_ID>
      <!—Here is the tricky part, need to add these empty placeholders -->
      <ns0:ARCHIVELINK>
        <ns1:BAPITOAV0 xmlns:ns1=”…” />
      </ns0:ARCHIVELINK>
      <ns0:PERSONAL_DATA>
        <ns1:BAPIP0002B xmlns:ns1=”…” />
      </ns0:PERSONAL_DATA>
    </ns0:BAPI_EMPLOYEE_GETDATA>
    and pass it to BizTalk to pass to SAP.  SAP will then return the two nodes w/ the appropriate content.
  3. Use Add Generated Item, Consume Adapter Service to create the appropriate SAP binding file.