03-26-2010 11:55 AM
Hi,
I have a BDC for invoice create (VF01). With reference to Delivery i create that invoice. Some times i dont get the proper description of error message in bdcmsgcoll structure. Suppose if sales order is in change mode and if i try to create Invoice with that BDC the message which i get in error table is VF( 63 )and VF (32.) Which does not return me the actual discription of the problem.
Is there anyway i can get the right results in error table.
There are FM s to create invoices and it returns proper error message ( Order is in change mode ....) in VBFS table but i want to do it with BDC only.
Can anyone help me?
Regards,
Pavan.
03-26-2010 12:03 PM
As you are getting the error code, use the function module "BALW_BAPIRETURN_GET2" go the get the message description.
03-26-2010 12:09 PM
Hi,
Getting the description is not a problem.
The message numbers which i receive from BDC are not right.
03-26-2010 12:09 PM
Hi,
There is FM to get the DBC errors , As you are using the Call Trans. Method.
Use the FM FORMAT_MESSAGE or use the BAPI FM BAPI_MESSAGE_GETDETAIL or write the select qury for the T100 as the message are stored in this table.
Better while writing the BDC , Look for any BAPI is available for the creation.
Regards,
Bharani