cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass internal data from one method to another method in web dynpro?

Former Member
0 Kudos

Dear Experts,

                      I have small doubt in web dynpro (i.e) I have and internal table filled with data in one method like (IT_TAB) in method UPLOAD_EXCEL from here I want that internal table in SAVE_DATA(method) how to achieve this.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member222068
Active Participant

Hi Vamsi,

Create an attribute in Component controller--> Attribute tab

Note: IG_COMPONENTCONTROLLER=>ELEMENTS_MATERIAL

Material :  is name of the node

Elements: declares table type

2. You can set the data to this attribute

wd_comp_controller->gt_mara = lt_mara( Internal table )

3. To read the data stored in the GT_MARA

LT_Data = wd_comp_controller->gt_mara.

Thanks & Regards,

Sankar Gelivi

Former Member
0 Kudos

Hi,

Is your issue resolved?

Thanks

KH

Former Member
0 Kudos

Hi,

Declare IT_TAB at global level i.e in your assistance class.Now pass the data into your assistance class i-tab so that you can access the same through out the component where ever required.

I.e WD_ASSIST->I_TAB = IT_TAB.

Hope this helps you.

Thanks

KH