Dynamic Screen layout

Hi all,
I have to display fields dynamically based on certain conditions,so i started with grouping certain fields in several subscreens like this.
subscreen A
subscreen B
subscreen C
Now if for certain type of conditions i'll be displaying subscreen A and subscreen C next to that ,like subscreen C should move up to the palce of subscreen B and subscreen B will not be displayed.(so all combination of the three screens,without
any empty space inbetwen them).Wondering how to go abut that.
Is there screen flow command which calls subscreen conditionally based on 'IF' conditions and how to move screens/fields up from its original locations.
Thanks in advance,
dan.

Ok Dan, I've spent the last view minutes putting together an example, which works quite well.  Here is the main program code.
REPORT zrich_001.
DATA: v_suba TYPE sy-dynnr.
DATA: v_subb TYPE sy-dynnr.
DATA: v_subc TYPE sy-dynnr.
PARAMETERS: p_suba AS CHECKBOX.
PARAMETERS: p_subb AS CHECKBOX.
PARAMETERS: p_subc AS CHECKBOX.
CALL SCREEN 100.
*&      Module  PBO  OUTPUT
*       text
MODULE pbo OUTPUT.
*set pf-status 'Main'.
  IF p_suba = 'X'.
    v_suba = '0101'.
  ENDIF.
  IF p_subb = 'X'.
    IF v_suba IS INITIAL.
      v_suba = '0102'.
    ELSE.
      v_subb = '0102'.
    ENDIF.
  ENDIF.
  IF p_subc = 'X'.
    IF v_suba IS INITIAL.
      v_suba = '0103'.
    ELSEIF v_subb IS INITIAL.
      v_subb = '0103'.
    ELSE.
      v_subc = '0103'.
    ENDIF.
  ENDIF.
  IF v_suba IS INITIAL.
    v_suba = '9999'.
  ENDIF.
  IF v_subb IS INITIAL.
    v_subb = '9999'.
  ENDIF.
  IF v_subc IS INITIAL.
    v_subc = '9999'.
  ENDIF.
ENDMODULE.                 " PBO  OUTPUT
*&      Module  pai  INPUT
*       text
MODULE pai INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      LEAVE PROGRAM.
  ENDCASE.
ENDMODULE.                 " pai  INPUT
Of course, you can put your own gui status and other stuff in here, but you get the idea.  Here is the screen flow logic of screen 100.
PROCESS BEFORE OUTPUT.
  MODULE pbo.
  CALL SUBSCREEN subsa INCLUDING sy-repid v_suba.
  CALL SUBSCREEN subsb INCLUDING sy-repid v_subb.
  CALL SUBSCREEN subsc INCLUDING sy-repid v_subc.
PROCESS AFTER INPUT.
  MODULE pai.
  CALL SUBSCREEN subsa .
  CALL SUBSCREEN subsb .
  CALL SUBSCREEN subsc .
Now on screen 100, there are three subscreen areas,  called SUBSA, SUBSB, SUBSC.  Also in this program there are three subscreen dynpros, called 101, 102, and 103.  So all this will need to be created to make this example work.
Now you can see in the PBO, that I am dynamically assigning the subscreen numbers to the subscreen area variables depending on what you select on the selection screen.  Also, it is important to assign a dummy subscreen(with nothing in it) to any subscreen area which has not been assigned a real subscreen.  So you see that I am assigning subscreen 9999 for this.
Hope this helps.
Regards,
Rich Heilman

