Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: Approximate operator and recursive call function in abap

$
0
0

Hi

About Approximate operator, you can go to tcode 'ABAPDOCU', searching CO,CN,CA etc...each of them have example there.

 

And recursive function,

Say here is a FM,

 

FUNCTION recursive_get_number.

*import im_num type i.

*export ex_num type i.

 

ex_num = im_num + 1.

 

IF ex_num GE 100.

   EXIT.

ELSE.

   CALL FUNCTION recursive_get_number

        EXPORTING

           im_num = ex_num

        IMPORTING

           ex_num = ex_num.

ENDIF.

ENDFUNCTION.

 

When you call this function from outside with importing parameter '1',  then will return you 100.

 

regards,

Archer.


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>