Posted: Sat Oct 13, 2007 1:27 pm Post subject: Retrieve comment texts from cluster table for infotype 19
Code:
*......................................................................*
*: Report ZIT0019_TXT :*
*: Author SAPdev.co.uk :*
*:.....................................................................*
*: Description : :*
*:.............: :*
*: Retrieves comment text for infotype 0019 form PCL1 cluster table :*
*: :*
*: Please visit www.sapdev.co.uk for further info :*
*:....................................................................:*
REPORT zp191rep_txt. .
NODES: pernr.
INFOTYPES: 0019.
TYPE-POOLS: slis.
*---------------------------------------------------------------------*
* Daten zu Cluster TX (Infotyptexte) *
*---------------------------------------------------------------------*
INCLUDE RPC1TX00.
*INCLUDE rpcitx00.
*INCLUDE rpcitd00.
TYPES: BEGIN OF t_reptab,
pernr TYPE pernr-pernr,
subty TYPE p0019-subty,
termn TYPE p0019-termn,
text LIKE ptext-line,
END OF t_reptab.
DATA: it_reptab TYPE STANDARD TABLE OF t_reptab INITIAL SIZE 0,
wa_reptab TYPE t_reptab.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid,
it_sortcat TYPE slis_sortinfo_alv OCCURS 1,
wa_sort LIKE LINE OF it_sortcat.
SELECTION-SCREEN BEGIN OF BLOCK subtyp WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_sub FOR p0019-subty.
SELECTION-SCREEN END OF BLOCK subtyp.
*rp_provide_from_last p0019 space pn-begda pn-endda.
PROVIDE * FROM p0019 BETWEEN pn-begda AND pn-endda.
CHECK p0019-subty IN so_sub.
MOVE-CORRESPONDING p0019 TO tx-key.
tx-key-infty = '0019'.
rp-imp-c1-tx.
IF sy-subrc = 0.
LOOP AT ptext.
MOVE-CORRESPONDING p0019 TO wa_reptab.
wa_reptab-text = ptext-line.
APPEND wa_reptab TO it_reptab.
CLEAR: wa_reptab.
ENDLOOP.
ENDIF.
ENDPROVIDE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.