Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Window position in sapscript

Former Member
0 Likes
661

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.

3 REPLIES 3
Read only

Former Member
0 Likes
594

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

Read only

Former Member
0 Likes
594

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

Read only

0 Likes
594

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