Skip to Content
author's profile photo Former Member
Former Member

on chain-request

hello experts,

currently i'm working in modulepool program...i want to know the functionality of on chain-request(with coding)..

Thanks & Regards

Subhash.

POINT WILL BE REWARDED.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 12:09 PM

    HI

    ON CHAIN-INPUT similar to ON INPUT.

    The ABAP/4 module is called if any one of the fields in the chain contains a value other than its initial value(blank or nulls).

    ON CHAIN-REQUEST

    This condition functions just like ON REQUEST, but the ABAP/4 module is called if any one of the fields in the chain changes value.

    Basically, with the ON CHAIN ... END CHAIN statements you can process a group of fields together.

    Say for example you have company code & G/L account on your screen. To validate them, you need to consider both of these fields together. So, you put them within ON CHAIN ... END CHAIN, and also put your validation module within the ON CHAIN ... END CHAIN

    CHAIN.

    FIELD BSEG-HKONT.

    FIELD BSEG-BUKRS.

    MODULE validate_gl ON CHAIN-INPUT.

    ENDCHAIN.

    This module will get called when either your Company cod or G/L account are filled. You will have the values of both fields available within the module.

    CHAIN.

    FIELD BSEG-HKONT.

    FIELD BSEG-BUKRS.

    MODULE validate_gl ON CHAIN-REQUEST.

    ENDCHAIN.

    This module will get called only when the user CHANGES the value of either the g/l or the company code. Again, you'll have the values of both g/l and company code available.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:30 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 07:25 AM

    hi

    this thread may help u

    on chain-request example

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 08:12 AM

    LOOP AT ITABLINE.

    CHAIN.

    FIELD ITABLINE-MARK1.

    FIELD ITABLINE-MATNR MODULE matnr_chk.

    ENDCHAIN.

    MODULE ITABLINE_ADD.

    MODULE modify_line.

    ENDLOOP.

    MODULE item_gen.

    MODULE user_command_0202.

    module exit at exit-command.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.