12-24-2008 8:28 AM
Hi Experts,
I'm doing Asset Mass deletion using BDC session method, program executes successfully when the asset doesn't contain any values or else error message( ' Deleting is not possible. The asset already has values.' ) is thrown while uploading by foreground process. How to handle this errors & upload the rest of the assets without values for deletion?
Thanks,
Kavitha
12-30-2008 10:40 AM
Hi,
In this case I suggest you to go for call transaction method and you can check the return code sy-subrc after calling the call transaction. If it is not equal zero then capture the error messages. Open the error session to insert the all error records.
Regards,
Jyothi CH.
12-24-2008 9:29 AM
Hi
Better U proceed with CALL TRANSACTION method and check the return code(SY-SUBRC) after the statement call and if it is NE zero then open a error session to insert the error records. By this way you can move the error records to session and proceed with the rest of the data records.
Cheers,
Hakim
12-30-2008 10:40 AM
Hi,
In this case I suggest you to go for call transaction method and you can check the return code sy-subrc after calling the call transaction. If it is not equal zero then capture the error messages. Open the error session to insert the all error records.
Regards,
Jyothi CH.
01-02-2009 11:03 AM
Hi,
as per your question as in session method once you run the program and then in SM35 we can check the error log,for the particular session if check analysis we can find the errors for paticular transaction,in session method it can't give return value like sy-subrc.
in call transaction method it can return the sy-subrc ,if sy-subrc is not equal to 0 ,call to formate_message then error records r stored in internal table like bdcmsgcall,and in call transaction method can run in foregroung and back ground and once u get the error records then upload the records.
Regards,
Madhu
03-10-2009 4:35 AM
03-10-2009 4:35 AM