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

ABAP OO Doubt - validate call method.

ronaldo_aparecido
Contributor
0 Likes
536

Hi experts

I'm beginer in ABAP OO and i created this code :

output-cep = ch_adrc_struc-post_code1.

             TRY.

                 CREATE OBJECT lr_cep.

               CATCH cx_ai_system_fault .

             ENDTRY.

             TRY.

                 CALL METHOD lr_cep->si_servico_cep_out

                   EXPORTING

                     output = output

                   IMPORTING

                     input  = input.

               CATCH cx_ai_system_fault .

             ENDTRY.

My doubt is : How to know the call method worked?

In call function i use = if sy-subrc = 0 for check the return but can i use it after call method ?

thanks a lot.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

there is an importing which is used to get back data.

once you process input then you can decide whether method worked or not.

1 REPLY 1
Read only

Former Member
0 Likes
439

there is an importing which is used to get back data.

once you process input then you can decide whether method worked or not.