ABAP Webdynpro: Creating a table on webdynpro screen to enter new data.

Hello Experts,
Does anyone know, how to create a  table on webdynpro screen that can be used to enter new data in database?
I have tried to create a Table UI element (with Standard Cell Editor as Input Field) but it is "Display only" if there is no data in the table. This means, while you can use it to modify the data if some data already exist, but you cannot use it to enter new data if no data already exist. What I am looking for is something similar to a Table Control (or Step-Loop) functionalty of a traditional (non webdynpro) SAP screen. How to achieve this in Webdynpro for ABAP?
Thanks in advance.
ABAPer

Even if no data is not there,  you can pass blank work areas to table, so now table will blank rows where you can enter the data even if  previous data is not there.
below is the sample code to get blank rows in table in  order to enter data.
  DATA LO_ND_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_NODE.
  DATA LO_EL_N_EDUCATION1 TYPE REF TO IF_WD_CONTEXT_ELEMENT.
  DATA LS_N_EDUCATION1 TYPE WD_THIS->ELEMENT_N_EDUCATION1.
navigate from <CONTEXT> to <N_EDUCATION1> via lead selection
  LO_ND_N_EDUCATION1 = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_N_EDUCATION1 ).
DATA: ET_DATA TYPE WD_THIS->ELEMENTS_N_EDUCATION1,
        EW_DATA TYPE WD_THIS->ELEMENT_N_EDUCATION1.
  DO 10 TIMES.
    APPEND EW_DATA TO ET_DATA.
  ENDDO.
get element via lead selection
  LO_EL_N_EDUCATION1 = LO_ND_N_EDUCATION1->GET_ELEMENT(  ).
  LO_ND_N_EDUCATION1->BIND_TABLE( NEW_ITEMS = ET_DATA SET_INITIAL_ELEMENTS = ABAP_FALSE ).
now table will have 10 rows, here node name is N_education1.
Thanks and REgards
Srinivas

