Hi, about chain & end chain

can any body tell me what is the exact purpose of chain & endchain. Can we use it in normal reports  apart from dialog programing , give with one example if possible.

Hi,
See the thread:
Re: Chain - Endchain  - Selection-Screen
To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:
CHAIN.
ENDCHAIN.
All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1> ON CHAIN-INPUT|CHAIN-REQUEST.
FIELD: <g1>, <g 2>,...
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The additions ON CHAIN-INPUT 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 chain meets the condition. So <mod1> is called when one of the fields <fi> meets the condition. <mod2> is called when one of the fields <f i> or <g i> meets the condition.
Within a processing chain, you can combine individual FIELD statements with a MODULE statement to set a condition for a single field within the chain:
CHAIN.
FIELD: <f1>, <f 2>,...
FIELD <f> MODULE <mod1> ON INPUT|REQUEST|*-INPUT
|CHAIN-INPUT|CHAIN-REQUEST.
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The module <mod1> is called when screen field <f> meets the specified condition for individual fields. <mod2> is called when one of the fields <fi> or <f> meets the condition. If you use the addition ON CHAIN-INPUT or ON CHAIN-REQUEST with FIELD <f>, the condition also applies to the entire chain and module <mod1> and <mod2> are both called.
Regards,
Priyanka.

