This is regarding appaisal document.

Hi
This question is regarding Appraisal document. On clicking a pushbutton in portal, a new outlook compose email should popup with Subject line and PDF attachment populated in the email fields. Once it gets popup with these things populated then the user can send it to who ever he wants by typing the recepient in the TO section of the email.
We were suggested to implement a BADI to this. The name of the defination is HRHAP00_LINK. There is a method called show_link. Inside this method we have pasted the below code.
  METHOD if_ex_hrhap00_link~show_link.
  DATA : lw_header_appraiser TYPE hap_s_header_appraiser,
         lw_header_appraisee TYPE hap_s_header_appraisee,
         lt_header_appraisee TYPE hap_t_header_appraisee,
         lw_header_others TYPE hap_s_header_others.
  DATA : name TYPE text40.
*Check if appraiser then only mail window gets trigger with icon.
  READ TABLE  t_header_appraiser INTO lw_header_appraiser INDEX 1.
  IF sy-subrc = 0.
*To get appraisee name
    CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
     EXPORTING
    ADD_ON_APPLICATION            =
    MODE                          = ' '
    UI_MODE                       = ' '
        plan_version                  = plan_version
        s_appraisal_id                = s_appraisal_id
     IMPORTING
       t_header_appraisee            = lt_header_appraisee
    DATA : s_pdf_document TYPE hap_s_pdf_document,
           pdf_xstring    TYPE fpcontent,
           t_output       TYPE tsfixml,
           output_length  TYPE i,
           pdf_content    TYPE solix_tab,
           lp_pdf_size        TYPE so_obj_len,
           document           TYPE REF TO cl_document_bcs,
           send_request       TYPE REF TO cl_bcs.
          S_RETURN       TYPE BAL_S_MSG.
    s_pdf_document-s_appraisal_id-appraisal_id = s_appraisal_id.
    DATA: test TYPE REF TO cl_im_hrhap00_offline01.
    CREATE OBJECT test.
    CALL METHOD test->if_ex_hrhap00_offline~download
      EXPORTING
        flt_val        = 'STANDARD'
        s_pdf_document = s_pdf_document
      IMPORTING
        t_output       = t_output
        pdf_xstring    = pdf_xstring
        output_length  = output_length
        s_return       = S_RETURN
    IF sy-subrc = 0.
    ENDIF.
   send_request = cl_bcs=>create_persistent( ).
  get PDF xstring and convert it to BCS format
    lp_pdf_size = XSTRLEN( pdf_xstring ).
    pdf_content = cl_document_bcs=>xstring_to_solix(
    ip_xstring = pdf_xstring ).
    document = cl_document_bcs=>create_document(
          i_type    = 'PDF'
          i_hex     = pdf_content
          i_length  = lp_pdf_size
          i_subject = 'test created to send mail' ).
  add document to send request
    send_request->set_document( document ).
LOOP AT lt_header_appraisee INTO lw_header_appraisee.
      name = lw_header_appraisee-name.
Function module to get a new outlook mail window
Attachment cannot be exported without path
      CALL FUNCTION 'ZS_REFLEX_REVIEWER'
        EXPORTING
          appraisee_name = name
          attachment     = 'D:\Documents and Settings\id823291\Desktop\test.txt'.     "c:\temp\test.txt' "c:\temp|test.txt is only for test
    ENDLOOP.
  ENDIF.
COMMIT WORK.
  READ TABLE  t_header_appraisee INTO lw_header_appraisee INDEX 1.
  IF sy-subrc = 0.
    EXIT.
  ENDIF.
  READ TABLE t_header_others INTO lw_header_others INDEX 1.
  IF sy-subrc = 0.
    EXIT.
  ENDIF.
ENDMETHOD.
In the Z FM the code is as follows :
  FUNCTION ZS_REFLEX_REVIEWER.
