Can anyone tell me what i should do? Which bapi or normal FM should i use?
The condition is :
there is a outbound delivery screen, and we can input outbound delivery number to see details,
when u input the right number, there is a message box popup which says 'the outbound deliver exists', and if u input the wrong number, the message is 'sorry, xx not exist'.
Now i want to use service call to achieve this function.
but i do not which function can be used in service call.
Looking forward to ur reply.
Thank you very much.
After the Service call you have to make some changes to the excecute method.
comment the exception part.
based on likp node , you check the data and raise your own message using message manager.
after the function call you have to use the sy-subrc check .
CALL FUNCTION 'LIKP_READ' EXPORTING i_vbeln = attr_i_vbeln line_exist = wd_this->line_exist " importing " o_Answr = wd_This->O_Answr TABLES e_likp = stru_c_e_likp EXCEPTIONS no_entry_found = 1. * error handling CASE sy-subrc. WHEN 1. * RAISE EXCEPTION TYPE cx_wd_no_handler * EXPORTING * textid = cx_wd_no_handler=>kind_old * old_exception = `NO_ENTRY_FOUND`. ENDCASE.