cancel
Showing results for 
Search instead for 
Did you mean: 

how to add footer to standard text in SO10

Former Member
0 Kudos

Hi gurus

I have uploaded a file in SO10 and this text appears at the end in 3 pages to the client when he prints or email a sales order to the customer and now the client needs a footer to the file which i uploaded(ie 3 pages at the end).

If iam not clear let me know. i will explain once again.

plz let me know the solution for this

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

SOLVED

Former Member
0 Kudos

Hi,

create a window FOOTER and in that give

/E TERMS_CONDITIONS

/: IF &VBDKA-VBTYP& = 'C'.

/: INCLUDE ZORD_TERMSCONDITIONS2 OBJECT TEXT ID ST

<b>/: footer data</b>

/: ELSE.

/: INCLUDE ZORD_TERMSCONDITIONS2 OBJECT TEXT ID ST

/: ENDIF.

Regards,

Sowjanya

Former Member
0 Kudos

Hi,

Create a window for footer and include the text which you have in SO10. You can have the window in all the pages.

Thank you,

Ramu N.

Former Member
0 Kudos

hi ramu

Can you be more clear. Actually i created a text element in the form

/E TERMS_CONDITIONS

/: IF &VBDKA-VBTYP& = 'C'.

/: INCLUDE ZORD_TERMSCONDITIONS2 OBJECT TEXT ID ST

/: ENDIF.

and now tell me where should i create the window for it and how should i.

with regards

satya

Former Member
0 Kudos

Hi,

Create a constant window in your script and in the text elements write the include of the footer.

You should place the footer window in all the pages of the script.

Eg:- /: INCLUDE ZORD_TERMSCONDITIONS2 OBJECT TEXT ID ST.

Here no need to use /E TERMS_CONDITIONS.

Thank you,

Ramu N

Former Member
0 Kudos

Hi Ramu

I really appreciate your help.

Actually i have to two standard texts one is ZORD_TERMSCONDITIONS1 and other is ZORD_TERMSCONDITIONS2 and now i would like to have footer to only this text and if i create a footer separately and write it. footer will appear for the ZORD_TERMSCONDITIONS1 and this both texts are called in single print program based on condition

if vbdka-vbtyp = 'B' or vbdka-vbtyp = 'C'.

call function 'START_FORM'

exporting

form = 'ZSD_QUOTATION'

language = sy-langu.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

*Terms & Conditions which i wrote

IF TNAPR-KSCHL EQ 'ZBA0' or TNAPR-KSCHL EQ 'ZMAI'.

call function 'WRITE_FORM'

exporting

element = 'TERMS_CONDITIONS'

window = 'MAIN' .

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

ELSE.

  • End of Insertion for Terms & Conditions

call function 'WRITE_FORM'

exporting

element = 'TEXT_PRINT'

window = 'MAIN' .

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

ENDIF.

and in this case wat should i do plz let me know

Former Member
0 Kudos

Hi,

You can use IF statement in your Text Elements and pass the condition according to your requirement and restrict your footer.

Thank you,

Ramu N.

Former Member
0 Kudos

Hi ramu

If you are in USA plz give me your phone number, i would like to talk to you, send me your phone number to vsrao_abap@yahoo.co.in