Skip to Content
author's profile photo Former Member
Former Member

chain and end- chain

will any one please ! give some link about or working example in detial about "cahin and "end-chain" which used to be used iin PBO and PAI of SCREEN also on filed strings if possible reward will be awarded to most relavant answer ? thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:52 AM

    Many times if the user enters wrong value for one field, then you might want to give option to user to enter all the fields, which is not possible by using Field statement only. This functionality can be achieved by CHAIN u2013 ENDCHAIN.

    Syntax

    Chain.

    Field sflight-carrid value (u2018LHu2019).

    Field sflight-connid values (between u2018200u2019 and u2018500u2019).

    Endchain.

    Field sflight-price values (u2018100u2019 u20181000u2019).

    In this case, if the user enters wrong value only for carrid, both the fields i.e. carrid and connid are enabled as they are grouped together in the Chain statement. The field price will be disabled for input. Usually, logically related fields are grouped together with Chain-Endchain statement.

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 11:50 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:52 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 11:52 AM

    Ali,

    Frankly speaking even you can search yourself by just giving term cahin and "end-chain in SDN am sure you will get pleanty of good answers.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:51 AM

    The statements CHAIN and ENDCHAIN of the dynpro flow logic define processing chains. Between CHAIN and ENDCHAIN, the statements FIELD and MODULE can be executed. The statements between CHAIN and ENDCHAIN form a processing chain. Processing chains cannot be nested. The CHAIN statement can be specified in the event blocks at PAI and PBO , however, in the event block at PBO it has no effect.

    A processing chain allows the joint processing of all the screen fields stated between CHAIN and ENDCHAIN after FIELD statements:

    The contents of all screen fields combined to a processing chain by the FIELD statements can be checked in the shared conditions ON CHAIN-INPUT and ON CHAIN-REQUEST of the MODULE statement.

    A warning or error message in a module called within a processing chain resets all input fields whose screen fields are combined in this processing chain using FIELD statements to ready-for-input. After a user input, the PAI processing resumes at the CHAIN statement at the latest.

    Example

    Call dialog modules to check input values. The screen fields input1 and input2 are checked in individual dialog modules check_1 and check_2. The screen fields input3 to input5 are checked in a processing chain in a shared dialog module check_chain. Warning or error messages in the dialog modules either make only one input field input1 or input2 ready for input again or all three input fields input3 to input5.

    PROCESS AFTER INPUT.

    MODULE leave_dynpro AT EXIT-COMMAND.

    FIELD input1 MODULE check_1 ON REQUEST.

    FIELD input2 MODULE check_2 ON REQUEST.

    CHAIN.

    FIELD input3.

    FIELD input4.

    FIELD input5.

    MODULE check_chain ON CHAIN-REQUEST.

    ENDCHAIN.

    MODULE handle_user_command.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:53 AM

    Hi,

    chk them

    chainend-chain

    chain-and-end-chain

    Regards

    Sandeep REddy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.