cancel
Showing results for 
Search instead for 
Did you mean: 

CALL TO FUNCTION MODULE

Former Member
0 Kudos

Dear Experts

I hv created a report program calling a smartform.

i hv checked my program in 110 (My testing client), its working fine.

I have transported my request to quality server.

when i run my program in quality, it comes to the window of print or print preview.

but when i click on print or print preview, nothing is displayed, not even an error.

it comes to bach where i input data (order number).

Can anyone help me in this??????

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

anyway, check what the sy-subrc is right after your FM which calls the smartform.

if it is not equal 0, thne add following in coding:


CALL FUNCTION 'SSF_READ_ERRORS'
        IMPORTING
          errortab = lt_errors.

debug it and see where the problem is.

Former Member
0 Kudos

Thanks you helped me getting what was going wrong to my program.

I had used a smartstyle which was not transported.

thanks again

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

the problems here are :

1.It didnt calling the Smart form preview for this debug the Driver program

Or

2. Any window is not enough to display the data i.e the window size is not enough for placed Template or Table node on Smart form. for this Comment the windows one by one of smartform by place the condition 1 = 2(which is not possible) on conditon tab of window. This is just to check the window error. after checking all windows remove the 1 = 2 condition.

Former Member
0 Kudos

hi venkat

i got where i m missing.

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

IF SY-SUBRC <> 0.

ENDIF.

when i debug my program i got my sy-subrc = 1.

does it mean any formatting error as mentioned in exceptions above ???

Regards

Former Member
0 Kudos

use the FM i posted, and you get more detailed information about the errors.

Former Member
0 Kudos

Hi Maverick,

Check the Function module of the smart form is getting triggered or not..

Regards,

Sravanthi

Former Member
0 Kudos

seems like you forgot to transport the form along with your program.