‎2006 Dec 29 11:00 AM
hi all,
I created a structure in se11 ztrec.
ztrec has fields:
kunnr,vbeln,kwmeng,arktx,netwr from tables vbap & vbak.
In smartform interface -
> table -
>itab like ztrec.
In the driver program:
CALL FUNCTION '/1BCDWB/SF00000008'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
ITAB = itrec.
when i execute the program it gives a dump :
"when calling the function module '/1BCDWB/SF00000008' one of the parameters needed according to the interface description was not specified....
this parameter was itab."
Message was edited by:
abapuser
‎2006 Dec 29 11:03 AM
Hi,
CALL FUNCTION '/1BCDWB/SF00000008'
<b>tables</b>
ITAB = itrec.
‎2006 Dec 29 11:03 AM
Hi,
CALL FUNCTION '/1BCDWB/SF00000008'
<b>tables</b>
ITAB = itrec.
‎2006 Dec 29 11:06 AM
i have already done that, after the execution iam getting this dump
‎2006 Dec 29 11:10 AM
Hi,
CALL FUNCTION '/1BCDWB/SF00000008'
<b>tables</b>
ITAB = itrec.
If this is not working,paste code.
‎2006 Dec 29 11:15 AM
hi jayanthi,
tables: vbap,vbak,ztest.
data: zkunnr type vbak-kunnr.
data: zvbeln type vbak-vbeln value '0000000014'.
data: itrec type TABLE OF ztrec with HEADER LINE,
wa like LINE OF itrec.
select kunnr from vbak into wa-kunnr where vbeln = zvbeln.
select arktx netwr kwmeng from vbap INTO CORRESPONDING FIELDS of wa where vbeln = zvbeln .
move wa-kunnr to itrec-kunnr.
move wa-arktx to itrec-arktx.
move wa-netwr to itrec-netwr.
move wa-kwmeng to itrec-kwmeng.
append itrec.
endselect.
ENDSELECT.
CALL FUNCTION '/D1BCWB/SF00000008'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
ITAB = itrec.
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
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.
WRITE / 'error'.
ENDIF.
this is the code & iam still getting the same dump
thanks for the help
‎2006 Dec 29 11:19 AM
Hi,
data: itrec type TABLE OF ztrec .
Don't use with header line.I don't think it will be supported.
Kindly reward points if it helps.
‎2006 Dec 29 11:24 AM
can u be more specific if i dont use headerline then how shuld i append the records to internal table itrec.
rgds.
‎2006 Dec 29 11:26 AM
declare two tables for the two select statements..
for first select simply use move corresponding to itab and for second select use move corressponding to itab1 for all entries in itab..
i feel the header declaration is fine..
amit
‎2006 Dec 29 11:27 AM
Hi,
Complete code:
tables: vbap,vbak,ztest.
types : begin of ty_kunnr,
kunnr type vbak-kunnr,
end of ty_kunnr.
data: zkunnr type vbak-kunnr.
data: zvbeln type vbak-vbeln value '0000000014'.
data: itrec type standard TABLE OF ztrec ,
i_kunnr type standard table of ty_kunnr.
select kunnr from vbak into table i_kunnr where vbeln = zvbeln.
select arktx netwr kwmeng from vbap INTO CORRESPONDING FIELDS of table itrec for all entries in i_kunnr where vbeln = i_kunnr-kunnr .
CALL FUNCTION '/D1BCWB/SF00000008'
tables
ITAB = itrec.
‎2006 Dec 29 11:28 AM
‎2006 Dec 29 11:04 AM
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'YHR_CONFIRM'
IMPORTING
fm_name = fname.
t_ssfctrlop-no_dialog = 'X'.
t_ssfctrlop-getotf = 'X'.
t_ssfctrlop-langu = 'E'.
CALL FUNCTION fname
EXPORTING
control_parameters = t_ssfctrlop
itab = it_rec.
‎2006 Dec 29 11:05 AM
Hi,
Copy the generated fm name in patterns in abap editor.It will give the parameters required for the smartforms in similar way to function module.
‎2006 Dec 29 11:05 AM
tables statement is missing in cal of Fm
CALL FUNCTION '/1BCDWB/SF00000008'
TABLES
itab1 = ITAB
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
amit