‎2010 Mar 02 5:15 AM
Hi experts,
How can is add a column of Transaction Code in ST22 Output, Program RSSHOWRABAX.
anyone know about this, Pl. help.
thanks
‎2010 Mar 02 5:57 AM
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
‎2010 Mar 02 7:29 AM
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
‎2010 Mar 26 9:04 AM