cancel
Showing results for 
Search instead for 
Did you mean: 

Need to add text with box dynamically

Former Member
0 Kudos

Hello,

I need to add a standard text created in so10 with a box at the end of the purchase order.

This should trigger dynamically if the condition is correct.

For ex : PO created in plant = 100 then this text should be displayed at the end of the PO page with a box.

DO I have to create a Window and then include this text created in so10 and then give the conditions?

PLease suggest...

Have a great evening!

Regards,

Kittu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Thank you for your response!

I apprecaiate it.

Have a great evening!

Regards,

Kittu

Former Member
0 Kudos

Hi,

Simplest would be define a new element in the main window like:

E OTHER_TERMS

/: NEW-PAGE

/: INCLUDE ZPO_TERMS_AND_CONDITIONS OBJECT TEXT ID ST LANGUAGE EN

In the pgm check your condition if satisfied then use

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'OTHER_TERMS'

function = 'APPEND'

window = 'MAIN'

EXCEPTIONS

element = 1

function = 2

type = 3

window = 6

OTHERS = 8.

I hope this helps,

Regards

Raju Chitale

former_member184657
Active Contributor
0 Kudos

u can define a template with the borders and call ur standard text there using "inlcude text".

and to make it dynamic go to the "conditions" tab and give the required condition

like wa_name-werks = '100'.

by giving this condition, the text and the box will be displayed only if the werks value is 100.

revert back if u have any doubts

pk