on 11-08-2006 10:01 AM
hello frnds
i am getting a dump as type conflict when calling funct. module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_INVOICE_ROH'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = L_RS38L_FNAM
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF SY-SUBRC <> 0.
MESSAGE E398(00) WITH 'no form exists '.
ELSE.
the program is getting a dump after this .....
CALL FUNCTION L_RS38L_FNAM
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
INV_NO = S_VBELN
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
can anybody help wid this .. another thing is when i am executing the funct module without the driver prog . thn i am able to get the output correctly ..
thanks
rohit
s_vbeln i think is a select-option and hence is a table structure and i think u need to export a single value hence the dump.
santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hiii frnds leave it it has been solved .. the data wasnt declared properly in the smartform ..
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well i have tried doing the above changes but stilld its gvng a dump ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Dont pass the form name directly to fuctional module.
Do as below.
**************************************
DATA: lf_fm_name TYPE rs38l_fnam,
lf_formname TYPE tdsfname.
lf_formname = 'Z_INVOICE_ROH'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
FM_NAME = lf_fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION lf_fm_name
EXPORTING
notifno = notifno
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.
********************************************
Here lf_fm_name contains the latest functional module number at the time of execution.
Regards,
Guru
*mark helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.