‎2008 Jan 02 1:36 PM
Hi ppl,
My requirement is to print the logo on right side for a particular company code. For other company codes, I need to print the logo on left side.
Always the opposite side (left or right depending on company code) will have address printed.
How can I achieve this in sapscripts ie. to change the window position dynamically.
Please reply.
Reward points guaranteed.
Thanks,
Shamoil.
‎2008 Jan 02 1:43 PM
Hello
You can create two windows in the script and depending on the company code you can include eihter the logo or the address standar text and update the same in the window.
Thanks,
Mohit
‎2008 Jan 05 6:28 AM
Hi Shamoil,
Create two windows for logo and two windows for the text on the opposite corner.
Suppose u create windows LOGO_LFT and LOGO_RGT for the logos on left and right resp, and, TEXT_LFT and TEXT_RGT for text on left and right resp.
example:
LOGO_LFT:
If bukrs NE 'Certain Co. code'.
Insert graphic.
endif.
LOGO_RGT:
If bukrs EQ 'Certain Co. code'.
Insert graphic.
endif.
TEXT_RGT:
If bukrs NE 'Certain Co. code'.
Insert text.
endif.
TEXT_LFT:
If bukrs EQ 'Certain Co. code'.
Insert text.
endif.
Thanks,
Dawood
‎2008 Jan 05 6:40 AM
Hi,
You must create two windows .
And then try following code.
in the text elemnt of first window write following.
if BUKRS EQ 'PIIL'
BITMAP 'ZSIGN2' OBJECT GRAPHICS ID BMAP TYPE BMON
endif.
and
in the text elemnt of second window write following.
if BUKRS EQ 'PIAG'
BITMAP 'ZSIGN2' OBJECT GRAPHICS ID BMAP TYPE BMON
endif.
here
- 'ZSIGN2' is the name of bitmap image uploaded by se78.
- PIIL name of first company code.
- PIAG name of second company code.
reward points if helpful.
Regards
Rajesh