<?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 Function Modlue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146405#M1514054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to make a function module for trip expance and time sheet data which can show the info like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&amp;gt; for Trip EXPENSE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Total amount&lt;/P&gt;&lt;P&gt;location&lt;/P&gt;&lt;P&gt;currency&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;project code&lt;/P&gt;&lt;P&gt;per nr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for trip info that i found in table catsdb that uses lot of structure but i want only these fields for some structure. can i create new structure by taking filed form these structure. In Fm my input is workitem id.&lt;/P&gt;&lt;P&gt;Similar is the case for time please suggest some standard that may contain the value for both requirement.&lt;/P&gt;&lt;P&gt;Then in both f i have to use 'SAP_WAPI_CREATE_WORKLIST', 'SAP_WAPI_OBJECTS_IN_WORKITEM' to create worklist and workitem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&amp;gt;for TIME:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;total time&lt;/P&gt;&lt;P&gt;cost center/SO&lt;/P&gt;&lt;P&gt;attendance type&lt;/P&gt;&lt;P&gt;activity type&lt;/P&gt;&lt;P&gt;personell number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;Ranjeet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 06:50:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-25T06:50:47Z</dc:date>
    <item>
      <title>Function Modlue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146405#M1514054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to make a function module for trip expance and time sheet data which can show the info like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&amp;gt; for Trip EXPENSE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Total amount&lt;/P&gt;&lt;P&gt;location&lt;/P&gt;&lt;P&gt;currency&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;project code&lt;/P&gt;&lt;P&gt;per nr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for trip info that i found in table catsdb that uses lot of structure but i want only these fields for some structure. can i create new structure by taking filed form these structure. In Fm my input is workitem id.&lt;/P&gt;&lt;P&gt;Similar is the case for time please suggest some standard that may contain the value for both requirement.&lt;/P&gt;&lt;P&gt;Then in both f i have to use 'SAP_WAPI_CREATE_WORKLIST', 'SAP_WAPI_OBJECTS_IN_WORKITEM' to create worklist and workitem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&amp;gt;for TIME:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;total time&lt;/P&gt;&lt;P&gt;cost center/SO&lt;/P&gt;&lt;P&gt;attendance type&lt;/P&gt;&lt;P&gt;activity type&lt;/P&gt;&lt;P&gt;personell number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;Ranjeet Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 06:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146405#M1514054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T06:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modlue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146406#M1514055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ranjeeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this forum now will explain you the whole process. If you are facing any issues witin the FM you can use the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, indeed you can create your own strucutres with require fields and use them in the Function module. Please refer the link below.&lt;/P&gt;&lt;P&gt;Link:[http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be more clear on what you are trying to say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146406#M1514055</guid>
      <dc:creator>kishorekumar_vemula</dc:creator>
      <dc:date>2010-08-25T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modlue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146407#M1514056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as per my understanding you are trying to develop some reusable unit of Function Module which will deal with these functionality of &lt;STRONG&gt;For Trip Expense&lt;/STRONG&gt; and &lt;STRONG&gt;Time Capture&lt;/STRONG&gt;. But what exactly are you trying to do with these list of fields that you have mentioned. What kind of parameters are they? Is there any kind of user interface involved in the Function Modules? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can create a new structure dynamically by taking info from those fields. Once you are done with you logic you are calling the standard SAP Modules. It would be great if you can share some more information regarding the logic that you have thought and intend to develop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a very helpful class which will provide you with all the information for the structure from the DDIC Table. &lt;STRONG&gt;cl_abap_structdescr&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this links for more information on how to initialize and use dynamically defined structures.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/tips/dynamic-structure.htm" target="test_blank"&gt;http://www.sapdev.co.uk/tips/dynamic-structure.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapab037.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapab037.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/code/abap40.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/code/abap40.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 14:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146407#M1514056</guid>
      <dc:creator>samantak_chatterjee</dc:creator>
      <dc:date>2010-08-25T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modlue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146408#M1514057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I solve this problem even the post are also helpful in some manner.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranjeet Singh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ranjeet Singh 007 on Nov 18, 2010 5:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 04:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146408#M1514057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-18T04:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function Modlue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146409#M1514058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 04:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modlue/m-p/7146409#M1514058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-18T04:58:59Z</dc:date>
    </item>
  </channel>
</rss>

