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

need help in smart form driver program

Former Member
0 Likes
476

hi all i am new to sap .

i am using smartforms (driver program)

i need to transfer two fields to smartform .

fkimg1 & fkimg1.

i need these two fields in the wa_output (coz wa_output is already being passed to that smartfom.)

(like wa_output-fkimg1 & wa_output-fkimg2.)

so can you please suggest me how to add these two fields in my report so that they are transferred to smartform

i need to add that two fields in the below structure , so that both the values will be passed to smartform via wa_output.

so please tell me how to include the both fields.


types : begin of st_output.
        include structure ztaxinvoice.
types : end of st_output.
 
 
data: it_output type standard table of st_output,
        wa_output type st_output.
 

thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
445

Hi,

My suggestion is better do like

you can add this field to your structure 'ztaxinvoice' as below

'FKIMG1 TYPE FKIMG'

'FKIMG2 TYPE FKIMG'

Then you can declare internal table and work area as mentioned below in the driver program.


data: it_output type standard table of ztaxinvoice,
      wa_output type ztaxinvoice.

you can pass the same using table parameter it_output type table of ztaxinvoice in smartform.

and in global data also declare like


wa_output type ztaxinvoice.

Hope is helpful. dnt declare like


types : begin of st_output.
                         include structure ztaxinvoice.
                         FKIMG1 TYPE VBRP-FKIMG,
                         FKIMG2 TYPE VBRP-FKIMG,
                         types : end of st_output.

in smart forms table only support structures only. it wont call the types while declaring table in import parameters.

Regards,

Dhina..

2 REPLIES 2
Read only

Former Member
0 Likes
445

Hi,

already they given the solution please ref the link:

i dnt knw why i am not getting any mails from the forum once any one reply my suggestion? can u any body know that?

Regards,

DHina..

Edited by: Dhina DMD on Jun 23, 2011 8:16 AM

Read only

Former Member
0 Likes
446

Hi,

My suggestion is better do like

you can add this field to your structure 'ztaxinvoice' as below

'FKIMG1 TYPE FKIMG'

'FKIMG2 TYPE FKIMG'

Then you can declare internal table and work area as mentioned below in the driver program.


data: it_output type standard table of ztaxinvoice,
      wa_output type ztaxinvoice.

you can pass the same using table parameter it_output type table of ztaxinvoice in smartform.

and in global data also declare like


wa_output type ztaxinvoice.

Hope is helpful. dnt declare like


types : begin of st_output.
                         include structure ztaxinvoice.
                         FKIMG1 TYPE VBRP-FKIMG,
                         FKIMG2 TYPE VBRP-FKIMG,
                         types : end of st_output.

in smart forms table only support structures only. it wont call the types while declaring table in import parameters.

Regards,

Dhina..