Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ANY TABLE modification

Hi,

I have a badi. This badi has a table parameter of type "ANY TABLE". I am trying to modify a field of this table.

This is how I am doing this.

1. Loop though this table

2. Get the record of the table into work area

3. Modify the field of this work area.

4. Use the statement to * MODIFY TABLE c_t_data FROM it_t_data * modify this internal table.

5. It is not modifying the table.

Is there anything else to do ? Is it different with this table? I used almost all variants of Modify such as using index and all other.

Please help me.

SM

Tags:
replied

Sm,

Why don't you use ASSIGNING Statement?

Like as:

LOOP AT T_TABLE ASSIGNING <W_TABLE>

<W_TABLE>-FIELD = Value.

Or

ASSIGN .. FIELD ..from <W_TABLE> to <FIELD>.

<FIELD> = Value.

ENDLOOP.

Regards,

Alexandre

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question