Skip to Content
0
Sep 25, 2020 at 12:37 PM

Structure of a BAPI Call through CPI

558 Views Last edit Sep 25, 2020 at 12:38 PM 2 rev

Hello Experts,

I want to call /HECMC/BA1_GET_CUSTOMER_DATA3 through the CPI. I need the correct structure to pass it through the adapter. My on-premise structure looks like this:

<call>
      <bapi>/HECMC/BA1_GET_CUSTOMER_DATA3</bapi>
      <import>
            <IV_SPART></IV_SPART>
            <IV_VKORG></IV_VKORG>
            <IV_VTWEG></IV_VTWEG>
      </import>
      <tables>
            <IT_KUNNR>
                  <item>
                        <KUNNR></KUNNR>
                  </item>
            </IT_KUNNR>
      </tables>
</call>

How do I specify import and tables in this structure?

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

<ns1:_-HECMC_-BA1_GET_CUSTOMER_DATA3 xmlns:ns1="urn:sap-com:document:sap:rfc:functions"> 
ANY IDEA?
</ns1:_-HECMC_-BA1_GET_CUSTOMER_DATA3>

I'd appreciate any help!

Regards

René