Application Development and Automation 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: 
Read only

ST22 Add Tcode Column

Former Member
0 Likes
792

Hi experts,

How can is add a column of Transaction Code in ST22 Output, Program RSSHOWRABAX.

anyone know about this, Pl. help.

thanks

3 REPLIES 3
Read only

Former Member
0 Likes
635

Hi,

No any user-exit or BADI can be used in this report.

The program get data from table SNAP_BEG (no element called Transaction Code), so you can achieve it.

Regards

Sam

Read only

RaymondGiuseppi
Active Contributor
0 Likes
635

This is a modification of standard, neither exit, nor BADI provided. Consider building you own report, read data from table SNAP.

To extract DATA copy code from RUTCNVS2, or follow this short how-to guide.

- Read SNAP into an internal table

- Read SNAPT for dump messages

- Sort and group data by datum, uzeit, ahost, uname, mandt and modno (identification of one dump)

- Analyse every snap-flist of a group to get a list of values using field-symbols

- Replace the &xx in the dump message with values extracted

Sample to analyze one line

* Process field list
    DO.
      IF sy-index = 1.
        ASSIGN snap-flist TO <id>.       "First string
      ELSE.
        ASSIGN <value>+<len>(2)  TO <id>."Next string
      ENDIF.
* Check field id
      IF <id> LE space.                                   "#EC PORTABLE
        EXIT.
      ENDIF.
* Short dump not complete ?
      IF <id> = '%A'.
        EXIT.
      ENDIF.
* End of this SNAP record ?
      IF <id> = '%E' OR <id> = '%M'.
        EXIT.
      ENDIF.
* Check format of length field
      ASSIGN <id>+2(3)        TO <len>     TYPE 'C'.
      IF <len> CN '0123456789' OR <len> = '000'.
        EXIT.
      ENDIF.
      ASSIGN <id>+5(<len>)    TO <value>   TYPE 'C'.
*     Here :
*     <id> contains a field id  - "TC" transaction code, "AP" program, "AI" include, etc.
*     <len> contains the field length 
*     <value> contains the value of the field
    ENDDO.

Also remember that some dumps dont have a transaction code (system, batch)

Regards,

Raymond

Read only

Former Member
0 Likes
635

no solution