‎2006 Jul 07 11:07 AM
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
‎2006 Jul 07 11:11 AM
‎2006 Jul 07 11:11 AM
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://allsaplinks.com/smartform_example.html.
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
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
‎2006 Jul 07 11:24 AM
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,.
‎2006 Jul 07 11:37 AM
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.