Skip to Content

How to abort Smartform generation during it's execution?

Hi All, I have one requirement in which it is required to abort the smartform layout generation if some criteria don't meet. Like we have EXIT keyword in Reports, do we have anything like that in Smartforms? Please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    May 07 at 11:43 AM

    Hi Atul Mittal.

    "Like we have EXIT keyword in Reports, do we have anything like that in Smartforms?

    Before calling smartform, we can handle all the conditions, I don't know why you want to exit after Smartform is called.

    Anyhow we do have option to exit from smartform. Smartform is nothing but calling Function module which is unique for each FM. Use LEAVE PROGRAM command to comeout from Smartform.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • May 07 at 10:16 AM

    Dear Atul,

    maybe the simplest solution: create a text node with type include_text and the system issues an error message, if the text key of the include text is incorrect. For this node you can set a codition also.


    The exception formatting_error (sy-subrc = 1) will delivered by the generated smartform function modul.

    Best regards,
    Hedvig

    Add comment
    10|10000 characters needed characters exceeded