cancel
Showing results for 
Search instead for 
Did you mean: 

call BAPI_EXCHRATE_CREATEMULTIPLE

former_member550907
Participant
0 Kudos

Hello World!

Need help.

I need to call Bapi from the interface in sproxy.

The connection between the XI/PI and ERP created, xml comes in format:

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

<ns0:BAPI_EXCHRATE_CREATEMULTIPLE xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

    <CHG_FIXED>X</CHG_FIXED>

    <DEV_ALLOW>000</DEV_ALLOW>

    <UPD_ALLOW>X</UPD_ALLOW>

    <EXCHRATE_LIST>

      <item>

         <RATE_TYPE>M</RATE_TYPE>

         <FROM_CURR>USD</FROM_CURR>

         <TO_CURRNCY>RUB</TO_CURRNCY>

         <VALID_FROM>20130920</VALID_FROM>

         <EXCH_RATE>31.58920</EXCH_RATE>

         <FROM_FACTOR>1</FROM_FACTOR>

         <TO_FACTOR>1</TO_FACTOR>

      </item>

    </EXCHRATE_LIST>

    <RETURN />

  </ns0:BAPI_EXCHRATE_CREATEMULTIPLE>


May be have a working code?

Thanks,

Rinaz

Accepted Solutions (1)

Accepted Solutions (1)

former_member550907
Participant
0 Kudos

Hi guys,

Question solved

it is very easy

CALL FUNCTION 'BAPI_EXCHRATE_CREATEMULTIPLE'

      EXPORTING

         UPD_ALLOW           = input-upd_allow

         CHG_FIXED           = input-chg_fixed

         DEV_ALLOW           = input-dev_allow

      TABLES

         EXCHRATE_LIST       = lt_exchrate_list

         RETURN              = lt_return.

    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

*     EXPORTING

*       WAIT          =

     IMPORTING

       RETURN        = lt_return2

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Rinaz,

You should to specify more. Is your scenario Proxy - PI - RFC?, in PI have you imported RFC metadata?, are you asking for how to call an scenario from client abap proxy?, if you only want to know how to create a client proxy check Former Member blog http://scn.sap.com/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Regards.

former_member550907
Participant
0 Kudos

Hi Iñaki Vila,

No, all settings connections are ready and work. Only interested ABAP code in the calling Bapi (BAPI_EXCHRATE_CREATEMULTIPLE) and write data from xml to bapi

Regards.