cancel
Showing results for 
Search instead for 
Did you mean: 

loop in adobe form

former_member756887
Participant
0 Kudos

Hi,

I'm creating a subcontracting challan for mm module in adobe form .

i have a table control for internal table j_1iexcdtl . how much daat in internal table it display fine.

now i want to add a rate column which is not in my internal table it's a varial\ble,

like : asval = w_j_1iexcdtl-exbas * w_j1iexcdtl-menge.

i added asval column with table but it's giving me last calculation value.

i have written code in formcalc.

data.IT_ZSERT.DATA.ASSVAL = data.IT_ZSERT.DATA.MENGE * data.IT_ZSERT.DATA.EXBAS

i want each row calculation in rate column..

Please help... it's realy appreaciable.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try like this.



data.IT_ZSERT.DATA[*].ASSVAL = data.IT_ZSERT.DATA[*].MENGE * data.IT_ZSERT.DATA[*].EXBAS

Regards,

Runal

former_member756887
Participant
0 Kudos

hi,

Runal thankx for ur intrest . bt it's calculating only first line item and giving smae value for all rows.

Regards

Aniruddh Singh

Former Member
0 Kudos

Hi,

Instead of * in the [], try using the selectIndex property, try searching for this property after the placing a '.' "dot" after data.

I dont have ALD installed in the system i am currently using, so i am not sure whether it is indexSelected or selectIndex...if you do the work around you will get it.

The expression would look like.....



data.IT_ZSERT.DATA[data.IT_ZSERT.DATA.selectIndex].ASSVAL = data.IT_ZSERT.DATA[data.IT_ZSERT.DATA.selectIndex].MENGE * data.IT_ZSERT.DATA[data.IT_ZSERT.DATA.selectIndex].EXBAS

Regards

Runal

former_member756887
Participant
0 Kudos

Hi runal

when i am passing index it's giving 0 value for all tupples.

Regards

Aniruddh Singh

Former Member
0 Kudos

hi,

Hope you are putting this code in the initialize event....?

Regards,

Runal

former_member756887
Participant
0 Kudos

hi,

Runal thank u so much it's working... thank u ..again

Regards

Aniruddh Singh

Answers (1)

Answers (1)

Former Member
0 Kudos

hello aniruddh ,

i have a inetrnal table , want only display the data in the adobe forms in table format .

please guide me.

vanu.