Skip to Content
0
Former Member
Apr 17, 2010 at 05:35 AM

Problem related to smartform

34 Views

Hi,

All,

I am creating invoice in smartform. i have been defined IN FORM INTERFACE IMPORT TAB I have been defined

IM_FS_KNA1 TYPE KNA1,

IM_T_VBRK TYPE TABLE OF VBRK,

IM_T_VBRP TYPE TABLE OF VBRP.

in Global defination global data i have been defined

IM_T_KNA1 TYPE TABLE OF KNA1,

IM_FS_VBRK TYPE VBRK,

IM_FS_VBRP TYPE VBRP

W_TOTAL TYPE VBRP-NETWR 0.

BUT i am getting Syntax error in program "/1BCDWB/SAPLSF00000046 ".

Line SourceCde

47 DATA: %_ODOCUMENT_OUTPUT_INFO TYPE SSFCRESPD.

48 DATA: %_VDOCUMENT_OUTPUT_INFO TYPE SSFCRESPD.

49 DATA: %_OJOB_OUTPUT_INFO TYPE SSFCRESCL.

50 DATA: %_VJOB_OUTPUT_INFO TYPE SSFCRESCL.

51 DATA: %_OJOB_OUTPUT_OPTIONS TYPE SSFCRESOP.

52 DATA: %_VJOB_OUTPUT_OPTIONS TYPE SSFCRESOP.

53 DATA: FORMATTING_ERROR(1).

54 *

55 DATA: INTERNAL_ERROR(1).

56 *

57 DATA: SEND_ERROR(1).

58 *

59 DATA: USER_CANCELED(1).

60 *

61 FORM EXISTENCE_CHECK CHANGING VARIA.

62 VARIA = 1.

63 ENDFORM.

64 FORM FUNCTION_CALL.

65 CLEAR %_ODOCUMENT_OUTPUT_INFO.

66 CLEAR %_OJOB_OUTPUT_INFO.

67 CLEAR %_OJOB_OUTPUT_OPTIONS.

68 * TRANSAKTION = 'Repo', PROGRAM = REPORT

69 IF ATRA = '1'.

70 SET RUN TIME ANALYZER ON %_INTERNAL.

71 ENDIF.

72 IF DESTI IS INITIAL.

73 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.

74 ENDIF.

75 DEBUG = SPACE.

76 GET RUN TIME FIELD TIME1.

>>>>> CALL FUNCTION '/1BCDWB/SF0000

78 EXPORTING

79 ARCHIVE_INDEX = %_IARCHIVE_IN

80 ARCHIVE_INDEX_TAB = %_IARCHIV

81 ARCHIVE_PARAMETERS = %_IARCHI

82 CONTROL_PARAMETERS = %_ICONTR

83 MAIL_APPL_OBJ = %_IMAIL_APPL_

84 MAIL_RECIPIENT = %_IMAIL_RECI

85 MAIL_SENDER = %_IMAIL_SENDER

86 OUTPUT_OPTIONS = %_IOUTPUT_OP

87 USER_SETTINGS = %_IUSER_SETTI

88 IM_FS_KNA1 = %_IIM_FS_KNA1

89 IM_T_VBRK = %_IIM_T_VBRK

90 IM_T_VBRP = %_IIM_T_VBRP

91 IMPORTING

92 DOCUMENT_OUTPUT_INFO = %_ODOC

93 JOB_OUTPUT_INFO = %_OJOB_OUTP

94 JOB_OUTPUT_OPTIONS = %_OJOB_O

95 EXCEPTIONS

96 FORMATTING_ERROR = 001

but i din't use Program line in my Smartform