Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Former Member
replied

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.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question