on 04-23-2009 10:04 AM
Moved from General to Form Printing. Please take care to post in the correct forum.
Hi All,
I'm working on standard Smartform 'EBPP_DEBIT_CREDIT_MEMO'(biller Notification) calling in a report.In report smartform generating function module successfully(/1BCDWB/SF00000095).
problem accuring while calling the generating function module.
if anything wrong please help me.
The coding is:
Data : fm_name TYPE rs38l_fnam.
Data:L_URI type AD_URI.
START-OF-SELECTION.
L_URI = '11223'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'EBPP_DEBIT_CREDIT_MEMO'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = 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 fm_name
Exporting
L_URI = L_URI
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.
Edited by: Matt on Apr 23, 2009 11:25 AM
Check the sy-subrc of the dynamic function module..
sy-subrc value may be 1 or 2 ( FORMATTING_ERROR = 1 or INTERNAL_ERROR = 2 )
Mostly it is formatting error. Check it once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
Thank You for ur replay.
before the dynamic function module excution sy-subrc is '0'
While comes to dynamic FM giving the error as:
Incorrect parameter with CALL FUNCTION.
When calling a function module, one of the parmaeters was not
specified.
Error in ABAP application program.
..
This is standard smartform , u check the code once and suggest me.
call function fm_name
Exporting
L_URI = L_URI
"There are some more Mandatory parameters , try to pass them aslo.
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5 .
Then you are not passing some of the Mandatory parameters , Pass those parameters also.
Moved from General to Form Printing. Please take care to post in the correct forum.
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 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.