""Local Interface:
*"  IMPORTING
*"     VALUE(APPRAISEE_NAME) TYPE  TEXT40
*"     VALUE(ATTACHMENT) TYPE  TEXT_72
INCLUDE : OLE2INCL.
DATA: OUT      TYPE  OLE2_OBJECT,
      OUTMAIL  TYPE  OLE2_OBJECT,
      DESTI    TYPE  OLE2_OBJECT,
      ATT      TYPE  OLE2_OBJECT,
      ATTS     TYPE  OLE2_OBJECT.
DATA : Name1 type text40,
      Name2 type text40,
      subject type string.
Name1 = 'Evaluation input requested for'.
Name2 = APPRAISEE_NAME.
Concatenate Name1 Name2 into subject separated by ' '.
CREATE OBJECT OUT 'Outlook.Application'.
CALL METHOD OF OUT 'CREATEITEM' = OUTMAIL  EXPORTING #1 = 0.
SET PROPERTY OF OUTMAIL 'SUBJECT' = subject.
CALL METHOD OF OUTMAIL 'RECIPIENTS' = DESTI.
CALL METHOD OF OUTMAIL 'ATTACHMENTS' = ATTS.
CALL METHOD OF ATTS 'ADD' EXPORTING #1 = ATTACHMENT .
CALL METHOD OF OUTMAIL 'DISPLAY'.
free object out.
CLEAR : Name1,Name2,subject,APPRAISEE_NAME.
ENDFUNCTION.
Earlier we thought that the PDF would be stored in a link but now we are informed that it would be generated at Runtime.
Please let me know how to proceed.
Thanks
sandeep

Hi
This question is regarding Appraisal document. On clicking a pushbutton in portal, a new outlook compose email should popup with Subject line and PDF attachment populated in the email fields. Once it gets popup with these things populated then the user can send it to who ever he wants by typing the recepient in the TO section of the email.
We were suggested to implement a BADI to this. The name of the defination is HRHAP00_LINK. There is a method called show_link. Inside this method we have pasted the below code.
  METHOD if_ex_hrhap00_link~show_link.
  DATA : lw_header_appraiser TYPE hap_s_header_appraiser,
         lw_header_appraisee TYPE hap_s_header_appraisee,
         lt_header_appraisee TYPE hap_t_header_appraisee,
         lw_header_others TYPE hap_s_header_others.
  DATA : name TYPE text40.
*Check if appraiser then only mail window gets trigger with icon.
  READ TABLE  t_header_appraiser INTO lw_header_appraiser INDEX 1.
  IF sy-subrc = 0.
*To get appraisee name
    CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
     EXPORTING
    ADD_ON_APPLICATION            =
    MODE                          = ' '
    UI_MODE                       = ' '
        plan_version                  = plan_version
        s_appraisal_id                = s_appraisal_id
     IMPORTING
       t_header_appraisee            = lt_header_appraisee
    DATA : s_pdf_document TYPE hap_s_pdf_document,
           pdf_xstring    TYPE fpcontent,
           t_output       TYPE tsfixml,
           output_length  TYPE i,
           pdf_content    TYPE solix_tab,
           lp_pdf_size        TYPE so_obj_len,
           document           TYPE REF TO cl_document_bcs,
           send_request       TYPE REF TO cl_bcs.
          S_RETURN       TYPE BAL_S_MSG.
    s_pdf_document-s_appraisal_id-appraisal_id = s_appraisal_id.
    DATA: test TYPE REF TO cl_im_hrhap00_offline01.
    CREATE OBJECT test.
    CALL METHOD test->if_ex_hrhap00_offline~download
      EXPORTING
        flt_val        = 'STANDARD'
        s_pdf_document = s_pdf_document
      IMPORTING
        t_output       = t_output
        pdf_xstring    = pdf_xstring
        output_length  = output_length
        s_return       = S_RETURN
    IF sy-subrc = 0.
    ENDIF.
   send_request = cl_bcs=>create_persistent( ).
  get PDF xstring and convert it to BCS format
    lp_pdf_size = XSTRLEN( pdf_xstring ).
    pdf_content = cl_document_bcs=>xstring_to_solix(
    ip_xstring = pdf_xstring ).
    document = cl_document_bcs=>create_document(
          i_type    = 'PDF'
          i_hex     = pdf_content
          i_length  = lp_pdf_size
          i_subject = 'test created to send mail' ).
  add document to send request
    send_request->set_document( document ).
