cancel
Showing results for 
Search instead for 
Did you mean: 

free text

Former Member
0 Kudos

Hi all,

In the present script i need to include a free text between a description line and first line item.client has given just that with out any more info.I am not aware of free text.please tell me how to achieve the requirement.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi,

if you know the script name goto SE71, give the script name and press change button.

first find in which window we need to add the free text, then double click on the window and press F9 button, it opens a TEXT EDITOR (since the free text to be added is at item level, it could be MAIN Window).

in TEXT EDITOR, find betn which values the free text should come then add the text there..

eg: &itab-maktx&,,GOOD MORNING,,&itab-posnr&

the 2 comma's indicate the tab space betn 2 variables. it will defined in paragraph format..

Hope it helps

Regards,

Pavan

Former Member
0 Kudos

Need the text to be dynamical.

Former Member
0 Kudos

Hi,

Call PERFROM in script and define in driver program..

eg:

In script call PERFORM

PERFROM free_text IN PROGRAM z_test

USING &gv_cond&

CHANGING &gv_text&

ENDPERFORM.

U ill have the value in &gv_text& dynamically based on the condition..

now u print &gv_text& betn description & item.

In driver Program Define the PERFORM free_text.

FORM free_text using in_tab STRUCTURE itcsy

out_tab STRUCTURE itcsy.

READ TABLE in_tab INDEX 1.

IF in_tab-value = '1'.

READ TABLE out_tab INDEX 1.

out_tab-value = 'GOOD MORNING'.

MODIFY output_table INDEX 1.

ENDIF.

IF in_tab-value = '2'.

READ TABLE out_tab INDEX 1.

out_tab-value = 'GOOD AFTERNOON'.

MODIFY output_table INDEX 1.

ENDIF.

IF in_tab-value = '3'.

READ TABLE out_tab INDEX 1.

out_tab-value = 'GOOD EVENING'.

MODIFY output_table INDEX 1.

ENDIF.

ENDFORM.

Hope its clear!!