09-12-2008 7:48 AM
Hi, All,
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.
09-12-2008 8:10 AM
Use the Function LIKP_READ
if there is entry it return the Information or else it will give the message.
09-12-2008 8:10 AM
Use the Function LIKP_READ
if there is entry it return the Information or else it will give the message.
09-12-2008 8:30 AM
Hi, Vijay,
Thank you for ur replay.
But when i use it, there is one error,that is
"The following error text was processed in the system AD1 : Exception NO_ENTRY_FOUND that Is Not Class-Based Occurred "
So what should i do to correct it?
Thank you .
09-12-2008 8:39 AM
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.
09-12-2008 9:03 AM
Hi, Vijay,
My issue has been solved based on ur solution.
Thank you .