<?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 ABAP inside SO10 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070644#M1504582</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;I have created a standard text in SO10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This text contains the body of an email message that i will be system generated when employee data changes&lt;/P&gt;&lt;P&gt;E.g.,&lt;/P&gt;&lt;P&gt;here has been an organizational re-assignment performed for Employee No.&amp;amp;P0001-PERNR&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to include some more information after comparing it with the HRP tables &lt;/P&gt;&lt;P&gt;E.g., &lt;/P&gt;&lt;P&gt;I want to take P0001-PLANS (position id) and use it to filter certain data from HRP1000 and then print it in the body of the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done in SO10? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 14:15:59 GMT</pubDate>
    <dc:creator>former_member66888</dc:creator>
    <dc:date>2010-07-12T14:15:59Z</dc:date>
    <item>
      <title>ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070644#M1504582</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;I have created a standard text in SO10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This text contains the body of an email message that i will be system generated when employee data changes&lt;/P&gt;&lt;P&gt;E.g.,&lt;/P&gt;&lt;P&gt;here has been an organizational re-assignment performed for Employee No.&amp;amp;P0001-PERNR&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to include some more information after comparing it with the HRP tables &lt;/P&gt;&lt;P&gt;E.g., &lt;/P&gt;&lt;P&gt;I want to take P0001-PLANS (position id) and use it to filter certain data from HRP1000 and then print it in the body of the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be done in SO10? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070644#M1504582</guid>
      <dc:creator>former_member66888</dc:creator>
      <dc:date>2010-07-12T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070645#M1504583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if it is possible, but there is an alternative which will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use perform in SAPScrpit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM get_so10 IN PROGRAM yread_sol10 CHANGING &amp;amp;text1&amp;amp;
                                          CHANGING &amp;amp;text2&amp;amp;.

FORM get_so10 TABLES lt_in  STRUCTURE itcsy
                      lt_out STRUCTURE itcsy.

CALL FUNCTION 'READ_TEXT'    'Call the Object related to SO10

* modify and export the values to lt_out.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070645#M1504583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T14:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070646#M1504584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean when it exports, my required values or text will be available in lt_out in SO10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070646#M1504584</guid>
      <dc:creator>former_member66888</dc:creator>
      <dc:date>2010-07-12T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070647#M1504585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This text contains the body of an email message that i will be system generated when employee data changes&lt;/P&gt;&lt;P&gt;&amp;gt; here has been an organizational re-assignment performed for Employee No.&amp;amp;P0001-PERNR&amp;amp;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain where is this long text being called &amp;amp; how is the value of &amp;amp;P0001-PERNR&amp;amp; populated ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070647#M1504585</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-07-12T14:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070648#M1504586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, SO10 values will be the same as it was. The values will be available in &amp;amp;TEXT1&amp;amp; and &amp;amp;TEXT2&amp;amp; in your SAPScript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070648#M1504586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070649#M1504587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how will i get to use &amp;amp;TEXT1&amp;amp;  in the Text Name (MAIL_FOR_I0001_A) &lt;/P&gt;&lt;P&gt;which actually is going to be the body of the email message i am trying to generate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 14:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070649#M1504587</guid>
      <dc:creator>former_member66888</dc:creator>
      <dc:date>2010-07-12T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070650#M1504588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, Sorry. I thought that you wanted to use the values from SO10 inside the SAPScript. IF all you want is to generate the email message based on SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM "READ_TEXT" to read SO10 values into the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lt_tline type standard table of tline,
         wa_line like line of lt_tline.

* get the values for LV_ID, lv_langu,  lv_OBJECT from SO10, you can get this values from Goto -&amp;gt; header inside SO10.

CALL FUNCTION 'READ_TEXT'    "Item Text
       EXPORTING
            id                      = lv_id
            language                = lv_langu
            name                    = lv_text
            object                  = lv_object
       TABLES
            lines                   = lt_tline
       EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.

loop at lt_tline into wa_tline.
* replace relevant values from WA_TLINE with your values.
replace '&amp;amp;P0001-PERNR&amp;amp;' into wa_tline with lv_pernr
* modify lt_tline from wa_tline.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now you have the actual values in table LT_TLINE.. do what ever you want to do with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 15:16:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070650#M1504588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070651#M1504589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe i am not good at explaining my question and thanks for your patience with that &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, i am already generating the email message and receiving the email based on the content in SO10 object.&lt;/P&gt;&lt;P&gt;As of now, i have some simple text in the SO10 object + some commands &lt;/P&gt;&lt;P&gt;The body of the email looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is an automated alert to let you know that employee number &amp;amp;P0001-PERNR&amp;amp; has resigned.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to add some more data into this email body. &lt;/P&gt;&lt;P&gt;E.g., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is an automated alert to let you know that employee number &amp;amp;P0001-PERNR&amp;amp; is reporting to [xxxxxx]&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;where [xxxxxx] will be the position id of the manager which is obtained from the tables HRP1000 &amp;amp; HRP1001.&lt;/P&gt;&lt;P&gt;I know how to get the manager id through a z program. It would take a couple of select statements.  But how will i pass it back to the object in SO10 so that i gets printed in the email?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 15:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070651#M1504589</guid>
      <dc:creator>former_member66888</dc:creator>
      <dc:date>2010-07-12T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070652#M1504590</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; Have a look at the example [Calling ABAP Subroutines: PERFORM|http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 15:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070652#M1504590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T15:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070653#M1504591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it's confusing. Please paste the code where you are generating the email message with the values from SO10 text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 16:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070653#M1504591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP inside SO10</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070654#M1504592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for disappearing &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it wouldn't be confusing if you have worked on the HR module and that is why i didn't mention the full scenario before. The email is triggered through a 'dynamic action'. The standard text object (SO10) is called through a feature M0001 (transaction PE03). And the actual text output is all setup in SO10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used some data fields from PA tables in the text object as follows:&lt;/P&gt;&lt;P&gt;Employee no.: &amp;amp;P0001-PERNR&amp;amp;&lt;/P&gt;&lt;P&gt;Position: &amp;amp;P0001-PLANS&amp;amp;&lt;/P&gt;&lt;P&gt;Department: &amp;amp;P0001-ORGEH&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what i need to do is some more in-depth coding. E.g., for the following logic:&lt;/P&gt;&lt;P&gt;-&amp;gt;Get position id for employee number&lt;/P&gt;&lt;P&gt;-&amp;gt;Get position id(mgr) of reports-to (from HRP1001)&lt;/P&gt;&lt;P&gt;-&amp;gt;Get employee number(mgr) for position id(mgr)&lt;/P&gt;&lt;P&gt;-&amp;gt;Print name of of employee number (mgr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zubair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jul 2010 13:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inside-so10/m-p/7070654#M1504592</guid>
      <dc:creator>former_member66888</dc:creator>
      <dc:date>2010-07-25T13:12:18Z</dc:date>
    </item>
  </channel>
</rss>

