<?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: HELP IN FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226319#M769531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURR filed should not be X ... u should enter some numerical values for the value of CURR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even then if you wanna do it then use IF condition before calling ur Function module... and check the value of CURR ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF ( CURR = 'X' or CURR = SPACE ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_GET_PROJECT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;project = gt_prps-psphi&lt;/P&gt;&lt;P&gt;date_from = l_datefrom&lt;/P&gt;&lt;P&gt;date_to = l_dateto&lt;/P&gt;&lt;P&gt;curr_usd = curr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;rev_center = center&lt;/P&gt;&lt;P&gt;project_name = project_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Dec 2007 14:28:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-30T14:28:43Z</dc:date>
    <item>
      <title>HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226314#M769526</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 doing job that insert data to table and i need to call the fm above when curr eq x and curr ex ' '  i need advice how to do it &lt;/P&gt;&lt;P&gt;efficient , i now that i can call the fm twice but maybe there is another   way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'Z_GET_PROJECT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          project      = gt_prps-psphi&lt;/P&gt;&lt;P&gt;          date_from    = l_datefrom&lt;/P&gt;&lt;P&gt;          date_to      = l_dateto&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;curr_usd     = curr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          rev_center   = center&lt;/P&gt;&lt;P&gt;          project_name = project_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i reward &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 08:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226314#M769526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226315#M769527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, use thi fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_CREATE                                Calculates a date from the input parameters:&lt;/P&gt;&lt;P&gt;                                                                                Example:&lt;/P&gt;&lt;P&gt;                                                                                CALL FUNCTION 'DATE_CREATE'&lt;/P&gt;&lt;P&gt;                                                                 EXPORTING&lt;/P&gt;&lt;P&gt;                                                                     anzahl_jahre  = 1&lt;/P&gt;&lt;P&gt;                                                                     anzahl_monate = 2&lt;/P&gt;&lt;P&gt;                                                                     anzahl_tage   = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                                     datum_ein     = '20010101'&lt;/P&gt;&lt;P&gt;                                                                IMPORTING&lt;/P&gt;&lt;P&gt;                                                                    datum_aus     = l_new_date.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;                                                                 Result:&lt;/P&gt;&lt;P&gt;                                                                      l_new_date = 20020304&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 08:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226315#M769527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T08:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226316#M769528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i satih,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u don't understand my question ,i have the field curr in exporting and i wont to insert data into table when curr eq x&lt;/P&gt;&lt;P&gt;and cur is initial what is the best way to do that ,&lt;/P&gt;&lt;P&gt;i now that i can call the twice but maybe there is another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 08:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226316#M769528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T08:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226317#M769529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way, follow &lt;STRONG&gt;pseudo code&lt;/STRONG&gt; below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA curr TYPE c LENGTH 1.

IF cond1 is true.
 CLEAR curr.
ELSE.
  curr = 'X'.
ENDIF.

* Now call your function with the value above as per condition

CALL FUNCTION 'Z_GET_PROJECT'
   EXPORTING
     project = gt_prps-psphi
     date_from = l_datefrom
     date_to = l_dateto
    *curr_usd = curr*
   IMPORTING
     rev_center = center
     project_name = project_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 09:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226317#M769529</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2007-12-30T09:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226318#M769530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; u don't understand my question ,i have the field curr in exporting and i wont to insert data into table when curr eq x&lt;/P&gt;&lt;P&gt;&amp;gt; and cur is initial what is the best way to do that ,&lt;/P&gt;&lt;P&gt;Sorry curr cant be eq x and initial at the same time - this is not AND but OR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not use IF ( CUR = 'X' or CUR = space ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 11:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226318#M769530</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-12-30T11:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: HELP IN FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226319#M769531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURR filed should not be X ... u should enter some numerical values for the value of CURR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even then if you wanna do it then use IF condition before calling ur Function module... and check the value of CURR ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF ( CURR = 'X' or CURR = SPACE ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_GET_PROJECT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;project = gt_prps-psphi&lt;/P&gt;&lt;P&gt;date_from = l_datefrom&lt;/P&gt;&lt;P&gt;date_to = l_dateto&lt;/P&gt;&lt;P&gt;curr_usd = curr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;rev_center = center&lt;/P&gt;&lt;P&gt;project_name = project_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve ur problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 14:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-fm/m-p/3226319#M769531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T14:28:43Z</dc:date>
    </item>
  </channel>
</rss>

