Regarding Smartform Function module

Hi,
When i am executing the smartform function module via print program, Smart form output is displaying properly but it is not showing any OTF data in the importing parameter  JOB_OUTPUT_INFO . (JOB_OUTPUT_INFO-OTFDATA). Why it is happening? Could you please help me in this regard?

To get the OTF data you need to set the GETOTF parameter in the Control Parameters of the Smartforms.
    DATA: LS_CONTROL  TYPE SSFCTRLOP.  " Controlling info
    LS_CONTROL-GETOTF    = 'X'.
    CALL FUNCTION WF_FM
      EXPORTING
        CONTROL_PARAMETERS         = LS_CONTROL
     IMPORTING
        JOB_OUTPUT_INFO            = WF_OUTDATA
I guess, when we set the GETOTF flag, it will not generate the output and only puts the data JOB_OUTPUT_INFO-OTFDATA.
Regards,
Naimesh Patel

Similar Messages

  • SEND_ERROR in the SMARTFORM function module

    Hi All,
    I want to send the PO via e-mai as attached PDF file. It is working fine in DEV. But in PRD i am getting SEND_ERROR in the SMARTFORM function module.
    can any one hep me to fix this????
    CALL FUNCTION fm_name
        EXPORTING
          archive_index      = toa_dara
          archive_parameters = arc_params
          control_parameters = ssfctrlop
          output_options     = ls_composer_param
          user_settings      = 'X'
          nast               = nast
          zxekko             = zxekko
          zxpekko            = zxpekko
        IMPORTING
          job_output_info    = job_output_info
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    Rgds,
    Rajesh.

    Hi,
    Go to se37,enter ur generated function module name .
    Put a brkpoint at first executable statement of that FM.
    If u run ur program,then it will stop.
    Then put brk point on SSRFT_READ_ERROR(From menu).
    after press f8,u will know what is the reason of ur error.
    and check thjis also
    http://wiki.sdn.sap.com/wiki/display/Snippets/Unique+Driver+Program+for+any+smartform+of+a+transaction
    Try like this.
    Thanks
    Gourav.

  • Smartform function module

    HI,
      is it same development client smartform function module (meane when we execute the smartform) and test client smartform function module?pls help me?
    regrds,
    dhanan

    HI,
    We have two function modules in smartforms,
    One is when we activate the smartform it iwll give at runtime which will encapsulate all the attributes of that particular smartform we cant run the smartform in different client if we use that function module.
    Second One is We have one more function module is there which is main SSF_FUNCTION_MODULE_NAME
    output of this function module is another function module. we can run the program in any client if we use this function module

  • SmartForm Function Module not generated in Production

    Hi
    I have a smartform in DEV(Box A). It works fine. I trasnsported it to PROD(Box B). It appears as Active state in PROD. But there is no Function module generated for this smartform. As a result my program dumps in PROD.
    I am running it on 4.6C Release.
    Any suggestions ?
    Murali.

    Hi again,
    1.  I dont find any Function Module name under ENVIRONMENT -
    > FUNCTION MODULE NAME
    Click on
    FUNCTION MODULE NAME
    and it will give a pop-up window
    displaying the FM name.
    2. If its not there,
       then u can do 3 things :
      a) in prd server, activate the smart form again.
       (this will generate the FM)
      b) try to transport a new request,
        for the same smartform.
      c) ask basis team to check the LOG
        of this transport request.
      (whether any error / warning was there in the
       transport log)
       From this log, if any warning/error is there,
       then we can come to know, that there is some problem.
    regards,
    amit m.

  • Smartform function modules

    hi,
    For processing the smartforms SSF_OPEN which will have functionality like output options,control parameter which has various functionality, but i am unable to acheive this but I am able to do the same in my generated function module,
    so my questions is why we want SSF_OPEN while we can do the same in generated? please tell how to achive in SSF_OPEN.
    Points will be rewarded.
    regards,
    Prabhu

    Hi,
    Check my tutorial regarding the same.I am expalining in that.
    https://wiki.sdn.sap.com/wiki/display/Snippets/Smartform-Howtoavoidthedialog+box

  • Questions regarding update function module

    Hello experts,
    I am on customer site to help them investigate one issue: they have a background job which runs periodically.
    In the report database table A is changed firstly ( new entries are inserted ), then a update function module is called via keyword CALL FUNCTION ... IN UPDATE TASK.
    Inside the function module database table B is updated. ( existing entries are updated )
    Customer issue:
    sometimes they find A is updated as expected, however B remains unchanged at the same time.
    customer could not find exact steps to reproduce the issue. However the issue does exist there and occur from time to time.
    the issue could only be reproduced in their production system, but works perfectly well in dev & Q system. It is difficult to debug in their production system for trouble shooting.
    After analyzing related code, I have one doubt: according to ABAP help on CALL FUNCTION aaa IN UPDATE TASK, I know the function module aaa is called in a new update work process. I wonder whether there is any possibility there this issue might be caused because the update function module fails to get called at all? ( perhaps due to heavy system load so no free update function module could serve the table B update ? )
    If update function module fails to execute, is there any system utility to record this? That is to say, will it be recorded in such as SM13 or SM21?
    Looking forward to your expertise on this topic!
    Best regards,
    Jerry

    Hello friends,
    Thanks a lot for your interests on this issue. I update all my findings:
    1. issue background: this issue occurs in SAP CRM Channel manageement Solution, software component CRM-CHM-POS.
    2. due to some limitations, the table CMSD_CI_HISTORY and history table are not updated in the same LUW. Instead the first one is updated in normal work process while the other is done in update work process. Since I am not the original developer I didn't know the whole complex scenario ( I did see this is done delibrately in note 1764006 - CMS:Sell In Release creating PB with zero available quantity ).
    So for the moment we have to accept this design.
    3. during our testing ,we ensure COMMIT WORK is always called.
    4. So why sometimes the first table update fails, however there is no hint at all for this failure in the system like ST22 and SM21 ?? ( forget SM13, since it is updated in normal work process ).
    The root cause is the flaw of SAP code below.
    The code has planned to raise exception if insertion failed due to duplicate records to be inserted.
    Unfortunately, the fact is if we use "INSERT db FROM TABLE xxx" to insert records into database and some record already exists with the same key, it will result in a termination but SY-SUBRC is STILL 0; Just compare it with single insertion using "INSERT db FROM <work area>", in the same error situation, processing does not terminate, and SY-SUBRC is set to 4.
    As a result in this case even the insertion fails, line 29 will never be executed as sy-subrc is always 0. Since the insertion fails and the exception is caught without any notification, so customer sufferred because they do not know what has happened.
    Best regards,
    Jerry

  • Help regarding the Function Module GUID_CREATE

    Hi Experts,
    Can some one explain the functionality of GUID_CREATE function module.Thanks in advance.
    With regards,
    Srini...

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

  • Regarding The Function Module SXMS_ASYNC_EXEC strucking In Queue

    Dear All,
    I have Written an Enhancement for standard Program MB52,  I have written an Outbound Proxy and scheduled the job in background the Job is running successfully but default the the Function module SXMS_ASYNC_EXEC is also scheduled and is it  showing an Error SYS-Fail.
    Queue Block : Action OPEN_PSA_DATAPACKAGE/2 IS NOT SUPPORTED Iam Trying to Apply the Note Pls help me in this Regards
    Regards
    Naresh

    Hi Amit,
    if you are working with abap proxies there is an error in the proxy code that you have implemented.
    Use the tcode SPROXY -> Proxy -> Test Interface (F8)
    Best Regards,
    Francesco

  • Regarding hr function modules

    if to read the data from a RT table which of the following function module will be best
    . <b>pyxx_read_payroll_result</b> or <b>RP_FILL_WAGE_TYPE_TABLE</b>
    what i am doing is i am filling the rgdir table using the function module <b>cu_read_rgdir</b>
    as looking at the query you can see i am totally confused in these function modules
    can anone please let me know that  how i can get data from rt using these function modules coz i am not using ldb PNP in my program and i have got all the data wihtout using it now the only issue left is PF that i can get only from RT TABLE.
    if there is any other way also for that please let me know
    the wage types for pf are /3f1,/3f2./3f3
    if anynobdy can help me in this i can complete rest of the parts by today ..
    sorry for disturbing you all have asked too many questions on rt table
    please dont mind
    just wanted to have a grip on it thats y asking so many queries and thanks for all your replies that you all have given
    pelase help me in this last one also:)

    Hi,
    refer
    Retrieve record from RT
    Re: regarding RT tables
    Hope this solves your purpose.
    Award points if it helps.
    -Gaurang

  • Regarding bapi function module

    Hi to all,
    Tell  me <b>how to test this function module</b>
    <b>BAPI_CAR_PRVD_NUMBER_RANGE</b>
    if possible please <b>provide any example based on this FM</b> .
    thanks and regards,
    surya.

    hi vishnu,
    actually i don't now anything about this fm bcz of that reason only i am asking how to test this fm,what type of input required to test this fm
    if u know please provide solution asap.
    thanks and regards,
    surya

  • Regarding Remote function module ARCHIV_CONNECTION_INSERT

    Hi All,
    Can any give me more detial about remote function  module ARCHIV_CONNECTION_INSERT . So i have requirement that our client is archiving document from Commonstore. So want to create custom function module for TOA01 ( ZTOA01 ) and add a maintanance field. if data is archived maitaianance field should be flagged and next time when he is archivig document he dont want to give date. so only unflagged document should be archived.
    so can any one help me how to overcome this requirement as this is urgent.
    Thanks in advance.
    Best Regards,
    zubera

    Go to SAP Service Marketplace (service.sap.com) and SAP Notes Search. Put in the note number 758278 and hit display.
    However to be able to access service marketplace you need a s-user registered for the company you are working for. Please contact your basis team to find out what user is available to you.
    Regards,
    Michael

  • Regarding variant function module in alv

    hi,
        could any body tell about the function modules
    reuse_alv_variant_default_get
    reuse_alv_variant_f4
    reuse_alv_variant_existence
               and how to use it.(by giving an example program)
    Regards,
    Pavan.

    reuse_alv_variant_default_get - Provides the default variant for the list specified in the structure parameter CS_VARIANT of a program.
    reuse_alv_variant_f4 - Display variant selection dialog box. Possible entries help, if the variant is defined explicitly as an input field on a screen. The selection must be specified by at least partially filling the parameter structure IS_VARIANT.
    reuse_alv_variant_existence - This function module checks the existence in the database of a display variant passed in the interface.
    Check the Link for Example REUSE_ALV_VARIANT_F4' how to use it when we iuse it
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jan 17, 2008 5:39 AM

  • Regarding update function module

    Hi all,
    This is regrding update function module
    How to handle errors in update function module
    Can exception be used in Update function modules
    while calling in update Task
    if we can use please let me know how to do so while calling in Update task.
    Regards,
    siva chalasani.

    Hi Vinod,
    Just wanted to say...
    your answer solved my problem.
    I needed to pass my error records into a internal table and from there to notepad using GUI_DOWNLOAD.
    The following is my function module....
    RHPP_Q_PROFILE_WRITE
    It has under  TABLES-- 'err_profile' to capture error records.
    So, I passed a internal table in " err_profile" to capture the errors.
    And then passed this internal table in GUI_DOWNLOAD.
    Regards,
    Hari Kiran
    Edited by: HARI KIRAN REDDY on Aug 12, 2008 12:20 PM

  • Regarding the function module WF_WINDOWS_EXECUTE

    Can anyone tell me if the function module WF_WINDOWS_EXECUTE will work with a parameter of sap R/3 type. I mean that it works with internet sites but will it still work with the HTML pages which we design.

    hi..
    IMPORTING
    *" PARAMETER LIKE TWFSA-PARAM
    *" PROCESS_DATA LIKE WFPRCD STRUCTURE WFPRCD
    *" PROCESS_ID LIKE WFPRCK STRUCTURE WFPRCK
    *" EXPORTING
    *" PROCESS_DATA_NEXT LIKE TWFNS2 STRUCTURE TWFNS2
    *" RETURN_CODE LIKE TWFNS-RCODE
    *" TABLES
    *" ASSIGNMENTS STRUCTURE WFAS1
    *" LOGLINES STRUCTURE TLINE
    *" EXCEPTIONS
    *" WF_ERROR_PROCESS
    *" WF_NOTHING_DONE
    <b>Rewards point if useful</b>
    Regards
    Ashu

  • Regarding Remote Function Module RFC_READ_TABLE

    HI,
    Can any one please let me know that whether Remote function Module RFC_READ_TABLE work in uni code system.
    In notes 382318 stated some problem regarding the Long run structure and security problem.
    So please let me know how to overcome this problem.
    Please reply. it is urgent.
    Thanks in advance.
    Best Regds,
    zubera

    Go to SAP Service Marketplace (service.sap.com) and SAP Notes Search. Put in the note number 758278 and hit display.
    However to be able to access service marketplace you need a s-user registered for the company you are working for. Please contact your basis team to find out what user is available to you.
    Regards,
    Michael

