on 11-14-2008 7:41 AM
REPORT ZPSMARTFORM1.
tables: zptable1.
types: begin of ty_zptable1,
f1 type zf1,
f2 type zf2,
f3 type zf3,
end of ty_zptable1.
data: itab type table of ty_zptable1 with header line.
data: wa type ty_zptable1.
select f1 f2 f3 from zptable1 into table itab.
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = .
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
this is my driver program.In my form interface there are tables,import,export are there where i have to declare tables data.If i am putting wa means it is throwing error.Please show me the clear information.
Edited by: Julius Bussche on Nov 14, 2008 10:09 AM
Thankyou
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also don't call the Smartforms generated FM so, the name will change depending of system use FM [SSF_FUNCTION_MODULE_NAME|https://www.sdn.sap.com/irj/scn/advancedsearch?query=ssf_function_module_name&cat=sdn_all] to get the FM name from the Form name.
Look at [SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
REPORT ZPSMARTFORM1.
tables: zptable1.
types: begin of ty_zptable1,
f1 type zf1,
f2 type zf2,
f3 type zf3,
end of ty_zptable1.
data: itab type table of ty_zptable1 with header line.
data: wa type ty_zptable1.
select f1 f2 f3 from zptable1 into table itab.
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = .
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Plz for this driver program. Give me the exact solution.I am passing the information like itab like zptable1 ther ein the smart form table. Even now i am getting error.Here in this driver program i passed itab = itab means .I am not getting solution.If i have to change any function module name means plz tell me.What i have to put there.Plz give me the correct solution
Neeraja,
I think you should first go through the material of smartforms...to work on it. This way, even If someone helps you, your issue would get resolved but then you will never be able to learn about the smartforms.
You have to pass the FM generated by activating the smartform to SSF_FUNCTION_MODULE_NAME.
Check the link Raymond Gave. It is very helpful.
Regards,
Vishwa.
Hi Neerja,
Check in the smartforms where u have declare the table for the itab, i.e table structure in both the end should be same. better way is to define the physical structure through SE11 and use that structure in driver program and smartform as well. This might solve your problem.
Thanks,
Sheel
Hi,
Try like this
CALL FUNCTION '/1BCDWB/SF00000005'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITAB = ITAB.------>itab in u r driver program
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in Tables parameter you can pass internal table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.