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

question about chain

Former Member
0 Likes
938

hi,

i am looking a program (PAI) and i see

a lot of statements like

CHAIN.

FIELD gs_telling-zuonr_uit5.

FIELD gs_telling-sgtxt_uit5.

FIELD gs_telling-dmbtr_uit5.

ENDCHAIN.

does anyone know if this could have a function without module in it.

Gr., Frank

1 ACCEPTED SOLUTION
Read only

former_member212005
Active Contributor
0 Likes
902

If there is any error while doing the PAI...the user should be allowed to contniue with the correction of the record...

It allows user to correct the entry and then proceed.

There fore we use Chain and EndChain..

hi,

i am looking a program (PAI) and i see

a lot of statements like

CHAIN.

FIELD gs_telling-zuonr_uit5.

FIELD gs_telling-sgtxt_uit5.

FIELD gs_telling-dmbtr_uit5.

ENDCHAIN.

does anyone know if this could have a function without module in it.

Gr., Frank

6 REPLIES 6
Read only

Former Member
0 Likes
902

whatever module we write in chain ... endchain block that is trigerred whenever a field inside the chain statement is changed when re-running the report....

Read only

0 Likes
902

Yes, that part i know.

But can it have a usefull function if there is no module in it?

Thanx in advance.

Read only

viquar_iqbal
Active Contributor
0 Likes
902

Hi

I think this would give you a better idea.

[CHAIN....ENDCHAIN|http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm]

Read only

former_member212005
Active Contributor
0 Likes
903

If there is any error while doing the PAI...the user should be allowed to contniue with the correction of the record...

It allows user to correct the entry and then proceed.

There fore we use Chain and EndChain..

Read only

Former Member
0 Likes
902

Thanx for your help

Read only

Former Member
0 Likes
902

Hi,

From this code snippet all that can be figured out is that the fields within the CHAIN and ENDCHAIN block are intended for a common processing or individual Module Processing. Generally all the fields within chain and endchain will be intended to be processed with a same module. This is applicable for a general or common error handling or user validation scenario.

But, as the module statement is not present here, i guess the PAI event will be triggered but it will not process anything.

You can have a look at this demo code for the CHAIN ENDCHAIN Keyword from the DEMO Program:

DEMO_DYNPRO_FIELD_CHAIN.

Hope this will help.

Thanks,

Samantak.