SAPScript: Print of Logo depending on company code

Hello everybody!
I have a simple question, hopefully. I am implementing a dunning form in SAPScript and now I want to print a logo and a footer depending on the company code. I have uploaded the graphics in SE78. So far no problems.
Within the form I have two new windows.
The coding is:
/:     IF &MHND-BUKRS& = u20181001u2019.
/:     BITMAP 'HEAD_256_1001' OBJECT GRAPHICS ID BMAP TYPE BCOL
/:     ENDIF.
/:     IF &MHND-BUKRS& = u20181011u2019.
/:     BITMAP 'HEAD_256_1011' OBJECT GRAPHICS ID BMAP TYPE BCOL
/:     ENDIF.
The problem is that the IF - ENDIF inquiry is not working. I have also tested the CASE and ENDCASE function with the same result. No graphic is printed.
The next thing I've tested was not to print a graphic but a simple text.
/:     IF &MHND-BUKRS& = u20181001u2019.
*     Test 1001
/:     ENDIF.
/:     IF &MHND-BUKRS& = u20181011u2019.
*     Test 1011
/:     ENDIF.
And also no text was printed on the form.
When using the command without IF / ENDIF
    BUKRS: &MHND-BUKRS&
The print out shows BUKRS: 1011 for example. So the variable &MHND-BUKRS& has a value.
Has anyone an idea how to solve the problem? I do not want to create one form for each company code.
Thanks in advance!
Kind Regards,
Melanie

Hi,
Did you checked in debug what company code are u checking for ?
Try ths code
/: IF &MHND-BUKRS& EQ u20181001u2019.
/: BITMAP 'HEAD_256_1001' OBJECT GRAPHICS ID BMAP TYPE BCOL
/: ELSEIF &MHND-BUKRS& EQ u20181011u2019.
/: BITMAP 'HEAD_256_1011' OBJECT GRAPHICS ID BMAP TYPE BCOL
/: ENDIF.
Regards,
Madhukar Shetty

