‎2006 Aug 11 6:03 AM
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
‎2006 Aug 11 6:07 AM
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
‎2006 Aug 11 6:07 AM
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
‎2006 Aug 11 6:07 AM
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
‎2006 Aug 11 6:08 AM
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
‎2006 Aug 11 6:20 AM
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
‎2006 Aug 11 6:35 AM
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>