Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

web dynpro

Former Member
0 Likes
679

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
643

Use the Function LIKP_READ

if there is entry it return the Information or else it will give the message.

4 REPLIES 4
Read only

Former Member
0 Likes
644

Use the Function LIKP_READ

if there is entry it return the Information or else it will give the message.

Read only

0 Likes
643

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 .

Read only

0 Likes
643

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.

Read only

0 Likes
643

Hi, Vijay,

My issue has been solved based on ur solution.

Thank you .