<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CV program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047674#M421769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a customized program to generate CV ( resume )&lt;/P&gt;&lt;P&gt;which i have a question regarding retrieve employee photo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate any advice on how to retrieve employee photo into CV program which is likely to be mail merge in MS word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2007 12:44:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-22T12:44:36Z</dc:date>
    <item>
      <title>CV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047674#M421769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a customized program to generate CV ( resume )&lt;/P&gt;&lt;P&gt;which i have a question regarding retrieve employee photo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;appreciate any advice on how to retrieve employee photo into CV program which is likely to be mail merge in MS word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 12:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047674#M421769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T12:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: CV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047675#M421770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For display photos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
1.   Create Object Pc_Main_Container 
       Exporting 
         container_name = 'G_MAIN_JPG_CONTAINER' 
       Exceptions 
        cntl_error                  = 1 
        cntl_system_error           = 2 
        create_error                = 3 
        lifetime_error              = 4 
        lifetime_dynpro_dynpro_link = 5. 
 
2.   Create Object G_Jpg_Viewer 
       Exporting 
          Parent = pc_Main_Container 
       Exceptions 
          Error  = 1 
          Others = 2. 
 
3.   Call Method pc_Jpg_Viewer-&amp;gt;Load_Picture_From_Url 
         Exporting 
           Url    = w_FileName 
         Importing 
           Result = w_Error_Code 
         Exceptions 
          Error  = 1 
          Others = 2. 
 
4.   Call Method pc_Jpg_Viewer-&amp;gt;Set_Visible 
          Exporting 
           Visible           = 'X' 
          Exceptions 
           Cntl_Error        = 1 
           Cntl_System_Error = 2 
           Others            = 3. 
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do a mail merge using OLE.&lt;/P&gt;&lt;P&gt;The following is sample OLE, it will give you some basic idea related to OLE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report ztest MESSAGE-ID sy.

*Working directory such as SapWorkDir
PARAMETERS : p_file LIKE rlgrap-filename.

INCLUDE ole2incl.
INCLUDE docsincl.

DATA: h_word  TYPE ole2_object,
      h_docs  TYPE ole2_object,
      h_doc   TYPE ole2_object,
      h_merge TYPE ole2_object.

INITIALIZATION.
  CALL FUNCTION 'WS_QUERY'
       EXPORTING
            query  = 'CD'
       IMPORTING
            return = p_file.
  CONCATENATE p_file 'Merge.DOC' INTO p_file.

START-OF-SELECTION.

* Create Word Application object
  IF h_word-header = space OR h_word-handle EQ -1.
    CREATE OBJECT h_word  'WORD.APPLICATION'.
    IF sy-subrc NE 0.
      MESSAGE i002 WITH sy-msgli.
    ELSE.
      SET PROPERTY OF  h_word  'VISIBLE' = 1.
    ENDIF.
  ENDIF.
* Get Documsnts collection as property of Application object
  GET PROPERTY OF h_word 'DOCUMENTS'  = h_docs.
* Open a word file
  CALL METHOD OF h_docs 'OPEN' = h_doc
                        EXPORTING  #1 = p_file.
* Invoke mail merge
* The Word windows will be visible
  GET PROPERTY OF h_doc 'MAILMERGE' = h_merge.
  SET PROPERTY OF h_merge 'DESTINATION' = 1.
  CALL METHOD OF h_merge 'EXECUTE'.
* Terminate Word
  CALL METHOD OF h_word 'QUIT' EXPORTING #1 = 0.
* Free objects
  FREE OBJECT : h_merge,
                h_doc,
                h_docs,

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 13:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047675#M421770</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-03-22T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: CV program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047676#M421771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is standard CV program for ECC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 08:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cv-program/m-p/2047676#M421771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T08:08:33Z</dc:date>
    </item>
  </channel>
</rss>

