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

Routines in smartform driver program....

Former Member
0 Likes
640

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 - ?

2 REPLIES 2
Read only

Former Member
0 Likes
570

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).

Read only

0 Likes
570

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