‎2015 Jun 16 7:13 AM
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
‎2015 Jun 16 7:20 AM
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.
‎2015 Jun 16 7:29 AM
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[] .
‎2015 Jun 16 7:37 AM
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
‎2015 Jun 16 7:43 AM
Have u put the break point exactly on
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
or it is going to some other place.
‎2015 Jun 16 7:47 AM
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
‎2015 Jun 16 7:48 AM
Yes i have placed the break point but it is coming out of the program
‎2015 Jun 16 7:48 AM
‎2015 Jun 16 7:57 AM
Hi without the help of nace transaction i am trying to execute with driver program
.
‎2015 Jun 16 8:05 AM
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.