Maybe you are looking for

  • Why do I get this window on exiting CS5

    Hi all, Using Vista Ultimate SP2 x64. No problems with install and program functions perfectly until shut down. When finished working on photos and close CS5 either with the 'Big Red X' or 'Exit' from the drop down menu I get this window I know it st

  • Vendor balances per reconciled account

    Dear all, In my country, I use alternative account for vendors. Is there any function to get balance of vendor per reconciled account. By example: Input: Vendor Number Reconcile Account Output: Balance at key date If not, can you show me the logic ho

  • SQL loader load data very slow...

    Hi, On my production server have issue of insert. Regular SQL loder load file, it take more time for insert the data in database. First 2 and 3 hours one file take 8 to 10 seconds after that it take 5 minutes. As per my understanding OS I/O is very s

  • Introduction of Lenovo Lephone S720 Smart phone

    Lenovo lephone S720 smart phone is a dual core 1.0 GHz processor and have the Andriode Version 4.0 in multi language. Do you know that it has RAM of 512 MB. Its size is 132.3 x 68.3 x 9.9 mm and have a wide screen 4.5 inches with 16M colors.  http://

  • How to programatically display text in combo box?

    Is there a way to programatically display text in a combo box.  I would like to display the word "Select" in the combo box each time my program starts.  As it is now, my combo box displays the last string that was selected the last time the program r