‎2009 Nov 05 5:45 AM
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......
‎2009 Nov 05 6:40 AM
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).
‎2009 Nov 05 8:34 AM
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