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

sapscript

Former Member
0 Likes
765

hi friends,

i am going to display two forms (scripts) based on (bsid-bukrs) two company codes with two different logos so that each form should be displayed based on company code

with different logo

plz suggest me how to write logic for this

regards

sree

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

Hi,

In Line Editor(SE71), use control statement like

<i>

<b>IF &BSID-BUKRS& EQ 0001.
INCLUDE GRAPHICS 1.
ELSEIF &BSID-BUKRS& EQ 0002.
INCLUDE GRAPHICS 2.
ENDIF.</b>

</i>

Regards:-

<b>Santosh</b>

P.S. Mark usefull answers

5 REPLIES 5
Read only

Former Member
0 Likes
737

Hi,

In Line Editor(SE71), use control statement like

<i>

<b>IF &BSID-BUKRS& EQ 0001.
INCLUDE GRAPHICS 1.
ELSEIF &BSID-BUKRS& EQ 0002.
INCLUDE GRAPHICS 2.
ENDIF.</b>

</i>

Regards:-

<b>Santosh</b>

P.S. Mark usefull answers

Read only

Former Member
0 Likes
736

Hi,

You can simlpy write a IF condition and Open the required Form based on the company code.

If suppose only the logo is different and the contents of the Form is same, then you can just have a single Form to display with different logos based on company code.

For this, you will have to modify the form and for the LOGO printing use a IF condition to select the appropriate logo based on the company code.

Regards

Subbu

Read only

dani_mn
Active Contributor
0 Likes
736

HI,

Create a variable for form name and set the wanted form name based on company code.

check this code.

<b>DATA: formname(50).


IF bsid-bukrs = 'COMPANY1'

  formname = 'ZCOMPANY1_FORM'.

ELSEIF bsid-bukrs = 'COMPANY2'

  formname = 'ZCOMPMANY2_FORM.

ENDIF.

  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            form        = formname
            format      = 'LANDSCAPE'
            language    = sy-langu.</b>

Regards,

HRA

Read only

Former Member
0 Likes
736

hi

i am printing one form that should be able to print two forms based on bsid-bukrs with different logos

plz clarify

regards

sree

Read only

Former Member
0 Likes
736

Create New page in the form and add logo and details in the other form and display details regarding corresponding company codes in different pages.

Regards:-

<b>Santosh</b>