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

table

Hello,

I am using 1 itab in 2 different programs.

What is the write way - should declar. itab in bith progam.

or create structure in se11 & use that in program.( not thinking table as 1 field has diff

data)

if 2nd option plz give me steps. how to use str in program.

Thanks.

<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>

Edited by: Alvaro Tejada Galindo on Dec 18, 2008 12:15 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 18, 2008 at 05:03 PM

    Hi Rita,

    Try avoiding creation of tables in DDIC (Dictionary). Only if you use particular table structure very often go for this solution or (even more important) when you want to store some data which are visible after you close all your SAP sessions. In the latter case you could later use this table content in other programs.

    For your case it is sufficient to create two internal tables with same strucutre separetely in each program.

    Of course there is no particular reason why you should not create this table in DDIC (i.e. for training purpose).

    Regards

    Marcin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 05:04 PM

    Hi,

    If you want to use the same internal table in different programs then declare the table type in ABAP Dictionary and refer the same from different program.This is the right procedure to go ahead.

    Cheers,

    Hakim

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 05:05 PM

    If its just an internal table create in both the programs, otherwise create an INCLUDE program, do your data declarations there for both the programs and include it in both programs.

    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.