Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 16, 2008 at 02:23 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2008 at 02:22 PM

    hi,

    try to debug ner the badi and see whether the data which you are modifying is available..

    else you can use fieldymbols..

    <fs> type <table type>.

    loop at <table> assigning <fs>.

    <fs>-fieldname = 'modiffy data.

    endloop.

    what is the badi you are using.. can you give details..

    regards,

    nazeer

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.