Similar Messages

  • Dynamic screen layout - Hide Field Group until user selects country

    Hi.
    Does anyone in the PCUI commuity know how to hide a particular reference field group (field group that contains several fields) and only make it visible when the user selects a particular value from a dropdown in a differen field group on the same screen.
    Regards
    Sergio

    Hi,
    I am trying to do something similar in Advance search area of Opportunity.  I want to hide few fields for non managers.  I created field group variant and added that to field group and all the fields.  I modified method if_crm_bsp_model_access_il~get_fieldgroup_variant.  I put breakpoint at this method and it does get executed but the page doesnt load correct variant.  Did you get this to work?  if so can you please share your experience on what else do I need to change to make it work.
    I have separate thread going regarding this issue.  Here is the URL for that:
    [SAP CRM: People Centric UI (Read Only Archive);
    Thank you,
    AP

  • Dynamically generating screen layout.

    Hi,
       I need to create a module program dynamically along with the screen layout dynamically. i.e i need to add text fileds and input fields dynamically. I've found that we can acheive this by the command generate dynpro.
    But i donot know what to fill in the internal table which holds the element list. If anybody has worked on similar thing, kindly guide me with some example code.
    Chaitanya

    Hi Anand,
      I have seen the structure of the internal table but i
    don't know how to fill that table. Could you give me an example as to what should be filled if i need an input field with name 'tab-field1' at line 10 column 10.
    I've used an already existing screen and imported its element list by command import dynpro. I've similarly filled it and given the command generate dynpro. But it has given a short dump with no error analysis.
    Krishna Chaitanya.

  • Dynamic screen field layout - ABAP webdynpro

    Hi,
    I am rather quite new to ABAP webdynpro - one of my requirements is that based on a Custom table (so to say a custom built customizing table) I need to display fields - the Customizing table could say that for region America - we need the following fields to be supressed, the same set of fields for Japan could be Mandatory, and for Latin America could just be display only.
    Is there anyway this could be acheived in Webdynpro (ABAP) - I presume that the supressed fields for America region will not be displayed but instead the common fields for America and Japan would be out of sync as far as screen layout is concerned. An ideas or guidance on how to accomplish this would be greatly appreciated.
    Regards....

    Hi,
    you can loop on your table which gathers all the fields in it, add an attribute to your
    table stating the required or not parameter and adding it to the 'state' parameter in
    the new_inputfield method.
    In the Wiki I added a page for dynamic UIelement creation based on DDIC properties
    (wiki is down, so i don't have a link to it)
    or you can visit these logs by Thomas Szues:
    <a href="/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements:///people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    <a href="/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements:///people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    grtz
    Koen

  • Dynamic Screen Resolution

    Hello Everyone!!! I am having tough times solving query on Dynamic Screen Resolution in J2ME. How can you create an application in J2ME that automatically adjusts to the screen resolution to the phone it is being installed. That means if the resolution is small the layout automatically adjusts to the screen resolution and if its bigger then accordingly... Please help....

    If you can use a UI framework/toolkit I suggest LWUIT. If not, code using proportions. Avoid absolute values of x, y, width and height. I made a sample at http://smallandadaptive.blogspot.com/2010/12/bar-chart.html

  • How do I get a Up One Level in the Topics page of my screen layout?

    I am trying to insert an "Up One Screen" on my Topic page in my screen layouts and it's only allowing me to add a hyperlink to the Table of Contents. Any suggestions?

    What do you mean by Up One Screen? Where is Rh only allowing you to add a hyperlink to the TOC?
    What sort of help are you generating?
    What version of Rh are you using?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Dynamic Page Layout - Opportunity Product Revenue

    Hi gurus,
    I am trying to setup a dynamic template for "Opportunity Product Revenues"
    I set it up successfully in the object. However, this data is exposed only as a related list of Opportunity and not directly. Now, when I go into the "Opportunity" customization, it only allows me to set up static page layouts, with no option to setup the Dynamic page layouts through the Related list.
    Please help..

    Hi Jonathan,
    Many thanks for your response.
    Our CTE is already on R19. We want to experiment and be ready when our PROD is upgraded to R19.
    Can you help me with the requirement, if you have an idea please? I would really appreciate the help.
    Thanks

  • Error of Specify Chart-of-Dep.-Dependent Screen Layout/Acct Assignment

    HI
    My previous asset error was cleared by assigning non-tax  While  using the option of Specify Chart-of-Dep.-Dependent Screen Layout/Acct Assignment the following error is coming ..... Steps are attached (File and URL)
    http://rapidshare.com/files/135200425/asset_error.doc.html 
    pls help me ....
    Thanks & Regards,
    Kalai

    Hi,
    There are 2 set-up parts:
    General setting that is working for all depreciation area's
    Chart-of-Dep.-Dependent Screen Layout/Acct Assignment (Tcode: ANK1)
    When you have only 1 area it don't have sense to create Chart-of-Dep.-Dependent Screen Layout/Acct Assignment.
    For me  20 Chart-of-Dep are using the standard one and for 1 is using his own Chart-of-Dep.-Dependent Screen Layout/Acct Assignment   
    This is the reason for the errors

  • Error While defining screen layout in asset account

    Hi Guru's,
         I tried to define screen layout rules in asset accounting but it showing error "screen layout control"410"does not exist.can any body tell me whats wrong?
    Thanks

    Refer SAP note 1035757 or 489268

  • PO Screen Layout - Goods Receipt Indicator

    Hi Guru,
    I need help in opening up the Goods Receipt indicator in PO for editing. Can someone guide me on which field in the GR/IR control selection group should I be changing in customizing in order to open up this field?
    If there are other configuration involved, please let me know too. Thanks.
    Regards,
    new@SAP

    Hi
    the field GR in the PO item is controlled by the usage of material being used, Account assignment category.
    In case of material which is Quantified & Valuated in the Plant, you cannot remove the GR & IR flag.
    In case of account assigned PO's this indicator is changeable.
    Using screen layouts you cannot control them.
    Thanks & Regards
    Kishore

  • Screen Layout Field in the Asset Master Record

    What is the use of the screen in the asset master record, ANLA-FELEI?
    We have some assets where there are different values between this screen layout and the screen layout defined at the asset class (i.e. through configuration).
    It seems the one defined within the asset class takes precedence.

    HI
    Scree Layout controls the diplay of fields, it may not be necessary for a user to use all the fileds provided by SAP. Hence the options like Required, Optional and Suppress are used to control the screen diplay and the TABs to be displayed based on the need.
    Asses within the same class will have same fields since the screen layout are assigned to an Asset class.
    Scree layout for the Tab Depreciation Area can also be controlled with the screen layout defied for the Depreciation Area.  With this one can have different screen layouts per dep. area.
    Hope i'm clear to  you.
    Thanks,
    Vijay

  • Group Asset Screen Layout  disabled fields

    Hi All,
    We have created asset masters with Book and Tax depreciation, For tax depreciation we are assigning Group asset. Issue is while doing take over value with t- Code AS92,  system should  propose the field of APC Value and Accumulated Depreciation Value but  both the fields are  proposing only for Book Depreciation
    In case of  tax depreciation APC value is editable and Accumulated Dep value is disabled,  requirement is we need to enter both the values for tax dep along with group asset assignment.
    This is happening only when we are assigning group asset while creation of asset master. if you donu2019t assign group asset to the asset master then system is allowing us to enter both values in both the depreciation area.
    I have checked necessary configuration regarding screen layout and not found any solution.
    Kindly help in this regard.
    Regards,
    Sahil K

    Hi:
           Please check for missing authorization if any in Transaction code ANSICHT. Have you checked group layout in AOLA..
           Regards

  • How to make use of the 'Groups' in Screen Layout?

    Hi All,
    I have a screen with 10 input fields (F1, F2, .. F10).
    I set the 'Groups' attribute in the screen layout to 'DIS'.
    How could I make use of this 'Groups' attribute so that when I loop the screen, I will only disable fields with the 'Groups' attribute set to 'DIS'? Thanks
    I tried the following codes, but it's not working:
      LOOP AT SCREEN.
        IF SCREEN-GROUPS IS NOT 'DIS'.
          SCREEN-INPUT = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    It says ==> The data object 'SCREEN' does not have a component called 'GROUPS'.

    In the Attributes of a screen field, there is an attribute called "Groups". This has 4 options for input (4 text boxes)
    SCREEN has 4 fields GROUP1, GROUP2, GROUP3 and GROUP4.
    The first text box under Groups attribute corresponds to SCREEN-GROUP1,
    2nd text box for SCREEN-GROUP2
    3rd text box for SCREEN-GROUP3
    4th text box for SCREEN-GROUP4
    Hope this helps.
    Thanks,
    Balaji

  • Screen layout for Special G/L indicator

    Hi everyone!
    I would like to know if you create a new special g/l indicator, you can change the screen layout that the system gives you. I need to create some which can have a screen layout similar to the one used in 01 key account.
    Thanks in advanced,
    Olga

    Hi Santosh,
    I´m going to give you some examples about what I want to do. First, I would like to used the special G/L indicator H security deposit which is configurated like as others special G/L transaction types. When I post with this Special G/L indicator the system shows me some fields in the accounting screen layout such as "Due on", "Invoice reference", "Assignment", etc. I would like to change this screen layout because I need fields like "Payment terms", "Payment block indicator", etc. What I did was to change field group status of the reconcilation account that this special G/L indicator has, and key accounting configuration that this special G/L indicator uses. It doesn't work because I make these fields optional and the system didn´t show me those.
    Other I need to do It's make new special G/L indicators because I need to post with a different reconciliation account and I need to configurated the screen layout with fields such us Payment terms, Payment blick indicator, etc. I mean I need to create my own screen layout.
    I don´t know if this gives you more details about what I want to do.
    Thanks so much.
    Best regards, Olga

  • Change in Screen Layout of PO for a particular Item category

    Hi,
    We are facing a typical issue after Upgrade of our system from 4.6C to ECC 6.0.
    Whenever we try to create a PO (in the newly upgraded system) with the Item category S (Third Party PO), the material number field goes blank and it becomes Non-Editable (even before saving the PO)...
    However, on saving, EKPO table has the entries for the material number specified before entering the Item Category S. If we try to display the PO, it shows blank in the MATNR field.
    This works fine with other item categories......we see this problem only with the item category S.
    All the configurations (Screen Layout for Document Type, External Representation of Item category) are fine....but still we are facing this problem....
    Any suggestions on this?
    Thanks and Regards,
    Gaurishankar

    Hi Ninad,
    I think I have mentioned it very clearly that it works for other item categories assigned to the same document type. It is a very basic setting that one has to check for issues related to PO screen layouts and I have done all those checks.
    As stated earlier, this issue has come up after Upgrade, so just want to know if there is any known SAP Note or solution to this problem (if someone has faced it earlier).
    However, thanks for your reply...
    Regards,
    Gaurishankar

Maybe you are looking for

  • Incorporating image purchasing with in my site.

    Hey all I was just wanting ideas for being able to sell photographs on a iwebsite. Whether it is software that will do it for me, or more simple like showing the photos and leaving a email with the photo name. Any ideas would be great Trying for the

  • Passing the Final Cut certification test?

    I want to take the level one certification test for Final Cut by early February, is my goal. I know how to use it, and can do simple editing with Final Cut as well as Premiere and Avid softwares, so I'm not a total novice. But I'm wondering how to be

  • Decimal values

    Hi experts   I would like to know in which table the currency decimal places are stored other than TCURX. ex. CHY 0      GBP 2 decimals. Thanks in advance kar

  • TS3899 Ios 6.1 has problem with wifi and battery drain. Want to go bac to ios 6.0

    Have been having a lot of battery drain in my ipad and also intermittent wifi

  • Fixer la taille d'affichage d'un .swf

    Dans un diaporama crée avec Flash et inséré dans Dreamweaver, j'obtiens sans probléme l'affichage full screen en fixant l'un des paramètres du fichier .swf comme suit: allowFullScreen = true Comment lors de la lecture du diaporama, au lieu de l'affic