check sy-subrc = 0 and if sy-subrc =0 difference explian

Answer Posted / kaushik

check sy-subrc = 0.
* This statement checks for the condition and if it is
true, the further code will be executed. If not, the
execution will stop if sy-subrc fails.

if sy-subrc = 0.
endif.
* This statement checks the above condition and even if sy-
subrc fails, the code will be executed further.

Is This Answer Correct ?    50 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a help view? : abap data dictionary

873


what is mean be On Change of in Control Break statement

1061


How can you distinguish between different kinds of parameters?

751


What are the function of the transport system and workbench organiser? : abap data dictionary

756


What is the tcode to create indexes?

794


Explain the disadvantages of different types of bdc's?

727


wht is the diff. b/n initialization and lotus of event

1635


I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management

1982


What is sap script? Describe its components.

814


Difference between stand alone CRM and back-end CRM

4006


How do you set up background jobs in sap? What are the steps? What are the events driven batch jobs?

766


What is the difference between Classic badi and Kernal badi ?

2087


Which commands are used for interactive reports?

886


What are subroutines? : abap modularization

833


Can we use transfer dataset to transfer data in internal table ?

1875