‎2007 May 11 5:35 AM
HI
Iam using BAPI function module and after i want to raise exceptions for it .
i have wt_return table..
Now iam doing like this
Read table t_return in to s_return with key type = 'e'.
if sy-subrc = 0.
write : s_return-message.
endif.
I want to avoin write and want to use Raise..
Iam using another way
if t-return ca 'ea'
message id msg-id
message type msg-type
message number ...
its giving dump saying message type should e a,e,w,i,s..
Thanks in advance
‎2007 May 11 5:42 AM
Hi
If you have defined exceptions in the BAPI function module
based on sy-subrc value you can raise exceptionslike
Case sy-subrc.
when 1.
rasie < exception name1>.
when 2.
rasie < exception name2>.
when 3.
rasie < exception name3>.
when 4.
rasie < exception name4>.
....
endcase.
Reward points if useful
Regards
Anji
‎2007 May 11 5:43 AM
Hi
Iam calling the standard BAPI Fm
iam using bapi_material_savedata,bapi_document_change etc
and have return tables .
Thanks