Skip to Content
avatar image
Former Member

working with Tables

Hi SDN,

Can some one tell me how to work with tables in onlineinteractive form? I'm doing following scenario.

I want a table with 5 rows in the form and in my BAPI I already have table defined which is under changing node after I used service call for my BAPI in the Webdynpro.

my context is as following:

Main Node (under root node)

---Changing(Subnode) 1 to1

-


T_lfbk(subnode of chaning) 0 to n (this is the table defined in BAPI)

--- all attributes of T_lfbk node.

I tried creating a table but Im not able to pass the values from Table to Context.

Really appreciate if some one can help me out.

Regards,

Ravi.D

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 05, 2009 at 06:39 AM

    Hi,

    Have you checked wether your BAPI requires any input neccessary to be passed to get the output.

    Use BIND_TABLE for the context you are doing.

    Please check the entries for the table

    you want to bind inthe debugging.

    In the EXECUTE_<<methodname>>,

    use the BIND_TABLE statement to bind the table to context.

    for ex:

    lr_changing_node is the changing node reference, for this

    lr_changing_node->bind_table( <<tablename>>).

    This would work for you now.

    Regards,

    Lekha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

      I think your BAPI isnot fectching any values for your inputs.

      Regards,

      Lekha.

  • avatar image
    Former Member
    Jan 05, 2009 at 12:08 PM

    Hi Ravi,

    Initially i also faced the same issue.

    the problem when we take a table on webdynpro by default it will not come into edit/input mode. It will be in display mode only so that when you have online interactive form, the table is in edit mode since it is designed in formdesigner usign sfp.

    if you want enter the 5 rows on table you have to open that many rows in input mode for that you have to use bind_table(itab) in wddoinit.

    this itab you may have a field called slno or itemno then take a do loop and pass the counter for 5 times then use bin_table.

    i did like this it is working for me.

    do 5 times.

    n = n + 1.

    ls_rit3nrpt-SRL_NO = n.

    append ls_rit3nrpt to lt_rit3nrpt.

    clear ls_rit3nrpt.

    ENDDO.

    CALL METHOD LO_ND_ZMRA_TY_RIT3NRPT->BIND_TABLE

    EXPORTING

    NEW_ITEMS = lt_rit3nrpt

    Thanks,

    mahesh.gattu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2009 at 01:47 PM

    Hi,

    Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

    I think your BAPI isnot fectching any values for your inputs.

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded