Application Development and Automation 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: 
Read only

Code flow of control

Former Member
0 Likes
467

Hi can only one please help me to understand the code

CHAIN.

FIELD :

J_1IEXCHDR-EXGRP,

T_HEADER-DOCNO,

T_HEADER-DOCYR,

T_HEADER-MBLNR,

T_HEADER-MJAHR.

FIELD: J_1IEXCHDR-EXGRP MODULE 0200_VALIDATE_EXCISE_GRO

FIELD: T_HEADER-SHIPFROM MODULE 200_VALIDATE_SHIPFROM O

* Get The Details Of The Document No., If It Is Changed.

FIELD T_HEADER-DOCNO MODULE 0200_GET_DOCNO_DETAILS ON REQUEST.

* Get The Details Of The Material Document, If It Is Changed

FIELD: J_1IEXCHDR-EXGRP, T_HEADER-MBLNR

MODULE 0200_GET_MATDOC_DETAILS ON chain-REQUEST.

what will be the flow of control.....

Please help

Regards,

LOKESH

Hi can only one please help me to understand the code

CHAIN.

FIELD :

J_1IEXCHDR-EXGRP,

T_HEADER-DOCNO,

T_HEADER-DOCYR,

T_HEADER-MBLNR,

T_HEADER-MJAHR.

FIELD: J_1IEXCHDR-EXGRP MODULE 0200_VALIDATE_EXCISE_GRO

FIELD: T_HEADER-SHIPFROM MODULE 200_VALIDATE_SHIPFROM O

* Get The Details Of The Document No., If It Is Changed.

FIELD T_HEADER-DOCNO MODULE 0200_GET_DOCNO_DETAILS ON REQUEST.

* Get The Details Of The Material Document, If It Is Changed

FIELD: J_1IEXCHDR-EXGRP, T_HEADER-MBLNR

MODULE 0200_GET_MATDOC_DETAILS ON chain-REQUEST.

what will be the flow of control.....

Please help

Regards,

LOKESH

1 REPLY 1
Read only

former_member200872
Active Participant
0 Likes
363

Hi,

The field statement for the individual screen field T_HEADER-DOCNO checks for the changes and executes the module 0200_GET_DOCNO_DETAILS .

The chain .. endchain statement checks for change in any one of the screen fields grouped together with the embedded field statement. If any one field's value is changed, the relevant module is executed.

And when a warning / error statement is triggered within this module, it has the effect on all the fields inside the " chain .. field: .. " statement.

This question should have been posting in UI programming.

Also, check out the help documentation for the key words: CHAIN and FIELD.

With Regards,

Wajid Hussain P.

  • * * * *

Hi can only one please help me to understand the code

CHAIN.

FIELD :

J_1IEXCHDR-EXGRP,

T_HEADER-DOCNO,

T_HEADER-DOCYR,

T_HEADER-MBLNR,

T_HEADER-MJAHR.

FIELD: J_1IEXCHDR-EXGRP MODULE 0200_VALIDATE_EXCISE_GRO

FIELD: T_HEADER-SHIPFROM MODULE 200_VALIDATE_SHIPFROM O

  • Get The Details Of The Document No., If It Is Changed.

FIELD T_HEADER-DOCNO MODULE 0200_GET_DOCNO_DETAILS ON REQUEST.

  • Get The Details Of The Material Document, If It Is Changed

FIELD: J_1IEXCHDR-EXGRP, T_HEADER-MBLNR

MODULE 0200_GET_MATDOC_DETAILS ON chain-REQUEST.

what will be the flow of control.....

Please help

Regards,

LOKESH