Screen-flow

Hi,
I added a screen with some fields using BDT. My question is how do I program the fields dependency using CHAIN ENDCHAIN. For instance I have field1 and field2 (both input fields) and I want field2 to be disabled if field1 has not been selected.
May someone give me a simple example?
Thank you in advance
Regards,
Ahmat

Hi
CHAIN/ENDCHAIN statament is used in PAI process for validations and in this process you can't change the attributes of an input field: You have to do it in PBO process.
Now the problem is what SELECTED means for you.
Anyway in PBO you can insert a module like this:
PROCESS PBO
MODULE DISABLE_FIELD2.
MODULE DISABLE_FIELD2.
  CHECK FIELD1 IS INITIAL.
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'FIELD2'.
      SCREEN-INPUT = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDMODULE.
In PAI process you insert the validations:
PROCESS PAI
CHAIN.
  FIELD: FIELD1,
         FIELD2 MODULE CHECK_FIELD1_FIELD2.
ENDCHAIN.
MODULE CHECK_FIELD1_FIELD2.
IF NOT FIELD1 IS INITIAL AND
   FIELD2 IS INITIAL.
MESSAGE I208(00) WITH 'Fill FIELD2'.
LEAVE SCREEN.
ENDIF.
ENDMODULE
Max

Similar Messages

  • Screen Flows Not Working Correctly

    We are using OPM 10.2.
    We decided to extensively use screen flows because we had a requirement wherein the user should be allowed to navigate back and forth on the OPA screens.
    If we do not use screen flows the following screnario occurs..
    We've a rule which is satisfied if all attributes on Screen1 Screen2 and Screen3 are known.
    User enters details on Screen1 and Screen2, but he wants to navigate back from Screen3 to Screen1, he reaches Screen1 by hitting browser Back twice, but when he again hits
    Submit on Screen1 he's directly navigated to Screen3 skipping Screen2. This is because all attributes on Screen2 had been collected in first iteration.
    We used screen flows expecting that this would force the required screen order, but it is also behaving in similar way.
    Does it have any thing to do with the way the rules are written.
    Thanks In Advance.

    Hi user1002818,
    The reason that the screens aren't being displayed again is because then engine has the data which was collected on those screens - from a rules point of view there is no need to display them again. To enforce a particular forward/backwards flow we have Interview Flows, which it sounds like you've already started to use.
    One of the reasons that OWD doesn't support an OOTB 'back' button is because navigating backwards in a session has the possibility of invalidating data 'upstream' in the interview. e.g. I fill in some personal details on one screen, on screen 2 I say that I have children, and on screen 3 I create children instances. When I navigate back and change my previous answer to 'I do not have children' what happens to the children instances which I've created? Semantically my session is now invalid. It's a choice left up to the customer/project as to how they want to manage their session validity (delete the data, show the data and ask the customer if it's valid or just do nothing).
    One way to achieve what you want to do would be to author rules as normal and manage the screen flows via a simple push/pop stack implementation which keeps track of screen submissions and data entered on those screens. This will give you the flexibility to both delete invalid data or display it to the user again as you wish
    Could you tell me which project it is that you're working on at the moment please? I'm working on large UK project at the moment and the OPA team is providing support to achieve something very similar.

  • Selection screen flow logic change not taking affect. Please help!

    Hi
       When I am trying to change the selection scren flow logic I get the following message:
    Selection screen: Report generation makes screen changes ineffective.
    Whatever I am changing is not taking affect in runtime.
    Even though I have activated the changed code for the screen
    What shall I do resolve this?
    Thanks
    Gopal

    You should not be changing the screen flow logic of a standard selection screen 1000.  It will always be regenerated.  In order to modify the standard selection screen, you can do this in the AT SELECTION-SCREEN output event and loop at screen and change the attributes.
    Loop at screen.
      if screen-name = 'P_CHECK'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
    Regards,
    Rich Heilman

  • Exception Handling in Screen Flows

    Hi,
    IS there any standard practise for handling exception in screenflows?

    Hi,
    We are following the below approach to handle exception in screen flows.
    1) Create object of type - BusinessException in catalog and define some attributes like exception name, cobdate etc and define one presentation with this values.
    2) In screen flow code initialize this object with one variable.
    3) In any activity put the code that may throw exception in try/catch block.
    4)In catch block assign the values to that attributes at the end throw the exception object.
    5)from that activity give exception transitioin to Intractive component call which assigned to presentation created in catalog stpe 1.
    Hope this helps to you.
    Please let me know any better approach is available.
    Regards,
    Sateesh
    Edited by: sateeshchinni on May 20, 2010 5:15 AM

  • How to process screen flow using PAPI and WAPI

    Dear all,
    I need to process the screen flow from PAPI or WAPI.
    I want to know which API(PAPI or WAPI) i should use and how to achieve that.
    as far as i know, there is two part in WAPI. (external to work portal, throungh the html process API, and internal to the work Portal, through the URLForAction java class).
    where can i get documentation for (internal to the work Portal, through the URLForAction java class)?
    With Regards,
    Wai Phyo

    Hi Bhaskar,
    If you zip probably the size would come less which may increase his performance a little. But I feel SAP also dont recommend this much load with PI.
    If I am in his shoes then I will do a simple FTP without using PI itself. Else will look into other options. Thats my two cents.
    Hope this alexs blog will give an idea to Sai:
    /people/alessandro.guarneri/blog/2007/02/21/sap-xi-acting-as-a-huge-file-mover
    Regards,
    ---Satish
    Edited by: Satish Reddy on Jul 20, 2011 3:02 PM

  • New Screen Flow entry for Approval Workflow

    Hi,
    Can anyone please help me with this? I have a requirement where I need to provide a link on a JSPDynpage to the default approval workflow screen for any KM folder. We already have links to standard permissions and subscription screens which can be called via a url which looks something like this:
    http://<host>:<port>/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/com.sap.km.cm.command?Uri=/documents/Public%20Documents/Test%20Folder&isp=permissions
    For this we had created a new entry under Screen Flow (System Configuration->KM->CM Configuration->User Interfaces->Mapping->Screen Flow) and provided the java class for the Permissions screenflow. When I try the same for approval workflow however it does not work. In short, when I create a new Screen Flow Entry e.g. "approval" and specify the Java class for approval screenflow (com.sapportals.wcm.rendering.screenflow.cm.ApprovalScreenflow) and then use the URL
    http://<host>:<port>/irj/servlet/prt/portal/prteventname/HtmlbEvent/prtroot/com.sap.km.cm.command?Uri=/documents/Public%20Documents/Test%20Folder&isp=approval
    it does not work. Does anybody know why approval workflow works differently and how I can remedy the situation? Any help would be appreciated.
    Thanks,
    Shibendra

    Hi,
    The Custom Dialog Task No. you have to assign.
    1) Go to std. Workflow note all the Std. Task Maintain in SWFVISU, Note all the Parameters
    2) Similarly for the Respective Custom Task, Assign the Same for your Custom Workflow.
    Regards,
    Surjith

  • Regarding screen flow logic

    The modules that we write either in PBO or PAI block , are called by the run time environment on the basis of user action or whether they are called in a order in which we have written these modules ?

    Thanks Mansoor .
    "Conditional Module Calls  
      Simple module calls are processed in the sequence in which they appear in the screen flow logic. " This statement I found in SAP help link
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
    So im confused whether the modules are called on the basis of the sequence in which they occur or whether they are called on the basis of user interaction .

  • Controlling Screen Flow in VA01 and VA02

    Hello, I am going to add a pop up message in a Sales Order User Exit, and depending on the answer, I would like to go to the Billing tab/dynpro.  Does anyone know how I can control screen flow thru a user exit in VA01 adn VA02?
    Thanks

    After your popup selection, you can set the FCODE to KDE3 (for the Header > Billing Document tab).
    You have to stop the processing by giving the Error message and let the user press "Enter" to move on to the next screen. So, after setting the FCODE to KDE3, give the error message to stop the proessing.
    Regards,
    Naimesh Patel

  • Events in the activities of screen flow

    Hi
    Please help the following:
    I set not to generate events in the activities of screen flow (screen flow properties), but generates events, there is additional configuration?

    Hi
    In the project, I indicated in advanced properties of each process that generates events in interactive activities and in the advanced properties of each screen flow, that does not generate events, but in Studio is generating events in the screen flow.
    Please provide support, whether a procedure or additional configuration.

  • Notification Wait with interrupt issue from screen flow

    I have a process with notification wait with interrupt activity. I am sending notification wait from a screen flow to abort another instance. The instance to be notified has returned to an interactive activity after an exception. For some reason, the notification wait does not happen immediately. It takes about 5 minutes for it to take effect. Any thoughts.

    There is a setting in the wait activity that will process the notification immediate, not queue up the notification. 5 minutes seems a long time, even for it being queued up. Normally this setting defaults so it doesn't queue up the notifications. Perhaps this was turned off in your case.
    Right-click on the notification wait, clink on properties->runtime. This settings is located there.
    We have seen issues with different implementations of the queue and topic JMS devices, especially using Webshpere. Unless you're doing something special, the default JMS devices in WebLogic works fine. If your using some other app server or JMS device, then that may be the problem.
    HTH,
    Mark

  • Reg : Screen Flow and Progress States /Progress Bar

    Hi All,
    I've used 'Screen Flows' for the user to navigate to different screens based on the user input.
    By doing so, I'm not been able to use Progress Stages or Progress Bar features :(
    If i remove the screen flow, then Progress Stages/ Progress Bar shows up.
    But as per the screen order, it shows up all the screens, even if I don't want to display it to the user on certain conditions.
    I'm using OPA 10.4.
    How do i display the Progress Stages/ Progress Bar ,using the screen flow..
    Any help would be greatly appreciated
    Regards,
    Kumar

    Only screen orders support progress stages. Screen flows do not.
    The recommended approach is to organize the screens into folders. It is only the top-level (screens or folders) that are then shown as the stages.
    Davin.

  • About screen flow (using tag library)

    dear all, i have the following problem...
    according to the sample about using tag library to make the screen flow of jsp pages, i successfully construct the tag for showing pages as needing. it works ok but when the number of pages exceeds 29, an exception arrises:
    Exception:
    java.lang.VerifyError: jsp_eventmanager_html.template
    in which template is the jsp page for the tags... i do try to set the size of the buffer but it does no help.
    can anyone help me solve this problem? thanks in advance...
    yinman.
    null

    sure,
    in the message.jsp
        <p>
        <!-- use messages tag to display errors -->
        <logic:messagesPresent>
          <bean:message key="error.header"/>
            <ul>
              <html:messages id="error">
                <li><bean:write name="error"/></li>
              </html:messages>
            </ul>
         </logic:messagesPresent>
         <p>
        <!-- use messages tag to display messages -->
        <logic:messagesPresent message="true">
          <bean:message key="message.header"/>
            <ul>
              <html:messages message="true" id="msg">
                <li><bean:write name="msg"/></li>
              </html:messages>
            </ul>
        </logic:messagesPresent>in the tablibs.jsp
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

  • LM01/LM07 - Changing screen flow EXIT_SAPLLMOB_061

    Has anyone modified LM07 screen sequence with a user exit or badi...or custom code?
    I've been asked to modify the screen sequence in LM07.  Specifically, skip the screen to confirm the destination transfer information.  And return to the source pick screen.
    I am sorting the queue with EXIT_SAPLLMOB_061, but this just controls the header table.
    The other exit/badi don't seem to control screen sequence either, except for adding new screens.
    Should screen flow be controlled in config?  I'd like to avoid copying and trying to customize this.
    Thanks for any ideas.

    Moderator message - Welcome to SCN.
    But cross posting in the forums is not allowed.
    Please see Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! before posting and How to post code in SCN, and some things NOT to do... before posting again
    Cross post locked.
    Rob

  • Using loop statement in screen flow

    Hi Friends,
                    I have been working on the Module Pool for the last two weeks. But Iam unable to get the main difference between
    the   " LOOP WITH CONTROL TABCON "  and   "  LOOP AT ITAB WITH CONTROL TABCON CURSOR TABCON-CURRENT_LINE ".
    Please make me clear on this issue.
    Thanking you in advance,
    Regards,
    Murali Krishna

    This is copied from sap documentation
    link:[Table Controls in the Flow Logic|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/frameset.htm]
    LOOP WITH CONTROL ctrl.
    ENDLOOP.
    These statements create a loop pass through the step loop rows displayed on the screen.
    For PAI, they transfer the data of each group into the identically-named fields of the ABAP program or, vice versa,
    for PBO from the ABAP program into the step loop fields.
    In the LOOP-ENDLOOP loop, you can call modules that process the transferred data and for
    PBO read from an internal table, or for PAI import into an internal table.
    LOOP AT itab [INTO wa] WITH CONTROL ctrl.
    ENDLOOP.
    This statement assigns an internal table itab of the ABAP program to the table control and
    triggers a parallel loop run over the table control rows displayed on the screen and over the internal table itab.
    The additions INTO and WITH CONTROL are possible at the time of PBO, but not at PAI.
    The assignment of the loop to the table control takes place at PAI through the internal table.
    Using the INTO addition, the fields of the internal table itab are written to the work area wa at the time
    of PBO and the content of wa is transported, line by line, to the identically-named fields of the table control
    on the screen. Without the INTO addition, you must use an internal table with a header line.
    Then the content of the header line is transported line by line to the
    identically-named fields of the table control on the screen at the time of PBO.
    No module is required for filling the table control rows.
    Conversely, at the time of PAI, the internal table rows are not automatically
    filled with the contents of the table control rows. Instead, you must call a
    dialog module within the loop that modifies the table.

  • MM Outline Agreement Screen Flow

    Our client has a requirement on contracts and scheduling agreements where they would like to see, displayed, the extended value of the line item and the total value of the outline agreement. I have located the fields needed and they seem to serve the client's requirement, but cannot determine how to get them to display on the outline agreement transactions (ME31,2,3....). The line item extended value field is found on EKPO_BRTWR; the document total is found on EKKO_RLWRT. Is there a way without doing a core mod that I can get these fields displayed on the documents on-screen?
    Thanks!

    hI,
    For any document SAP flow will be header detail and item details.the aggrement total value comes in the header like for contract of type WK Value contract will have the total contract value , and will be available in the header screen of the aggrement . and the item cost will be in the item over view screen of the contract, with its qty and value. if you want furthur details like other conditions for that item , select that item and go to the conditions tab in the menu bar , then those details also will come.
    Check the table EKKO for the header details and EKPO for the item details.
    Regards,

  • Regarding Screen flow

    hi guys,
    Can somebody tell me wht are the OK_CODES used for particular Screen name and Screen number.
    Scrname : SAPMV45A
    Scrnumber : 101.
    I need to compare BDC flow between 46C and E47 version. I dont have necssary Screen data to be used to check the flow of the screen.
    So is there any other way to find both the flow of screen is same or not.
    Suggestion please.
    Thanks.
    Baasha.

    hi Varaprasad,
    Thanks for your reply.
    I have few list of transaction codes and BDC flow where i want to compare with
    New(enterprise systems). This is my problem.
    I dont have any source data in my system to  write SHDB and check.
    So i am just wondering if any FM exists like RS_CUA_GET_STATUS.
    But it fetches only for screen names not for Screen numbers.
    Thanks.
    Baasha

