DYNAMIC PROGRAMMING IN WEBDYNPRO ABAP.

Hi Experts
How to create input field dynamical and when i click on the input field drop down ui  should display,If i click n time the input field that many drop down should be displayed this should be done using dynamic programming.
Waiting for Reply.
Thanks & Regards.
kittu

Hi,
Please search before posting.. discussed many times.
To create Input field dynamically, follow like this...
DATA LR_CONTAINER TYPE REF TO CL_WD_UIELEMENT_CONTAINER.
DATA LR_INPUT TYPE REF TO CL_WD_INPUT_FIELD.
DATA LR_LABEL TYPE REF TO CL_WD_LABEL.
DATA LR_TABLE TYPE REF TO CL_WD_TABLE.
DATA LR_BUTTON TYPE REF TO CL_WD_BUTTON.
DATA LR_GRID_DATA TYPE REF TO CL_WD_GRID_DATA.
DATA LR_FLOW_DATA TYPE REF TO CL_WD_FLOW_DATA.
DATA LR_MATRIX TYPE REF TO CL_WD_MATRIX_HEAD_DATA.
LR_CONTAINER ?= VIEW->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
CALL METHOD CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD
EXPORTING
BIND_VALUE = ATTRIBUTE
ID = ATTRIBUTE
RECEIVING
CONTROL = LR_INPUT.
lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input ).
lr_input->set_layout_data( lr_matrix ).
LR_CONTAINER->ADD_CHILD( LR_INPUT ).
ENDIF.
Cheers,
Kris.

