09-18-2008 9:07 AM
09-18-2008 10:19 AM
Hi
U have to give the fields in the return table in which u want to populate the success or error records after the bapi is executed.
So, check ur code and then give the fields.
Regards,
Vishwa.
09-18-2008 11:51 AM
Hi,
1st Check for the return value ( Sy-subrc). You can check as shown below
* select plant and its description
select werks from t001w into t_plant where werks = t_werks.
IF sy-subrc <> 0.
* if the details is not found pass return value
CALL FUNCTION 'BALW_BAPIRETURN_GET2'
EXPORTING
type = 'S'
cl = 'ZMSG'
number = '001'
IMPORTING
return = return.
APPEND return.
ENDIF.
Goto TCode- SE91 & create own msg class (here ZMSG) & populate.
Regards.
Nikhil.