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

smartforms

Former Member
0 Likes
330

hi ram,

can develop a print program while developing zsmartform. if so send me a sample program or plz send me the code to retreive names of direct customer contact person's using print program. is it advisible to create a print program.

kind regards,

vinay.

2 REPLIES 2
Read only

Former Member
0 Likes
288

Hi Vinay,

Yes we can develope both but its all depends on the coordination of mind on both. Because, generally i develope the layout first and then print program next. Because Layout will take more time and print program takes very very less time. But some times you have to develope both at a time to avoid confusion.

If you need some program on smartforms driver program,

you can get so many links in this SDN discussion forums. So many of our friends posted several times about this. you can also have a look on this below link.

http://www.sapgenie.com/abap/smartforms.htm

Pls award points if you satisy with my explanation.

Let me know if you need more information.

regars,

ram

Read only

vinod_gunaware2
Active Contributor
0 Likes
288

DATA : funcname type rs38l_fnam.

funcname = '/1BCDWB/SF00000100'.

CALL FUNCTION funcname

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT = 'mamit'

  • MAIL_SENDER =

output_options = output_options

  • USER_SETTINGS = space

IMPORTING

  • DOCUMENT_OUTPUT_INFO =

job_output_info = output_data

  • JOB_OUTPUT_OPTIONS =

TABLES

p9002 = p9002

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5

.

Here are the steps while developing custom print program.

1)Cofigure the new custom program, routine and smartform in output determination.

2) Coming to the program this will be executed from the Subroutine which is configured on the output determination.

3) NAST and TNAPR structure are poulated, wher you will get the Object Key, and smart form name.

4) Based on the aende of the nast structure we can know that it is printing first time(NAST-AENDE eq Space) or reprint due to some changes. This field NAST-AENDE is useful for restricting to reprint only for changes in certain fields. In order to restrict reprint we will read the most recent data(DATVR) and time(UHRVR) from table NAST based on the object key and get the change data using the ME_READ_HISTORY, find the required fields went for changes based on PO change log . No required changes found then change the return code to 1 and update error message NAST_PROTOCOL_UPDATE and exit the program.

5) Get the required details based on the object key of NAST and call the Smartform function module.

just have look below link. it will give step by step

excution of smart form

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

regards

vinod