Skip to Content

Pass internal table values from a method to another

Hi All gurus,

How to pass internal table values to another method.

Ex :

Method ONSUBMIT

Call Method get_VBAK

Method  get_VBAK


Select * from VBAK into table it_tab.

How to pass this it_vbak internal table values again to method on_Submit.





Thanks all in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Feb 07, 2014 at 11:51 AM

    Hi Tharu,

    If you want to pass internal table data into another method.

    Declare import parameter as table and pass this internal table in import parameter.

    Thanks,

    Ranjit Kumar.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 07, 2014 at 11:26 AM

    hi Tharu

    You can do this by binding the internal table with the node and then reading that node attributes in the desired method. (if both the methods are in same view)

    Regards

    Vaibhav

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07, 2014 at 11:35 AM

    HI Vaibhav,

    thanks for the reply and I understood that creating Context Nodes will satisfy my request. Is there any other alternative since Iam gonna call this method Method  get_VBAK (according to my example above)several times in Method ON_Submit for various purposes . This is in the same view.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 07, 2014 at 11:47 AM

    Hi Tharu,

    Define an exporting parameter  of a method GET_VBAK as shown

    Note : Define TT_VBAK( Table type )

    Now call the method GET_VBAK on action of a button

    Hope this should solve your issue 😊

    Thanks & Regards,

    Sankar Gelivi

    Add comment
    10|10000 characters needed characters exceeded