Skip to Content
avatar image
Former Member

Create Report of some Infotypes

Hi Friends

I want some fields from IT000 to IT0185 some random of info types Into One Internal Table.

How do i get that?

Please Help me

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 17, 2008 at 04:32 AM

    1) Take all the fields from which infotypes You need into one internal Table .

    2) Use GET PERNR and rp-provide-from-last to get the latest records.

    3) Select statements for all infotypes.

    Or

    Try like this

    DATA: Begin of itab,

    pa0000 like pa0000,

    pa0001 like pa0001,

    pa0002 like pa0002,

    pa0006 like pa0006,

    pa0007 like pa0007,

    pa0001 like pa0008,

    pa0002 like pa0009,

    pa0006 like pa0077,

    pa0007 like pa0041,

    end of itab.

    select into corresponding fields of itab from PA0000, PA0001, PA0002, PA0006 ....

    To read : itab-pa0001-orgeh, etc..

    Best Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Use LDB with Macros or SELECT statements.

      But dont use both in the program.

      Bcoz it makes your program's performance poor.

      And also avoid using select with into corresponding or move corresponding to.

      bcoz these are the basic things which needs to be taken care when u r writing a quey.

      Regards,

      Charan.

  • Oct 17, 2008 at 04:32 AM

    https://forums.sdn.sap.com/click.jspa?searchID=17578435&messageID=6372036

    this may give an idea

    Edited by: Sikindar on Oct 17, 2008 10:02 AM

    Add comment
    10|10000 characters needed characters exceeded