Maybe you are looking for

  • Transfer structure Activation Problem

    hi guys... i've just installed new bw system and done all post processing steps correctly... while working in this bw... if i try to activate any Transfer structure, it is giving an error with the message... 'no ddic tabel /bic/000004000... exists...

  • Format-number,decimal not giving desired output for PO Print report XSL-FO

    Hi All, My requirement was to get the Unit price in european format which is 10.000,00 Iam getting it as 10000,00 but the client needs the thousand's seperator. if have used the decimal seperator but iam getting the Unit Price value as 'NAN' when i s

  • QuickVPN Windows 8

    Currently Being Moderated QuickVPN and Windows 8 I had been using QuickVPN from home to connect to an RVS4000 at my office. I recetnly updgraded to a RV180W. I can connect a Windows 7 Pro PC on my home network to the RV180W with QuickVPN. But I canno

  • Rollback VO extention .. rollback JPX file and Personalization

    I have applied the Patch for VO extension.. and Personalization link is disbale. Due to some error on server .. I want to manually remove the files from file system. can anybody do let me know the step please. thank you

  • Error with some software updates

    A few weeks ago when "AirPortTi2005-001" was released via software update, I tried to install, however I get an error when I try to install it. Other software updates installed fine, up until today when J2SE50Release2 was released and I am having the