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.

Similar Messages

  • 'Control parameters'  when call the smartform function module

    Hi all,
    I want to know what we have to export as value to control papameter while calling the fm of smartform.
    Plz also let me know the various parameters in CONVERT_OTF.
    Thanks in advance.

    WA_CONTROL_PARAMETERS-GETOTF    = 'X'.
    the above is needed if you want OTF data, to convert it to PDF
        WA_CONTROL_PARAMETERS-LANGU = 'E'.
    Language of smartform
        WA_CONTROL_PARAMETERS-DEVICE = 'PRINTER'.
    *default o/p device
        WA_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    if you dont want the pop up screen , that asks you for printing make the value as 'X' .
    other wise make it as space or clear it.
        WA_CONTROL_PARAMETERS-PREVIEW = SPACE.
    if u want the print preview , make it as 'X' , otherwise SPACE
    Below code shows how you can convert the OTF data to PDF data.
    calling the smartform.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME           = 'Z_SMARTFORM'
        IMPORTING
          FM_NAME            = WF_FUNCMODULENAME
        EXCEPTIONS
          NO_FORM            = 1
          NO_FUNCTION_MODULE = 2
          OTHERS             = 3.
    CALL FUNCTION WF_FUNCMODULENAME
          EXPORTING
            CONTROL_PARAMETERS   = WA_CONTROL_PARAMETERS "Control Params
            OUTPUT_OPTIONS       = WA_OUTPUT_OPT  "Output Options
            WF_CARRID            = WF_CARRID
            WF_CONNID            = WF_CONNID
            WF_FLDATE            = WF_FLDATE
          IMPORTING
            DOCUMENT_OUTPUT_INFO = WA_DOCUMENT_OUTPUT_INFO
            JOB_OUTPUT_INFO      = WA_JOB_OUTPUT_INFO
            JOB_OUTPUT_OPTIONS   = WA_JOB_OUTPUT_OPTIONS
          EXCEPTIONS
            FORMATTING_ERROR     = 1
            INTERNAL_ERROR       = 2
            SEND_ERROR           = 3
            USER_CANCELED        = 4
            OTHERS               = 5.
          CALL FUNCTION 'CONVERT_OTF_2_PDF'
            EXPORTING
              ARCHIVE_INDEX          = WA_ARC_IDX
            IMPORTING
              BIN_FILESIZE           = WF_NUMBYTES
            TABLES
              OTF                    = WA_JOB_OUTPUT_INFO-OTFDATA[]
              DOCTAB_ARCHIVE         = TB_DOCTAB_ARCHIVE[]
              LINES                  = TB_LINES[]
            EXCEPTIONS
              ERR_CONV_NOT_POSSIBLE  = 1
              ERR_OTF_MC_NOENDMARKER = 2
              OTHERS                 = 3.

  • 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

  • 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

  • How to copy the standarad function module

    hi,
          i wants to copy the standard function module which are not rfc enabled. for that one i copied standard one and modified the attributes to rfc enabled. but it was giving the errors "You can only use LIKE and TYPE to specify types in RFC",
    how can i solve my problem. pls help me.

    Hi mukka,
    1. In that FM, while after copying to Z,
    2. there is a second parameter in IMPORT
    WITH_TEXT
    3. in the column of Associated type,
        it will be blank.
      give some data element like CHAR30
       and also give type
    4. Then it will not give the error.
    regards,
    amit m.

  • How to create the INBOUND Function Module for INBOUND IDOCs

    Hi Friends,
    Can any Suggest me How to proceed to Create an INBOUND Function Module for Processing the INBOUND IDOCS
    which are recieved from XI Server ?
    I am working in SAP-ISU
    Here i will recieve the INBOUND IDOCs for the Meter Reading Orders.
    We have a Standard INBOUND FUNCTION MODULE
    IDOC_INPUT_ISU_MR_UPLOAD
    which Uploads the Meter Reading Results.
    I copied the Same function Module into ZIDOC_INPUT_
    and working on it.
    Can any one suggest me, whether i am going in correct way or not.
    In IDOC_INPUT_ISU_MR_UPLOAD Inbound fun module,
    BAPI_MTRREADDOC_UPLOAD is used to Update or Insert the Meter Reading Results,
    My requirment is to Insert and Update the Meter Reading Orders which are Inbounded from XI.
    Can I Use the Same BAPI
    BAPI_MTRREADDOC_UPLOAD
    to Update the below fields,
    EABL-SERNR
    EABL-ZWNUMMER
    EABLG-ABLESGR
    EABL-V_ZWSTAND
    EABL-N_ZWSTAND
    EABL-ABLHINW
    EABL-ZSKIPC
    EABL-ADAT
    EABL-ATIMTATS
    EABL-ADATTATS
    EABL-ATIM
    EABL-ZMESSAGE
    EABL-ABLESER(Meter reader number)
    Kindly Suggest me,
    Thanks in Advance,
    Ganesh

    Hello Ganesh
    I think you are going completely astray with you z-function module for IDoc processing.
    If you look at TABLES parameter METERREADINGRESULTS (type BAPIEABLU ) of BAPI_MTRREADDOC_UPLOAD you will find many of the requested fields already:
    EABL-SERNR => BAPIEABLU-SERIALNO
    EABL-ZWNUMMER =>REGISTER
    EABLG-ABLESGR
    EABL-V_ZWSTAND
    EABL-N_ZWSTAND
    EABL-ABLHINW
    EABL-ZSKIPC
    EABL-ADAT
    EABL-ATIMTATS => ACTUALMRTIME
    EABL-ADATTATS => ACTUALMRDATE
    EABL-ATIM
    EABL-ZMESSAGE
    EABL-ABLESER(Meter reader number)
    Field EABL-ZMESSAGE appears to be custom field (at least I cannot find it on ECC 6.0). If this field was added using include CI_EABL then you probably can get these values into the BAPI using the EXTENSIONIN parameter.
    Check routine CHECK_UPLOADRECORDS in the BAPI which allows two extension structures:
    - BAPI_TE_EABL
    - BAPI_TE_EOSB
    Not surprisingly BAPI_TE_EABL contains the include CI_EABL.
    Regards
      Uwe

  • How to find the existing function module is used in another function module

    Hi all,
    I created a function module and the same one is called from another function module.
    When I tried to find where the  first function module is used  using  Where-used List , I am getting the message "function module not found in selected areas" .
    Please  guide me what is other method to find whether the function module is used in another one.
    Thanks,
    Vengal Rao.

    hi,
    Go to UTILITIES-> Update Navigation index.
    or go to fucntion group and Generate the Funtion group once.
    it will detect all fucntion modules under that function group.
    regards,
    Rama

  • How to find the Obsolete function module in ECC 6.0

    Hi Guys,
    How we can find the all obsolete function in ECC 6.0, is any T-code to finding the obsolete function modules, or any other way to find.
    Could you please help me.
    Thanks,
    Gourisankar.

    Hi Gouri,
    If you are looking at determining whether a single FM is obsolete or not is by this method:
    Go to FM in SE37 -> Goto Attributes Tab -> General Data section -> look above the Edit Lock field ... where SAP places the release status and date of the FM, if the FM is obsolete, the text Function Obsolete appears
    This is one way of finding out one FM @ a time
    However if you want to check on a mass scale, I dont have a SAP system here hence cant confirm, however, all FMs are stored in TFDIR database table. Please scroll through the fields of the DB table to check whether any field relates to release status or the like. If it does, then from SE16, you can put the value corresponding to "Obsolete" in the field and run to check all FMs.
    Cheers,
    Aditya

  • How to bring the custom function module in WE42?

    Hi,
    I have created a custom function module to post a custom idoc.
    Process code has been created thro WE42 and WE57 is done.
    Still I am not able to see the custom function module in the list (WE42) in order to assign it to process code.
    May i know the reason for this?
    Thanks.
    Thiyagu

    What makes you think that it should be visible in WE42? There is no F4-value help for this and you haven't added it manually yet, right.
    In WE42 you can manually add entries, so that's what I would do.

  • Error while determining the form function module

    Hi everyone,
    We are experiencing problems while displaying one adobe form in ESS. It’s the Travel Expense form (PTRV_EXPENSE_FORM). When pressing the button to “Display/Print” the form we get an error message: "Error while determining the form function module", and no form I shown. The ADS server is configured correctly and there are other forms that are actually working, for example the Travel Request form. We are running WAS 7.0 with SP12.
    Anyone has an idea what can cause the problem? Any help is greatly appreciated.
    Thanks in advance!
    Regards,
    Sophie

    Viktor,
    Thank you for your answer, it solved our problem!
    Regards,
    Sophie

  • Error while Testing the Inbound Function Module

    Hi,
           I have created a Z Function Module (Posting Program) for Testing the EDI Shipment Tender Status. When I try to process the IDoc with the Transaction WE19 and when I enter the name of the Z function Module , it gives me an error saying that "Interface for Function Zxxxx is incorrect". Can somebody give me a solution for this? Answer would attract reward points.
    Thanks,
    Venkat.

    Hi,
    You need to register this Function Module against Message Type.
    Transaction code is : WE57.
    Nilesh

  • How to find out the inbound function module in the extended idoc

    Hi,
    how to find out the inbound function module in the extended idocs
    Thanks .

    through we41/we42 you can find the inbound function module.......
    or
    thorough we19(idoc test tool) ....
    give the input as message type or basic idoc..
    press exec...
    then you can find th button on application tool bar as inbound funtion module....
    from here also you can find..........
    <REMOVED BY MODERATOR>
    Khasimsa
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:34 PM

  • Where should i call the rfc function module? in xi or in r/3

    where should i call the rfc function module?
    for the synch scenario: file < -- >  xi <---> rfc
    i know the type of rfc is tcp/ip; but i'm not sure with the followings,
    and with some trials i can not even see any message via rwb even all the setting
    can be activated without errors.
    where should i create the rfc destination? in r/3 or xi
    where should i call the rfc via abap program? in r/3 or xi
    i guess the calling program should belong to the different server with the rfc itself....
    so confused....
    Thanks for your reply!!
    Jun

    if i create the destination in xi point to r/3, then i call the rfc use the destination in r/3 right ?
    The call doesnt use the destination in R3. XI has the RFC destination which is just used to connect to the R3 system
    but where i need to create the fm via se37? in xi or r/3 ?
    In R3
    Regards,
    Prateek

  • What is the difference between the normal function module and bapi function

    hi,
    what is the difference between the normal function module and bapi function module.

    Hi
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    Regards
    Anji

  • Error in calling the Remote Function Module

    Hi all,
    I am trying to call the Remote function Module which is in CRM  from ECC .
    But we are not able to detect the function module as it is showing the error as Function Module not found.
    Can anybody help us in calling the Remote Function Module .
    Regards,
    Madhavi

    Please check the foll 2 things :
    RFC radio button clicked in se37 for that FM
    RFC connection established with the remote server in SM59
    Thanks

Maybe you are looking for

  • JSP generates html but the browser displays the html source

    Hi, I have iWS 4.1.3 on my Win2K Pro OS, as well as iAS 6.0. The documentation says that JSP is enabled by default. I put a simple .jsp file in my document root, and when I enter the url for the .jsp file, the browser displays the html source as oppo

  • Permission Error: Can't Open File

    Good morning, I'm unable to open any of my previously created Captivate 4 files and get this message: "Adobe Captivate could not open ".cp" because of permission error." Nothing about my software or the files have changed in the 36 hours since I last

  • Turning off flash cache

    Hi Im just wondering if anyone knew how to turn off Oracle flash cache, I have it all set up and running but now I want to disable it or turn it off. I have read that if i set the following parameter then it should do the trick... alter system set db

  • Reg DMEE file format

    Dear experts, My requirement is that i have to change the DMEE file format for format tree GB_BACS according to user requirement. I have copied to ZGB_BACS and trying to change it according to user requirement. But when the functional trying to attac

  • IPhone/iPad yahoo email problems

    My yahoo email was working fine on my iPhone 4s until a few days ago. Now it won't download my email anymore. Same thing on my iPad. I tried rebooting and that does not fix the problem. Just keep getting "connection to server failed" No problem with