Similar Messages

  • Creating a dynamic valuehelp in webdynpro abap

    Hello,
    I am doing some development in Webdynpro Abap.
    At this point I am unable to use the standard valuehelp provided in the system for selecting some values in an SAP HR system. Would there be any code samples for coding a custom value help in Webdynpro for ABAP. One of the things I have to be able to do is to dynamically generate the values of the valuehelp based on the value of some other fields on the screen that I am coding.
    Any code samples or links will be appreciated.
    Thanks for your help.
    Best Regards
    Sumit Agarwal.

    hi,
    Check out OVS Input help.
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    http://help.sap.com/saphelp_nw04s/helpdata/en/47/9ef8c99b5e3c5ce10000000a421937/frameset.htm
    I hope this will help you.
    Thanx.

  • Regarding Dynamic Programming in HR-ABAP

    Hi,
         I have problem on the dynamic programming. The Reqirement is like, Infotype
    0008 if shows one Initial screen , into that infotype we have to add five fields this is
    an Enhancement and after we adding that fields into that infotype we should do some logics based on the wagetype , and once we enter an input to that IT 0008
    we get that five field values l. How can i solve this problem please help me.
    Regards,
    Sadanandam

    Please this is and Urgent Requirement

  • How to bind a bapi dynamically in webdynpro abap program

    Hi Gurus,
    I want to bind a bapi dynamically in my webdynpro abap program. I have four bapis in my program. During run time depending on requirement appropriate bapi should be binded to context node. Please send me links to documents or code urgently. Points will be rewarded.
    Thanks,
    k.c.

    hi
    good
    go through this link,hope this ll help you to solve your problem
    http://www.vnsg.nl/temp/138624816/A1-WDA_Themadag.pdf
    http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/elaborations/14-WebDynpro-Dataflow.pdf
    thanks
    mrutyun^

  • Dynamic Programing : WebDynPro ABAP

    Hi expert ,
                      I need to create UI element (Text_view) dynamically ,
                      can anyone send the code for that one .
    Thanks & Regards
    Sankar.M

    Hi,
    Refer to this link -
    Dynamic Programing
    Regards,
    Lekha.

  • 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

  • Can I use logical databases in a WebDynpro ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the existing logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hello, Tiberiu.
    You cannot use LDB directly within your WDA programa. BUT, you can fetch results from this LDB by using FM LDB_PROCESS. This function module can be called anytime from any kind of ABAP program. But you will still have to create the screen, as it only processes data, not screens.
    Regards,
    Andre
    PS: Pls reward points if it helps.

  • Filling dynamic drop down in adobe interactive form( webdynpro ABAP)

    HI all,
    Im new in Webdynpro ABAP, my requirement is to fill drop down list in adobe interactive form. i created adobe form and its working fine.
    I Created context like ROOT(cardinality 1:1)->DATANODE cardinality 0:n. This context is for drop down and in wddoinit i did  like this.
      IN WDDOINIT ,
    DATA lo_nd_root TYPE REF TO if_wd_context_node.
      DATA lo_nd_datanode TYPE REF TO if_wd_context_node.
      DATA lo_el_datanode TYPE REF TO if_wd_context_element.
      DATA ls_datanode TYPE wd_this->elements_datanode.
    navigate from <CONTEXT> to <ROOT> via lead selection
      lo_nd_root = wd_context->get_child_node( name = wd_this->wdctx_root ).
    navigate from <ROOT> to <DATANODE> via lead selection
      lo_nd_datanode = lo_nd_root->get_child_node( name = wd_this->wdctx_datanode ).
    get element via lead selection
      lo_el_datanode = lo_nd_datanode->get_element(  ).
    ls_datanode[] = lt_dna_value[].
    CALL METHOD lo_nd_datanode->bind_table
      EXPORTING
        new_items            =  ls_datanode
        set_initial_elements = ABAP_TRUE.
       index                =
    while executing  i'm getting this error ": WebDynpro Exception: ADS: com.adobe.ProcessingException: No output was generated while rendering: Stream for: PDFOut.(200,101). " . can u please tell me how to bind value for drop down.
    I created sample table in same form and i binded same value to table, that time its executing fine.
    can u please tell me solution for this Scenario.
    Thanks
    Hemachandran.
    Edited by: hemachandran R on Sep 12, 2008 2:27 PM

    hi,
    My requirement, is to use dynamic drop down in dynamic table. I am using webdynpro abap.
    i populated the value in drop down.
    Its working fine but the problem is how to fill the default value in drop down. because i want to bind the default value which im getting specify value from the table.because each row
    im getting different values, like first row
    CAR
    , that CAR want to fill as a default value in drop down  and second row  as
    BIKE
    that BIKE  want to fill as default value in drop down  ( example drop down contain   car , bike , cycle).
    In adobe form i binded like this
      $record.DATANODE.DATA[*].DNA_RATING
    i dont know whether this one is correct or wrong  .
    im getting default value as empty.
    please give me some solution how to do this.its very urgent
    thanks
    hemachandran.

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • Retreival of Dynamic Table Datas from Adobe to WebDynpro- ABAP

    Dear Friends,
    I have Developed an application in Webdynpro-ABAP, where i have integrated Adobe form in the webdynpro.
    In the adobe form, dynamic table is there where we can add and delete the rows at runtime.
    I am trying to retreive the table datas at runtime from the adobe.
    I can able to retreive only the first record from the table, even if the table contain more than one rows.
    As per the below code i have retreived the count, where it is showing the count as 1.
    using the method get_static_attributes_table i am trying to fetch all the records, but i can able to retreive only the first record.
    lo_nd_zsm_fm_transport_tra = wd_context->get_child_node( name = wd_this->wdctx_zsm_fm_transport_tra ).
      lo_nd_tr_details_i = lo_nd_zsm_fm_transport_tra->get_child_node( name = wd_this->wdctx_tr_details_i ).
    count = lo_nd_tr_details_i->GET_ELEMENT_COUNT( ).
    elems_bank_table = lo_nd_tr_details_i->get_elements( ).
    lo_nd_tr_details_i->get_static_attributes_table(
      importing
        table = ls_tr_details_i ).
    Even Cardinality i have maintained as 1.N for the node.
    Kindly provide me the solution.
    Thanks and Regards,
    Sathish,,

    Hi, I have solution for read data from dynamic table and add these added row to WD4A context (and then save them to DB) (in ONACTIONPROCESS_SUBMIT event):
    DATA: l_fp TYPE REF TO if_fp.
    l_fp = cl_fp=>get_reference( ).
    DATA: l_pdfobj TYPE REF TO if_fp_pdf_object.
    l_pdfobj = l_fp->create_pdf_object( ).
    l_pdfobj->set_document( pdfdata = lv_pdfsource ).
    l_pdfobj->set_extractdata( ).
    l_pdfobj->execute( ).
    DATA: pdf_form_data TYPE xstring.
    l_pdfobj->get_data( IMPORTING formdata = pdf_form_data ).
    DATA: converter TYPE REF TO cl_abap_conv_in_ce, formxml TYPE string.
    Converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
    Converter->read( IMPORTING data = formxml ).
    TYPE-POOLS: ixml.
    DATA: l_ixml TYPE REF TO if_ixml.
    l_ixml = cl_ixml=>create( ).
    DATA: streamfactory TYPE REF TO if_ixml_stream_factory,
    istream TYPE REF TO if_ixml_istream.
    streamfactory = l_ixml->create_stream_factory( ).
    istream = streamfactory->create_istream_string( formxml ).
    DATA: document TYPE REF TO if_ixml_document.
    Document = l_ixml->create_document( ).
    DATA: parser TYPE REF TO if_ixml_parser.
    parser = l_ixml->create_parser( stream_factory = streamfactory
                                               istream = istream
                                               document = document ).
    Parser->parse( ).
    the code above allows you to read xml data from pdf file, then you need only to read xml and adding rows to your context:
    data : item type string.  DATA: nodechild TYPE REF TO if_ixml_node,
            Childschild TYPE REF TO if_ixml_node.
        data: num_of_children type i,
              x type i,
              y type i,
              num_of_attribute.
    node = document->find_from_name('ZAM_PROTSTROJF').
    num_of_children = node->num_children( ).
    nodechild = node->get_first_child( ).
    data: wa_strojdetail type ZAM_PROTSTROJF,
          wa_strojdetail_tab TYPE TABLE OF ZAM_PROTSTROJF.
    wa_strojdetail-docnum = ls_zam_protstroj-docnum.
    wa_strojdetail-bukrs = 'VVS'.
    wa_strojdetail-mandt = sy-mandt.
    y = 1.
    do Num_of_children times.
           num_of_attribute = nodechild->num_children( ).  " Childschild->num_children( )." Getting the number of attributes
           Childschild = nodechild->get_first_child( ).
           wa_strojdetail-itemnum  = y.
           x = 1.
           do num_of_attribute times.
              item = Childschild->GET_value( ).
              CASE x.
                WHEN 4.
                  wa_strojdetail-anln1 = item.
                WHEN 5.
                  wa_strojdetail-anln2 = item.
                WHEN 6.
                  wa_strojdetail-bubtr = item.
                WHEN 7.
                  wa_strojdetail-belnr = item.
              ENDCASE.
              Childschild = Childschild->get_next( ).
              x = x + 1.
          enddo.
          y = y + 1.
          APPEND wa_strojdetail to wa_strojdetail_tab.
          nodechild = nodechild->get_next( ).
    enddo.
    This is complete solution for adding rows in interactive forms and working with them in WD4A!
    Regards Jiri
    Edited by: Jiri Neuzil on Jun 10, 2009 8:13 AM
    Sorry for formatting, but I don't know, how to format text correctly on this site in plain text I have all text correctly formatted, but in preview....

  • Standard program to display which tables are used by Webdynpro ABAP program

    Hi Gurus,
    I am working on a couple of enhancements in SAP Promotion Management for Retail (SAP PMR) which works on the principle of Floor Plan Management.
    I was wondering if anyone would know of a standard program to display the tables used by Webdynpro ABAP?
    (or)
    Where can I get info of SAP Tables associated to SAP PMR?

    Hi,
    I am not aware of any standard reports that displays the tables.
    If I have to view the tables, I would go to se80, give the package and view all the tables in the package.
    Regards,
    Daz.

  • ABAP Certification - What exactly means the "dynamic programming" topic?

    Hi all,
    Actually i´m studying for my ABAP exam and i´d like to know what exactly means dynamic programming(of ABAP Advanced topic, take a look at http://www50.sap.com/useducation/certification/curriculum.asp?rid=493&vid=5).
    Is it only about creating a new program dynamically? or anything else? I just want to know where will be my focus on it.
    thank you!
    André

    Dynamic programming could refer to a number of things, but here I assume that it refers to such things like, creating a dynamic internal table at runtime, and/or using RTTS, or it could mean, simply using fields symbols.
    Regards,
    RIch Heilman

  • Calling a mime object in the WebDynPro ABAP code dynamically

    Hi ,
    Can anyone let me know the API to access the mime objects dynamically in the WD ABAP code. I have a text file in the WD ABAP component as a text file.
    I would like to pick the file with the help of API's and read the content of the file using Mime Object API's .
    Can anyone help me out in this.
    Best Regards
    Sid

    Hi,
    do the methods of CL_WD_WEB_ICON help?
    Regards, Heidi

  • Exercises for Dynamic Programming

    Hi Everybody,
    I am New to Dynamic programming in ABAP-Webdynpro.
    Can any body suggest me few webdynpro exercises so that I can Practice.
    Regards,
    Xavier

    Hi,
    check these programs
    DEMO_CONTEXT_MENU_DYNAMIC
    DemoDynamic
    WDR_TEST_DYNAMIC
    WDR_TEST_DYNAMIC_1
    WDR_TEST_DYNAMIC_2
    WDR_TEST_DYNAMIC_3
    WDR_TEST_DYNAMIC_CI
    Also check this blog really help ful to you
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I
    Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
    Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c70444a-0801-0010-7688-9e4bd844b783
    Edited by: suman kumar chinnam on Oct 23, 2008 7:42 AM

  • Error when Interative Adobe Form is called from Webdynpro ABAP.

    Hi Experts,
    I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
    Line: -
    The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
    The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_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
    Line: -
    When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
    So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
    Thanks in Advance.
    Regards,
    Arun.

    Hello,
    Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
    Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
    check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
    and especially note 999998
    Regards, Otto

Maybe you are looking for

  • Can't select "bank card" type when applying account on iPod Touch's APP store.

    First It's iPod Touch 2nd Generation Version 4.2.1 At the very biginning, I used iTunes store on iPod to apply for new account, but it didn't let me select which card I 'm using (aka Vise, Mastercard...) on touch screen, so I searched online for solu

  • Problem in output file generation in AL11 tcode

    Hi experts,                  I am doing one proxy to file scenario.file to be generated as a fixed length format .when i run the scenario, i am getting all the values in output payload correctly in Sxmb_moni and file is also created.But when i scroll

  • Query related to replication method supported by ORACLE in 10g...

    Hi All, I have few question related to ORACLE replication methods. I have two database on different machine and I want to copy at schema level from source to target database. for this I have few queries related to Replication method as stated below:

  • I am unable to add jpeg attachments to my iPhoto album

    I am unable to add jpeg attachments to a received email to my iphoto album by click on the save/iPhoto pull dowen menu.  In prior systems a simple click would open iPhot and add the photos directy to it as a new event.  Now I have to open them in qui

  • Rloe Creation in the SAP template process

    Hello, Our Company is a subsidiary co. of a German based MNC Co. who have a global presence in Europe, America & Asia. Our compnay is the first subsidiary Co. for roll out of SAP templet process and later on the same templet process has been rolled o