<?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 Re: Common program code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874176#M674481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might take a look at class CL_HR_PNNNN_TYPE_CAST, methods PRELP_TO_PNNNN and PNNNN_TO_PRELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These move HR data from a PRELP structure (which has several long CHAR type fields) into individual infotype structures which all have different individual field layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have not got a system to check at present, but it seems like these methods do what you want and could be basis of a custom class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Sep 2007 01:10:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-29T01:10:57Z</dc:date>
    <item>
      <title>Common program code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874175#M674480</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 am working in a Unicode enviornment. Here is my situation i have a lot of programs where in which we have coded like this way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: v_strcuture(80) type c.

types: begin of t_temp.
       matnr like mara-matnr,  " CHAR field
       matkx like makt-maktx,  " CHAR field 
       breit like mara-breit.  " QUAN field
types: end of t_temp.

data: wa_temp type t_temp.

move v_strcuture to wa_temp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In unicode the above said move statement will not work. For correcting these kind of errors i lam looking for COMMON program code to convert v_structure into wa_temp.&lt;/P&gt;&lt;P&gt;and vice versa ie from wa_temp to v_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function module with 2 import parameters as V_STRUCTURE &amp;amp; WA_TEMP, and importing tables is contents of V_STRUCTURE  and changing table (as output) will be WA_TEMP like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also from WA_TEMP to V_STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody done this kind of requirement please give some hint&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 18:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874175#M674480</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-09-28T18:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Common program code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874176#M674481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might take a look at class CL_HR_PNNNN_TYPE_CAST, methods PRELP_TO_PNNNN and PNNNN_TO_PRELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These move HR data from a PRELP structure (which has several long CHAR type fields) into individual infotype structures which all have different individual field layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have not got a system to check at present, but it seems like these methods do what you want and could be basis of a custom class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2007 01:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874176#M674481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-29T01:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Common program code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874177#M674482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i am looking for. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 15:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874177#M674482</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-01T15:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Common program code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874178#M674483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 16:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/common-program-code/m-p/2874178#M674483</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-01T16:07:12Z</dc:date>
    </item>
  </channel>
</rss>

