<?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: Simple but Tricky Question ..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152954#M117996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to pass each variable every time to FM and get the result and pass back ..I am looking for a shortcut, I don&amp;#146;t want to code it again and again .. I think this the only way I can do it . I have to code like this pass these variables to Fm one by one and get date one by one and pass to BDC program.&lt;/P&gt;&lt;P&gt;Thanks Rich..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2006 20:41:04 GMT</pubDate>
    <dc:creator>former_member181966</dc:creator>
    <dc:date>2006-02-14T20:41:04Z</dc:date>
    <item>
      <title>Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152951#M117993</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 have a question, I have 8 different dates field in upload file. we are using our own customize FM , which read the date from file and re-arrange it according to user profile setup in SU01. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is that what is the smartest way to pass these 8 fields all together and get 8 fields according to the user profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don&amp;#146;t want to take 8 different variables and use this Fm 8 times for each date in upload file. &lt;/P&gt;&lt;P&gt;Remember as per 1 recorded file I can have dates up to 8 fields as I have 8 different fields in column which I want to upload . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I&amp;#146;ll use &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform convert_date_to_user_profle using Variable1 ( Coolum Date)&lt;/P&gt;&lt;P&gt;                                                      Variable2 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable3 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable4 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable5 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable6 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable7 ( Column Date)&lt;/P&gt;&lt;P&gt;                                                      Variable8 ( Column Date)&lt;/P&gt;&lt;P&gt;                                             changing All variables gain ...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;You can send only for date input in one time and get the result...&amp;lt;/b&amp;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;Pl gives your input/suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152951#M117993</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-02-14T20:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152952#M117994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's wrong with sending the dates thru to the FORM as you have done above.  You can send it like that or you can send the entire row to the FORM via changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152952#M117994</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-14T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152953#M117995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I mean about passing the entire row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0003.

data: begin of itab occurs 0,
      field1(10) type c,
      field2(10) type c,
      field3(10) type c,
      end of itab.


loop at itab.

  perform convert_date_to_user_profile changing itab.

endloop.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  convert_date_to_user_profile
*&amp;amp;---------------------------------------------------------------------*
form convert_date_to_user_profile changing wa like itab.

* convert field 1
  write:/ wa-field1.

* convert field 2
  write:/ wa-field2.

* convert field 3
  write:/ wa-field3.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152953#M117995</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-14T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152954#M117996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to pass each variable every time to FM and get the result and pass back ..I am looking for a shortcut, I don&amp;#146;t want to code it again and again .. I think this the only way I can do it . I have to code like this pass these variables to Fm one by one and get date one by one and pass to BDC program.&lt;/P&gt;&lt;P&gt;Thanks Rich..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152954#M117996</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-02-14T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152955#M117997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in my example above, we are passing the entire line,  and you only need to call the routine once,  convert all the dates in one call, and pass back the entire converted row.  This is what I'm trying to illistrate above.  Does that make sense to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152955#M117997</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-14T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152956#M117998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Definitely Rich . It makes sense to me . I am just looking any other option in which I don&amp;#146;t have to declare an itab or so many variables. Looks like this the only option so far .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 20:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152956#M117998</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-02-14T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple but Tricky Question .....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152957#M117999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
report zrich_0003.
 
TYPES: BEGIN OF ITAB,
       FIELD1(10) TYPE C,
       FIELD2(10) TYPE C,
       FIELD3(10) TYPE C,
       END OF ITAB.

DATA: MY_TAB TYPE STANDARD TABLE OF ITAB WITH HEADER LINE.

PERFORM CONVERT_DATE_TO_USER_PROFILE TABLES MY_TAB.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  convert_date_to_user_profile
*&amp;amp;---------------------------------------------------------------------*
FORM CONVERT_DATE_TO_USER_PROFILE TABLES MY_TAB STRUCTURE MY_TAB.

* convert field 1
  WRITE:/ MY_TAB-FIELD1.

* convert field 2
  WRITE:/ MY_TAB-FIELD2.

* convert field 3
  WRITE:/ MY_TAB-FIELD3.

ENDFORM.                    "convert_date_to_user_profile
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for steal your code Rich -:P  But i think that this is a better way to do it -;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2006 21:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-but-tricky-question/m-p/1152957#M117999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-14T21:39:14Z</dc:date>
    </item>
  </channel>
</rss>

