Differences between on chain-input & on chain-request

    Hi All,

    Cany any one explain the difference between on chain-input & on chain-request ( or on input & on request).

    I have already gone through the SAP document help, it was mentioned…

    On Input:-

    If you use the ON INPUT addition in a MODULE statement after FIELD, the module is called only if the field contents have changed from their initial value.

    With in a CHAIN block, you must use the ON CHAIN-INPUT addition. The module is then called if the contents of at least one screen field within the CHAIN block have changed from their initial value.

    On Request:-

    If you use the ON REQUEST addition in a MODULE statement after FIELD, the module is called only if the user enters a new value in that field.

    Within a CHAIN block, you must use the ON CHAIN-REQUEST addition. The module is then called if the user changes the contents of at least one screen field within the CHAIN block.

    I was not clear what is initial value (of On Input) & new value (of On Request).

    Thanks,

    Kal Chand

    Hi All,Cany any one explain the difference between on chain-input & on chain-request ( or on input & on request).I have already gone through the SAP document help, it was mentioned...On Input:-If you use the ON INPUT addition in a MODULE statement after FIELD, the module is called only if the field contents have changed from their initial value.With in a CHAIN block, you must use the ON CHAIN-INPUT addition. The module is then called if the contents of at least one screen field within the CHAIN block have changed from their initial value.On Request:-If you use the ON REQUEST…

    Differences between on chain-input & on chain-request

    Very Helpfull

    User Rating: Be the first one !
    Add Comment
    1 Answer(s)

      Hi Kal,

       

      Let me try and put it into perspective.

       

      On Input (When value changes from initial value):

       

      Here e.g. you have a screen field which has a character field. Initial value of a character field is space. When you enter the screen for the first time, suppose the field is blank (initial value), then user enters some value (‘XYZ’) in the field, in such an event, the MODULE ON CHAIN-INPUT would get triggered, since the value has changed from initial value to ‘XYZ’.

       

      However, now say the user changes the value from ‘XYZ’ to ‘AAA’. In this case, the MODULE ON CHAIN-INPUT will NOT get triggered because the original value was not initial i.e. space.

       

      However, as most applications demand, you would want to trigger the MODULE when there is any changes in the field value. In such instances, you do a MODULE ON CHAIN-REQUEST which is triggered when there is any change in value of screen field.

       

      Hence, ON REQUEST is a superset of ON INPUT, so to say that ON REQUEST is also triggered when value is changed from initial (as in ON INPUT) however ON INPUT is not triggrered when value is changed from non-initial, whereas ON REQUEST modules are triggered.

       

      I hope this makes it clearer.

       

      Regards,

      Aditya

      Add Comment

        Hi Kal,

         

        Let me try and put it into perspective.

         

        On Input (When value changes from initial value):

         

        Here e.g. you have a screen field which has a character field. Initial value of a character field is space. When you enter the screen for the first time, suppose the field is blank (initial value), then user enters some value (‘XYZ’) in the field, in such an event, the MODULE ON CHAIN-INPUT would get triggered, since the value has changed from initial value to ‘XYZ’.

         

        However, now say the user changes the value from ‘XYZ’ to ‘AAA’. In this case, the MODULE ON CHAIN-INPUT will NOT get triggered because the original value was not initial i.e. space.

         

        However, as most applications demand, you would want to trigger the MODULE when there is any changes in the field value. In such instances, you do a MODULE ON CHAIN-REQUEST which is triggered when there is any change in value of screen field.

         

        Hence, ON REQUEST is a superset of ON INPUT, so to say that ON REQUEST is also triggered when value is changed from initial (as in ON INPUT) however ON INPUT is not triggrered when value is changed from non-initial, whereas ON REQUEST modules are triggered.

         

        I hope this makes it clearer.

         

        Regards,

        Aditya

        Add Comment

        Your Answer

        By posting your answer, you agree to the privacy policy and terms of service.