Application Development and Automation 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: 
Read only

smartform issue plz help

Former Member
0 Likes
646

hi experts

I am very new to smartforms

I have a smartform and i ill have to add som fields to it on basis of som condition .

i have made a copy(to be on the safe side) of original to do changes .

the original smartform was called by transaction VF02 .

now i dont no how i can call the copy of this smartform to check my changes .

plz guide me

thanx in advance .

hi experts

I am very new to smartforms

I have a smartform and i ill have to add som fields to it on basis of som condition .

i have made a copy(to be on the safe side) of original to do changes .

the original smartform was called by transaction VF02 .

now i dont no how i can call the copy of this smartform to check my changes .

plz guide me

thanx in advance .

5 REPLIES 5
Read only

Former Member
0 Likes
629

Hi,

When you create a smartform it will generate a function module.

In smartforms , right click any window and create->flow logic->program lines, then the screen for program logic appears. In the left most corner there a icon named statement struct.

Click the statement struct icon, it will show the screen for pattern, there give the function module name that you want to include in smartforms

***********************

case okcode.

when 'SAVE'.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING FORMNAME = P_FORM "Your form name

  • 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.

EXIT.

ENDIF.

  • calling the generated function module

CALL FUNCTION FM_NAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS = CPARAM

  • OUTPUT_OPTIONS = OUTOP

  • USER_SETTINGS = SPACE

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

IMPORTING

  • JOB_OUTPUT_INFO = TAB_OTF_DATA

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • 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.

endcase.

endform.

endcase.

Hope this helps you.

Regards,

Priyanka.

Read only

0 Likes
629

priyanka

i want to know how i can call the cop of a smartform .

original is getting called from transaction VF02 .

Read only

0 Likes
629

Hi

In the function module 'SSF_FUNCTION_MODULE_NAME', you have a parameter FORMNAME. Pass the name of your new smartform. It will show the changes made by you.

Shakir

Read only

Former Member
0 Likes
629

Hi,

Go to NACE transaction and select V3(Billing) and replace original smart form with your copied smart form for your output type.

Reward points if it is useful.

Read only

Former Member
0 Likes
629

Hi,

Go to transaction NACE

Select 'V3', click on Ouput types button in the application tool bar

Select the Output type which you are using and double click on Processing routines.

Change the smartform name as your smartform name.

Regards,

Satish