Similar Messages

  • Screen Field Data Change Error with in Chain/End-Chain request

    Hello,
    I am currently experiencing an issue that I cannot resolve.  I have two fields in a chain/end-chain request that I need to perform some functions when entry is made.  For example, the two fields are amount and percent_of_change and when either is entered on the screen.  The chain request makes it into the module to adjust the other field however when it the program returns to the chain it will reset the value that was in there before the entry was made.  Here is an example of the coding:
    CHAIN.
          FIELD wa_projection-flag.
          FIELD wa_projection-nextclass.
          FIELD wa_projection-raisetype.
          FIELD wa_projection-rank.
          FIELD wa_projection-edate.
          FIELD wa_projection-percent_change
            MODULE calculate_amount ON REQUEST.
          FIELD wa_projection-amount
            MODULE calculate_percent ON REQUEST.
          MODULE group_proj_entr_modify ON CHAIN-REQUEST.
        ENDCHAIN.
    MODULE calculate_amount INPUT.
    *** Calculate Percentage or amount depending on what was entered.
      IF    wa_projection-currsal > 0.
        wa_projection-amount = wa_projection-currsal * ( wa_projection-percent_change / 100 ).
      ENDIF.
    ENDMODULE.               
    Has anyone run into this before?  Is so, please advise how I can resolve this issue.
    Thanks,
    Jereme

    Combine both the CHAIN MODULEs in one.
    Like:
          FIELD: wa_projection-percent_change,
                     wa_projection-amount
            MODULE calculate_amount_percent ON REQUEST.
    Now, in your module calculate_amount_percent, you will have access of both the fields. So, you will be able to perform the calculation and update it.
    Regards,
    Naimesh Patel

  • CHAIN END CHAIN USE

    Hi,
    any one can help out regarding CHAIN END CHAIN USE in Module pool prg
    regards,
    vijay.

    hi Vijay,
    Check this sample Demo Program <b>DEMO_DYNPRO_ON_CONDITION</b>
    To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:
    CHAIN.
    ENDCHAIN.
    All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain.
    CHAIN.
    FIELD: <f1>, <f 2>,...
    MODULE <mod1> ON CHAIN-INPUT|CHAIN-REQUEST.
    FIELD: <g1>, <g 2>,...
    MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
    ENDCHAIN.
    The additions ON CHAIN-INPUT 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 chain meets the condition. So <mod1> is called when one of the fields <fi> meets the condition. <mod2> is called when one of the fields <f i> or <g i> meets the condition.
    Regards,
    santosh
    Message was edited by:
            Santosh Kumar Patha

  • Error Message is not displayed on the pop screen for chain end chain

    Hi,
    I have called a screen in one of the standard program using enhancmenets,
    and i had put validations using chain and end chain, but the error message is not displayed immediately on the screen
    but it is displaying as log , i want the error should come on the same screen and it should not allow till the correct values are entered , how to handle it
    regards
    afzal

    Hi,
    have you tried option "LIKE" with instruction MESSAGE.
    Example:MESSAGE ID '38' TYPE 'S' NUMBER 000 DISPLAY LIKE 'E' WITH 'My Message'.
    And instead of using a MESSAGE instruction, why to not use a popup ?
    Like using one of these function modules (for instance):
    TMS_BCU_POPUP_TO_CONFIRM
    POPUP_TO_CONFIRM_STEP
    POPUP_TO_DECIDE
    FC_POPUP_ERR_WARN_MESSAGE
    etc...
    If that does not work, perhaps it's your ehancement which is not the good one or perhaps you have use a second one.
    Regards
    Mickael

  • Chain end chain

    What is the concept of ON CHAIN-EXIT or ON CHAIN-REQUEST ..plz explain with an example

    FIELD - MODULE
    Syntax
    FIELD dynp_field MODULE mod [ {ON INPUT}
                                | {ON REQUEST}
                                | {ON *-INPUT}
                                | {ON {CHAIN-INPUT|CHAIN-REQUEST}}
                                | {AT CURSOR-SELECTION}.
    Extras:
    1. ... ON INPUT
    2. ... ON REQUEST
    3. ... ON *-INPUT
    4. ... ON {CHAIN-INPUT}|{CHAIN-REQUEST}
    5. ... AT CURSOR-SELECTION
    Effect
    After the FIELD statement of the dynpro flow logic, at the event PAI you can call the dialog module mod using the MODULE statement. If no condition ON or AT is specified, the module is called immediately after the data transport specified in FIELD.
    Besides two conditions of the normal module call, after FIELD you can specify special conditions for the call of the dialog module, which concern the screen field dynp_field.
    Note
    Addition SWITCH of the stand-alone statement MODULE is not possible in connection with the FIELD statement. Instead, the switch assigned to the screen field in the Screen Painter takes effect.
    Addition 1
    ... ON INPUT
    Effect
    With this condition, module mod is called only if the screen field dynp_field is not empty. All screen fields except fields of type STRING or SSTRING are considered empty if they contain nothing but blanks in the screen representation. Screen fields of type STRING and SSTRING are considered empty if they do not contain any characters.
    If the input field has the special attribute *-Input and the user has entered an asterisk as first character in the input field of screen field dynp_field , the condition ON INPUT is not met. Instead, the condition ON *-INPUT is fulfilled (see below).
    Note
    In the screen display, you can recognize an empty field of type STRING or SSTRING by the fact that the cursor can be positioned only on the beginning of the field.
    Addition 2
    ... ON REQUEST
    Effect
    With this condition, module mod is called only if the value of the screen field dynp_field has been changed by input after the event PBO. It is considered as input if the existing input is overwritten with the same value or if the initial value of the field is entered explicitly. Besides user input, the following value input results in a call of mod:
    Transfer of a default value set via System &#8594; User Profile &#8594; Hold Data. However, this requires the dynpro property Hold Data to be active.
    Tansfer of a default value from the SAP Memory. This requires that in the PARAMETER-ID property of a screen element an SPA/GPA parameter is specified.
    Transfer of data that is passed in the call of a dialog transaction using the addition USING of the DS:ABAP.CALL_TRANSACTION>CALL TRANSACTION statement.
    Transfer of a default value predefined in the system or in the ABAP Dictionary for input/output fields of certain types.
    Addition 3
    ... ON *-INPUT
    Effect
    With this condition, module mod is called only if the user endered an asterisk ("*") as first character in the input field of screen field dynp_field and if the input field has the special attribute *-Input. The content of dynp_field is passed to the ABAP program without the leading asterisk.
    Addition 4
    ... ON {CHAIN-INPUT|CHAIN-REQUEST}
    Effect
    The conditions ON CHAIN-INPUT and ON CHAIN-REQUEST have the same meaning as if used after a stand-alone MODULE statement.
    Addition 5
    ... AT CURSOR-SELECTION
    Effect
    The condition AT CURSOR-SELECTION has the same meaning as if used after a stand-alone MODULE statement.

  • Could you please explain about the  chain and end chain and module

    hi experts
    could you please explain about the  chain and end chain and module keywords?

    Hi Naresh,
    Conditions for Multiple Screen Fields
    To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:
    CHAIN.
    ENDCHAIN.
    All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.
    CHAIN.
    FIELD: <f1>, <f 2>,...
    MODULE <mod1> ON CHAIN-INPUT|CHAIN-REQUEST.
    FIELD: <g1>, <g 2>,...
    MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
    ENDCHAIN.
    The additions ON CHAIN-INPUT 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 chain meets the condition. So <mod1> is called when one of the fields <fi> meets the condition. <mod2> is called when one of the fields <f i> or <g i> meets the condition.
    Within a processing chain, you can combine individual FIELD statements with a MODULE statement to set a condition for a single field within the chain:
    CHAIN.
    FIELD: <f1>, <f 2>,...
    FIELD <f> MODULE <mod1> ON INPUT|REQUEST|*-INPUT
    |CHAIN-INPUT|CHAIN-REQUEST.
    MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
    ENDCHAIN.
    The module <mod1> is called when screen field <f> meets the specified condition for individual fields. <mod2> is called when one of the fields <fi> or <f> meets the condition. If you use the addition ON CHAIN-INPUT or ON CHAIN-REQUEST with FIELD <f>, the condition also applies to the entire chain and module <mod1> and <mod2> are both called.
    In cases where you apply conditions to various combinations of screen fields, it is worth setting up a separate processing chain for each combination and calling different modules from within it.
    The functions of the FIELD statement for controlling data transport also apply when you use processing chains. Within a processing chain, screen fields are not transported until the FIELD statement. Processing chains also have another function for the FIELDS statements that they contain. This is described in the section on validity checks.
    Ex:
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    CHAIN.
    FIELD: INPUT1, INPUT2.
    MODULE MODULE_1 ON CHAIN-INPUT.
    FIELD INPUT3 MODULE MODULE_* ON *-INPUT.
    MODULE MODULE_2 ON CHAIN-REQUEST.
    ENDCHAIN.
    FIELD INPUT1 MODULE C1 AT CURSOR-SELECTION.
    CHAIN.
    FIELD: INPUT2, INPUT3.
    MODULE C2 AT CURSOR-SELECTION.
    ENDCHAIN.
    MODULE CURSOR AT CURSOR-SELECTION.
    Regards,
    Sunil

  • PROCESS CHAIN ENDED RED

    process chain Ending with error showing
    Lock NOT set for: Deleting Data Completely from an InfoProvider
    please help how to correct and what it means
    regards

    Hi,
    In your process chain, you must be having a process for dropping cube contents. What happens is that, before you go to carry out any kind of updates(here updates means, adding records, changing records, deleting records) on a table, a lock would be set on the table so that no other user/ program can carry out any changes on this table.
    This lock is set by using function module starting with ENQUEUE. Till this lock is active, no other program can carry out changes on this table. Then to release the lock on this table another function module DEQUEUE is used. Only after this function is finished, the table is released for changes by any other user/ program.
    As you have got this error, it means that some other program was performing some tasks on this DSO/ infocube (loading data to/ from this DSO/ infocube) when your process chain reached the step to drop cube contents. Check if any other activity was being carried out for this cube/ DSO at that time. In order to avoid this from happening in future, change the timing of one of these processes.

  • Local chain, Meta chain, and Remote chain

    Hi,
    Can any one explain me what exactly is the difference among the process chains?
    Meta chain is a process chain that calls the other process chain
    Local chain is the PC included in any other Process types?
    Cannot differentiate Local and meta chaisn now !
    same is the case with remote process chains
    Raj

    Hi,
    Metachain is a process chain, for which you determine this start condition, that is fixed to another process chain. The process chain is started directly by this metachain.If you start the start process using a metachain, it is not scheduled after you have activated the related process chain. The process chain is only started when the metachain, to which it is linked, is running. rocess chains can be scheduled as processes in additional process chains, which are known as meta chains. If the process chain you want to execute is in another system, use the process type Process Chain Remote, called remote process chain in the following. A remote process chain is a local process in the calling system that calls a process chain in this system, using a destination in another system, that is to be executed there. The remote process chain communicates with the other system and synchronously starts the executed process chain. After terminating the process chain in another system, this is reported back to the meta chain in the calling system. sing a remote process chain as the process of a metachain, you can schedule a process chain from another system in a process chain of the calling system.
    Using a remote process chain as the process of a metachain, you can schedule a process chain from another system in a process chain of the calling system.  In  addition to remote process chains, you can also schedule local process chains as processes in a metachain. A local process chain consists of processes that are scheduled in the same system as the metachain. You schedule it as a process in the same system as the metachain.

  • My trial is about to end and I have never been able to use this.

    My trial subscription is about to end and I have never been able to use it.
    I had the Adobe for$19.99 a year but when it changed to $19.99 a month I could not afford it.
    I am a pro bono attorney mostly representing battered women and juveniles at risk.
    Occasionally, I really need to turn  a PDF into a Word document.
    So far, it hasn't worked this time.
    Thank you.
    [email protected]

    Hi Suzi,
    I would recommend you to use the Export PDF service instead (The Most Reliable Tool to Convert PDF to Word or Excel | Adobe ExportPDF) available at a price of US $1.99/mo Billed annually at US $ 23.88/year.
    Regards,
    Rave

  • Process Chain Ended with Errors - cause unknown

    I have had several instances of process chains stopping for no apparent reason.  The stops occur between 2 master data infopackage loads.  The last step is green and the next is grey.  The PSA table has been updated successfully for the last step.  All IDocs are in green status in both systems.  The monitor for the last successful step does say "Ended with Errors" although no errors are evident.  The process chain starts back up via Repeat at the next (grey) step and continues successfully.  There were no system problems or connection interruptions that occurred during the time the process chains failed.  There were no changes in the remote user profile.
    This exact problem has occurred a half dozen times since our application of ECC Support Packs several months ago and had not occurred before.  The infopackages are different each time. Two different process chains have had this problem.  I have re-activated and re-scheduled the process chains without solving the problem.
    Thanks for any ideas on why this may be occurring or what I can do to prevent it.
    Patty Moffatt

    Hi Des,
    Here's my BW release info:
    SAP_ABA        640       0019 SAPKA64019     Cross-Application
    SAP_BASIS      640       0019 SAPKB64019     SAP Basis          
    PI_BASIS       2005_1_6400009 SAPKIPYJ69     Basis Plug-In
    ST-PI          2005_1_6400008 SAPKITLQH8     SAP Solution Tools Plug-
    SAP_BW         350       0019 SAPKW35019   SAP_BW                      
    ECC SPs 13-21 were applied before the BW problem started:
    SAP_BASIS      640       0021 SAPKB64021    
    SAP_ABA        640       0021 SAPKA64021    
    PI_BASIS       2005_1_6400012 SAPKIPYJ6C   
    ST-PI          2005_1_6400008 SAPKITLQH8    
    SAP_BW         350       0021 SAPKW35021   
    PI             2004_1_5000016 SAPKIPZI6G    
    The process chain step and the monitor load both are green.  The Details tab shows all the processing is green, but the Process Chain itself is red with "Errors Occurred.  There have been no runtime dumps.
    Patty

  • Go about creating Process Chains for BW-HCM Implementation.

    Dear Experts
    We are implementing SAP BW in HCM (HR) module. I am done with Build and would like to create Process Chains.
    I have nearly 150 InfoObjects to load Master Data and 15-20 to load Transaction Data. I understand there are certain main Master Data InfoObjects which need be loaded before others and then the Transaction Data into DSOs and InfoCubes.
    Questions:
    1. Are Hierarchies need to be loaded first of all, if so, can this be done using Process Chain?
    2. Which InfoObjects should be loaded before Transaction Data and is this need to be sorted out irrespective of different Functional Areas such as OM, PA, PY, etc?
    3. Is it documented anywhere, the sequence of loading Objects in SAP BW-HCM Implementation that l can Benchmark my project to?
    Thanks for your time.
    Regards,
    Chandu

    1. Hierarchies can be loaded using the process chain like the other loads..
    2. Its specific to the Application in whcih you are working.. Here its HCM related Master data. So list of the main master data elements which are key so that you can load transaction data loads once after the MD loads are done.
    3. One way to find the kind of characteristics that you are using in HCM. Also you can verify the kind of Navgational attribuites that you are using at DSO or at CUBE level based on that you can list of the respective master data which needs to be loaded prior to the TD loads.. And also you need to cross verify the existing Rotuines which ever is reding the MD.
    For more information you can refer Help.sap.com on HCM application.
    Hope this helps..

  • About the "Distribution Chain" per 'Plant'

    Hi,
    Sales Organization and Distribution Channel can determine a "Distribution Chain" , and "Plant" can be assigned to the "Distribution Chain". My question is, is there any way to find out all the "Distribution Chain" of a "plant"?
    Thanks!

    Hello
    Sales Organization and Distribution Channel are exist for particular material, not for plant.
    Look at table MVKE.

  • Process chain end

    Hi,
    In one of our process chain, the data load is successfully over, the recs are transfered & added,  but the process type still shows yellow & the next steps are not executing. The next steps in the PC, i have executed them manually. Next how can I force  complete the PC?
    Thanks in advance,
    sandy.

    Hi Sandy...
    Right click on the process step....Chain tab...check whether INSTANCE has generated or not....
    If yes.....use the FM : RSPC_PROCESS_FINISH
    If not.....open the chain.....go to log view...In the top where we write the tcode....write COPY.....enter.....copy the chain and create a temp chain......remove all the previous steps which are already done....and execute rest of the steps through that temp chain...
    Regards,
    Debjani....

  • About back-end adapter and IDoc

    Hi everybody!
    I was watching in the FAQ of Mobile 7.1 about the possibility to use IDOC as a mechanism to push data to DOE, but this document only says: "IDocs are supported only for back-end-triggered scenarios" and provides a link to configure ALE between the backend and DOE, but the link doesn't work. (Somebody has this information on a link that works?)
    I'm trying to find any information, blog, article, how-to guide, however I cant found anything. Anybody has documentation about how to configurate and implement a backend-adapter to push data from the backend through IDOC? Any information will be welcome.
    Thanks in advance.
    Best regards,
    Simon.

    Hi San,
    You will have to look after this in Tansaction SE80. Open the BSP application cProjects, and find the appropriate view. (The naming convetion will help a little). Open the view tab: layout >> e.G. progAssignedPha.bsp Here you will find what BSP elements it consists of. You will find the
    <htmlb:tableView and <htmlb:inputField ... elements.
    Here you will find the information you are looking for.
    As easy as in SAPGui you can not find out this information.
    Regards.

  • How to Develop Meta Chain (Process Chains)

    Hi Experts
      How can i create a META CHAIN (Meta Process Chain)
      How can i insert a different process chain to into meta chain.
    In the process types i can't find any type with process chain
    Thanks

    Hi
    Thanks for the update.
    I can't able to find Process Type Local Process Chain
    Please update me in detail
    Thanks

Maybe you are looking for

  • I pod shows up in i tunes but not the music or playlists on it

    when i plug in the i pod it will show up and i can see the summary and everything but i cannot see the music or the play lists under the banner for the i pod in the left box. The summary shows all the used space on the i pod and my music is on it. i

  • White Balance Shift 3200 to 5600

    Hallo, We have material from one shooting done with three Panasonic DVX100AE, Unfortunatly, two cameras were set to 5600, on camera to 3200 white balance. Is there a way to converte the whole material from the "3200 camera" to 5600 ? Using the "try a

  • Imovie export problem

    hello I would like to come and post this message because I do not know what to do, I have a Macbook Pro mid-2010 comes with Snow Leopard I installed mavericks and therefore the new iMovie version month everything worked except fan which runs at the b

  • Erro no perspective (efeito 3D extrude and bevel)

    Olá, o meu illustrator é o CC 2014, quando eu crio um objeto qualquer e coloco o efeito 3D extrude and bevel e almento a perspectiva ao máximo (160) o objeto sofre várias deformações, por que isso acontece?

  • IMac can I swap builtin isight with external isight??

    I need the ability to record other parts of the room for emails and short imovie clips, and the built in isight on my iMac is about worthless unless I want to pick up the whole thing and carry it around or else have everyone try to run over in front