Skip to main content

exit statement

 # exit

~~~~~~~


REPORT ZAJAY_PRACTICE.

parameters: p_num type i.

data var type i value 1.

DO p_num TIMES.

  if var eq 5.

    exit.

  ENDIF.

  write : / 'loop',var.

  var = var + 1.

ENDDO.

output    --> if var is equals to 5 then exit the program.

Comments

Popular posts from this blog

radio button

 # radio button ~~~~~~~~~~~~~~ --> takes only one value example ------- REPORT ZAJAY_PRACTICE. PARAMETERS: r1 RADIOBUTTON GROUP g1,             r2 RADIOBUTTON GROUP g1,             r3 RADIOBUTTON GROUP g1. PARAMETERS: r11 RADIOBUTTON GROUP g2,             r12 RADIOBUTTON GROUP g2. --> r1,r2,r3 comes under g1 group that means select either r1 or r2 or r3. --> r11,r12, comes under g2 group that means select either r11 or r12 .

do statement

 # do.....enddo. ~~~~~~~~~~~~    > example program    ------------------- REPORT ZAJAY_PRACTICE. parameters: p_num type i. data var type i value 1. DO p_num TIMES.   write : / 'loop',var.   var = var + 1. ENDDO. output:  prints 1 to 10 loops.

basics of abap

  write statement -------------------- Tcode --> se38 program --> starts with z or y ex:zajay_prog. title --> prints in output screen title type --> most may be executable program. example: ~~~~~~~~ REPORT ZAJAY_PROG. write 'hello world'. output: hello world ------ ______________________________________________ chain operator [:] ---------------------- actual program ~~~~~~~~~~~~~~~ write / 'heelo'. write / 'ajay babu'. write / 'bye'. using chain operator ~~~~~~~~~~~~~~~~~~~~~ write : 'hello', / 'ajay babu',/  'bye'. _____________________________________________________________________ write : 'heelo', / 'ajay babu',/  'bye'. skip 5. write : 10 'heelo', / 'ajay babu',/  'bye'. / --> indicates new line skip 5 --> indicates skips 5 lines gap. 10 --> horizontal space line. __________________________________________________ format color --------...