FAX Smartforms out of SAP

Hi,
I've converted my smartform to PDF document using CONVERT_OTF function module. I want to send this pdf file to a fax machine. I presume I'll have to use SO_OBJECT_SEND function module to do it. Does anybody have code to do so?
Regards,
Vijay
Message was edited by: vijay srikanth

hi srikanth,
check this prog          BCS_EXAMPLE_2
REPORT bcs_example_2.
* This example shows how to send
*   - a simple text provided in an internal table of text lines
*   - and an attached PC document (in form of text lines itab)
*   - to a fax number.
* All activities done via facade CL_BCS!
DATA: send_request       TYPE REF TO cl_bcs.
DATA: text               TYPE bcsy_text.
DATA: att_text           TYPE bcsy_text.
DATA: document           TYPE REF TO cl_document_bcs.
DATA: sender             TYPE REF TO cl_sapuser_bcs.
DATA: recipient          TYPE REF TO if_recipient_bcs.
DATA: bcs_exception      type ref to cx_bcs.
data: sent_to_all        type os_boolean.
START-OF-SELECTION.
    PERFORM main.
*       FORM main                                                     *
FORM main.
  try.
*     -------- create persistent send request ------------------------
      send_request = cl_bcs=>create_persistent( ).
*     -------- create and set document with attachment ---------------
*     create document from internal table with text
      APPEND 'Hello world!' TO text.
      document = cl_document_bcs=>create_document(
                      i_type    = 'RAW'
                      i_text    = text
                      i_length  = '12'
                      i_subject = 'test created by BCS_EXAMPLE_2' ).
*     add attachment to document
      REFRESH text.
      APPEND 'This is an attachment' TO text.
      CALL METHOD document->add_attachment
        EXPORTING  i_attachment_type    = 'RAW'
                   i_attachment_subject = 'My attachment'
                   i_attachment_size    = '21'
                   i_att_content_text   = text.
*     add document to send request
      CALL METHOD send_request->set_document( document ).
*     --------- set sender -------------------------------------------
*     note: this is necessary only if you want to set the sender
*           different from actual user (SY-UNAME). Otherwise sender is
*           set automatically with actual user.
      sender = cl_sapuser_bcs=>create( sy-uname ).
      CALL METHOD send_request->set_sender
        EXPORTING i_sender = sender.
*     --------- add recipient (fax) -----------------------
*     create recipient - please replace fax number !!!
      recipient = cl_cam_address_bcs=>create_fax_address(
        i_country = 'DE'
        i_number  = '09999-123456' ).
*     add recipient with its respective attributes to send request
      CALL METHOD send_request->add_recipient
        EXPORTING
          i_recipient  = recipient
          i_express    = 'X'.
*     ---------- send document ---------------------------------------
      CALL METHOD send_request->send(
        exporting
          i_with_error_screen = 'X'
        receiving
          result              = sent_to_all ).
      if sent_to_all = 'X'.
        write text-003.
      endif.
      COMMIT WORK.
* *                     exception handling
* * replace this very rudimentary exception handling
* * with your own one !!!
    catch cx_bcs into bcs_exception.
      write: 'Fehler aufgetreten.'(001).
      write: 'Fehlertyp:'(002), bcs_exception->error_type.
      exit.
  endtry.
ENDFORM.
Message was edited by: Chandrasekhar Jagarlamudi

