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: 

smartforms

Former Member
0 Kudos

hello every body

i am giving vendor no and date in the selection screen of an exe prgm which should result giving a smartform with the vendor no and with in the specified date of that vendor.

thanks in advance

4 REPLIES 4

Former Member
0 Kudos

With the data given in the selection screen collect the data from LFA1 / LFB1 and LFC1 tables and pass that to the SMART Form depending on what parameter you have declared in the smart form.

In the smart form take the data and display.

I am not clear what is the issue here.

You can find step by step development of SMART Forms here

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.h...

http://allsaplinks.com/smartform_example.html.

http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm

http://www.esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartf...

http://www.esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf

http://www.esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt

Regards,

Ravi

Note : Please mark all the helpful answers

Former Member
0 Kudos

Hi,

In the form interface of that smartform use the Itab which will satisfy the condition.

u have to select values based on Vendor no and date matches in driver program and pass it to the samrtform.

it will display the corresponding values,.

Former Member
0 Kudos

Hi,

<b>In SE38 transaction</b>

Step 1:

PARAMETERS: P_LIFNR LIKE LFA1-LIFNR,

P_DATE LIKE SY-DATUM.

DATA: V_HOLD_FORMNAME TYPE TNAPR-SFORM,

V_HOLD_FNAME TYPE RS38L_FNAM.

START-OF-SELECTION.

V_HOLD_FORMNAME = <i><b><UR SMARTFORM NAME>.</b></i>

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = V_HOLD_FORMNAME

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = V_HOLD_FNAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC = 0.

CALL FUNCTION V_HOLD_FNAME

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS = OUTPUT_OPTIONS

  • USER_SETTINGS = 'X'

LIFNR = P_LIFNR

DATE = P_DATE

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

  • TABLES

  • I_HEADER =

  • I_ITEM =

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

This program will call your Samrtform and Display the parameters Vendor Number and the date.

<b>In SMARTFORM TRANSACTION</b>

give ur smartform name.

in that form interface u create variable lifnr and date.

and in the PAges and windows node u create a window.

in that window u creatae a two text fileld.

in that u give &<ur variable name>&

Best of luck.