Similar Messages

  • Inserting  logo based on Company Code in Adobe Forms

    Hi All,
    I need to insert three different logos in adobe foms based on company code.
    Please help.
    Regards,
    Sreelakshmi

    Hi,
      Thank you very much for your reply. I need to pass logo from interface. Can you please tell me how to include logo field in the form interface.
    regards,
    sreelakshmi.

  • Sapscript - print a list with all source code of the windows in layout

    hi all,
    i need a way to print all source code of the layout (include the source of all windows in the layout).
    thanks,
    dany

    Hi Dany
    From SE71, you can go to FORM INFO: Utilities->Form Info
    Max

  • Company Code Logo/ Standardtext need to be replaced with New Logo

    Hi All,
    We have a requrirement to replace  the Standard text and logo for one company code.
    -- How to know what is the existing logo (presently using)
    -- to Know where else the logo is used so that we can replace it with the new logo.
      -- please help me with the list ( where all the placess the logo/ standard text is used.)
    Thanks in advacne.
    Jagadeesh

    Hi Jose,
    Thanks for your reply, How to know the Forms or Places the logo is being used in Particular Company Code?
    With Company Code wise, How to Know what are all the Forms or Scripts the particular Company Code is using.
    Thanks In advace for your help.
    Jagadeesh
    Edited by: ja_acc on Dec 3, 2009 6:32 AM

  • Determination of default characteristics values based on Company Code/Plant

    Hi All,
    We are using batch management and classification.  We have defined various Characteristics and maintained values for it.
    As per our business process, we create Purchase Order (which may contain many line items) and after that we receive the Goods thru MIGO.
    At the time of MIGO user need to enter all the Characteristics of the batch. Out of no. of characteristics few are mandatory and also have got same value (depends on Company Code/Plant).
    Currently there is no provision to maintain default values of the characteristics at Company Code / Plant level. Due to this user have to maintain same values again and again at the time of MIGO for each line item/batch. So please suggest us the solution where user need not to enter same values for respective characteristics during MIGO and we can save lot of time and it will help to improve the efficiency.
    We also tried to explore the provision of making u201CDefault Valueu201D in CT04, but then that value was getting applied for all the Company Code / Plant which we donu2019t want.
    Regards
    Nilesh

    you have to valuate the characteristics with  Object Dependencies
    http://help.sap.com/saphelp_bw/helpdata/en/24/4766d4416711d189ec0000e81ddfac/frameset.htm

  • MIRO Invoice document number range to be assigned based on company code

    Hello all,
    We have different company codes in single client and we want each company code have diffrent set of Invoice document number. and seprate number range assignment i.e internal or external
    But SAP standard support Invoice document number assignment based on financial year..
    Please help me, how I can customize this in my system?
    Regards,
    PAVAN

    Hi Pavan,
    I assume you're talking about logistics invoice number (financial invoice number depends on company code as a standard)
    pls have a look at exit LMR1M003 (function module EXIT_SAPLMRME_003).
    I hope this helps. Kind regards,
    Alvaro

  • Settings in program RFF0GB_T for printing the company code address?

    Hi All,
    I want to print the company code address in the header window of the sapscript. I copied the F110_IN_AVIS to Z .
    in the Program RFF0GB_T, the structure SADR whose fields are being used gets filled up if the finaa-nacha = 2 means of Fax type.
    How do I change the settings or change in the program to change it to make it to print?
    Please help
    Rgds,
    Madhuri
    Edited by: madhuri sonawane on Dec 24, 2008 10:06 AM

    Hello Chandra,
    FYI, plz check the code. As per your stmt the config will populate the structure SADR. Plz see the code & clarify how & where the config comes into play.
    INCLUDE RFFORI06.
    PERFORM avis_schreiben.
    FORM avis_schreiben.
      IF finaa-nacha EQ '2' AND finaa-formc NE space.
        PERFORM adresse_lesen USING t001-adrnr.   
      ENDIF.
    ENDFORM.
    INCLUDE RFFORI99.
    * FORM ADRESSE_LESEN                                                   *
    * Lesen einer Customizingadresse (z.B. Buchungskreisadresse)           *
    * Read customizing address (e.g. address of company code)              *
    * ADRNR - address number                                               *
    FORM adresse_lesen USING value(adrnr).
      PERFORM addr_get USING 'CA01' adrnr.
    ENDFORM.  
    * FORM GET_ADDR                                                        *
    * Lesen einer Adresse                                                  *
    * Read address                                                         *
    * ADRGR - address group                                                *
    * ADRNR - address number                                               *
    FORM addr_get USING adrgr adrnr.
      CHECK adrnr NE sadr-adrnr.
      CLEAR addr1_sel.
      addr1_sel-addrnumber = adrnr.
      CALL FUNCTION 'ADDR_GET'
        EXPORTING
          address_selection = addr1_sel
          address_group     = adrgr
        IMPORTING
          address_value     = addr1_val
          sadr              = sadr
        EXCEPTIONS
          OTHERS            = 4.                                "SADR40A
      IF sy-subrc NE 0.
        CLEAR sadr.
      ENDIF.
    ENDFORM.                               " GET_ADDR
    If you still think that SADR is populated through config, can you tell where exactly in FBZP do you config this ?
    BR,
    Suhas

  • How to change company code address in Print form used

    Hi.
    I have maintained the company address under the gobal data in config. However when I used the print form to print out the invoice from AP (FBL1N -> correspondence -> Request), the address of the sender / company code is different.
    How do I change the address from the form / invoice ? How to find out where the form pulls the data from ? I tried SE71 but couldn't trace out anytime.
    Please help.
    Thanks.
    Angel

    Check your configuration.
    Please follow the following steps:
    IMG ==> Financial Accounting ==> Accounts Receivables and Accounts Payables ==> Customer Accounts ==> Line Items ==> Correspondence ==> Make and Check Settings for Correspondence
    Define Correspondence Types
    Create Report Variants for Correspondence
    Assign Programs for Correspondence Types
    Define Form Names for Correspondence Print (even you assign your form to blank company code also)
    If you complete these steps you will get the spool request get generated.
    Please ask your ABAPer to change the company code address and logo etc. on the form.
    You go to FB12 - request for the statement
    then go to F.61
    Then go to SP02 - Take print out.
    Regards,
    Ravi

  • Multiple Cheques for same company code in Cheque Printing.

    Hi All
    I am currently working for a client requirement of cheque printing. The requirement is such that we have a multiple ( 3 nos) bank cheques for the same company code. These cheques have different alignment, so we can't use the same SAP Script Form (or can we?).
    Can anyone of you please let me know how to go about this requirement?
    Like, if we create multiple SAP Script Forms, can we assign them to the same company code in the configuration or is there any other way that we may do some changes in SAP Script form itself ( My guess being using a particular alignment for Bank Codes using IF Condition)?
    The situation is such that we cannot make changes to the print program RFFOUS_C (neither make a Z copy of it).
    Thanks in advance.
    Harsh

    Hi,
    u have 3 differents cheques from the same company, but they should be from different banks...
    what is the problem?
    u can't use 3 cheques at the same time to pay for sth
    check with ur FI consultant, so he'll explain u how it works.
    Just copy a the sapscript F110_CHECK_IN to Z* and that's all
    Regards

  • How can i print all the contect of the code in sapscript window ? ?

    how can i print all the contect of the code in sapscript window ? ?

    Hi,
    Do you mean that you want to print the ABAP code to SAPscrip form ?
    Svetlin

  • Purchase Order - Default Company Code depending on Purchasing Org in Me21n

    Hi Gurus,
    I have  requiremnet to default Company code to a value depending on Purchasing Organisation in Purchase Order Create/Change Transaction ME21n , ME22n.,(  Also -ME31K, ME32K )
    Purchasing Org and Company code can be seen in Me21n -> Header -> Org . Data Tab
    Please let me know the user exit or Badi  to do the same. If no what is the solution .
    Regards
    Avi

    Hello AVI,
    U can use the BADI ME_PROCESS_PO_CUST.
    In that there is one method Process_header.
    From there u can do all the things that u need in the header part of the Purchase Order.
    I think the Below User Exit can also be used  :
    MM06E004.
    With Regards,
    Sumodh.P

  • Printing of cheque under company code instead of business area

    hai sap gurus
    pls help us in this issue
    At the time of running automatic payment program separate cheques were printing to a single vendor as per business area, now the client is asking that single cheques is to be issue to the vendor under company code instead of business area wise, but the same vendor is supplying the material to those business area.  Can we make the settings as per the requirement?
    many thanks in advance
    bye for now
    kishore

    Dear Kishore,
    I understand that your company wants to pay a vendor one cheque irrelevant of multiple business area transactions. If my understanding is correct, this can be handled by removing the tick in pay per business area
    Step
    transaction code - FBZP
    Tab                    - Paying company code.
    Control Data      - Remove the tick from Seperate payment   per business area.
    Hope this helps you.
    Regards,
    Nathan.

  • Print out of Purchase Orders from more than one Company codes

    Hi MM gurus,
    I want to print one Purchase Order copy of more than one Company codes. Is it possible in Standard SAP or i need to develop a program for the same.
    Please advice me.
    Thanks,
    Vasco

    Hi,
    You can talk with your abaper & maintain entries in the Y Z table & at the time of print you can pop up one screen & put your co code. System will check the cocode with the y z table.
    Then you will be able to print in different cocode.
    Thanx
    Reward if useful.

  • Exchange rate type company code dependent

    Hi Experts,
    as I know in SAP it's not possible to maintain exchange rate types per company code. In function module FI_CURRENCY_CHECK the exchange rate type "M" will be always set for all postings.
    Now I need a possibility to maintain exchange rates company code dependent. Do you think it's a good idea to change the above mentioned function module so it's possible to set an own exchange rate per company code? Do anyone have experiences or other solutions?
    I also know that it's possible to set per document type an own exchange rate type and also it's possible to set in V_TCURF an alternative exchange rate type for "M". But both are not an option for me.
    Best regards
    Christian

    Hi,
    You cannot have diff exch rate types for different company codes, since exch rate maintainance will be at client level only.
    Practically yours is a peccular requirement.
    We can't figure out how system will behave in case if you modify th eFM as you said.
    REgards,
    Srinu

  • Logo based on the divission and company code

    hi to all,
    I need to place a logo based on the divission and as well the company code.can any one provide me the logic.coz i have 10 logo's so how could i proceed with this...urgent
    thanx and regards,
    loki
    Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:16 AM

    Hi,
    You could include the company code and division in the name of the logo, for example;
    Z_LOGO_1000_250
    Z_LOGO_1000_300
    Z_LOGO_company code_division
    Then in your script
    /: DEFINE &LOGO_NAME& = 'Z_LOGO_'&BUKRS&'_'&DIVISION&
    Then
    /: INCLUDE &LOGO_NAME&
    So when your company adds new company codes or divisions you don't need to change the script, just upload the new logo.
    Regards,
    Nick

Maybe you are looking for