Skip to Content

generate Temp FM dynamically from existing FM

Hi all ,

I have an existing FM in which I need to change some of its code dynamically before calling it .

so is there is any way that I can change its code and store it in some temp FM and then call that temp FM ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 26, 2017 at 11:35 AM

    I solved my problem in these steps :

    1- copying FM RS_FUNCTION_COPY

    2- read copy FM into itab

    3- change the code in the itab

    4- INSERT REPORT <FM include name> ["L" + Function Group name + "U" + 01/02...] from itab

    5- call my copy FM

    6- delete copy FM using RS_FUNCTION_DELETE .

    Add comment
    10|10000 characters needed characters exceeded