How to call LOGOS dynamically in smartforms

Hi,
I have  15 logos ,i have to print these logos based on company code ,how can i display?
logic to display logos.

what Nabheet is trying to tell you is that,
declare a variable of type below in the global definition
GV_LOGO     TYPE     SSFSCREEN-GR_NAME
and before the logo graphics element put a code like
select single logo_name from Ztable in to gv_logo where bukrs = gv_bukrs. => this gv_bukrs is from your code
this z table tolds two columns.. company code and logo name. so you will get one entry in gv_logo.
this should be the name of the logo you have uploaded using se78.
say comp1 has logo name logo_comp1
say comp2 has logo name logo_comp2
so your code say picks up logo_comp1 as your comp code is comp1.
now, the graphics window.
Name       &GV_LOGO&
Object     GRAPHICS
ID         BMAP
you are done

Similar Messages

  • How to diaplay a logo dynamically in smartforms

    hi experts,
    i have 3 logos which needs to get printed in the smartform based on the business areas as the condition
    can you please help me in providing a sample code to display the logo dynamically in smartform
    Edited by: murari sampath kumar on Jan 28, 2010 7:42 AM

    Hi
    place all the three logos on the smartfrom.
    Suppose u have three business areas,
    1
    2
    3
    then in the condition part of the graphics,
    provide the condition.
    like field name eq business area
           relation   Equal to
           Comaprison value eq 1.
    when this conditon will satisfy then only ur logo will print.
    apply this condition to all three logos.
    Hope this will solve ur problem.

  • HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM

    PLEASE ANYONE TELL ME, ABOUT  HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM. IT IS VERY URGENT!!!!!!!!!1

    Hi,
      Under Global Definitions, we have 'Form Routines' tab. Under this tab, u can have a dynamic subroutine call. With in FORM and ENDFORM, you can call the Function Module.With in the Program Lines editor, u can define the subroutine........PERFORM. 
    If helpful, reward points.
    Rgds,
    CK

  • How to call second page in Smartform without calling first page

    Hi Gurus,
    I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
    For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
    Thanks in Advance
    Gautam

    Hi,
    The smartform will always start with the first page in the structure by default.  However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
    Regards,
    Nick

  • How to call more then one smartforms from SE38 ?

    Hello Expertise,
    Good Afternoon,
    Hope all r fine. Do anybody knows,Is it possible to call more than one smartform from SE38?
    If possible then how?
    Please help me.
    Thanks n regards,
    Tripod.

    Hi,
    what you meaning with: call more than one...
    call & show as smartform (print preview ) > I think that´s not possible
    Call & create PDF > show as PDF in IExplorer ? > Yes could work when you crate the PDF > and send it to different Internet explorer
    Call & create PDF > show as PDF in GUI ? > Yes could work when you crate the PDF > and send it to different Containers...
    Best Regards
    Robert

  • How to call ALV Report and SMARTFORMS through Pushbutton

    hi,
    i have created a report.My task is to create two buttons:
    1)ALV Report.
    2)SMARTFROMS.
    Through these button i have to call ALV Report and SMARTFORMS. i have created both button and when i execute the program,
    it shows me the button but not working when i click on it.
    this is the coding i have used in my report for calling ALV Report.
    ''Tables sscrfields,
    DATA flag(1) Type c.
    selection-screen: begin of screen 500 AS WINDOW TITLE tit,
    BEGIN OF LINE,
    PUSHBUTTON 2(18) but1 USER-COMMAND cli1,
    end of line,
    BEGIN OF LINE,
    PUSHBUTTON 2(18) but2 USER-COMMAND cli2,
    end of line,
    end of screen 500.
    SET PF-STATUS 'STATUS_0100'.
    at selection-screen.
    case sscrfields.
    WHEN 'cli1'.
    flag = '1'.
    WHEN 'cli2'.
    flag = '2'.
    endcase.
    at USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'Detail'.
    select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~ARKTX
    into but1
    from vbak inner join vbap
    on vbakvbeln = vbapvbeln.
    ENDSELECT.
    ENDCASE.
    START-OF-SELECTION.
    tit = 'Format'.
    but1 = 'ALV Report'.
    but2 = 'SMARTFORMS'.
    CALL SELECTION-SCREEN 500.
    and i also use in my report
    ''case sscrfields-ucomm'' and ''submit my_report'' but the still button doesn't show the result.
    Thanks & Regards,

    Hi,
             I  understood your requirement. What i found is,  you are creating screen 500 and call it after START-OF-SELECTION,
    at that time your AT USER-COMMAND doesn't work.
    So what i would suggest , u should create GUI STATUS named ' PFSTAT' 
    having one functional key 'EXIT'  that is standard u can just name it
    and
    other two u can assign in Freely assigned Function keys as 'BUT1' & 'BUT2'.  and than in Application Toolbar u jst have it in ITEM LIST by typing BUT1 and BUT2.
    For 'BUT1'  text would be 'ALV'  and 'BUT2' text would be 'SMARTFORMS'.
    Now in Program you can code,,,
    START-OF-SELECTION.
    SET PF-STATUS 'PFSTAT'.
    WRITE:/ 'TEST'.
    at user-command.
      case SY-UCOMM.
        WHEN 'BUT1'.
        WHEN 'BUT2'.
        WHEN 'EXIT'.
           LEAVE PROGRAM.
      endcase.
    In Program u set PF STATUS and use at user-command event, whcih gets triggered when u click on button . When u execute program you get two button in application tooldbar.
    Please do needful.
    Thanks,
    Saurin SHah

  • How to print page dynamically in smartforms

    Hi All,
    Please help on below case...
    1. I have developed a smartform which has 5 pages in total . Through driver program passing 4 internal tables...
    first page - will print all times... - consuming first internal table data
    second page - need to print dynamic - consuming data from second int table
    third page     - need to print dynamic - consuming data from second int table
    fourth page - need to print dynamic - consuming data from thrid int table
    fifth page    -  need to print dynamic - consume data from fourth int table
    dynamic condition  is determined in driver program ... but how to implement dynamic determination in smartforms..
    sometimes ...based on data ...we need to print first page , and fifth page only ...
    as of now all 5 pages are printing ...
    Expect the advise from expertist...
    Thanks and Regard
    Ramasi
    Edited by: ramasi on Sep 1, 2011 11:29 AM

    Hello,
    Plz use this code, may be it will help you as given below:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id                            = '0001'
    language                      = sy-langu
    name                          = v_name
    object                        = 'VBBP'
    TABLES
    lines                         = dt_lines
    EXCEPTIONS
    id                            = 1
    language                      = 2
    name                          = 3
    not_found                     = 4
    object                        = 5
    reference_check               = 6
    wrong_access_to_archive       = 7
    OTHERS                        = 8.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    But kindly note that plz don't use the exception (code) for the purpose, May be thi will hlp you for the purpose.
    Thanks & Regards,
    Akg

  • How to call specific page of smartforms

    i have smartform in which 5 different pages are there
    i want to call PAGE1 when my sy-tcode eq tc1
    and PAGE2 when sy-tcode eq tc2 like wise...
    how to pass the page name in function module of smartforms???

    HI,
    try this...
    case sy-tcode.
    when ' '.
    Populate the TDPAGESLCT of structure SSFCOMPOP include SSFSPOUTOP of OUTPUT_OPTIONS in form interface of the smartform.
    endcase.
    call the smartform functionmodule
    regards
    padma

  • How to call a dynamic URL on 'button press' event, in MVC-based BSP

    Hi,
    My requirement is as below:
    On selecting a row in table view, and pressing a button, I need to open a browser.
    The Browser URL depends on the row selected.
    The key field from table view, is added at the end of the URL string.
    Shortly, I can say that, I am getting a value on row selection & want to pass it to button event.
    In Views Section, there are 2 tags- (1)table view & (2)button.
    Right now, I have put the code for getting the key field, in DO_HANDLE_DATA method.
    In Button's OnClientClick method, I have called the Javascript to open the browser.
    If I now write the code to concatenate the key field value to form the dynamic URL in 'OnClick' method,
    it will be called only after the browser is opened.
    (as OnClick event is executed only after OnClientClick event is executed)
    Could anyone please tell me what event (and in which tag) can be used to solve this.
    Is there any event which is triggered, as soon as the row is selected, &  before the button press event is triggered ?
    Would really appreciate responses made to this query.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How to call selection screen before smartforms?

    Hi experts,
    I wanna call a selection screen before displaying smartforms. In NACE transaction, I have program that calls the smartforms and In that program, I wanna add a selection screen with three fields whom values comes from a value range that prepared by me. I don't wanna use popup selection FM's because as ,I said, I wanna display the values according to a value range.
    Do you know any way to do this?

    REPORT zsd_rv56td00.
    SET EXTENDED CHECK OFF.
    TABLES: vbpla, thead, ttxern, ttxit, t005, vbddl, stxh, sadr. "SADR40A
    INCLUDE vttkdata.                      "Shipment Header
    INCLUDE vttsdata.                      "Shipment Segment
    INCLUDE vttpdata.                      "Shipment Items
    INCLUDE vbpadata.                      "Partner
    INCLUDE vtfadata.                      "Flow
    INCLUDE sadrdata.                      "Address
    INCLUDE vtlfdata.                      "Delivery Selection
    INCLUDE rvadtabl.                      "Messages
    INCLUDE vsedata.                       "shipping units
    INCLUDE rv56acom.                      "I/O-Structure
    *INCLUDE zsd_form_screens.
    SET EXTENDED CHECK ON.
    DATA:
      xscreen(1)              TYPE c,
      retcode                 LIKE sy-subrc VALUE 0,
      there_was_output(1)     TYPE c        VALUE space,
      new_page_was_ordered(1) TYPE c        VALUE space.
    CONSTANTS:
      no(1)  VALUE space,
      yes(1) VALUE 'X'.
    TABLES : tpar,vbak.                                         "n_742056.
    SELECTION-SCREEN BEGIN OF SCREEN 900.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS :
    s_ulke FOR vbak-zzcikisulke,
    s_gumruk FOR vbak-zzvarisgumruk,
    s_ant FOR vbak-zzantrepo.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 900.
    Florian as you can see I created the screen! It exists!

  • How to call array dynamically???

    Hi i hv 3 arrays row1 row2 row3,
    I need to call array into a for loop one by one
    var rowno:int=1
    for(i:int=1;i<10;i++){
          this['row'+rowno].push(value)<<< showing error
         rowno++
         if(rowno>=4){    
              rowno=1
    what is the right way to use array dynamically???

    for(var rowno:int=1;rowno<4;rowno++){
    for(i:int=1;i<10;i++){
          this['row'+rowno].push(value);  // assuming value is defined

  • How to write driver programming in smartforms

    hi Floks
    <i>how to write driver programmig and how many types of driver programs available to trigger smartforms what are they . how to call the url in smartforms ?
    help me  out  .thanking you ,</i>
    with regards,
    suresh

    Hi
    Try to get the Function module name from the smart form
    how to find Driver program for a smartform
    and now goto SE38 and create a progarm for calling the smartform
    smartform driver program
    Regards
    Kathirve

  • Call Fm dynamically

    Hi all,
    I am using FP_FUNCTION_MODULE_NAME    fm to get a fm name of a Interactive/PDF form.
    I want to know that when i get this FM name how to call it dynamically.
    Points will be sured for valuable answers.
    Thanks
    Sanket sethi

    Data: LV_FORM_NAME TYPE FPWBFORMNAME,
             LV_FM_NAME   TYPE RS38L_FNAM,
             FP_TEST_DUMMY TYPE FPINTERFACETYPE.
    Now pass the form name in LV_FORM_NAME .
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
            EXPORTING
              I_NAME           = LV_FORM_NAME
            IMPORTING
              E_FUNCNAME       = LV_FM_NAME
              E_INTERFACE_TYPE = FP_TEST_DUMMY.
    U'll get the FM name in LV_FM_NAME.
    Now 
      GS_DOCPARAMS-LANGU = 'E'.
    GS_DOCPARAMS-COUNTRY = 'US'.
    CALL FUNCTION LV_FM_NAME
        EXPORTING
          /1BCDWB/DOCPARAMS = GS_DOCPARAMS
         LFA1              = LFA1
         MBMFKTO_PDF       = GT_MFKTO_PDF
       IMPORTING
         /1BCDWB/FORMOUTPUT       = FP_RESULT
        EXCEPTIONS
          USAGE_ERROR       = 1
          SYSTEM_ERROR      = 2
          INTERNAL_ERROR    = 3
          OTHERS            = 4.
    Hope this might give answer to U.
    Regards
    Hemendra.

  • How to call Subroutines,Standard Text  & using Internal Table in SmartForm

    Hi all,
    need help in the following areas.Its very urgent!
    1.How to CAll Subroutines in Smart Forms
    2.How to CAll Standard Text in Smart Forms
    Situation:
    We have an Internal Table T_SALES with all the data which am going to display in the smartform,How to retrive data from an internal table in Smart forms
    Any Help in this direction would be highly appreciated.
    Regards
    Ramu

    Hi,
      When you are using quantity or currency fields, you have to mentiong the reference fileds in a tab called CURRENCY/QUANTITY FILEDS in the GLOBAL DATA node.
    Specifying a Currency or Quantity Reference
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field. In the output of these fields, the system can then insert the relevant currency or unit:
    ·        If the value field is in the same table as the corresponding currency or quantity field, the system recognizes the reference automatically, and formats the value field according to the currency or unit in the assigned field.
    ·        If the value field is in a different table from the currency or quantity field, the system cannot recognize this reference automatically.
    In the second case, you must indicate this reference to the system in the form, to ensure that the value field is formatted correctly.
    Procedure
    You want to assign a currency or quantity field in one table (for example, CURTAB) to a value field in another table (for example, VALTAB).
           1.      Create the reference to the currency field by entering the following values:
    -         Field Name: VALTAB-VALUE, if this is the value field of VALTAB that you want to display.
    -         Reference Field: CURTAB-CURRENCY, which is the currency field of CURTAB.
           2.      Under Data Type, specify whether the data type is a currency or quantity.
    Result
    In the output of the PDF-based print form, the system formats the value field VALTAB-VALUE according to the assigned value in the currency or quantity field of the global variable CURTAB-CURRENCY.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was Added by: Bharat Reddy V
    Message was Added by: Bharat Reddy V

  • How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?

    Hi Experts,
    How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
    I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM  for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
    Call function SSF_FUNCTION_MODULE_NAME
    Export
    formname = 'zsmartform'
    import
    fm_name = function_name.
    function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
    thanks in advance.

    hi,
    Chk this sample.
    DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
    p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
    p_output_options-TDCOPIES = 3. "number of copies.
    p_output_options-tddest = 'LP01'. "def
    p_control_parameters-no_dialog = 'X'. "no dilog box
    p_control_parameters-preview = 'X'. "no preview
    DATA : v_form_name TYPE rs38l_fnam.
    *---- Function to get the function module name of the    ----
    *---- specified Smart form.                              ----
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'GIVE YOUR SMART FORM NAME'   
    * VARIANT = ' '
    * DIRECT_CALL = ' '
    IMPORTING
    fm_name = v_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3 .
    *---- Function Module to call the Smart Form          ----
    *step 1 - go to ur smart form
    *step2 - take environment
    *step3-take function module name
    *copy that unique number.
    *step4 -come back to ur driver program.
    *step5 - place ur cursur here. take patter,.give that unique number.
    *at that time u will get the below code.
    *step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
    CALL FUNCTION v_form_name
    EXPORTING
    * ARCHIVE_INDEX =
    * ARCHIVE_PARAMETERS =
    control_parameters = p_control_parameters
    * MAIL_APPL_OBJ =
    * MAIL_RECIPIENT =
    * MAIL_SENDER =
    output_options = p_output_options
    user_settings = ' '
    * ARCHIVE_INDEX_TAB =
    * IMPORTING
    * DOCUMENT_OUTPUT_INFO =
    * JOB_OUTPUT_INFO =
    * JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    for any clarifiaction pls revert.
    regards,
    Reshma

Maybe you are looking for

  • Connecting a Mac to a Window's 2008 small business server

    I'm looking to purchase an iMac to use at work. Everyone else in the office uses a PC and are connected to our current Window's 2008 server. I would be the only person using a Mac. Is there any way to connect a Mac to the server?

  • EP_BUILDT and SAP_BUILDT not showing up in JSPM to upgrade

    Dear all, We are applying SPS from 09 to 13 in our NW04s environment (Portal). JSPM does not show EP_BUILDT and SAP_BUILDT to upgrade in the list. I have tried both the Support Pack Stack option and Single Support Pack option. All other components ha

  • REGISTERING FINAL CUT PRO TO MY APPLE ID

    I have recently bought an ex rental iMac which came with Final Cut Pro pre installed. How can I register it to my apple ID so as to be able to get updates and have it show in my purchased apps in app store?

  • Need Help setting up Comcast Static IP

    I'm a noob to this stuff. My work just purchased a static ip address from comcast and I'm tasked with connecting the ip to our Snow Leopard Server. The server is connect to a gigabit switch that is connected to the Comcast business gateway. I've ente

  • Magneto Optical disk installation???

    I am trying to install a magneto-optical disk unit (SONY RMO-S551) to my Sun Ultra 1, with Solaris 8. I used the SCSI port but I haven't been able to make it work. Do I need a special driver?