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

About TIMEOUT error of CL_HTTP_CLIENT

Former Member
0 Likes
704

Dear all,

When using CL_HTTP_CLIENT->SEND, How can I catch the TIMEOUT error?

Regards,

Alex

Dear all,

When using CL_HTTP_CLIENT->SEND, How can I catch the TIMEOUT error?

Regards,

Alex

1 REPLY 1
Read only

Former Member
0 Likes
474

Hi Alex,

Try using this BAPI it will surely be helpful.

data: it_ret type standard table of bapiret2,

wa_ret type bapiret2

CALL FUNCTION 'BAPI_BATCH_CHANGE'

EXPORTING

MATERIAL =

BATCH =

  • PLANT =

BATCHATTRIBUTES =

BATCHATTRIBUTESX =

  • BATCHCONTROLFIELDS =

  • INTERNALNUMBERCOM =

  • EXTENSION1 =

  • MATERIAL_EVG =

IMPORTING

  • BATCHATTRIBUTES =

TABLES

RETURN = it_ret " this is the table I am talking about.

Once u execute the bapi, the errors get stored in here..which can be passed onto a loop and using write can be displayed.

Loop at it_ret into wa_ret.

write: / wa_ret-message.

endloop.

Regards,

Amit.