Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

dump - smartforms

Former Member
0 Kudos
422

hi,

I have created smartforms in quality client.

In my driver prog i am not using 'SSF_FUNCTION_MODULE_NAME' .

I am calling direct smartforms using function.

It is running fine in quality but giving dump in production.

I want to know the reason behind it.

thanks,

raj

10 REPLIES 10

Former Member
0 Kudos
122

Hi

Goto ST22 tcode and Analyse the DUMP

you will know what's the reason

Check all the configuration like Smartform and driver program links etc in PRD

may be the right one which is there in QAS might not be transported to PRD

Regards

Anji

former_member223537
Active Contributor
0 Kudos
122

One reason could be that the Smartform is not activated in production.

1. Run transaction SMARTFORMS,

2. type the smartform name

3. click on Activate in Production.

Former Member
0 Kudos
122

hi

good

go through this and use the function module accordingly.

Run trx SMARTFORMS and press test icon, here you'll be in SE37, copy the function name and go to your program.

Here press PATTERN and past the function name generated by smartform.

In this way you'll insert in your program the call of the smartform:

CALL FUNCTION '/1BCDWB/SF00000003'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

.................................

and after replace the name of fm of smartform with the variable function_name:

CALL FUNCTION function_name

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

.................................

thanks

mrutyun^

kiran_k8
Active Contributor
0 Kudos
122

Raj,

Created a smartform in Quality?Generally we will do in Dev and move it to Quality.

Fine anyway check the following to know the possible reasons for dump

1.Check the version of the driver program.

2.Compare the version of the driver program in Dev and Quality with Production.

3.If you have used any ZSmartstyles check whether they too got transported correctly or not.

K.Kiran.

Former Member
0 Kudos
122

Hi

there are four exceptions which can be caused which calling that fn module.

Please check whether the form u have created is in active status.

If it is so, then debug it using the debugger which is available is smartform itself.

Even if that is not helpful, then go to transaction ST22 and enter the form name and then debug it.

Please reward if helpful.

Former Member
0 Kudos
122

hi,

Use like this

DATA: G_FM_NAME TYPE RS38L_FNAM.

DATA : l_form(30) type c.

l_form = 'YOUR SMARTFORM NAME'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = l_form

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = G_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 G_FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

table1 = table1

.........................

..........................

  • V_DOCUMENT = v_document

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

TJ_1IEXCDTL = TJ_1IEXCDTL

I_KONV = i_konv

I_VBRP = i_vbrp

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.

More revert back

regards,

Prabhu

Reward if it is helpful.

Former Member
0 Kudos
122

hi anji,

Please understand my question.

I have face this question in my interview.

If you will not use 'SSF_FUNCTION_MODULE_NAME' and not store value in

FUNC_MODULE_NAME (TYPE RS38L_FNAM) then it will run in qty.

But the same one you transport to production it will give you dump. I agree yes it will give dump. Then they ask me why ? what is the reason behind it.

driver programme and smartforms both are exists in production.

If you know the reason then please explain to me.

thanks,

raj

Message was edited by:

raj desai

0 Kudos
122

Raj

Everytime you execute this program Smartform will generate a new(shown as bold) CALL FUNCTION '/1BCDWB/<b>SF00000003'</b> which will get duly stored in the FUNC_MODULE_NAME .

So,instead of the function module SSF_FUNCTION_MODULE_NAME if you use the same CALL FUNCTION '/1BCDWB/<b>SF00000003</b>' it will result in dump.

I think that could be the possible reason.Let's see what SDN experts say.

K.Kiran.

Former Member
0 Kudos
122

hi,

you generate smartforms n no of time in qty , the funaction value will be same.

actually series in qty and prd is differ.

now why this series is differ that i don't know.

can anyone explain..

raj

0 Kudos
122

Raj,

So,I was partly correct.You mean to say,this series will be the same in the Quality irrespective of how many times we execute but differs when run in production.Looking forward to more gyan on this from SDN experts.

K.Kiran.