Skip to Content
avatar image
Former Member

About Supply Function

Hi , all

1、There are two table, when select a record in the first table , the Second table

is update automatic.

2、The second table can be edited by user, when user select the other record

in the first table, i update the second table data to context first.

But when user select the other record in the first table, in this action,i can't get

the data from the second table and update them to context.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2007 at 06:08 AM

    Hi Pei,

    Your problem should be solved if you bind the second table to a child node of your first table's node. This way, the supply function will be called automatically for your child node (and hence the second table will be updated automatically)

    Hope this helps.

    Regards,

    Neha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2007 at 03:16 PM

    Hi Pei,

    first go to context and create node say vbak which is a header table and then immediately create another node say - vbap with initialization,singleton checked and supply function name say - Get_item and then create the item attributes

    Then create the respective attributes for the header table say vbeln, vbtyp,...etc.

    Now write the logic to get the value of the header value in wdoint and also to get the item value in supply function.

    It should work other wise (r) i will send u the code samples

    Regards

    Sathish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Pei,

      If you have the 2 tables as a parent and child node, and populate the child node using a supply function, it will be called every single time you change the lead selection of the parent node. Instead, if you have the same code in doinit, it will be called just once.

      I dont think you need a parent-child relationship at all. You can have two nodes, and in the onSelect event of the first node, read the contents of the second node.

      Regards

      Nithya