Application Development and Automation 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: 
Read only

Modify Dynamic Table from Dynamic Work Area.

Former Member
0 Likes
806

Hi experts,

I am trying to Modify a Dynamic Table from a Dynamic Work Area. They are the same kind and the index is correct.

The code is this:

MODIFY <DYN_TABLE>

FROM <DYN_WA> INDEX ls_selfield-TABINDEX.

It gives me no error but it ignores the modification.

Whan am i doing wrong here?

Thanks!

Artur.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
747

I have detected that the problem is not there:

lV_FIELD0 = ' '.

lV_FIELDX = 'X'.

To perform the modification i do this:

CONCATENATE '<DYN_WA>-'

fieldname INTO INTO LV_FIELD_NAME.

ASSIGN (LV_FIELD_NAME) TO <SELECCION>.

ASSIGN lV_FIELD0 TO <SELECCION>.

THe value on <SELECCION> changes but the value pointed in <DYN_WA> is not changing here.

How is this possible?

Thanks!

6 REPLIES 6
Read only

Former Member
0 Likes
748

I have detected that the problem is not there:

lV_FIELD0 = ' '.

lV_FIELDX = 'X'.

To perform the modification i do this:

CONCATENATE '<DYN_WA>-'

fieldname INTO INTO LV_FIELD_NAME.

ASSIGN (LV_FIELD_NAME) TO <SELECCION>.

ASSIGN lV_FIELD0 TO <SELECCION>.

THe value on <SELECCION> changes but the value pointed in <DYN_WA> is not changing here.

How is this possible?

Thanks!

Read only

0 Likes
747

Try this

CONCATENATE '<DYN_WA>-'
fieldname INTO INTO LV_FIELD_NAME.

ASSIGN (LV_FIELD_NAME) TO <SELECCION>.

MOVE lV_FIELD0 TO <SELECCION>.

Read only

0 Likes
747

It works, thank you!!

Read only

Former Member
0 Likes
747

Try this and check:

MODIFY <DYN_TABLE> INDEX ls_selfield-TABINDEX FROM <DYN_WA>

Read only

0 Likes
747

Sorry, i have detected the real problem, it is in my 2nd message.

Read only

0 Likes
747

It's Okay....I just finished posting and saw your reply. No problem.