cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Receiver Adapter (Problem)

Former Member
0 Kudos

Hi All,

I have configured RFC Receiver Adapter : Here i have imported a Z FM for example

"" Z_API_DOCUMENT_CREATE_TEST "" having below import paramaters:

LF_DOCNUMBER TYPE BAPI_DOC_DRAW-DOCUMENTNUMBER

IV_PF_HTTP_DEST TYPE RFCDES-RFCDEST

IV_PF_FTP_DEST TYPE RFCDES-RFCDEST

LF_FILENAME TYPE BAPI_DOC_DRAW-DOCUMENTNUMBER

1) Now i use MM to fill in two parameters : LF_DOCNUMBER , LF_FILENAME

If my FIle is of kind : test55.pdf --> LF_DOCNUMBER = test55

LF_FILENAME = test55.pdf

For this i have checked in Sender File Adapter "Adapter Specific Message Attributes"

So i write UDF to capture Filename and Filename with extension to fill above shown parameters.

Now i saw target xml after mapping in CC monitor of RWB is as below

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

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

<IV_PF_FTP_DEST>SAPFTPA</IV_PF_FTP_DEST>

<IV_PF_HTTP_DEST>SAPHTTPA</IV_PF_HTTP_DEST>

<LF_DOCNUMBER>xierror</LF_DOCNUMBER>

<LF_FILENAME>xierror.doc</LF_FILENAME>

</ns0:Z_API_DOCUMENT_CREATE_TEST>

But LF_FILENAME is getting populated to my Z FM at runtime but LF_DOCNUMBER works fine filling up with value.

But when i run the FM using F8 it works , what could be the problem.

Any advice

regards

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The problem is with the Data types used for LF_DOCNUMBER.

Make this as Char or Numeric in FM and then try. If its of any packed values then conversion will create the problem

Thanks

Swarup