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

Invoice Printing for smartforms with driver program

Former Member
0 Likes
2,069

Hi ,

I have used rlb_invoice program  and custom smartform is there using nace transaction using the smartform is generated . One of new i need to do without the help of nace transaction i need to execute through driver program.i have copied the rlb_invoice into z program and i gave the parameter input options when i am trying to execute it has to show the smart form can any one plz suggest how to do .

Thanks,

Maha

9 REPLIES 9
Read only

former_member182877
Participant
0 Likes
1,588

Hi Mahalakshmi,

If I understand you right, You have a Standard Driver Program copied to a ZProgram ... Within that You need to call the ZSmartform.

You can simply call the 'SSF_FUNCTION_MODULE_NAME" and pass the Smartform Name and you'll get the 'Generated Function Module name'.. Now you can use this function module and pass your parameters.

Please let me know if the answer is helpful

Cheers,

Kripa Rangachari.

Read only

0 Likes
1,588

Hi..

You have to call exactly like below.

In coding u have to fill the internal  table then u have to assign it to the smartform.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

     EXPORTING

       formname = 'ZSD_VEN_INVOICE'

     IMPORTING

       fm_name  = fm_name.

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.

'''

   CALL FUNCTION              fm_name              "        '/1BCDWB/SF00000069'

     EXPORTING

       s_docno                    = s_docno

       s_docyr                    = s_docyr

     TABLES

       it_final                   = it_final[]

       it_j_1iexchdr              = it_j_1iexchdr[]

       it_j_1iexcdtl              = it_j_1iexcdtl[]

       it_j_1imovend              = it_j_1imovend[]

       it_adrc                    = it_adrc[]

       it_adr6                    = it_adr6[] .

Read only

0 Likes
1,588

hi ,

I have made the necessary changes in pgm level smartform name and function module when i checked in debugging mode it is coming out of the program after reading this line report zlb_invoice.

thanks,

Maha

Read only

0 Likes
1,588

Have u put the  break point exactly on

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

or it is going to some other place.

Read only

0 Likes
1,588

Hi Maha,,

When ever a driver program trigger from NACE it first go to a subroutine that is the FORM Routine .

So in your Zprog control should go to that point .

In debug just check .

Hope this will help U

Read only

0 Likes
1,588

Yes i have placed the break point but it is coming out of the program

Read only

0 Likes
1,587

Read only

0 Likes
1,587

Hi without the help of nace transaction i am trying to execute with driver program

.

Read only

0 Likes
1,587

I don't say to use nace tcode I attach the screen to high light the form routine only

call tcode for zprogram----->it call Form Routine of Driver program---->Get data --->get Smartform---->get FM for Smartform--->call FM for Out Put.