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

Similar Messages

  • How to call a stored procedure using its package name in Oracle

    hi
    we're doing a JDBC scenario where we call a stored procedure(a.prc) using its package name(b)The stored procedure has In /Out/IN-OUT parameter.
    i have got 2 queries:
    1- How to call the stored procedure using it's package.
    2- How to capture the In/Out parameter in the response.

    hi Prateek
    thanks for the reply.
    However when i tried mapping it to Package.procedure, communication channel throws the error saying that Package.proceudre needs to be declared.
    As i said , the procedure has IN-OUT parameter too.In oracle we need to write a block if we want to read the IN-OUT parameter.
    How to get the IN-OUT parameter in XI?

  • How to call a schema name using substitution name?

    Hi All,
    How to call a schema name using substitution menthod in odi?
    I was trying but I got the following error..
    ODI-1227: Task XXX(Procedure) fails on the source ORACLE connection YYY.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Here xxx procedurename.
    yyy-schemaname
    Please do the needful..
    Thanking you in Advance.
    Regards,
    PP

      1  declare
      2  sql_string varchar2(2000);
      3  begin
      4  sql_string := 'select ' || func_name || ' into a from dual ';
      5  execute immediate sql_string;
      6* end;
    SQL> /
    sql_string := 'select ' || func_name || ' into a from dual ';
    ERROR at line 4:
    ORA-06550: line 4, column 28:
    PLS-00201: identifier 'FUNC_NAME' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignored
      1  declare
      2  sql_string varchar2(2000);
      3  func_name varchar2(30);
      4  begin
      5  func_name := 'some_func';
      6  sql_string := 'select ' || func_name || ' into a from dual ';
      7  execute immediate sql_string;
      8* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00904: "SOME_FUNC": invalid identifier
    ORA-06512: at line 7
    SQL> desc some_func;
    ERROR:
    ORA-04043: object some_func does not exist
      1  create or replace function test_func
      2       return number
      3       is
      4       begin
      5          return 0;
      6*      end;
    SQL> /
    Function created.
      1  declare
      2  sql_string varchar2(2000);
      3  func_name varchar2(30);
      4  begin
      5  func_name := 'test_func';
      6  sql_string := 'select ' || func_name || ' into a from dual ';
      7  execute immediate sql_string;
      8* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00905: missing keyword
    ORA-06512: at line 7
    SQL> Set serveroutput on
      1   declare
      2   sql_string varchar2(2000);
      3   func_name varchar2(30);
      4   return_value number;
      5   begin
      6   func_name := 'test_func';
      7   sql_string := 'select ' || func_name || ' from dual ';
      8   execute immediate sql_string into return_value;
      9   dbms_output.put_line(return_value);
    10* end;
    SQL> /
    0
    PL/SQL procedure successfully completed.Hope that helps.
    Regards
    Raj

  • How to call a ODI Job using Command line?

    Hello All,
    Please help me on this..
    How to call an ODI Job using Command line?
    Thanks
    Ravikiran

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • How to display smartforms table lines useing different background colour

    Hi all:
    How to display smartforms table lines useing different background colour .
    for example:
    line1:green
    line2:red
    line3:green
    line4:red
    line5:green
    line6:red
    line7:green
    line8:red
    Any help is highly appreciated!!
    启明星

    Hi,
    Create a two lines one for header and second for data in the table.
    1)In table painter we can find the pencil mark.
    2)select the pencil mark
    3)now select the line which you need to shade
    4) now select the shading colour in the table painter and the provide the resolution up to 100% and select table pattrn for that line.
    5) Now you can use this for the header now only the header gets shaded and the remaining gets unshaded.
    reward points if useful
    Thanks and Regards,
    Nishant

  • How to Call Custom BPEL Process using JSP

    Hi All,
    I m not able to find out the way " How to deploy Custom BPEL process using JSP." Suppose I m Designing my custom BPEL process , and I want to call process through JSP.
    In order to call the BPEL process using JSP I may get the Reference from Oracle guide, But it is for Existing Example like Hello world, Order Booking.
    But I am facing the problem in order to call the Custom BPEL process.
    In case of Oracle Example it looks Simple but How to call Custom BPEL process using JSP.
    Please help me.
    Thanks&Regards
    Devesh Mishra

    hi
    The BPEL Developer guide give the way to Locate the service.can you please specify where you are getting the problem.
    Thanks,
    Sivakumar

  • How to safe a project after use varispeed

    how to safe a project after use varispeed. I speeded the project succesfully down and then I want to save it so I bounced it. When I listened it back it was the original project, not the slow down. What to do? I use Logic X

    I can only speak from Logic 9.
    Did you bounce from the Master Bus?
    A varispeed created audio file has to be bounced from the Master Bus. 

  • 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 can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How to call a method after a page  complete load

    Hi,
    Environment: JSF1.2.12+Spring
    I have a startpage, i will call a methode after startpage complete load. (I do not want to use javascript)
    How can i implement it.
    Edited by: zlzc2000 on Nov 6, 2009 2:53 AM

    goal: optimize load startpage(accelerate to load startpage)
    in startpage i use sql to load user's information, that in startpage is required.
    in other page i need the complete User Object (hibernate load user Object).
    i want to after dispay startpage load the user Object whith Hibernet.
    if during load startpage with hibernate to load user object, that is too slow.
    concept: 1step: with sql load user information (not full, for example: id, forename, surname,...)
    2step: results display( load startpage )
    3step: after load complete startpage, call method to load user object(it include all information of user )
    then the user object can be uesed in anywhere in the future.
    but i dont know how to impement it.
    Edited by: zlzc2000 on Nov 6, 2009 3:37 AM

  • How to call specific view of used component

    Hi All,
    I have the following problem:
    I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
      Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
    I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
    First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
    when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
    I nee to always see view 1A first when I navigate with button "Z" (open used component).
    How I can do that?

    hi ,
    u must be using component usage ..
    in ur component2 , place the view 1B of ur used component in separate window
    pls refer this thread as well :
    How to call a Particular View from a View of Current Component
    regards,
    amit

  • How to call BSP based iview using Parameters

    Hi,
       i developed one BSP application which takes 2 input parameters 1. Document No 2. Item No.
       I created a iView based on this BSP Application. I would like to call this iView by hardcoding input parameters.
       Input: Document No, Item and Submit button. output displays some text based on input. which is working fine, No issues.
    Now, i developed a iViews using these BSP application. If i call iViews, again no Issues. Which works great, we need to enter input manally.
    I would like to call my iViews with document no = '0004000000' , Item No = '000001' and Submit = 'SET'.  Which directly should display the data for above document item.
    that means iView URL + Document = '0000400000' & Item = '000001' & submit = 'SET'.
    how to call Parametrized iViews???
    I'm talking about Application Parameters in documentation (http://help.sap.com/saphelp_nw04/Helpdata/EN/88/266a3e54a2e946e10000000a114084/content.htm).
    ApplicationParameter
    You can enter parameter values for certain screen fields for displaying a SAP transaction here.
    This field is optional.
    The parameter values are specified with the following syntax:
    <Screen_field1>=<Parameter1>
    &<Screen_field2>=<Parameter2>
    &<...>=<...>,...
    Thanks,
    Ben.
    Edited by: Nagesh Ganisetti on Jan 29, 2009 9:18 AM

    I want to pass values dynamically? How to pass values dynamically using URL???
    assume my BSP URL wiht parameters:
    http://nwd2bw1.corp.analog.com:8001/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/zzsdpra123/start.htm?gv_doc=0040013811&gv_item=000001  WORKING GREAT!!!
    Developed an iView using ZZPRA123 BSP application in portal without APPLICATION PARAMETERS.
    http://nwd2bw1.corp.analog.com:50100/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportalcontent!2fcom.analog.analog!2fcom.analog.SD_BI_REPORTS!2fcom.analog.SD_iviews!2fcom.analog.z_quote_text?sap-config-mode=true&_gv_doc%3d0040013811&gv_item%3d000001 NOT WORKING.
    Simple BSP application: ON INITIALIZATION Method
    event handler for data retrieval
    data: gv_name type thead-tdname.
    data: lt_line1 type standard table of tline,
          lt_line2 type standard table of tline,
          lt_line3 type standard table of tline,
          lt_line4 type standard table of tline.
    data: l_rfcwa type rfcdest.
    data: event type ref to cl_htmlb_event,
          url type string,
          parameter type string,
          url_page type ref to if_bsp_page.
    l_rfcwa = 'PRD_CLI002'.
    if gv_doc is initial.
    CALL METHOD request->get_form_field
      EXPORTING
        name               = 'gv_doc'
       formfield_encoding = 0
      receiving
        value              = gv_doc.
      endif.
      concatenate gv_doc gv_item into gv_name.
      call function 'ZBI_STNDARD_TEXT'
        destination l_rfcwa
        exporting
          name   = gv_name
        tables
          lines1 = lt_line1
          lines2 = lt_line2
          lines3 = lt_line3
          lines4 = lt_line4.
      gt_line1[] = lt_line1[]. "Internal Header Text
      gt_line2[] = lt_line2[].
      gt_line3[] = lt_line3[].
      gt_line4[] = lt_line4[].
    Layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Quote Texts " >
        <htmlb:form>
          <htmlb:inputField id            = "gv_sid"
                            value         = "<%= gv_doc %>"
                            visible       = "FALSE"
                            submitOnEnter = "TRUE" />
          <htmlb:inputField
                            id            = "gv_itm"
                            value         = "<%= gv_item %>"
                            visible       = "FALSE"
                            submitOnEnter = "TRUE" />
          <htmlb:textView text      = "Quote Texts for <%= gv_doc %> "
                          design    = "HEADER1"
                          layout    = "BLOCK"
                          textColor = "dark blue" />
          <%   if gt_line1 is INITIAL.       %>
          <htmlb:textView text   = "No Internal Header Text Found"
                          design = "HEADER2" />
          <% else. %>
          <htmlb:textView text   = "Internal Header Text"
                          design = "HEADER2" />
          <%   loop at gt_line1 into gs_line.    %>
          <htmlb:textView id     = "textEdit"
                          layout = "BLOCK"
                          text   = "<%= gs_line-tdline %>" />
          <%   endloop.       %>
          <%   ENDIF.       %>
    <%--* External Header text      --%>
          <%   if gt_line2 is INITIAL.       %>
          <htmlb:textView text   = "No External Header Text Found"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   else.       %>
          <htmlb:textView text   = "External Header Text"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   clear gs_line.       %>
          <%   loop at gt_line2 into gs_line.       %>
          <htmlb:textView id     = "textEdit"
                          layout = "BLOCK"
                          text   = "<%= gs_line-tdline %>" />
          <%   endloop.       %>
          <%   ENDIF.       %>
    <%Internal Item text%>
          <%   if gt_line3 is INITIAL.       %>
          <htmlb:textView text   = "No Internal Item Text Found"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   else.       %>
          <htmlb:textView text   = "Internal Item Text"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   clear gs_line.       %>
          <%   loop at gt_line3 into gs_line.       %>
          <htmlb:textView id     = "textEdit"
                          layout = "BLOCK"
                          text   = "<%= gs_line-tdline %>" />
          <%   endloop.       %>
          <%   ENDIF.       %>
    <%External Item text%>
          <%   if gt_line4 is INITIAL.       %>
          <htmlb:textView text   = "No External Item Text Found"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   else.       %>
          <htmlb:textView text   = "External Item Text"
                          layout = "BLOCK"
                          design = "HEADER2" />
          <%   clear gs_line.       %>
          <%   loop at gt_line4 into gs_line.       %>
          <htmlb:textView id     = "textEdit"
                          layout = "BLOCK"
                          text   = "<%= gs_line-tdline %>" />
          <%   endloop.       %>
          <%   ENDIF.       %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Please guide me to call iview using dynamic parameters.
    Thanks,
    Ben.
    Edited by: Nagesh Ganisetti on Feb 2, 2009 8:47 AM
    Edited by: Nagesh Ganisetti on Feb 2, 2009 8:48 AM
    Edited by: Nagesh Ganisetti on Feb 2, 2009 8:49 AM

  • How to call dialogs one after another?

    First i have to call login dialog after successfull login call another dialog.
    Can any one provide any refer for proceed further.

    Use WaitForDialog(). This returns once the first dialog is closes. Then determine if the login went well before opening the next.

  • How to find smartform that is used within a transaction

    Hi experts,
    Im trying to find the smartform that are used behind transaction FNVS/me22n/zab1/zapb
    From me22n i know it uses zmedruck and i could find this by doing the following:
    transaction nace - ef - neu. there i could find everything, even the printprogram.
    this i found because someone told me you can find everything from orders there within EF.
    but the other transactions i don't know how to start looking for the smartform, as i cant debug those printpreviews neither.
    If someone can explain me how i can find the smartform used behind those printscreens that would help me a lot.
    regards,
    michael

    hi,
    i've put a external breakpoint and a normal breakpoint within the function module,
    but when i press the print preview it doesnt trigger :/
    [image breakpoint|http://img256.imageshack.us/img256/2888/capturede.png]
    even within me22n.
    Am i doing something wrong?
    thx already for the fast reaction.
    regards,
    Michael

  • How to run Cloned OSX after using CCC?

    Hi,
    I've just cloned my OSX Tiger 10.4.11 to an 80GB External HD ising CCC 'Carbon Clone Copy'. I right clicked to 'get info' on the External HD and it's reading 31GB used, but when I do the same from my internal HD, it's reading 33GB. Am I missing something at 2GB, or is that usual?
    When I used CCC, I used the 'Copy all selected items' (and made sure everything was checked) because a message came up when I tried to 'Copy everything from source to target'. It said: The target volume is not large enough to accommodate a block-level clone. So I opted for the 'Copy all selected items'.
    Is this why i'm missing 2GB maybe?
    Also, When I open the external hard drive from teh desktop, everything's there in folders. But how do I run this 2nd HD? I restarted the laptop to see if it would give me an option to run which HD (just like logging on as different users, but I only have 1 user account and it opens automatically).
    I'm going to install Leopard to this External HD but want to know how I will run it after?
    Any advice appreciated!

    I'm posting from a new account because I couldn't log on from my home PC (said my account has been suspended or something similar)
    I got 10.5 Leopard installed onto my External HD on my MacBook Pro. It shows up as 10.5 when I go into System Preferences > Startup. I choose the External HD with 10.5 to restart/reboot and then wait. It loads but it's the exact same as my original 10.4.11?
    Tried restarting it again and again and switching between the Internal HD and External HD but there's no difference even though it says so in the Startup window in System Preferences.
    When i'm in my Internal HD and open the External HD on the desktop, I can see the proper files and when I open Applications folder I can see the few new applications such as Time Machine and the System Preferences icon (the same as the setting icon on the iPhone).
    Anybody know what went wrong?
    I was away when it was installing (said 50 minutes to go when installing leopard) so I came back after 40 minutes and it was just in the process of restarting the laptop. Everything normal came up and I waited a minute, then ejected the CD and booted up the External HD to find that it was no different.
    Help?

Maybe you are looking for

  • Lenovo T61 Backlight Problem !

    Hi, so i bought a notebook Lenovo T61 last year in september. The model is 6459CTO with a 15.4 WSXGA screen. This is how it shows on the packing list. 15.4 WSXGA- TFT So 25 days after warranty expired the notebook screen died. How **bleep**ty is that

  • Can't See Shared Music (Not radio button problem!)

    I haven't been able to see Shared Music on my college network since I reinstalled Windows XP (around iTunes 4.8). I don't know what settings have changed. I now have the latest iTunes, the radio buttons are on. I heard about opening up a port, and bo

  • One doubt in smartforms

    Hi Group I have one doubt in smartforms. I have following requirement. I want to print 14 labels on one A4 size page using smartforms. Can somebody please tell me how to go about it. Please reply ASAP as it is a bit urgent requirement. Thanks & Regar

  • Trodas please check your PM (X-FI CA

    Trodas I have sent you an important PM that you need to read. It is about the capacitors. Chris Please Creative Labs dont deleat this message.

  • Is it easy to block a mac address on airport extreme?

    I have plans of changing my router to an apple airport extreme. Is it easy to block a mac address on apple's airport extreme?