cancel
Showing results for 
Search instead for 
Did you mean: 

Terms & Conditons issue while PO printing

former_member216668
Participant
0 Kudos

Hi everyone,

In transaction ME23N, while previewing the printout, For any PO with regards to the

year it was modifed i am supposed to display the Terms & Conditions text based on

that year, i had copied the standard script but now i am stuck as i do not know if i

can write a condition statement to pick up the correct text element based on the

year? or is there any other way to solve this? Would be glad if any one can share

their knowledge or ideas if they had come across similar isues earlier?

Regards,

K

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I agree with Subba that you should use includes of a standard text to handle the different terms but I prefer to put the logic in the print program. I've seen a lot of sapscripts with so many nested 'if' conditions that I just couldn't figure them out. You have more options and cleaner code in the ABAP program. Assuming you're allowed to touch the print program of course. B)

former_member216668
Participant
0 Kudos

Unfortunately mike, i do not have the luxury of touching the print program,

Well guys thanks anyways.. will try it and keep you guys posted.

Cheers,

K

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Ken,

U can write the condition to call different standard texts for different years.

I think u have multiple standard texts having terms&conditions

depending on the year.

If u don't have, create standard texts.

and call them in a window based on conditions.

Just like below:

if &YEAR& = '2008'

INCLUDE Z110_US_AVIS_TEXT1 OBJECT TEXT ID ST LANGUAGE EN

endif.

Regards,

Subbu