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: 

Archiving using PBS Command

Former Member
0 Kudos

Hi All,

I am converting all MM reports to handle archiving data using PBS Command. For that I am using <b>/PBS/SELECT_INTO_TABLE</b>.

But in this FM some part is commented( see below code) related to MM . Due to this I can't export more selections.

If I use this FM all programs getting performace issue.

Plz let me know how to handle or suggest any other.

*PBSY310702 end

**************************************************************

WHEN 'CMM'.

SELECT SINGLE * FROM TFDIR "PBSL211102

WHERE FUNCNAME = '/PBS/CMM_SELECT_INTO_TABLE'. "PBSL211102

IF SY-SUBRC NE 0.

raise others. "PBSL071103

LOOP AT SEL1TAB. "PBSL211102

CALL FUNCTION '/PBS/CMM_SELECT_INTO_TABLE' "PBSL211102

EXPORTING "PBSL211102

TABNAME = TABNAME "PBSL211102

SCHL1_NAME = SCHL1_NAME "PBSL211102

SCHL1_VON = SEL1TAB-SCHLVON "PBSL211102

SCHL1_BIS = SEL1TAB-SCHLBIS "PBSL211102

  • SCHL2_NAME = "PBSL211102

  • SCHL2_VON = "PBSL211102

  • SCHL2_BIS = "PBSL211102

  • SCHL3_NAME = "PBSL211102

  • SCHL3_VON = "PBSL211102

  • SCHL3_BIS = "PBSL211102

  • SCHL4_NAME = "PBSL211102

  • SCHL4_BIS = "PBSL211102

  • SCHL4_VON = "PBSL211102

  • OPTION = "PBSL211102

ANZAHL = MAX_ZAHL "PBSL211102

TABLES "PBSL211102

I_TABELLE = I_TABELLE "PBSL211102

  • SCHL1_IN = "PBSL211102

  • SCHL2_IN = "PBSL211102

  • SCHL3_IN = "PBSL211102

  • SCHL4_IN = "PBSL211102

  • I_BELTAB = "PBSL211102

EXCEPTIONS "PBSL211102

NO_ENTRIES_FOUND = 1 "PBSL211102

TABLE_NOT_ALLOWED = 2 "PBSL211102

WRONG_PARAMETER = 3 "PBSL211102

OTHERS = 4 . "PBSL211102

1 REPLY 1

Former Member
0 Kudos

Hi,

I suggest that you setup SAP AS (Archive Information System TA: SARI) and access the archived data programmatically using SAP AS. From SAP Service market place you can download the document "AS_API_READ - Programmed Accesses to AS". I have found that SAP AS approach is much better than the PBS approach to access archive data.

Cheers,

Samanjay