Skip to Content
author's profile photo Former Member
Former Member

[RFC] Input fields are placed wrong

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 25, 2007 at 12:08 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.