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

want to export data from program to smartforms

Former Member
0 Likes
1,148

Hi Expert,

i have to display Contract Expiry Date in Delivery report of SD. The report showing data in smartforms which is getting printed in pre print paper. I have to show Conrtact End date as Expiry Date so i used

SELECT SINGLE VBELV FROM VBFA INTO DOCN

WHERE VBELN IN S_VBELN

AND VBTYP_N = 'J'

AND VBTYP_V = 'C'.

SELECT SINGLE VGBEL FROM VBAP INTO SNO

WHERE VBELN = DOCN.

SELECT SINGLE GUEEN FROM VBAK INTO DAT1

WHERE VBELN = SNO.

I want not to append the it_final table (final interbal table filled with data to show) export the from SSF_FUNCTION_MODULE_NAME

to smartform. I want to know how to do it, here i have to import dat1 variable which is saving the end date. In which parameter should export it to smart form. Please write the SSF_FUNCTION_MODULE_NAME with parameters.

Thanks in advance.

Ankit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
922

Hi

SSF_FUNCTION_MODULE_NAME returns the function name generated from smartform, so it's useless to transfer some data to smartforms.

You need to run transaction SMARTFORMS in order to change the interface of your smartform: here you need to create a new import parameters for your new data.

But you can also place all the code into the smartform, in this way you don't need to use the interface to transfer them

Max

6 REPLIES 6
Read only

Former Member
0 Likes
923

Hi

SSF_FUNCTION_MODULE_NAME returns the function name generated from smartform, so it's useless to transfer some data to smartforms.

You need to run transaction SMARTFORMS in order to change the interface of your smartform: here you need to create a new import parameters for your new data.

But you can also place all the code into the smartform, in this way you don't need to use the interface to transfer them

Max

Read only

0 Likes
922

I have pass single value dat1 to smartform from driver program without appending it to internal table.

SORRY I am new to abap.

Ankit

Read only

0 Likes
922

Hi

You have 2 solution, juast as I've explained before

A) Or you change the interface of smartform in order to add a new parameter for DAT1

B) Or you get DAT1 into smartform so without to transfer it from driver program

Run transaction SMARTFORMS to change your smartform for both solutions

Max

Read only

0 Likes
922

No problem, go thorough the earlier suggestions and links.You will get your answer.

Read only

0 Likes
922

Thanks Bianchi

Ankit

Read only

tushar_shukla
Active Participant
0 Likes
922

This is very basic question,you can refer to Smartform section of ABAP wiki http://wiki.sdn.sap.com/wiki/display/ABAP/Smart+Forms