cancel
Showing results for 
Search instead for 
Did you mean: 

Open_Form Error Please help

Former Member
0 Kudos

Hi All,

I configured the Smart Form at the Respective Transaction on entry_new.

I am getting Open_Form Error. what should I change, do I need to change any parameters????.

Thanks in Advance.

Regards,

Praveen

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

Please check are you using following two function modlules ,

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING FORMNAME = LF_FORMNAME

  • variant = ' '

  • direct_call = ' '

IMPORTING FM_NAME = LF_FM_NAME

EXCEPTIONS NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

then

CALL FUNCTION LF_FM_NAME EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = SPACE

IS_BIL_INVOICE = LS_BIL_INVOICE

IMPORTING

JOB_OUTPUT_INFO = LS_JOB_INFO

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

and Debugging mode please check wheather the function module / form name is same which ur are using , is ur form active , if it is execute it throught SMARTFORMS TCODE ITSELF and check the function module name.

then compare through driver program , by putting break point in test invinorment .

Former Member
0 Kudos

Hi,

Thanks so much for your response.

Tried with different combinations and changed the print program as well.

Thanks,

Praveen

Former Member
0 Kudos

Hi Praveen,

Is the smartform and print program custom one?

Did you make a copy to the smartform and changed it? If you had done this, then the smartform FM would have changed. So, modify the print program to open this smartform FM.

Smartform is not client dependent. In whichever client you develop the form, it is available in all the clients, only SAPscript needs to be transported to all the clients using SCC1.

Regards

Subramanian

Former Member
0 Kudos

Hi Subramaniam,

What you said is right.I made a copy of the already existing smartform and customized it.

I customized the smart form in /smb40/ module. There is a default print program but the system is not allowing me to change any thing.

so do I need to made a copy to that print program and change it or ....

I greatly appreciate your help.

Thanks so much.

Praveen

Former Member
0 Kudos

Hi,

Yes you will have to change the print program also.

In the print program, change the call FM to the smartform.

Regards

Subramanian

Former Member
0 Kudos

In the print program.. r u calling the smartfom usinf

<b> CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'</b> EXPORTING FORMNAME = LF_FORMNAME

  • variant = ' '

  • direct_call = ' '

IMPORTING FM_NAME = LF_FM_NAME

EXCEPTIONS NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

then

<b> CALL FUNCTION LF_FM_NAME</b> EXPORTING

ARCHIVE_INDEX = TOA_DARA

ARCHIVE_PARAMETERS = ARC_PARAMS

CONTROL_PARAMETERS = LS_CONTROL_PARAM

MAIL_RECIPIENT = LS_RECIPIENT

MAIL_SENDER = LS_SENDER

OUTPUT_OPTIONS = LS_COMPOSER_PARAM

USER_SETTINGS = SPACE

IS_BIL_INVOICE = LS_BIL_INVOICE

IMPORTING

JOB_OUTPUT_INFO = LS_JOB_INFO

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

or u r calling the samrt form in any other way..

Note: if you are tesitnd same system but in different client then <b>u no need client copy</b>. because smartform is clined indipendent

Former Member
0 Kudos

Hi tell me the exact error ....

Former Member
0 Kudos

Hi Rob/Sukumar

The exact error is Open_form error 4500000187 NA TD131.

Thanks,

Praveen

Former Member
0 Kudos

What is the value of sy-subrc after the call to FM OPEN_FORM?

Rob

Former Member
0 Kudos

Message TD 131 says that the form you are trying to open isn't there. Have you spelled the name correctly (all in upper case)?

Rob

Former Member
0 Kudos

Rob,

Yes I did the spell name correctly, tried it again.

Is it neccessary to have the smart form at the testing client???. I did it in development client and by using the SCC1, I transfered the client specific data to the test client.

I havent changed any thing to the print program, and the print program is there itself in its folder at /smb40/, and its active.

What else do I need to do.

Please help me out. I need to finish it out soon.

Thanks,

Praveen

Former Member
0 Kudos

I think you should transport it to the test environment.

Rob

Former Member
0 Kudos

Rob,

Do I need to do any modifications to the print program...

what I did is I haven't touched the print program.

Thanks,

Praveen

Former Member
0 Kudos

You shouln't have to change it, but if it's an existing print program and an existing form, then I would have thought that the print program would have picked up the old version of the form. Then again, maybe it depends on your architecture.

Rob

Former Member
0 Kudos

What is the value of sy-subrc?

Rob