cancel
Showing results for 
Search instead for 
Did you mean: 

file to bapi..not reaching to SAP

Former Member
0 Kudos

Hi XI friends....

i am doing xml to BAPI scenario..

i am getting successful message in SXMB_MONI..but its not created in SAP..

in payload of requestmessage mapping ,it is showing converted BAPI

in message monitering it is showing auditlog as

processing child message of multi-message with message ID def16890-8119-11db-8d5d-f6c9e0007003 
2006-12-01 09:56:46 Success Using connection AFW. Trying to put the message into the receive queue. 
2006-12-01 09:56:46 Success Message successfully put into the queue. 
2006-12-01 09:56:46 Success The message was successfully retrieved from the receive queue. 
2006-12-01 09:56:46 Success The message status set to HOLD. 
2006-12-01 09:56:46 Success The message status set to DLNG. 
2006-12-01 09:56:46 Success Delivering to channel: CC_IN_SAP_WorkOrderCompletion 
2006-12-01 09:56:46 Success RFC adapter received a synchronous message. Attempting to send sRFC for BAPI_ALM_CONF_CREATE 
2006-12-01 09:56:46 Success BAPI response was a structure of type BAPIRET2 
2006-12-01 09:56:46 Success TYPE='S', Message (ID:RU, NUMBER:505): "00000000000000000002 confirmations are incorrect. For details see parameter DETAIL_RETURN", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:)
2006-12-01 09:56:46 Success BAPI executed successfully 
2006-12-01 09:56:46 Success Commit transaction with BAPI_TRANSACTION_COMMIT 
2006-12-01 09:56:46 Success The message was successfully delivered to the application using connection AFW. 
2006-12-01 09:56:46 Success The message status set to DLVD. 

please see this message in auditlog

2006-12-01 09:56:46 Success TYPE='S', Message (ID:RU, NUMBER:505): "00000000000000000002 confirmations are incorrect. For details see parameter DETAIL_RETURN", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:)

please guide me.

regards

ram

Accepted Solutions (0)

Answers (13)

Answers (13)

Former Member
0 Kudos

HI friends...

please guide me....

regards

ram

Former Member
0 Kudos

Hi Friends..

i am using Block step(par for each)..

if i my source file contains 10 records means i need to create 10 BAPIs..

i designed my integration process like this..

its FILE -RFC-FILE

<b>recieve step>transformation step>Block step (par for each) - Send step(Sync)>container operation-->end of block step</b>

if i am wrong correct me...

in Message mapping ..MT_req_To_BAPI_req

i changed the occurance of BAPI.req to unbounded..

and also i mapped to MT_RowCount (To count number rows in Source Message)

and in interface mapping i did the same as in MM..Bapi.req occurance to unbounded...and MI_RowCount..

in next MessageMapping ..

i mapped Bapi.response to Mt_response

the corresponding InterfaceMapping..

i mapped source interface as Abs_Syn_WorkOrder to target inteface Bapi.req and

in request & responses tans i provided respective MessageMappings..

is this correct ot not???

please guide me..

regards

ram

Former Member
0 Kudos

hi...

thanks for your responses...

my source file contains multiple records..that means i have to create multiple BAPIs .

could you please tell me integration pocess....step by step..

i am getting flat file eith multiple records...that means i have to repeat the process until all the records are processed..

as for i know ...<b>file>receive>loop>send>send(synch)>send>loop-->file</b>

if its wrong correct me..

thanks in advance...

regards

ram

moorthy
Active Contributor
0 Kudos

Hi,

<i>

my source file contains multiple records..that means i have to create multiple BAPIs</i>

>>>Do you mean, because of multiple records, you need to create multiple BAPI calls.. or one BAPI call with all the records ?

If you want to call BAPI for each Record, then you need to have ParForEach /forEach loop .. Not a general loop

Did you create a Multiline container to send the data in a loop..

for this , it will be useful- with e.g in the bpmPattern http://help.sap.com/saphelp_nw2004s/helpdata/en/f6/e1283f2bbad036e10000000a114084/content.htm

Rgds,

Moorthy

STALANKI
Active Contributor
0 Kudos

You should have two message mapping source request to target request.

source response to target respone and this two mappings have to be there in the interface mapping as well.

You are getting an error due to incorrect mapping.

Former Member
0 Kudos

hi friends..

guide me please...

thanks in advance..

regards

ram

bhavesh_kantilal
Active Contributor
0 Kudos

Ram,

Check if there is any Dump in ST22 in your R3 system.

Also, instead of making an Asynch Call , make a synch call that will get the response back from the RFC. This response will let you know the reason for the problem ( if any).

For a file -- RFC-- File ,check blog,

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Regards,

Bhavesh

Former Member
0 Kudos

hi Jai..

thank you for your response..

<i>Pls do try executing the BAPI in your target system with the values which you are passing and see whether the BAPI is working for the data properly</i>

i tried in SAP with data i am getting in XML file . with default confirmation 000000000 . Its OK.

i didnt mapped to the bapi response..

i mapped only source to bapi only..

please see this message in auditlog

