Problem in create billing document thr VF01
I create a billing document for the delivery order number using VF01 through BDC batch input session. Here is the program flow,
1. perform open_bdc.
2. perform populate_bdc_data.
3. perform insert_bdc_session.
4. perform call_transaction_using_VF01 - only to capture return error messages.
5. perform event_trigger - trigger an event which starts a job that is defined to run when the event is raised. The job will execute the RSBDCSUB.
6. perform close_bdc.
7. perform process_bdc - process the bdc session through
My problem is, when creating billing document, the program not able to capture the return error message if there is any error occurs. The message tab (after CALL TRANSACTION) gives error message with message type as 'S'. so the program was not able to capture/display error records.
Is there any way to capture the return error message correctly?
Or Any suitable BAPI available?
Pl help me to sort out the issue.
Thanks in advance.