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

replace table entries

Hi,

I want to replace some old values with new values at table level.there are so many tables need to replace those values.that means i have 30 to 40 tables to replace.for this i want a report program .Can any one give me the idea.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2007 at 08:27 AM

    if you want to replace some standard table value then better option is to change it through Standard SAP Tcode so that it will automatically change the values in all corresponding tables...

    if you want to change values in the custom table then design a report that will change these values

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 04:42 AM

    Hi

    this code may help u out try it

    loop at itabline.

    zg8_ekpo-ebeln = zg8_ekko-ebeln.

    zg8_ekpo-ebelp = itabline-ebelp.

    zg8_ekpo-matnr = itabline-matnr.

    zg8_ekpo-menge = itabline-menge.

    zg8_ekpo-meins = itabline-meins.

    zg8_ekpo-netpr = itabline-netpr.

    zg8_ekpo-waers = itabline-waers.

    *Update the entries into item table

    modify zg8_ekpo.

    endloop.

    here itabline is an internal table and zg8_ekpo is the custom table so first get the the values u want to modify into an internal table and then move them into the custom table the modify statement will do the rest

    reward points if found helpful.

    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.