<i>2006-12-01 09:56:46 Success TYPE='S', Message (ID:RU, NUMBER:505): "00000000000000000002 confirmations are incorrect. For details see parameter DETAIL_RETURN", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:)</i>

in my source i dont have any Confirmation ..so i didnt mapped to bapi.but in BAPI..conf_no with occurance 0--1

i am not getting how this confirmation number is automatically populating in SAP.

i tried "00000000000000000002 confirmations in BAPI ..then its giving error like this..

<b>Confirmation no. 0000000002 does not correspond to operation 0010, check entry</b>

i am not understanding where actually error occuring..in XI or extenal data or SAP ...

please guide me..

thanks and regards

ram

Former Member
0 Kudos

Hi Rama,

Pls do try executing the BAPI in your target system with the values which you are passing and see whether the BAPI is working for the data properly.

If this is your response, pls do check with the individual execution of the BAPI as there is a response that is getting generated and its getting filled in the structure BAPIRET2 as mentioned in bold below. Since this is getting filled with a entry to check the message, it means that there is some problem with the data and BAPI is not doing the posting job for you.

<i>in message monitering it is showing auditlog as

processing child message of multi-message with message ID def16890-8119-11db-8d5d-f6c9e0007003

2006-12-01 09:56:46 Success Using connection AFW. Trying to put the message into the receive queue.

2006-12-01 09:56:46 Success Message successfully put into the queue.

2006-12-01 09:56:46 Success The message was successfully retrieved from the receive queue.

2006-12-01 09:56:46 Success The message status set to HOLD.

2006-12-01 09:56:46 Success The message status set to DLNG.

2006-12-01 09:56:46 Success Delivering to channel: CC_IN_SAP_WorkOrderCompletion

2006-12-01 09:56:46 Success RFC adapter received a synchronous message. Attempting to send sRFC for BAPI_ALM_CONF_CREATE

2006-12-01 09:56:46 Success BAPI response was a structure of type BAPIRET2

<b>2006-12-01 09:56:46 Success TYPE='S', Message (ID:RU, NUMBER:505): "00000000000000000002 confirmations are incorrect. For details see parameter DETAIL_RETURN", LOG_NO:, LOG_MSG_NO:000000</b> (PARAMETER:, ROW:0, FIELD:, SYSTEM:)

2006-12-01 09:56:46 Success BAPI executed successfully

2006-12-01 09:56:46 Success Commit transaction with BAPI_TRANSACTION_COMMIT

2006-12-01 09:56:46 Success The message was successfully delivered to the application using connection AFW.

2006-12-01 09:56:46 Success The message status set to DLVD.</i>

please see this message in auditlog

2006-12-01 09:56:46 Success TYPE='S', Message (ID:RU, NUMBER:505): "00000000000000000002 confirmations are incorrect. For details see parameter DETAIL_RETURN", LOG_NO:, LOG_MSG_NO:000000 (PARAMETER:, ROW:0, FIELD:, SYSTEM:)

<i></i>

Cheers

JK

Former Member
0 Kudos

Hi smitha...

rfc communication channel is in green .

and the log is like this

Receiver channel 'CC_IN_SAP_WorkOrderCompletion' for party '', service 'SAP_ERP_DEV' (internal name 'RfcClient[CC_IN_SAP_WorkOrderCompletion]')

Channel History

- OK: 2006-12-01 11:25:15 CET: Message processed for interface BAPI_ALM_CONF_CREATE

- OK: 2006-12-01 11:25:15 CET: Message processed for interface BAPI_ALM_CONF_CREATE

- OK: 2006-12-01 11:24:15 CET: Message processed for interface BAPI_ALM_CONF_CREATE

- OK: 2006-12-01 11:24:15 CET: Message processed for interface BAPI_ALM_CONF_CREATE

- OK: 2006-12-01 11:23:15 CET: Message processed for interface BAPI_ALM_CONF_CREATE

and in SXMB_MONI .. no errors..

thanks and regards

ram

sridharreddy_kondam
Active Contributor
0 Kudos

Hi,

Check SXMB_MONI in Receiving system and see if any messages availble and any errors ...

and also once check the Adapter monitoring in RWB in XI and see whether status of RFC adater ,..

Regardrs,

sridhar reddy

Former Member
0 Kudos

hi Smitha..

thanks for your response.

'C' column is blank..

regards

ram

Former Member
0 Kudos

Hi,

Please re-check the rfc destination specified in transaction sm59.

Is the rfc destination pointing to the correct SAP system?

Regards,

Smitha.

Former Member
0 Kudos

Hi,

In the sxi_monitor, what is the outbound status of the message?

What is the status of the flag in the "c" column in the monitor.

Regards,

Smitha.

Former Member
0 Kudos

Hi Mr.Sandro

thankx for your quick response.

SLG1

i given object as BAPI

and user name..

but it showing as no log found.

wat parameters i have to give in SLG1..

please explain me..

regards

ram

Former Member
0 Kudos

Try to look in the trandaction SLG1 of the back-end where the RFC is executed.

Regards,

Sandro