cancel
Showing results for 
Search instead for 
Did you mean: 

Printing dynamic text in Smartform

Former Member
0 Kudos

Hi frens,

I have got a Smartform to which I send a field containing the INCLUDE text name(maintained in so10). This text name depends on the matnr and is determined with a logic in the print program. How can I print this text in the smartform?

Ex: I have field in smartform z_itab-tmattext.

This contains a value 'z_31608_mat_text'.

I have tried with Dynamic Text option but its giving an error.

thanks

Asha

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Asha,

Is that long text getting from header or item level.If this is the question you can create text node where you can find.

Type: Include text(Select this one) provide the details and u will get it.

Venu

Former Member
0 Kudos

HI Asha,

As per i understand, u need to print a Standard text based on matnr. if u have specified standard text names then add a field in itab in print program like..

if iatb-matnr = '********'

itab-st_text = 'L'.

else.

itab-st_text = 'I'.

endif.

and in smartform..

before printing standard text write..

/: IF &st_text& EQ 'L'

/: INCLUDE STD_TEXT1 OBJECT TEXT ID

/: ELSE

/: INCLUDE STD_TEXT2 OBJECT TEXT ID

/: ENDIF

hope this helps..

if it is not ur requirement then pls explain more abt ur task.

Regards

CNU

Former Member
0 Kudos

Hi

Did you try giving it as &z_itab-tmattext& ?

Regards,

Raj