Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Posting Documents

Former Member
0 Kudos

Hi all,

is there anyway to read posting documents in CO?

if so can someone point me in the right direction on how to do this from a programming aspect.

SAP reads them through transaction pcp0, I was wondering how I could do this through a programming aspect.

thanks.

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You could do a SQL trace on transaction pcp0. This will tell you the tables that it is hitting.

Regards,

Rich Heilman

0 Kudos

Check the following tables in these select statements. These statements I pulled directly out of that transaction.




  SELECT PEVST~TYPE PEVST~RUNID PEVST~NAME PEVST~SIMU H1~STATUS
         H2~CREATOR H2~CREADATE H2~CREATIME
         INTO CORRESPONDING FIELDS OF TABLE RUNTAB
<b>         FROM PEVST JOIN PEVSH AS H1 ON  H1~TYPE  = PEVST~TYPE
                                     AND H1~RUNID = PEVST~RUNID
                    JOIN PEVSH AS H2 ON  H2~TYPE  = PEVST~TYPE
                                     AND H2~RUNID = PEVST~RUNID</b>
        WHERE PEVST~TYPE IN VALID_TYPES
         AND   H1~ACTUAL = 'X'
         AND   H2~SEQNO = '00'
         ORDER BY PEVST~TYPE PEVST~RUNID.

  SELECT TYPE RUNID ATTR VALUE
         INTO TABLE ATTRIBUTES
<b>         FROM PEVAT</b>
         WHERE TYPE IN VALID_TYPES
*        AND   ATTR IN ('AKPER', 'SPECRUN')               "PF_2002/05/21
*        new attribute BEGDAENDDA: Only used by type PF
         AND   ATTR IN ('AKPER', 'SPECRUN', 'BEGDAENDDA') "PF_2002/05/21
         AND   ID = '00'
         ORDER BY TYPE RUNID.


Regards

Rich Heilman

Message was edited by: Rich Heilman