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

Similar Messages

  • How to put Mandatory option for selection screen fields in ABAP Queries

    Hi Experts
    Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
    Manually I had written code in the At Selection Screen  option in infoset to display error message if that field is blank.
    But I need to display the selection fields with the tick mark (obligatory mark).
    How to do this?
    Appropriate answers will be awarded

    Hi
    For parameter option
    parameters : p_kunnr type kna1-kunnr  obligatory.
    For select option
    select-options: s_date for vbak-erdat obligatory.
    Plz rewards points ,
    Regards ,
    Ganesh.

  • Dynamic screen field values

    Hi,
    One quick question, I have created a screen with reference to a custome table fields and it is working fine. When I enter values for the first time, the values look ok in debug but when I change the values on the screen, the new values are not updated in the screen fields in debug. Old values are shown in the debug.
    I guess there is some kind of logic to do this. Like using the dynamic screen fields read or ....
    Can someone help me on this?
    Regards,
    Roopesh Singh

    hi there...
    when u first enter the values, they get into the work area related to the screen fields.....
    but when u change the values, they dont get changed in the workarea associated with the fields. since the data does not get updated in the fields, it wont show in the debugging mode. so chk ur code and make sure u update the data in the variables associated with the fields.
    do reward if helpful or get back with further queries.

  • Is it possible to launch a Screen Personas screen from an ABAP WebDynpro application?

    I am running SAP EHSM Incident Management within SAP Portal. EHSM has an ABAP WebDynpro frontend based on BOPF/FPM
    In the same portal session for a single user, we want to be able be in an
    active record in EHSM and then launch a screen personas screen based on a
    SAPGUI transaction from either a button click or portal tab click. As part of
    the launch, we want to pass an HR PERNR ID to the Screen Personas/SAPGUI
    transaction from the active record in EHSM and run a search. Is it possible to
    do this? Project team is saying this is a technical limitation.
    I know that Screen Personas cannot be used for a WebDynpro screen, but we just want to launch a screen and pass a parameter. We assumed during blueprint this would be possible.
    Thanks

    This is definitely possible.
    Here is a link containing an example of building the URL to start a transaction via Personas and pass a variable plus a command in the URL. This could be enhanced with specifying the flavor as well.

  • How to launch an ITS screen from an ABAP WebDynpro Button Action

    Hello All,
    I have a requirement to launch an ITS Screen from ABAP WebDynpro. There will be abutton on the WebDynpro screen and when the user will click on that button, the ITS Screen will be launched.
    Can anyone please provide us some sample applications or sample code to achieve the above functionality.
    Points will be rewarded.
    Thanks
    Shyam

    Hi Shyam,
    You can achieve by using Launchpad Customizing and the Launchpad Navigation API's. Just make and entry on transaction LPD_CUST, create a launchpad role, add you target application there.
    At run time under the UI button you can call the API provided by CL_APB_LAUNCHPAD_API -->LAUNCH_APPLICATION to open the application. You can find many material on Internet for the same, with examples, even try some where-use in your system.
    I found one more helpful link.
    http://sapignite.com/call-sap-tcode-using-webdynpro-for-abap/
    Regards
    Vineet

  • Dynamic screen field label

    HI Experts,
                    How can I change the screen fields label name on basis of some conditions. Lets say for 1 condition it shows
    :Code       :
    for condition 2, it wil show
    :Company :
    I mean it should be dinamic.
    Thanks.
    Khan.

    Hi,
    See the following code.
    write this  module FIELD_STAUS_9010  in PBO of the screen number.
    *&      Module  FIELD_STAUS_9010  OUTPUT
          text
    MODULE field_staus_9010 OUTPUT.
      LOOP AT SCREEN.
    field name
        CASE screen-name.
          WHEN 'WA_LC_BG_HDR_ELBCNOT'.
            CASE g_security.
    Set the title
              WHEN 'LC'.
                wa_lc_bg_hdr_elbcnot = 'External LC number'.
              WHEN 'BG'.
                wa_lc_bg_hdr_elbcnot = 'External BG number'.
            ENDCASE.
        ENDCASE.                      " CASE wa_LC_BG_HDR-suity.
      ENDLOOP.
    ENDMODULE.                 " FIELD_STAUS_9010  OUTPUT
    Regards,
    Raju.

  • Modify screen field layout in MIRO - Item level

    Dear All,
    I would like to know if I can change the field sequence in MIRO transaction at the item level. I want to move the Purchase Order number field next to the item field in MIRO and this needs to be premanent whenever I create a new invoice in MIRO.
    This sort of a change is possible in ME21N by creating a new variant through the configuration icon in ME21/22 or 23n at the line item level. I want to know if a similar setting is possible in MIRO, if so please guide me.
    Thanks and Best Regards
    Badrinath Murali

    Hi,
    Have you tried to carry out the following steps?                                                
    1- Transaction OLMRLIST                                                                         
    2- Screenvariant        7_6310                                                                  
       Programm             SAPLMR1M                                                                
       Dynpro               6310                                                                    
    3- Click button 'With Processing'You get transaction MIRO                                                                               
    4- Enter the invoice date and click Enter-Button.                                               
    5- In screen 'Confirm Screen Entries' check the 'Adopt column reference'                        
    and 'Adopt column width'. Click 'Exit and Save'                                                 
    6- Enter 'Save'.                                                                               
    7- Check and activate the screen variants: Click the button 'Check' on                          
    the main screen of Transaction 'OLMRLIST'. Select the screen variants                           
    on coming screen and click 'Adjust and Save'                                                                               
    If after reviewing the above steps you are still having problems                                
    viewing both display variants in MIRO, please take a look at note                               
    372776.
    Best regards
    Erika

  • Alter screen field layout in MIRO - Item level

    Dear All,
    I would like to know whether I can change the field sequence in MIRO transaction at the item level. I want to move the Reference Doc field (GRN No)  next to the item field in MIRO and this needs to be premanent whenever I create a new invoice in MIRO.
    This sort of a change is possible in ME21N at the line item level. I want to know if a similar setting is possible in MIRO, if so please guide me.
    Regards
    Karthikeyan G

    Can anyone kindly updated on this pls........
    Karthik

  • Call module pool screen from ABAP Webdynpro

    Hi All
    I designed one screen in normal classical dynpro in SE80 for module pool program. I want to call that screen layout design in webdynpro view layout.
    So please help me how can i call that module pool screen from my ABAP webdynpro 

    Hi
    Thank you for your great replay. But Mr Ramakrishnappa and Mr Katrice as your reference i go through that but when i insert the program name and screen number program is end with a run time error saying
    dynamic type conflict when assigning reference.
    Please refer the below snap shot

  • Truncation of selection screen field in reports

    Hi,
    Is there any way to avoid truncation of selection screen fields in ABAP reports? For eg, I declare:
    SELECT-OPTIONS: s_test FOR ztest-test_field NO INTERVALS
    The length of this field in the table is 30 chars. However, on displaying the field via selection screen, this gets truncated to around 18 or so. How do I avoid this as I need to display the full length of the field?

    Hi,
    Try this
    Tables : makt.
    select-options maknr for makt-maktx.
    now go to the screen painter of your program in change mode and move the Help buttons first to the Right each. now increasethe length of the Matnr Field length so that they are equal to 40 Char. in your program you have handle the length now if you want to restrict to 18 otherwise it will be ok
    if they don't fit you need incease the Size of the Screen Visible area both in the Screen Painter as well as in the
    Screen Attributes
    You also get an Information Message just ignore that.
    Just open your program in SE80 if you can't go to the screen painter in SE38. the other way just keep this program in Display mode and execute then take F1 help , take Technical Information and double click on the Screen number now go to the Screen Layout and go to Change mode here.
    Regards,
    Shirisha

  • Dropdown in Abap Webdynpro

    Hi friends,
    How to have custom dropdown list for field in abap webdynpro.
    It is possible in general abap with FM 'VRM_SET_VALUES' how it's possible in abap webdynpro.
    Please reply.....
    Thanks in advance.

    Hi,
    Create a context node having attribute field whose values  you want to see in the dropdown.
    i you are using ui element as dropdownby key then follow the following code.
      DATA : node_info TYPE REF TO if_wd_context_node_info.
      DATA : it_zinsp TYPE TABLE OF zinsp. " here zinsp is the name of table
      FIELD-SYMBOLS : <tablezinsp> TYPE zinsp.
      DATA : value TYPE wdy_key_value,
             value_set TYPE wdy_key_value_table.
      DATA : zlandx TYPE string.
    Inserting the countries into the destination drop down
      value-key = lc_key.
      value-value = lc_select.
      INSERT value INTO TABLE value_set.
      node_info = wd_context->get_node_info( ).
      node_info = node_info->get_child_node( 'CN_DESTINATION' ). " CN_DESTINATION is name of node
      CALL METHOD cl_wd_dynamic_tool=>get_table_data
        EXPORTING
          tab_name  = 'ZINSP'
          row_count = 0
        IMPORTING
          data      = it_zinsp.
      LOOP AT it_zinsp ASSIGNING <tablezinsp> .
        SELECT landx FROM t005t INTO zlandx
          WHERE land1 EQ <tablezinsp>-zland1
            AND spras = sy-langu.
        ENDSELECT.
        value-key = <tablezinsp>-zland1.
        value-value = zlandx.
        INSERT value INTO TABLE value_set.
      ENDLOOP.
      node_info->set_attribute_value_set( name = 'CA_DESTINATION'
                                          value_set = value_set ). " CA_DESTINATION is the name of attribute.
    I hope it helps.
    Regards,
    Rohit

  • ABAP WebDynpro Customised Screens

    Hello,
    We are currently trying to build some new ERP transaction screens using ABAP WebDynpro having the same layout as the ESS/MSS business packages which are of course built using Java WebDynpro. So basically looking at building screens which have the guided procedures format (some sort of a wizard which guides you through a few steps to complete the transaction).
    Was wondering if we can have a similar interface built using ABAP WebDynpro as is avaialble in JAVA WebDynpro for completely new transactions (we are not tring to modify the ESS/MSS existing business package iViews).
    Thanks in advance.

    Hi John,
    WDA and WDJ have the same roots and hence share the same programming model. This includes the ui element model as well. There are very few exceptions where some platform specific adoptions had to be made (such as for the FileUpload) or where a slightly different focus had one platform implement a certain feature or ui element earlier than the other one.
    Regarding extensibility, WDA offers features like the enhancement framework. As far as I am aware, ESS/MSS has its own extensibility support allowing you to generate new forms and processes. Since I am not an expert on this matter, I might be mistaken as well. So my suggestion would be to check the ESS/MSS documentation regarding any built-in extensibility.
    Best regards,
    Thomas

  • Addition of checkbox and 2 fields in ABap query selection screen

    Hi
    I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

  • Abap webdynpro layout and application not displayed

    Hi Gurus ,
        We have upgraded the SAP HR system from ECC6.3 to ECC6.4 and netweaver from 7.0 to 7.1 .
        Following are the list of error in EHP4 system ,
                    1)  Layout of ABAP Webdynpro Component are not displayed .
                    2)  Any ABAP WEBDYNPRO Application is not displayed by tesing in SAP-R3 and also in ESS .
        error are as follows while trying to view layout in abap webdynpro application :
        http://dv.hr.co.in:4567/sap/bc/wdvd/painting.html?_vdrespkey=4IS29CT7NDRIOI511AFI0R1E3&_vdframe=painting&sap-client=435
          If any one have information for this kindly let me know .
    Thanks :
    Vishwas
    Edited by: vishwassap on Aug 12, 2010 7:17 AM

    Hi,
       Thanks for reply ,
       Above mention is not link ,its an error in pop up inside layout of view .
      I resolve this problem by deploying mime object by program in R/3 , so that i can able to view layout .
      But still application is not displayed it shows error like
      1) 'UCF_LoadingPlaceHolder' is undefinged by testing through R/3 and starting view is not opened .
      2) 'UCF_Image' is undefined by testing through portal but starting view is opened here .
      3) while navigating from one view to any view or window is not possible , it gives error
      4) When I navigate from one view to other .
      The following error text was processed in the system D36 : The ASSERT condition was violated.
    The error occurred on the application server RELSRMSR2_D36_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: DISPATCH_NW7_EVENT of program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR_LS==========CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Edited by: vishwassap on Aug 13, 2010 8:31 AM

  • How to change the  attribute of screen field to drop down list dynamically

    Hi All,
      Col X                   Col Y
      A                        input field
      B                       drop down list
    This is a tabular disply where the Screen field attribute for Col y  is NO DROP DOWN BOX.
    My requirement is to change the attribute of COl Y to DROP DOWN list depending on the value of
      COL X  dynamically.

    Dear Ajay,
    Actually this requirement is to enhance the standard screen for Tcode :EHSVU21.
    So depending on the 1st Column(Test no)  value ,i have to change the 3rd Column(Low.norm.result)
    property either to DROP Down or not.
    So in the PBO only the changes to be made and there is no field in SCREEN internal table for changing the attribute to DROP down. I checked SCREEN internal table where the field VALUE_HELP and REQUEST is useful but not  suitable for my case.
    Any solution available?

Maybe you are looking for

  • Windows 8.1 pro error.......................

    Hello Sir/Madam,   I installed Windows 8.1 and later found out that the screen will darken with pointer indication with a indication that goes round around the mouse pointer. The action centre on the taskbar also goes off and later sometimes later co

  • Where are my albums in iPhoto 11?

    I recently purchased iPhoto 11 and installed it on my MBP 10.7.5.  I previously had numerous albums, now they do not show up and I don't know how to recover them.  Anyone know how to display them again? AHHH! Why won't my OS update in the description

  • Some questions about Skype Manager and Skype Conne...

    Hallo, I found one of your post: That, if I have some questions I may contact with  Contact our solutions team Sadly that link wont work... I have few questions and also I contacted with Microsoft support, but sadly they wasn't able to help me. Only

  • What are third party alternatives to Ovi Suite

    I really like my Nokia E63 Smartphone, and Nokia PC Suite is usable, I'll say no more than that. Unfortunately its replacement Nokia Ovi Suite, really is a dire application, appearing to have a UI designed by a child, and the coding done by someone c

  • Free upgrade to DW CS6?

    I ordered Dreamweaver cs5.5 and was supposed to get CS6 free when it came out. does anyone know how i get my CS6 upgrade?