LOOP AT lt_header_appraisee INTO lw_header_appraisee.
      name = lw_header_appraisee-name.
Function module to get a new outlook mail window
Attachment cannot be exported without path
      CALL FUNCTION 'ZS_REFLEX_REVIEWER'
        EXPORTING
          appraisee_name = name
          attachment     = 'D:\Documents and Settings\id823291\Desktop\test.txt'.     "c:\temp\test.txt' "c:\temp|test.txt is only for test
    ENDLOOP.
  ENDIF.
COMMIT WORK.
  READ TABLE  t_header_appraisee INTO lw_header_appraisee INDEX 1.
  IF sy-subrc = 0.
    EXIT.
  ENDIF.
  READ TABLE t_header_others INTO lw_header_others INDEX 1.
  IF sy-subrc = 0.
    EXIT.
  ENDIF.
ENDMETHOD.
In the Z FM the code is as follows :
  FUNCTION ZS_REFLEX_REVIEWER.
""Local Interface:
*"  IMPORTING
*"     VALUE(APPRAISEE_NAME) TYPE  TEXT40
*"     VALUE(ATTACHMENT) TYPE  TEXT_72
INCLUDE : OLE2INCL.
DATA: OUT      TYPE  OLE2_OBJECT,
      OUTMAIL  TYPE  OLE2_OBJECT,
      DESTI    TYPE  OLE2_OBJECT,
      ATT      TYPE  OLE2_OBJECT,
      ATTS     TYPE  OLE2_OBJECT.
DATA : Name1 type text40,
      Name2 type text40,
      subject type string.
Name1 = 'Evaluation input requested for'.
Name2 = APPRAISEE_NAME.
Concatenate Name1 Name2 into subject separated by ' '.
CREATE OBJECT OUT 'Outlook.Application'.
CALL METHOD OF OUT 'CREATEITEM' = OUTMAIL  EXPORTING #1 = 0.
SET PROPERTY OF OUTMAIL 'SUBJECT' = subject.
CALL METHOD OF OUTMAIL 'RECIPIENTS' = DESTI.
CALL METHOD OF OUTMAIL 'ATTACHMENTS' = ATTS.
CALL METHOD OF ATTS 'ADD' EXPORTING #1 = ATTACHMENT .
CALL METHOD OF OUTMAIL 'DISPLAY'.
free object out.
CLEAR : Name1,Name2,subject,APPRAISEE_NAME.
ENDFUNCTION.
Earlier we thought that the PDF would be stored in a link but now we are informed that it would be generated at Runtime.
Please let me know how to proceed.
Thanks
sandeep

