"/" character in ABAP dynpro screen element name

Hello all,
I have a screen element on ABAP dynpro named as  /DMNN/SD_SYS-SYSID
I changed this element to drop down and get listed values from data element  /DMNN/SD_SYS-SYSID
Now on the PBO, I want to set initial value
/DMNN/SD_SYS-SYSID = 'D0P'
But I got the following error when I try to activate
Field "/DMNN/SD_SYS-SYSID" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
Thanks for any help

For each screen field you need corresponding data object defined in ABAP program. So all you need is to declare this structure either this way
tables /DMNN/SD_SYS.
or this
data /DMNN/SD_SYS type /DMNN/SD_SYS.
Now you can initialize its fields in PBO with any data you want.
Regards
Marcin

Similar Messages

  • How to find Screen element names in a program programatically

    Hi Experts,
      I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements in a program?
    Thanks and regards,
    venkat.

    Hello
    You can get the information  by calling the below two FM's. First call the FM IAC_GET_DYNPRO_INFO by passing the program name and screen number. This will return an internal table with all the screen elements of structure D021S.
    Next loop through this internal table and pass the structure to FM RS_SCRP_GET_FIELD_TYPE_TEXT to know what kind of screen element it is.
    Also, if the FILL parameter of the first FM is 'T', then it is a table control.
    Regards
    Ranganath

  • Enable disable screen elements..

    hi,
    at runtime, say for e.g. i want to enable or disable screen elements, like text boxes. also i want to check/uncheck the checkbox..what r the statements ?
    where do i get the list of properties of the screen elements that i can set/reset ?
    thks

    hii
    here p_docno is individual screen element in above thread  there you need to give your screen element name and there is a condition like
    if p_rad1 is not initial..at this place use your codition like in below code for create and for modify radiobutton is there and see the code..like this you can use while you press button for CREATE and MODIFY.
    just you need to use button at that place like
    when 'CREATE'..or when 'MODIFY'.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_rad1 TYPE c RADIOBUTTON GROUP gr  DEFAULT 'X'
    USER-COMMAND
    usr .
    SELECTION-SCREEN COMMENT 3(16) text-005.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS p_rad2 TYPE c RADIOBUTTON GROUP gr.
    SELECTION-SCREEN COMMENT 3(16) text-006.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS:
      p_num1 TYPE i MODIF ID num,
      p_num2 TYPE i MODIF ID num,
      p_char1 TYPE c MODIF ID chr,
      p_char2 TYPE c MODIF ID chr.
    AT SELECTION-SCREEN output..
    if p_rad1 is not initial.
        LOOP AT SCREEN.
           IF screen-group1 = 'NUM'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
          IF screen-group1 = 'CHR'.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN.
      ELSE.
        LOOP AT SCREEN .
           IF screen-group1 = 'NUM'.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
          IF screen-group1 = 'CHR'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN .
      ENDIF.                               " IF p_rad2 IS INITIAL .
    i hope it helps you.
    regards
    twinkal

  • How to add screen elements at run time on button click in Web Dynpro abap?

    Hello All,
    I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
    Please help.
    Thanks

    Hi Ajinkya,
    This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
    Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
    Cheers,
    Amy

  • How to change the screen element to be ineditable in Dynpro POV

    Hi Experts,  any one has experience on how to change the screen element to be ineditable in Dynpro POV?

    Write this piece of code in the PROCESS ON VALUE-REQUEST..
    PROCESS ON VALUE-REQUEST.
    FIELD MARA-MATNR MODULE matnr_mod.
    MODULE matnr_mod input.
    LOOP at Screen.
    if screen-name=<field_name>.
      screen-input = 0.
      modify screen.
    endif.
    ENDLOOP.
    ENDMODULE.
    Thanks
    Venkat.O

  • Best Way To transfer screen elements to ABAP variables

    Hi all,
    whats the best way to attach the abap elements to screen elements
    normally earlier versions before 4.7C i always used TABLES : MARC in abap program
    and in screen design i used to click "GET from DICTIONARY" to design the screen in Screen painter
    The advantage with this approach is all data base elements are attached to our screens like search helps
    atomatic checks etc and more over all the information valid for a particular plant are retrived by the system search helps themselves like
    for example on the screen we have screen elements/ fields  Plant , MRP controller.
    in the plant i typed  "X110'.
    now in the mrp controller i pressed F4 to search for valid mrp controller . Since we associated the screen elements with database elements with TABLES statement all the MRP controller relevent to that plant X110 are displayed. this is quite valid.
    But i read usage of tables : in Object Oriented abap is Obsolete is this still the correct way of programming.
    I can also use Some thing like this Data : st_marc type type MARC.
    and in Screen design i can click "Get from program" This approach will loose all the database assignments to screen elements.
    Now i can no longer retrieve the MRP controller relevent for plant 'X110'. F4 will show me all the MRP controllers in all plants.
    Is there any other approach to do this. Thanks.
    Edited by: Kavitha on Mar 13, 2008 2:37 PM

    Please read the following two links. These experts explain it better than I could put in words!:
    /people/thomas.jung3/blog/2005/09/08/oo-abap-dynpro-programming
    /people/horst.keller/blog/2007/04/24/from-abap-ipo-to-abap-objects-and-the-separation-of-concerns
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fbafc9e-0e01-0010-dea9-9d23d1b269fb  (Under section Modularizing your programs)

  • Adding an ABAP Web Dynpro application to a Java Web Dynpro screen

    Hey fellow SAPers
    This is an interesting one .........
    We have developed a bespoke ABAP Web Dynpro screen that we want to include into a tabstrip in a Java Web Wynpro application. We have managed to do this by inserting an iFrame into the tabstrip, and then passing the UWL of the ABAP Web Dynpro app. This works. However, life is never that easy and of course whenever the screen is refreshed, the ABAP WD app is called again and so any changes to the data on the ABAP screen are lost as the data in the ABAP app is re-selected and the data returns to it's original state.
    Does anyone know:
    - of another way to incorporate an ABAP WD screen into a Java WD screen (as a tabstrip)
    - how to de-activate a Java view so that the view containing the ABAP WD app is refreshed (i.e. the window is refreshed), the view is not refreshed and the ABAP app is not re-called .....
    - any other ideas ....
    of course, we could re-develop the same screen in Javam, but that would be too easy
    Looking forward to your responses
    Jon

    >
    > Hi Jon,
    >
    > First of all Iframe is not officially supported until 7.01 version.
    I believe it is deprecated in 7.01 and re-supported in 7.02
    [7.01 IFrame Help|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm]
    [7.02 IFrame help|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm]
    >
    > Would you not use Portal for that and incorporate two iViews in a Page?
    I'm guessing you want to show this within the WDJ app not above, below to the left, right...
    This is a very very difficult thing to do - I'm guessing that you are not actively passing data into the URL of the WDJ IFrame, but just have "decorated" the WDJ app with the a statically linked IFrame. In this case the only thing you have to tie the two together is the user id that you are using - and potentially the time the app was launched. You could in theory use a shared memory area (watch out for multi app server environments) to store the state of the app in case it got refreshed... but this is not a simple thing to do...
    Consider if it is absolutely necessary to enhance the WDJ in place - hopefully you can just replace it with a WDA when you install EhP5
    Good luck,
    Chris

  • ABAP Dictionary type FLTP is not allowed for screen element

    Hi Experts
    I tried to open VBFA in se16 and i got the message in the status bar like this , what does it mean. please explain.
    "ABAP Dictionary type FLTP is not allowed for screen element"

    Hi,
        This is from help
    ABAP Dictionary type FLTP is not allowed for screen element
    Message no. 37048
    <b>Diagnosis</b>
    The format of the ABAP Dictionary field is only for use within the ABAP
    program and cannot be used in the Screen Painter.
    <b>Procedure</b>
    The field cannot be used in screens. If you want to output the
    information in the field or assign a value to the field from the screen,
    you must use an intermediate field with an appropriate format.
    <b>Reward points</b>
    Regards

  • How to use '*' character in element names ?

    Hi,
    I have to use '*' character in element names. But, it throws DOMException. is there a workaround to use such illegal characters ?
    thanks in advance...

    No, there is no work around as such. The '*' character is not a legal character in a tag name (it means zero or more in DTD content specifications).
    http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Name
    What does the star mean? Replace it with something more meaningful. The closest thing to a work around is using "-star-", but then you have to replace dash with "-dash-" and it all gets a bit silly, and won't really add meaning to the tagname.
    Pete

  • REGARDING SCREEN ELEMENTS

    can ne 1 tel me in which DB table information abt the screen element i.e whether it is comin frm dictionary or not is stored.
    i hav used the abap statement 'IMPORT DYNPRO' which gives me an internal table of type
    D021S . but dis internal table does not giv information whether the screen element is comin frm dictionary or not .
    also in which database table are text elements stored .
    dis is a bit urgent .
    helpful answers will b rewarded .
    regards ,
    swapnil

    Hi Swapnil,
    You can check for the table D021T this contains program name , screen number and the elements in that screen.
    I think in the structure D021S contains a field called ITYP (Internal type from ABAP Dictionary) . Hope this is useful.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • How to change the screen element of a single field in a table control

    Hi Gurus,
    I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
    I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
    I have tried the following code which highlights the whole column ...
    CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
    DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              wa_tc_zvoyg_col-screen-intensified = 1.
              MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
              screen-intensified WHERE screen-name = screen-name.
            endif.
          endloop.
        endif.
      endloop.
    And also the following code which makes no change ...
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              screen-intensified = '1'.
              modify screen.
            endif.
          endloop.
        endif.
      endloop.
    Thanks in advance.

    Hi,
    The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
    About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ...  in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
    Best regards
    Sandra

  • Select Options and Search Help in ABAP Dynpro

    Hi Guys,
    I am new to ABAP WD. We are workin on ABAP Stack of the Portal with no DB Tables n data. we have to fetch the data from R/3 and display it on the Dynpro screen.
    But  here the problem is the Standard Search Help attached to the data elements cannot fetch any data, as by default it searchs the ABAP stack for the data. Is there any work around for the same wherein i can fetch the data from R/3 and display it when user requests for the search help.?
    Please let me know.
    Thanks and Regards,
    Sagar

    Hi,
    You can also use freely programmed help here.......
    Please check the following links for
    OVS
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
    OVS Help in Web Dynpro ABAP
    Freely programmed
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8cc9b5e3c5ce10000000a421937/frameset.htm
    regards
    Pranav

  • Web dynpro screen with multiple rows with columns that can be edited

    Web dynpro screen with multiple rows with columns that can be edited individually:
    Hi
    I am busy creating a screen in web dynpro for ABAP which we would like to make available via Portal ESS (Portal 7).
    I need to add 'n type of table (or almost something like Excel) or something in which someone can type a few paycode numbers (there should be lets say 10 blank rows in which info can be typed in and if I click on a button or so, more rows must be added if necessary.  Then in the other colums stuff like amounts must be entered which one should also be able to edit then and there.
    Can anyone assist in what I can use for this?  There does not seem to be some existing element that I can use.
    Help will be appreciated.
    Regards
    Debbie

    Hi Debbie,
    Whiel Creating table you need to be care full that use chose INPUT FIELD as the CELL EDITOR. Just guessing that if ur table is not editable u might have choosen TextView as default cell editor type.
    check link for details on TABLE UI
    [http://help.sap.com/saphelp_erp2005/helpdata/EN/b5/ac884118aa1709e10000000a155106/frameset.htm]
    easy way is to first add UI ELEMENT TABLE to your VIEW, then right click over it & select create binding from context. After you have a pop up where you can select what columns you want what should be its cell editor etc.
    Greetings
    Prashant

  • How to create a parameter id on screen element

    How to create a parameter id on screen element
    reply urgent

    Hi Madan,
    Check this info.
    Parametere Id is the one which holds the memory for the particular field. when we need to pass the the field from one screen to another use the parameter Id.
    The SAP Memory is a user-specific memory area of the application server, which is accessed by all main sessions of a user session at once. ABAP programs have access to SPA/GPA parameters stored in the SAP Memory (also called SET/GET parameters).
    Eg. Of  how to use Set parameter
    you can give value of variable (dobj) to parameter ID 'pid'. This will store value in SAP memory
    SET PARAMETER ID pid FIELD dobj.
    When you want to use that value stored in SAP memory
    you can use GET parameter.
    GET PARAMETER ID pid FIELD dobj.
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    Check this link.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/6a853c61c5140ee10000000a11405a/frameset.htm
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Using of abap predifined screens in views

    Hi,
    I tried to insert abap screens( predifined  and designed me) in webdynpro abap views but these screens are not visible after insertion complete but context part visible as per screen elements, if i try to save got message like 'MAIN was not changed'.
    procedure i followed :
    1)cntrl+F7 2)double click on screen option 3)Entering module program name and screen number  then press 'Enter' key
    Plase tell me if there any extra procedure or another way of procedure to using abap screens in webdyn pro abap views.
    regards,
    nari.

    Hi Nari,
    Please check this how to use MP screens in WDA.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0122113f-0d01-0010-d8b3-fe8ba6d9d088?quicklink=index&overridelayout=true
    For predefined screens..check this.
    Can we generate webdynpro screens from Z module pool programs
    also check  help..
    http://help.sap.com/saphelp_nw70/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/frameset.htm
    Cheers,
    Kris.

Maybe you are looking for

  • Single Excise Invoice for Multiple GR (background)

    We are using doing GR in background using TSW. We need to capture the Excise Invoice in J1IEX. Can we capture multiple GRs for a single Excise Invoice in this case.

  • XML dom  ..Help

    I am creating one xml file in java.   public Document createXml(String Error,String src,String trg)        DocumentBuilderFactory docBuilderFactory = null;        DocumentBuilder docBuilder = null;        try {             docBuilderFactory = Documen

  • Configuring Multicast

    Hello, I want to configure a multicast network but I'm confused about creating a multicast group. I think that I have to assign a multicast address to a switch interface and then to connect a computer to this interface, isn't it? In the attachment th

  • I am in Vietnam and I want to buy the latest book in US

    I am in Vietnam and I want to buy the latest book in US, however, the app store does not support. How can I purchase the book? Please help me!

  • I do not have a 'Manage Pre-Order' tab on my accounts page, can anyone help?

    Hi, have tried following instructions to manage pre-orders but cannot find the 'Manage Pre-orders' tab. Can anyone help please. PD