cancel
Showing results for 
Search instead for 
Did you mean: 

Error in smartform calling in a report

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos
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.

christine_evans
Active Contributor
0 Kudos

Check the form interface of the SmartForm and make sure that you are passing in all the mandatory parameters and that they are alll typed properly in your program.

Former Member
0 Kudos

ur code is wrkg perfect on my system.

Former Member
0 Kudos

Thanks a lot vijet .....ur right that is client problem..i tried in other client working superly

Answers (1)

Answers (1)

matt
Active Contributor
0 Kudos

Moved from General to Form Printing. Please take care to post in the correct forum.