‎2011 Jun 23 6:37 AM
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
‎2011 Jun 23 7:45 AM
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..
‎2011 Jun 23 7:13 AM
‎2011 Jun 23 7:45 AM
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..