Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assignment of a manipulated field to a constant value

Former Member
0 Kudos

Hi Friends,

I'm facing a problem in assigning a manipulated field(lgart) through the program of infotye 8 to a constant value.I'm manipulating the field

name based on the wagetypes already filled in infotype 8.For example if in infotype 8,3 wagetypes are filled, i need to insert the 4th wagetype in row 4,5th wagetype in row 5 and so on in infotype 8.So first i'm checking for the row no of the final wagetype filled in infotype 8 and manipulating the field name for the next row to be filled with the wagetype.The problem I'm facing here is i don't know how to assign a wagetype value to the manipulated field name.Basically I'm doing this in the exit ZXPADU02.

I have attached my code below.So anyone of you help me in providing with a solution for this problem.

it_wagetype-lgart = i0008-lga01.

it_wagetype-lgart_field = 'lga01'.

append it_wagetype.

it_wagetype-lgart = i0008-lga02.

it_wagetype-lgart_field = 'lga02'.

append it_wagetype.

it_wagetype-lgart = i0008-lga03.

it_wagetype-lgart_field = 'lga03'.

append it_wagetype.

it_wagetype-lgart = i0008-lga04.

it_wagetype-lgart_field = 'lga04'.

append it_wagetype.

it_wagetype-lgart = i0008-lga05.

it_wagetype-lgart_field = 'lga05'.

append it_wagetype.

it_wagetype-lgart = i0008-lga06.

it_wagetype-lgart_field = 'lga06'.

append it_wagetype.

it_wagetype-lgart = i0008-lga07.

it_wagetype-lgart_field = 'lga07'.

append it_wagetype.

it_wagetype-lgart = i0008-lga08.

it_wagetype-lgart_field = 'lga08'.

append it_wagetype.

it_wagetype-lgart = i0008-lga09.

it_wagetype-lgart_field = 'lga09'.

append it_wagetype.

it_wagetype-lgart = i0008-lga10.

it_wagetype-lgart_field = 'lga10'.

append it_wagetype.

it_wagetype-lgart = i0008-lga11.

it_wagetype-lgart_field = 'lga11'.

append it_wagetype.

it_wagetype-lgart = i0008-lga12.

it_wagetype-lgart_field = 'lga12'.

append it_wagetype.

it_wagetype-lgart = i0008-lga13.

it_wagetype-lgart_field = 'lga13'.

append it_wagetype.

it_wagetype-lgart = i0008-lga14.

it_wagetype-lgart_field = 'lga14'.

append it_wagetype.

it_wagetype-lgart = i0008-lga15.

it_wagetype-lgart_field = 'lga15'.

append it_wagetype.

it_wagetype-lgart = i0008-lga16.

it_wagetype-lgart_field = 'lga16'.

append it_wagetype.

it_wagetype-lgart = i0008-lga17.

it_wagetype-lgart_field = 'lga17'.

append it_wagetype.

it_wagetype-lgart = i0008-lga18.

it_wagetype-lgart_field = 'lga18'.

append it_wagetype.

it_wagetype-lgart = i0008-lga19.

it_wagetype-lgart_field = 'lga19'.

append it_wagetype.

it_wagetype-lgart = i0008-lga20.

it_wagetype-lgart_field = 'lga20'.

append it_wagetype.

it_wagetype-lgart = i0008-lga21.

it_wagetype-lgart_field = 'lga21'.

append it_wagetype.

it_wagetype-lgart = i0008-lga22.

it_wagetype-lgart_field = 'lga22'.

append it_wagetype.

it_wagetype-lgart = i0008-lga23.

it_wagetype-lgart_field = 'lga23'.

append it_wagetype.

it_wagetype-lgart = i0008-lga24.

it_wagetype-lgart_field = 'lga24'.

append it_wagetype.

it_wagetype-lgart = i0008-lga25.

it_wagetype-lgart_field = 'lga25'.

append it_wagetype.

it_wagetype-lgart = i0008-lga26.

it_wagetype-lgart_field = 'lga26'.

append it_wagetype.

it_wagetype-lgart = i0008-lga27.

it_wagetype-lgart_field = 'lga27'.

append it_wagetype.

it_wagetype-lgart = i0008-lga28.

it_wagetype-lgart_field = 'lga28'.

append it_wagetype.

it_wagetype-lgart = i0008-lga29.

it_wagetype-lgart_field = 'lga29'.

append it_wagetype.

it_wagetype-lgart = i0008-lga30.

it_wagetype-lgart_field = 'lga30'.

append it_wagetype.

it_wagetype-lgart = i0008-lga31.

it_wagetype-lgart_field = 'lga31'.

append it_wagetype.

it_wagetype-lgart = i0008-lga32.

it_wagetype-lgart_field = 'lga32'.

append it_wagetype.

it_wagetype-lgart = i0008-lga33.

it_wagetype-lgart_field = 'lga33'.

append it_wagetype.

it_wagetype-lgart = i0008-lga34.

it_wagetype-lgart_field = 'lga34'.

append it_wagetype.

it_wagetype-lgart = i0008-lga35.

it_wagetype-lgart_field = 'lga35'.

append it_wagetype.

it_wagetype-lgart = i0008-lga36.

it_wagetype-lgart_field = 'lga36'.

append it_wagetype.

it_wagetype-lgart = i0008-lga37.

it_wagetype-lgart_field = 'lga37'.

append it_wagetype.

it_wagetype-lgart = i0008-lga38.

it_wagetype-lgart_field = 'lga38'.

append it_wagetype.

it_wagetype-lgart = i0008-lga39.

it_wagetype-lgart_field = 'lga39'.

append it_wagetype.

it_wagetype-lgart = i0008-lga40.

it_wagetype-lgart_field = 'lga40'.

append it_wagetype.

loop at it_wagetype.

if it_wagetype-lgart = ''.

exit.

endif.

g_wagetype = it_wagetype-lgart_field.

endloop.

g_num1 = g_wagetype+3(2).

g_num1 = g_num1 + 1.

if g_num1 < 10.

concatenate 'i0008-lga0' g_num1 into g_wt1.

else.

concatenate 'i0008-lga' g_num1 into g_wt1.

endif.

After this step i need to assign the manipulated field name present in the variable g_wt1 to a wagetype value

'0096'.I'm stuck up at this point.

Advance Thanks and Regards,

Vadivel.

1 ACCEPTED SOLUTION

former_member186741
Active Contributor
0 Kudos

field-symbols <field>.

assign (g_wt1) to <fIELD>.

<FIELD> = '0096'.

1 REPLY 1

former_member186741
Active Contributor
0 Kudos

field-symbols <field>.

assign (g_wt1) to <fIELD>.

<FIELD> = '0096'.