2006 Aug 18 5:25 PM
Hi,
I was going through a custom smartform print program.
I saw following main routines (performs)
1) Perform smartform processing - Here we fetch the data and process the data.
2) Perform call_smart_form_fuuntion- Here we use SSF funtion module and stuff
But I saw two more routines. But I don't know what is the use of this routines in the driver program. Can someone please throw some light on this.
3) Perform Protocol_update - ?
4) Perform add_smfrm_prot - ?
Hi,
I was going through a custom smartform print program.
I saw following main routines (performs)
1) Perform smartform processing - Here we fetch the data and process the data.
2) Perform call_smart_form_fuuntion- Here we use SSF funtion module and stuff
But I saw two more routines. But I don't know what is the use of this routines in the driver program. Can someone please throw some light on this.
3) Perform Protocol_update - ?
4) Perform add_smfrm_prot - ?
2006 Aug 18 5:28 PM
1) protocol_update would actually update the message log that we usually see on the message control screen in any transaction(Messages that are encountered in the flow of the driver program).
2006 Aug 18 5:33 PM
And what does the other routine does. I am prviding th code of that routine as follows:
FORM ADD_SMFRM_PROT.
DATA: LT_ERRORTAB TYPE TSFERROR.
DATA: LF_MSGNR TYPE SY-MSGNO.
FIELD-SYMBOLS: <FS_ERRORTAB> TYPE LINE OF TSFERROR.
get smart form protocoll
CALL FUNCTION 'SSF_READ_ERRORS'
IMPORTING
ERRORTAB = LT_ERRORTAB.
add smartform protocoll to nast protocoll
LOOP AT LT_ERRORTAB ASSIGNING <FS_ERRORTAB>.
CLEAR LF_MSGNR.
LF_MSGNR = <FS_ERRORTAB>-ERRNUMBER.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
MSG_ARBGB = <FS_ERRORTAB>-MSGID
MSG_NR = LF_MSGNR
MSG_NR = <FS_ERRORTAB>-MSGNO
MSG_TY = <FS_ERRORTAB>-MSGTY
MSG_V1 = <FS_ERRORTAB>-MSGV1
MSG_V2 = <FS_ERRORTAB>-MSGV2
MSG_V3 = <FS_ERRORTAB>-MSGV3
MSG_V4 = <FS_ERRORTAB>-MSGV4
EXCEPTIONS
OTHERS = 1.
ENDLOOP.
ENDFORM. " ADD_SMFRM_PROT
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |