cancel
Showing results for 
Search instead for 
Did you mean: 

on chain-request

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos
Former Member
0 Kudos

hi

this thread may help u