cancel
Showing results for 
Search instead for 
Did you mean: 

[RFC] Input fields are placed wrong

Former Member
0 Kudos

Hi,

created a RFC that uses a destination to communicate with SAP XI.

When I'm sending test data something wrong in sxmb_moni. Input

informations are placed wrong or missed totally.

RFC code:


function z_exbapi_flcust_createfromdata.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(CUSTOMER_DATA) LIKE  BAPISCUNEW STRUCTURE  BAPISCUNEW
*"     VALUE(TEST_RUN) LIKE  BAPISCUAUX-TESTRUN DEFAULT SPACE
*"  EXPORTING
*"     VALUE(CUSTOMERNUMBER) LIKE  BAPISCUDAT-CUSTOMERID
*"  TABLES
*"      EXTENSION_IN STRUCTURE  BAPIPAREX OPTIONAL
*"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
*"----------------------------------------------------------------------

  data: server_dest like tblsysdest-rfcdest.
  server_dest = 'TSTBAPICALL'.
  call function 'BAPI_FLCUST_CREATEFROMDATA' destination
    server_dest
    exporting
      customer_data  = customer_data
      test_run       = test_run
    importing
      customernumber = customernumber
    tables
      extension_in   = extension_in
      return         = return.

*call function 'BAPI_TRANSACTION_COMMIT'.
  commit work.
endfunction.

Filling the import parameters with following information:

CUSTNAME: TEST

FORM: TESTFORM

STREET: TESTSTRASSE

POBOX: PBX

POSTCODE: 55555

CITY: TEST-CITY

COU

CO

REG

PHONE: 0222/99999

EMAIL

C P

DIS 0

LA

LA TE

output in sxmb_moni:


 <?xml version="1.0" encoding="UTF-8" ?> 
- <ns0:BAPI_FLCUST_CREATEFROMDATA xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
- <CUSTOMER_DATA>
  <CUSTNAME>TEST</CUSTNAME> 
  <FORM>E</FORM> 
  <STREET>55555 TEST-CITY</STREET> 
  <POBOX /> 
  <POSTCODE /> 
  <CITY>P000 TE</CITY> 
  <COUNTR /> 
  <COUNTR_ISO /> 
  <REGION /> 
  <PHONE /> 
  <EMAIL /> 
  <CUSTTYPE /> 
  <DISCOUNT>000</DISCOUNT> 
  <LANGU /> 
  <LANGU_ISO /> 
  </CUSTOMER_DATA>
  <TEST_RUN /> 
  <EXTENSION_IN /> 
  <RETURN /> 
  </ns0:BAPI_FLCUST_CREATEFROMDATA>

Any idea why he shifted this informations?

thanks

chris

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Was the RFC code changed recently?

If yes, go to the sender RFC adapter, make some dummy changes and reactivate the same.

This will clear the RFC Metadata Cache in the j2EE engine and reaload the same when the interface is run again.

Let me know if this works.

Regards

Bhavesh

Former Member
0 Kudos

Nope. Did some changes in sender and receiver communication channel and

activate these dummy changes, but same result.

Further ideas?

thx

chris

bhavesh_kantilal
Active Contributor
0 Kudos

Chris,

Was the RFC changed recently?

Normally, the issue is that the Metdata referst to the old RFC code.

As an Alternate, Delete the existing Sender RFC adapter and create a New one and give things a shot. Maybe a cache Issue etc.

Regards

Bhavesh

Former Member
0 Kudos

Hey,

as far as I know, there have been no changes, but know I copied

the RFC sender channel, delete the old one, copy back the channel and

do a complete refresh in SXI_CACHE and it works!!!!! A very strange

behaviour!!!!!!! In other situations a dummy change had worked, but to

delete the whole channel looks more like a bug

But thanks a lot for your help. Points are given.

greetz

chris

bhavesh_kantilal
Active Contributor
0 Kudos

I have seen such strange behaviors at times as well. That's why I asked to delete and recheck.

In most cases a Reactivation does the trick in others a Restart of J2EE stack.

Regards

Bhavesh

Former Member
0 Kudos

I had the same problem and the re-activation of the Sender RFC adapter fixed the problem.

Thanks guys!

Former Member
0 Kudos

And me to.

I noticed that the RFC adapter contained the right data, however the receiving BAPI did not receive the data from the APPEND structure. After the mentioned steps, Copy, delete, copy back, the comm.channels and SXI_CACHE refresh it is working as it should do ...

Former Member
0 Kudos

I find the same problem as discussed above.

Its a new RFC that i have imported and configured.

I did try to delete the RFC Sender Adapter and recreated a new one .

Tried SXI_CACHE both Delta and complete

Tried restarting J2EE Engine .

And then i noticed the same is happening for the other RFC Scenarios which has been working fine. Any lights please

Former Member
0 Kudos

Hello all,

I have done all the actions mentioned above, I have re-activated the sender RFC Channel, Y have re-created it, I have restarted the J2EE Stack, I have restarted the whole PI server, I have made a cache refresh, everything!!

Any clues of why do I still get the content of the fields misplaced??!?!

Thank in advance to all.

Carlos

Former Member
0 Kudos

Hello,

please check if UNICODE-settings are correct in XI (RFC-Sender-Adapter) and Sender-System (SM59). I solved the same problem by changing the settings.

Best regards,

David

Edited by: David Claes on Jun 19, 2008 10:47 AM

Answers (0)