Similar Messages

  • How to open a brfplus Catalog from abap webdynpro screen.

    How to open a catalog from abap web dynpro application. and also what roles are to be provided to a user for restricting access only to the objects in the given catalog.

    Hi Pratik,
    do you use NetWeaver 7.0, Enhancement Pack 2 (or higher)?
    Then you can then define an own UI mode class and set it via SET_UI_MODE( ) in IF_FDT_WD_UI_EXECUTION before you call EXECUTE_CATALOG_BROWSER().
    An explanation how to define a UI mode class is available in the chapter "Configuration through a UI mode class (7.0/7.1 EHP2)" of the document [Embedding a BRFplus Object in an ABAP WebDynpro Application|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50e44bf9-9135-2d10-2ea2-b13e5be8661d]
    Hint: With help of the interface IF_FDT_WD_USER_CONFIGURATION you have the possibility to hide views in the navigation view by using the respective, listed parameters (e.g.. GC_PARAMETER_FAVORITES_VIEW). Please be aware of that the configuration is just available to adapt the UI, it does not fulfill the requirements to act as an authority concept. If you do not set the parameter GC_PARAMETER_HIDE_SETTING_DLG of the interface IF_FDT_WD_CONFIGURATION to false, the user is also able to change it via the configuration dialog in the BRF+ workbench.
    With the current available BRF plus standard authority concept you can prevent that the user can see the content of objects like applications but you have no influence to prevent the user from seeing UI artifacts like the repository tree. Please consult the documentation to learn more about its capabilities.
    Kind Regards,
    Marco

  • Create a table with all the months between two dates

    Hi all,
    I have a purchase table recording individual purchases. One of the fields is my Date field (date of purchase).
    I would like to create a table 'All_months' with two entries ('month_no' and 'month') which will be based on the first and last date in the purchase table. Assuming the first purchase recorded in my purchase table was on the 12th of January 2008, the table should have the following structure:
    month_no month
    1 12JAN2008
    2 12FEB2008
    3 12MAR2008
    It should continue in this fashion up-to the month where the last purchase was recorded.
    I have been struggling with creating the query that would do that for days now and can't find anything when asking Mr Google.
    Thanks,
    Chris

    Welcome to the forum!
    Here's one way:
    CREATE TABLE     all_months
    AS
    SELECT     LEVEL                    AS month_no
    ,     ADD_MONTHS ( first_date
                 , LEVEL - 1
                 )               AS month     
    FROM     (
              SELECT     MIN (date_of_purchace)     AS first_date
              ,     MAX (date_of_putchase)     AS last_date
              FROM     purchase
    CONNECT BY     LEVEL <= 1 + MONTHS_BETWEEN ( TRUNC (last_date,  'MONTH')
                                 , TRUNC (first_date, 'MONTH')
    ;Do you really need a table like this? Every time you change the data in the purchase table, you won't know if all_months is still accurate or not. You can derive all_months in a sub-query every time you need it, or make all_months a view instead of a table.
    Edited by: Frank Kulash on Jun 14, 2012 5:57 AM

  • How to create a view to display Multiple lines of Text using ABAP WebDynpro

    Hi,
    I need to create a static view page in ABAP WebDynpro that displays Static text data in multiple paragraphs. I tried to use textview, formatted text, text edit controls by binding the textcontrol to a text object that is created in so10, but the output I am getting is only one line and the character count is limited to 60 to 65 characters.
    I would like to know which control needs to be used in ABAP Webdynpro to get multiple lines displayed with text formatting like Paragraph, Indenting and Size.....
    Thanks for your time!
    Madhavi.

    Find the sample codes:
      data sapscript_lines     type tlinetab.
      data sapscript_lines1     type tlinetab.
      data sapscript_tline     type tline.
      data sapscript_head      type thead.
      data text                type string.
      data formatted_text type ref to cl_wd_formatted_text.
      call function 'DOCU_GET'
        EXPORTING
          id                = 'TX'
          langu             = 'D' "Germany language
          object            = 'WDR_TEST_HELP_EXP1'
        IMPORTING
          head              = sapscript_head
        TABLES
          line              = sapscript_lines
        EXCEPTIONS
          no_docu_on_screen = 1
          no_docu_self_def  = 2
          no_docu_temp      = 3
          ret_code          = 4
          others            = 5.
      if sy-subrc <> 0.
        text = space.
      endif.
      formatted_text = cl_wd_formatted_text=>create_from_sapscript(
        sapscript_head  = sapscript_head
        sapscript_lines = sapscript_lines
      " set it into the context
      if Not ( formatted_text is initial ).
        wd_context->set_attribute(
        name  = 'FORMATTED'
        value = formatted_text->m_xml_text ).
      endif.
    clear sapscript_head.
    clear sapscript_lines.
    *Get the text created by SO10
    CALL FUNCTION 'READ_TEXT_INLINE'
      EXPORTING
        ID                    = 'ST'
        INLINE_COUNT          = 1
        LANGUAGE              = 'E' "English language
        NAME                  = '85XX_FOOTER'
        OBJECT                = 'TEXT'
      LOCAL_CAT             = ' '
    IMPORTING
       HEADER                = sapscript_head
      TABLES
        INLINES               = sapscript_lines1
        LINES                 = sapscript_lines
    EXCEPTIONS
      ID                    = 1
      LANGUAGE              = 2
      NAME                  = 3
      NOT_FOUND             = 4
      OBJECT                = 5
      REFERENCE_CHECK       = 6
      OTHERS                = 7
      formatted_text = cl_wd_formatted_text=>create_from_sapscript(
        sapscript_head  = sapscript_head
        sapscript_lines = sapscript_lines
      " set it into the context
      if Not ( formatted_text is initial ).
        wd_context->set_attribute(
        name  = 'FORMATTED1'
        value = formatted_text->m_xml_text ).
      endif.

  • Whether Workflow Program Exit works in ABAP WebDynpro

    Hi,
    I have the custom  workflow in which in each task i have given a program exit to update the status into my custom tables.
    Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be made.
    I'm getting the Workitem id from the UWL and then it lauches the Web Dynpro to choose either Approve, Reject or Change etc along with some other travel expense information.
    Now once i complete the web dynpro by calling the method 'SAP_WAPI_WORKITEM_COMPLETE', the particular work item is completed.
    I want to ask whether before this FM is called,whether the Program Exit which i have written in the Class method and which is called in the Workflow, whether it triggers or not?
    Regards,

    It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
    So closing the thread.

  • ABAP Webdynpro reports in portal do not use portal theme for some elements

    Hi,
    I have an ABAP webdynpro screen which uses, amongst other things, a date navigator and drop down lists.  All aspects of the portal theme seem to be picked up by the webdynpro except the date navigator and drop down lists.  They don't even use the SAP standard ones.  They display as plain text using TimesNewRoman font and not the ones specified in the theme.  They also do not use any of the colours in the theme.  All tables and fields etc are all themed ok.  Any ideas how I can fix this?
    Regards
    Cindy

    Could there be a lockal cache issue?
    Clear you browser cache via Tools > Internet Options >  Delete History
    Try again after clearing the cache, if that doesn't help then try downloading the Internet Explorer Developer Toolbar:
    http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
    ...use this tool to get details about the css and classes aplied to the objects and use it to open a OSS message if it is a SAP WebDynpro application of talk to your developers if it is a Custom WebDynpro app.
    Good Luck,
    Benjamin Houttuin

  • How to get workitem id in ABAP-Webdynpro application

    Hai All,
    When a user clicks on a work item in universal worklist, a ABAP-Webdynpro screen is called. I want to pass the workitem number to this ABAP-Webdynpro application. 
    Please let me know how to pass this.
    Thanks & Regards,
    H.K.Hayath Basha.

    Hai Kari,
    Thanks for the link, i am looking into it.
    Hai Naresh,
    Where should I give this link,
    http://abc.com:8001/sap/bc/webdynpro/sap/ztest? param1= Val
    What I have done is,
    In SWFVISU transaction I maintained the following entry,
    Task = TS99000208
    Visualization Type = WD_ABAP
    Visualization Parameter  Visualization Parameter value
    APPLICATION            =  ZWD_OFFICIAL_012
    NAMESPACE            =  SAP
    and registered this task in in universal worklist.
    Where the specify the code you mentioned. 
    Thanks & Regards,
    H.K.Hayath Basha.

  • Travel management in ABAP-webdynpro(ECC-6.0)

    Hi All,
    I have a requirement in which the screens of travel management has to be designed in ABAP-webdynpro.
    I know that screens are available in ESS-6.0 netweaver component but I want ABAP-webdynpro screens in ECC-6.0.
    I was just curious to know if any standard ABAP webdynpro screens are available in ECC-6.0 for travel management.
    Please revert back ASAP. Points will be awarded as per forum rule.
    Regrads,
    Guru

    Hi All / Raynard,
    Your answer was very useful.
    We are trying to install SAP ECC 6.0 enhancement package 2 but we have some problem in the same as we are not able to find the same in sap marketplace. Can you please post me the direct link to download or any info regarding the Enhancement Package-2.
    We have also version prior to ECC 6.0 . So can you please tell me how to look into the Java-webdynpro components those which are related to travel management.
    Your ealiest answer will be much appriciable. I will be rewarding points according to forum rules.
    Regards,
    Guru

  • How to create a table from an existing table with new column

    Hi !
    Please help me.
    I want to create a table from an existing table with data and add two new column to the new table.
    What will be the syntax?

    craete table new_table as select a.*, 'somevalue' new_col1, 'somevalue'
    new_col2 from old_table a;Also there is a pitfall - newly created table will accept column type and precision from the select statement, so further you can be needed to modify columns
    if you want to have VARCHAR2 instead of CHAR for example:
    SQL> create table new_dept as select dept.*, 'New data' new_col from dept;
    Table created.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            CHAR(8)
    SQL> alter table new_dept modify (new_col varchar2(8));
    Table altered.
    SQL> desc new_dept
    Name                                      Null?    Type
    DEPTNO                                             NUMBER(2)
    DNAME                                              VARCHAR2(14)
    LOC                                                VARCHAR2(13)
    NEW_COL                                            VARCHAR2(8)Rgds.
    Didn't see michael's post - it reflects the fix for this problem using CAST.
    Message was edited by:
    dnikiforov

  • How to create a table with editable column values.

    Hi everyone,
    I think this is very simple but i'm not able to find how to do this. This is my requirement. I need to create a table with n columns and 1 row initially. user should be able to enter data into this table and click of a button should insert data into the data base table. Also there should be a button at the bottom of the table to add 1 row to the table.
    I know how to do the insert to database, but can anyone please let me know how to create a table that allows user to enter data and how to create a add 1 row button?
    Thanks in Advance!

    Raghu,
    Go through the ToolBox tutorial Create Page & Advanced table section of OAF Guide.
    Step 1 - You require to create EO & a VO based on this EO. This EO will be of DataBase table where you want to insert the data.
    Step 2 - Create a Advanced table region. (Refer this Adavanced table section for more on this)
    Step 3 - Attach this VO in the BC4J component of Adavanced Table region.
    Regards,
    Gyan

  • How do I create a table within another table?

    How do I create a table within another table?
    As shown in image below (document created with Words), I already have a table with 3 columns. How do I create another table with 6 columns to tabulate the data (the one below "3.1 Overall")?

    Last time I checked in Pages 5.5.2 that is not possible.
    Peter

  • Setting only the TO field on the Created on Field in Selection screen to Current date

    Hello,
    We have a requirement to Set only the To date in the Created on Field in Selection screen to the Current date, I have tried through Dynamic variable option to set the Date calculation but I am able to see Options to set the Current date to From or From and To Created on Date fields instead of setting the Current date only to To created on Field.
    We are in 4.7 and are not supported with user defined variables, Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    >
    sunitha j wrote:
    > Hi ,
    >
    > It would br gr8..if u could give some more info about the usage of this class..i mean if i hav to implement it in my program....wat is the necessary data that needs to b copied...
    >
    > Thanx,
    > Sunitha
    what Text field you want to change.
    Since you are working with Dynpros , you have to split the screen in two parts, and one for the Showing differenet fonts and other your normal Dynpro information.
    you need to use the Method ADD_TEXT Did you check the program DD_STYLE_TABLE.

  • Create fragmented table data

    Hi guys,
    I would like to create a table and populate it with lot of data to make some tests, but I also would like to have a high fragmented table to simulate this.
    is there any script that create this environment?
    thanks

    Hi ,
    Please try this ,Not tested.
    1-Create table without any index.
    2-insert data.
    3-create index
    4-update some data
    5-drop Index.
    6-create index
    7-insert another data
    check now select * from dba_segments where extents > 10;
    Regards
    faheem latif

  • How to create a table to use in webdynpro ABAP

    Hi Guys,
    Can anybody let me know how to create a table to use in webdynpro ABAP. I am new to ABAP. It would appreciable if i get useful answer.  Thanks In Advance
    Regards
    Ravi

    Hi! You can use transaction code SE11.  Please refer to http://help.sap.com/saphelp_nw70/helpdata/en/6c/f2934259a5c66ae10000000a155106/frameset.htm
    Please note that table name should start with 'Y' or 'Z' - by SAP naming conventions object names starting with 'Y' and 'Z' are reserved for customer application development.
    Please reward points if helpful

  • Webdynpro ABAP & JAVA step by step example with screen shots

    hi experts,
    i am new in webdynpro. i want to learn webdynpro so any one plz help me how to create,how to install,connect,and how to execute plz send any documents for webdynpro ABAP & JAVA step by step examples with screen shots.it's really helpful for my carrier.
    thanks and regards,
    sapbbm.

    hi bala,
      check out this URL you have 41 sample codes and PDF of Webdynpro for JAVA.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Thanks
    Gopi

Maybe you are looking for

  • BPC 7.5 Web Administration / Set App Params asks for AntiXSSLib 1.5

    Hi. We have now installed BPC 7.5 in our test environment, but are facing a problem. According to the installation guide, we have installed Microsoft AntiCross Site Scripting Library 3.0 on our app/web-servers. But when trying to enter "Set Applicati

  • Execute immediate -- udpate statement

    Hello, I am fairly new to scripting sql..pl/sql.. any help will be really appreciated!! I have a table where i am trying to update one of the column with table name i am passing dynamically. However i get the invalid identifier error. ORA-00904. The

  • I am no longer an admin on my computer

    I have a Macbook Pro with Leopard (OS X 10.6.4) and I was going to change the nickname in advanced settings. I deleted the name, accidentally hit back. When I went to change it again I clicked on the button and my highlighted full name deleted itself

  • Problem connecting xbox360 to wrt54g

    i am trying to connect my 360 to my wireless network and have had limited success. my router is the wrt54g v4 and i am useing the xbox wireless network adapter. i have a desktop that is wired to the router and a laptop that connects wirelessly just f

  • Package Management System(PMS) in Solaris 10 ?

    Is there an effort to improve P.M.S. in solaris 10 ?