Similar Messages

  • TA25361 I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addres

    I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro.  Is there any way to recover this info?  Some documents can be opened and resaved with textedit, but not my database with all important addresses.

    I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
    In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
    Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
    Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
    Regards,
    Barry

  • Regarding 3 Documents in a Screen

    Hi Guru's,
                   I am developing one report to display the Header and Item Level Reports at the same screen, For Example i am diplaying one ALV for Documents at SO Header Level, if i click on a particular delivery no, It should display the invoice and other stuff at the same screen, in a separate area, but not in grid or list format, it should be like a document. I am using OOPS concept, but i need help, can somebody give me any idea's about this?
    Regards,
    Khan

    hi Tapodipta Khan 
    if you are using OOPs means, define Container in SE51 as many you want for header as well as item data..
    make a pass to item container based on the header data.
    Regards
    Deva

  • Issue in WAD 7.0 regarding opening document from MIME repository

    Hi Experts,
    I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
    My requirement
    I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
    To achieve the same, I have added one button. and also added one java script web item in my web template.
    And as per my understanding, I need to write command/code in the script web item.
    I have tried with several standard commands available, but not yet succeeded.
    Please suggest the appropriate command or code , that I can put into the java script web item.
    Also please provide me, if there is any other solution.
    Thanks and Regards,

    I think you might be posted in the frong forum, what is WAD 7?
    this forum is for WebIntelligence related questions, part of Business Objects software suite.

  • WAD 7.0 issue regarding opening document from MIME repository

    Hi Experts,
    I am facing an issue in WAD 7.0 regarding opening document from MIME repository..
    My requirement
    I want to have a button , on clicking of this button one excel file ( already located at MIME Repository) should open in a new window.
    To achieve the same, I have added one button. and also added one java script web item in my web template.
    And as per my understanding, I need to write command/code in the script web item.
    I have tried with several standard commands available, but not yet succeeded.
    Please suggest the appropriate command or code , that I can put into the java script web item.
    Also please provide me, if there is any other solution.
    Thanks and Regards,
    Biswarup Ghosh

    Yes I tried it at first with Script Item but it did not work. I am not sure how should I change the path because of the portal:
    "/sap/bw/Mime/Customer/.../file.htm" - this path is not working anymore
    Another option that you mentioned I do not want to use. I have about 20 different html files in MIME repository so I would have to create 20 different web application. I do not like this solution.
    Regards
    Erwin

  • HT1365 Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    The figures you mention only make sense on your intranet.  Are you still using the same wireless router.  The verizon one is somewhat limited as far as max wireless-n performace.  For one thing it only has a 2.4 radio.   I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.

  • HT3775 I recently upgraded my OS to Mountain Lion 10.8.2 and cannot open up .avi files now in Quicktime. I get this error message: The document "ANDREW_McD_MEDIA_VERSION.avi" could not be opened. A required codec isn't available.

    I recently upgraded my OS to Mountain Lion 10.8.2 and cannot open up .avi files now in Quicktime. These same files opened up with no problem prior to my upgrade.  Additionally, I had upgraded to the Pro version of Quicktime recently, but it appears I've retrograded back to the basic version, unexplainably.
    I get this error message: The document “ANDREW_McD_MEDIA_VERSION.avi” could not be opened. A required codec isn't available.

    Hi,
    I had exactly the same problem & found the answer here  https://discussions.apple.com/thread/3219982?start=0&tstart=0 . Download a program called Perian, very easy to download worked a treat. I wish all fixes were this easy - Debbie

  • This is regarding CBMA in SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the mails to Business workplace inbox in ECC.

    This is regarding CBMA in single stack SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the alert mails to Business workplace inbox in ECC.
    So I need to set up PI to redirect mails to ECC Business workplace user inbox (sbwp). From here rules are set up & routed per distribution list.
    Please guide me how I can achieve this requirement.

    Hi,
    yes, it is a little bit different. This is the issue.....  
    But I am not sure if your links will help:
    1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    is about a different solution. I do not need to count the number of lines of the source message.
    And the second variable is about concat line by line from unbound node to unbound node.
    My issue is:
    Souce:
    Message line (0...unbound) ! ! ! ! ! ! ! !
    .    ResultLine   (1..1)
    Mapping:
    =>   ResultLine1
           ResultLine2
           ResultLine........          => into UDF to an element  (1..1) in one mapping operation.
    So that all "ResultLine"s are included.
    The result is explained in the given link for Mail attachment with UDF.
    So I am not sure how to use this thread for my issue.
    In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
    So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
    2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
    shows where to find the button "Java section" which is not available here in 7.1
    3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.  
    So my issue is: How to replace the Java section function with global variables in PI 7.1?
    Best regards
    Dirk

  • I am working with Acrobat XI and when I try to add text to geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I am working with Acrobat XI and when I try to add text to a geopdf file I get a popup screen that says this is a secured document and editing is not permitted. How do I fix this?

    I figured it out...needed to use comment tool set, not the editing tool set.

  • Morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?  Regards,  Menno

    morning. I download podcast on my iMac and listen to them on my iPhone. Since last week the iPhone plays the podcast back slower than recorded and with a echo. How can I solve this?
    Regards,
    Menno

    Hello,
    If you're in a country where there's an apple shop (unfortunately not mine), go check it and ask the employee about it: he's gonna check your Iphone on a "device"
    I've got an iphone 5 and it's working very well with me but I have to admit that its battery lasts (slower) than my Ipad 2.
    Still i can help with some tips that may improve your iohone's battery by an hour in addition (hopefully):
    - close all apps by multitasking....
    - do NOT keep the brightness to the max
    Believe me you're gonna regret changing your phone to a samsung
    Hope i've helped and sorry for my bad english (has english as 3rd language)

  • I am buying an Epson scanner. I am told it is compatible with an Apple Computer, is that correct? I have been told to get Acrobat XI Pro as the software for the scanner. Is that correct? Will this also scan handwritten documents into a Word document?

    I am buying an Epson scanner. I am told it is compatible with an Apple Computer, is that correct? I have been told to get Acrobat XI Pro as the software for the scanner. Is that correct? Will this also scan handwritten documents into a Word document?

    "I am buying an Epson scanner. I am told it is compatible with an Apple Computer, is that correct?"
    We have no idea, and it isn't really our thing.
    "I have been told to get Acrobat XI Pro as the software for the scanner. Is that correct?"
    Acrobat XI Pro is available for Mac and is an excellent tool for making PDFs. We can't say whether it will work with the scanner. It depends what drivers Epson provide.
    "Will this also scan handwritten documents into a Word document?"
    That's not what Acrobat is for. It is for making PDFs. To make handwritten documents into Word documents, you'd just scan as graphics, and insert each graphic on a new page of the Word document. They will remain pictures of text, not something you can edit or copy/paste.

  • I cannot uninstall itunes from my computer PC. I cannot update itunes on my computer. I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package

    I cannot uninstall itunes from my computer PC. I cannot update itunes on my computer. I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package Try to find the installation package itunes.msi in a folder from which you installiTunes."
    I have tried a serach for the file itunes.msi and nothing comes up.
    Help anyone/
    thanks

    I get this message." C:\Documents and Settings\Sally-Anne\Local Settings\Application Data\Apple\Apple Software Update\'iTunes.msi' is not a valid installation package Try to find the installation package itunes.msi in a folder from which you installiTunes."
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I have a Shockwave Error: "This Shockwave movie has errors that have caused playback problems.  Please contact the author of this content regarding this problem.   Shockwave is unable to continue."  What I can make ?

    I have a Shockwave Error: "This Shockwave movie has errors that have caused playback problems.  Please contact the author of this content regarding this problem.   Shockwave is unable to continue."  What I can make ?

    This is some built-in "protection" that was engineered into Shockwave some years ago. It means that SW will ignore the first 10 script errors then throw the dialogue you are seeing. You really will have to contact the developer of the content in question to have it fixed - there's nothing anyone else can do. The developer needs to replicate your error, determine the cause, rectify it and republish their movie

  • Recently I updated to Maverick -- I also updated Numbers, Pages and Keynote.  NOW, I cannot open my pages documents.  I get a message that I need a newer version of Pages.  I have the newest version (5.2).  How do I get around this to view my documents?

    Recently I updated to Maverick -- I also updated Numbers, Pages and Keynote.  NOW, I cannot open my pages documents.  I get a message that I need a newer version of Pages.  I have the newest version (5.2).  How do I get around this to view my documents?

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • This question regarding sending mail from sap

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

    hi to all,
    this question regarding sending mail from sap
    rt now iam able to send mails from 500 clint, what r the setting i need to do send mails from my another client 700,
    iam using ecc 6.0 with sql database
    regards,
    krishna
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 16, 2010 2:11 PM

Maybe you are looking for