Similar Messages

  • Faxing Smartforms

    I built a custom smartform report that i need to fax to a vendor.  My problem is i'm not sure how to get the form to SAPconnect.  This is a custom developed report it is not the output of any standard SAP application, therefore there is no standard message determination being invoked.  I have two questions about this process...
    1.) Where is smartform suppose to output the form after it creates the form?
    2.) Is there a program that is called to pass the smartform document on to SAPconnect?
    I'm a novice to smartforms and the sap library does not give much detail on this feature.
    If you could please take the time to be very detailed and/or descriptive in your response that would be very helpful.
    Thanks:)

    On basis 6.2 you must use a commit work statement to send form to SAPconnect

  • Hp officejet 8610 fax sends out more pages than scanned - received partial output on remote end

    Hp officejet 8610 fax sends out more pages than scanned - received partial output on remote end

    Hi,
    How long is a page on the sender side?  If it is a long page like a legal page, it may end up in in 2 pages in the receiver side. Also check on the receiver end, if it is set to 'auto reduction - off' this may happen, try turning it "on".
    Also if the sender page is not a long page, try observing the paper that is going into the ADF, it should be 1 page at a time, if pages goes into the ADF continueously, it suggest that ADF is could be faulty.
    Set automatic reduction for incoming faxes (for HP printers only)
    The Automatic Reduction setting determines what the printer does if it receives a fax that is too large
    for the default paper size. This setting is turned on by default, so the image of the incoming fax is
    reduced to fit on one page, if possible. If this feature is turned off, information that does not fit on the
    first page is printed on a second page. Automatic Reduction is useful when you receive a Legal-size
    fax and Letter-size paper is loaded in the main tray.
    To set automatic reduction from the printer control panel 
    1. From the printer control panel display, touch and slide your finger across the screen and then 
    touch Setup. 
    2. Touch Fax Setup. 
    3. Touch Advanced Fax Setup. 
    4. Touch Automatic Reduction to turn on or off.
    Please click the "Thumbs Up", to say thanks for helping!
    Also, please consider marking my post as “Accept as Solution" if you feel my post solved your issue.
    I work for HP

  • How to find out Which SAP programs are affecting Which Z programs?

    Do we have a program/tool that can tell us the following:
    How to find out Which SAP programs are affecting Which Z programs in the entire development server?  
    We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other?   I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level. 
    We need are looking for something a little larger u2013
    thanks in advance
    Vishnu

    Do we have a program/tool that can tell us the following:
    How to find out Which SAP programs are affecting Which Z programs in the entire development server?  
    We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other?   I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level. 
    We need are looking for something a little larger u2013
    thanks in advance
    Vishnu

  • How to route the information to approver with out involving sap workflows.

    Hi Developers,
    i have a doubt regarding how the requester filled form information will be send to approver with out involving SAP workflows in the portal.
    Normally i know the procedure where users fills the form with the approver details, the filled information is routed to approver UWL by trigerring a function module thru webdynpro.
    But i need to know is there any procedure to route the information without involving any backends.
    Thanks in Advance.

    Michele is correct - sneep will help you get the serial from the running domain on the M3000 ,
    and it is a good idea to install STB on your machines.
    If that isn't possible for you, then sneep can be downloaded directly from [http://www.sun.com/sneep]
    I believe that on this platform, sneep gets the serial from the output of prtconf.
    There is a minor correction to be made :
    After installed SNEEP use "man sneep" for all technical details.The sneep man page is not linked into the shared man pages, so you need to use
    man -M /opt/SUNWsneep/man sneep
    with out going to OK prompt (Banner)It is worth noting that the serial shown in the OBP banner is not the product serial
    that you will find on the physical serial tag.
    The banner "serial" is the decimal equivalent of the host ID, which you normally get in hexadecimal from the "hostid" command.

  • How to  find out where sap error messages stored...

    How to  find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Hi,
    I also got the same message when that message no is not there
    E:SABAPDOCU:000 test 
    yours is S-type and message id ZY and message no 127
    127 is not there either change the no  or create the same
    Regards
    Shiva

  • How to find out where sap error messages stored in our system

    How to find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Are you interested in WDA messages ?
    The set a breakpoint in METHODS IN class CL_WDR_MESSAGE_MANAGER.
    Then use call stack (default desktop 2 in debugger) to see where message is added to message manager.
    regards
    phil

  • How to make a Roll Out in SAP BW

    Dear Gurus,
    In a few days I'm going to work in a Roll Out of SAP BW and I have never worked in a Roll Out. The idea is that a company should have the same BW than the pater company. I have to ensure and prevent that they will won't have any problem when we add the same BW to the company.
    I would like to know the steps that I should make. Some of the things I think I have to check are: Check that the data sources in R3 extract the information, check they need the same infoobjects than the parent company and if they need new ones. Check that they use the same reports, etc.
    Any information you can add about this? I've been seeking in SCN but I haven't found information about this.
    Many thanks!
    Regards,
    J.

    Hi,
    Below are my suggestions for the rolll out ( new Bi system  development  which will use the existing the ECC system) and it will be  fast too.
    1)Ask your basis system to build a BW system same  like existing  with a different SID.  This will ensure all  your BW  data models will come as like that. They will do an export  and will build the new  system.Depending upon the size and back size strategy  it will take  upto  max 1 week to build a new system.
    2) Now connect all the source systems to this  new BW system.
    3)Replicate and activate the  Datasources which  ever required.
    4) Fill the set up tables in ECC for LO **** pit datasources by deleting the set up tables.
    5) start the init loading for this  datasources. If  it is finance , just trigger the init infopackage.
    6) As delta queue is based    upon a combination of datasource and  source system , your earlier BW system will not have any impact.
    7) You can have   new developments in this  new  system too .
    8) Transport path is most important...  You can use one development and  different quality and productions or multiple development , quality  and productions.
    DBW-->QBW-->PBW
    DEC-->QEC-->PEC
    I suggest first  you can have one development and then different quality and prodcutions. This saves the  development time and also resource cost. Hope this info  is useful
    Regards,
    Rajesh.

  • How to find  at what time Idoc has gone  out  of  SAP

    Hi Gurus,
    Could  anybody  let  me  know , how to check at what time Idoc has gone  out  of  SAP in case  of outbound Idoc.
    I am not  talking  about Idoc creation date which we can  see in control records  in WE05.
    -B S B

    you have to see the status of the idoc ,if idoc status is green color ( Succesfully completed  ) then use
    EDIDC-UPDTIM ( This should be last Time)
    Date is EDIDC-UPDDAT.
    See the other table EDIDS to check the idoc status.
    Thanks
    Seshu

  • Fax Cover Sheet from SAP / Rightfax

    Hi,
    My requirement is to generate a cover sheet whenever a PO/SO/any document is faxed. We have Rightfax through SMTP/SAP Connect configured. Rightfax does provide a generic cover sheet option but it can only contain the fax numbers and recipient name. It suggests to use SAP Cover sheet. Have few questions, and here they goes:
    1. How can I enable SAP Coversheet? Even after checking the option for cover page I am not able to get any cover page and may have been disabled. I've also checked SAP note 553113 but wanted to check if there's any other way as well.
    2. After I have enabled cover sheet and lets assume the Standard cover sheet is copied in a ZForm, how can I ensure that always the zform cover sheet will processed? I am not able to find any configuration setting for it. I've research to find that SAP uses SO41 OFFICE-TELEFAX coversheet. This observation can be seen when I goto SO02 -> New Message -> Goto -> Fax , a pop up window appears which asks for Fax details. On Top Right, one can check the cover page option but the Coverpage is always specified as 'STANDARD'.
    3. Researched a lot. SDN & Google but not able to come to a conclusion for any specific solution. Appreciate if anyone has worked on this requirement, please share their ideas. There's no much help available as well (seen as much available links in SDN and Google). Basically, the requirement is just to generate a generic fax cover sheet from SAP.
    Thanks,
    Santosh Verma

    Hi,
    Thanks for your time in looking the issue.
    @ Sandra,
    I've already researched on SDN and google and have visited this link as well. It wasn't of much help. But thanks again.
    @ Weidong,
    Actually thought of that solution but wanted to check if there's any generic way. Please let me know further on 'You need change configuration for fax - output type.'. Are you referring to NACE output type configuration?
    Let me add more:
    1. If we set the Parameter 'BCS_NO_FAX_COVER' to 'X' in TMV/SM30 'SXPARAMS', this way, the Fax cover sheet from SAP can be enabled of disabled. This cover sheet uses the Form OFFICE_TELEFAX_M in SE71 (SO43). What worries me, even if I copy the standard to custom, how to make sure that custom form is printed as there is no place where i am able to find any configuration. SAP note 553113 says to edit this form in SE71, that's it.
    2. The other solution is right fax generic cover sheet. Which is generated right now, but with limited info. The Right Fax documentation recommends to use SAP Cover Sheet as the Right Fax cover sheet does not provide much details except Senders Fax No, Recipients Fax Number and Name. This cannot be of much help.
    3. Use a custom form. A custom form which will contain cover sheet data, independent of SAPConnect. This form has to be generated at runtime. This is one of the approaches thought but here's the list of issues with it:
    a. The print program has to be modified as well. Issue when using standard print program. At same time, i think in FP_JOBOPEN one has to specify the cover page as well. Looks good for custom print programs.
    b. Our requirement also looks for mass fax. For eg: lets say, i have to fax, around 10 PO's, there should only be one cover sheet for all the 10 fax documents. This solution may not help here.
    Appreciate your help.
    Thanks,
    Santosh

  • How to excute workitem in outlook with out entering SAP Logon Credentials

    Hi Gurus,
    is it possible for excute the  work item in out look with out enteing sap logon credentials of the user ?
    If possible .
    Please guide me how to do ?
    Regards
    RameshG

    i have scheduled this program its working fine .
    iam getting attachment  to my outlook inbox but when i click on that attachment its asking SAP credentials.
    here problem is client don't want enter sap credentials here and client wants to excute the work item with out entering sap credentiols .
    is there any possibiity on this requirment ?
    Thanks in advance.
    RameshG

  • RFQ FAX or Email through sap with Attachment

    Dear Gurus,
    I want to sent RFQ through FAX or by Email, do i need any extra other software as infterface to send fax or email outside SAP?
    Can i send Email & Fax through SAP Directly?  If yes then, the configuration at MEssages (forms & output control), MN02, & vendor master with correct fax & email address is these settings is enough orelse i am missing any settings?
    Is it possibel to send attachment with RFQ through FAX or by email?
    Please advice
    REgards
    RS

    Hi ,
    You need to check with your BASIS team whether they have SAP Fax /email /PDF services implemented or active.
    Most of the clients would have activated Email//PDF process , but not fax ...So check with your techies and there are specific notes available on service.sap.com which will walk you through the required set-by-step implementaiton. Please download these notes from sap oss site.
    Thanks,
    sudhakar

  • To find out how SAP is handling language support in the standard product.

    Hi All,
    i have one issue like "To find out how SAP is handling language support in the standard product". Any body have the solution, please send me as soon as possible.
    i am very thankful to you all in advance.
    Thanks & Regards,
    Nagarjuna.

    It would be easier to send a solution if you'd clearly defined the problem!.
    SAP is built to be multilingual. 
    For ABAP development, to ensure that your code is able to be multilingual, you should not hard code any text that the users could see - you should instead use text elements, standard texts, OTR, message classes etc.
    matt

  • Standard man hours out of SAP ...help

    i have a   standard reports OUT of COPA ..but i am trying to addd standard man hours onto it. i am not able to find anything.
    kindly help me if you know any cube or DS which has standard man hours?
    here is what i am looking
    u201C Modify the operating report to show the standard man hours out of SAP on the operating report instead of the old standards.u201D
    help is much apreciated

    solved

  • FUNCTIONAL ASPECTS OUT OF SAP STANDARD

    Hi
    I have faced one interview question, That is "What you have developed functionnal aspects  out of sap standered"
    Please tall me what we have function aspects related to FI-GL,AP,AR and AA
    could you give me some example
    Regards,
    Lingaiah,
    Moderator: Please, note that this forum is not used for interview questions

    solved

