Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI as interface to post document in FB01

Former Member
0 Likes
761

Hi all

We are transferring data from Biztalk(middleware) to SAP in xml format through the BAPI Z_BAPI_ACC_DOCUMENT_POST to post document in FB01. Biztalk is able to send the data to sap. But when the document fails it is not returning the Return table to Biztalk. It is sending export parameters as

<OBJ_KEY>$</OBJ_KEY>

<OBJ_SYS>DV1</OBJ_SYS>

<OBJ_TYPE>BKPFF</OBJ_TYPE>

Now when the bapi fails where can i see the log for that if it is called from BIzatalk. I mean when the RFC fails hw vl i knw the reasons for the failure.....

If i do the same scenario in sap it is workin fine..... the problem comes only when it is called from middleware.....

We copied the standard BAPI BAPI_ACC_DOCUMENT_POST to a ZBAPI....

n used BAPI_TRANSACTION_COMMIT in my ZBAPI....

Can anyone please help me on this......

2 REPLIES 2
Read only

Former Member
0 Likes
487

Wild guess, though I doubt it will be of much help: In the olden days when you called RFC Function modules via external RFC clients, SAP did not return any TABLES function module parameters that were not specified. I.e. instead of not passing the parameter at all, you had to specify an empty table for any TABLES that were returned by the RFC call. I wonder if something similar happens in your case with the RETURN table (though I have no clue how if you're calling RFC via SOAP or RFC protocol).

Read only

dhirendra_pandit
Active Participant
0 Likes
487

Hi Mamtha,

As per my recommendation you can use the idoc method within LSMW tool.

The IDOC details is as follows:

Message Type:-CTRACDOCUMENT_CREATE

Basic Type:-CTRACDOCUMENT_CREATE

Regards

Dhirendra