Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

On chain request

Former Member
0 Kudos

Hi all,

What is on chain request.

And if available other any other type of on chain etc...

Thanks.

3 REPLIES 3

Former Member
0 Kudos

HI,

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.

Hope it is useful,

Thanks,

Sandeep.

former_member195698
Active Contributor
0 Kudos

The additions ON and ON CHAIN-REQUEST work like the additions ON INPUT and ON REQUEST that you use for individual fields. The exception is that the module is called whenever at least one of the fields listed in a preceding FIELD statement within the procesing chain meets the condition

Check the Link below.

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm

Regards,

Abhishek