Maybe you are looking for

  • What is best practice for using a SAN with ASM in an 11gR2 RAC installation

    I'm setting up a RAC environment. Planning on using Oracle 11g release 2 for RAC & ASM, although the db will initially be 10g r2. OS: RedHat. I have a SAN available to me and want to know the best way to utilise that via ASM. I've chosen ASM as it al

  • Adding days to a date

    Hi, i've been trying to add days to a date with no luck. I have two dates. Date date1= new Date(); Date date2; I want date2 to equal x amount of days from date1. eg. date1 = 6/10/2004 I want date2 to be 4 days from date1 so date2 would be 10/10/2004.

  • WMI Query to SCCM 2012 results zero results in c#

    In 2007 this works without issues, however in 2012 when attempting the 2nd query it returns zero results.  However if I do this manually I can produce results...Here is my code: using (WqlConnectionManager connection = Connect(getServer))    string q

  • Show multiple frames in a single SWFLoader

    Hello, I am loading a document contained in an .swf file, each page is in a single frame, to an SWFLoader. The SWFLoader shows a single frame at a time. I would like to show multiple frames at once and be able to manipulate them together (scaling, po

  • RfcGetTable in NW SDK

    I am using the NW's SDK; i.e. the library is sapnwrfc.dll and the header is sapnwrfc.h. After invoking a remote function in R/3, I wish to get the resulting table. I use the function RfcGetTable to retrieve the table and the functions RfcGetCurrentRo