<?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 with perform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439735#M545993</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;U can use the field-symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 08:48:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T08:48:47Z</dc:date>
    <item>
      <title>help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439733#M545991</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;&lt;/P&gt;&lt;P&gt;in this code  i use table nametab_3001 but i have a lot of tables  3001 3002 ...&lt;/P&gt;&lt;P&gt;that i have to do the same code.&lt;/P&gt;&lt;P&gt; what  have to be change is the just the table &lt;/P&gt;&lt;P&gt;nametab_3001 &amp;amp; wa_nametab_3001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do it in better way instead of  copy this code  and change it in all tables&lt;/P&gt;&lt;P&gt;i do it in perform maybe some can help me with that?&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;SELECT SINGLE perid pernr nachn vorna&lt;/P&gt;&lt;P&gt;FROM pa0002&lt;/P&gt;&lt;P&gt;INTO (taz9,emp_pernr,famliy_name,first_name)&lt;/P&gt;&lt;P&gt;WHERE pernr = wa_et_infty_modif-pernr&lt;/P&gt;&lt;P&gt;AND begda LE wa_et_infty_modif-bdate&lt;/P&gt;&lt;P&gt;AND endda GE wa_et_infty_modif-bdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_str1 = famliy_name(12). "Employee last name&lt;/P&gt;&lt;P&gt;SHIFT lv_str1 LEFT DELETING LEADING space. "Miror&lt;/P&gt;&lt;P&gt;TRANSLATE lv_str1 USING c_translate. "Chinese&lt;/P&gt;&lt;P&gt;wa_nametab_3001-mishpacha = lv_str1.&lt;/P&gt;&lt;P&gt;wa_nametab_3001-emp_pernr = emp_pernr.&lt;/P&gt;&lt;P&gt;APPEND wa_nametab_3001 TO nametab_3001.&lt;/P&gt;&lt;P&gt;CLEAR wa_nametab_3001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_str2 = first_name(7). "Employee first name&lt;/P&gt;&lt;P&gt;SHIFT lv_str2 LEFT DELETING LEADING space. "Miror&lt;/P&gt;&lt;P&gt;TRANSLATE lv_str2 USING c_translate. "Chinese&lt;/P&gt;&lt;P&gt;wa_nametab_3001-praty = lv_str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT nametab_3001 INTO wa_nametab_3001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_nametab_3001-emp_pernr = wa_et_infty_modif-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: lv_str2 TO wa_nametab_3001-praty.&lt;/P&gt;&lt;P&gt;MODIFY nametab_3001 FROM wa_nametab_3001 TRANSPORTING praty.&lt;/P&gt;&lt;P&gt;CLEAR wa_nametab_3001.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439733#M545991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T08:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439734#M545992</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;if i can't do that please tell me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439734#M545992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439735#M545993</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;U can use the field-symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439735#M545993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T08:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439736#M545994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

perform do_something tables nametab_3001
                                 using wa_nametab_3001.

perform do_something tables nametab_3002
                                 using wa_nametab_3002.

perform do_something tables nametab_3003
                                 using wa_nametab_3003.



form do_something tables p_tab structure nametab
                             using p_wa  structure nametab. 

SELECT SINGLE perid pernr nachn vorna
FROM pa0002
INTO (taz9,emp_pernr,famliy_name,first_name)
WHERE pernr = wa_et_infty_modif-pernr
AND begda LE wa_et_infty_modif-bdate
AND endda GE wa_et_infty_modif-bdate.


lv_str1 = famliy_name(12). "Employee last name
SHIFT lv_str1 LEFT DELETING LEADING space. "Miror
TRANSLATE lv_str1 USING c_translate. "Chinese
p_wa-mishpacha = lv_str1.
p_wa-emp_pernr = emp_pernr.
APPEND p_wa- TO p_tab.
CLEAR p_wa.

lv_str2 = first_name(7). "Employee first name
SHIFT lv_str2 LEFT DELETING LEADING space. "Miror
TRANSLATE lv_str2 USING c_translate. "Chinese
p_wa-praty = lv_str2.


LOOP AT p_tab INTO p_wa.

IF p_wa-emp_pernr = wa_et_infty_modif-pernr.

MOVE: lv_str2 TO p_wa-praty.
MODIFY p_tab FROM p_wa TRANSPORTING praty.
CLEAR p_wa.
ENDIF.
ENDLOOP. 

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439736#M545994</guid>
      <dc:creator>ibrahim_u</dc:creator>
      <dc:date>2007-06-20T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439737#M545995</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;does all your tables have the same structure? If so just put this code in a routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : nametab_3001 like sflight occurs 0 with header line,
                  nametab_3002 like sflight occurs 0 with header line.

....

perform routine tables nametab_3001.

perform routine tables nametab_3002.

*routine definition.
form routine tables pt_nametab structure sflight.
data: w_nametab like sflight.

*your code here

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 08:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439737#M545995</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-06-20T08:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439738#M545996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can give me example how i can use here field symbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i new with this topic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 09:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439738#M545996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T09:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439739#M545997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankes ibrahim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 09:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439739#M545997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: help with perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439740#M545998</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;try this sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF TY_LINE,
        MISHPACHA,
        EMP_PERNR,
        PRATY,
       END  OF TY_LINE.

DATA: ITAB1 TYPE STANDARD TABLE OF TY_LINE,
      ITAB2 TYPE STANDARD TABLE OF TY_LINE,
      ITAB3 TYPE STANDARD TABLE OF TY_LINE,
      ITAB4 TYPE STANDARD TABLE OF TY_LINE,
      ITAB5 TYPE STANDARD TABLE OF TY_LINE.


PERFORM FILL_TAB USING: 'ITAB1[]' 'A' 'B',
                        'ITAB2[]' 'C' 'D',
                        'ITAB3[]' 'E' 'F',
                        'ITAB4[]' 'G' 'H',
                        'ITAB5[]' 'I' 'L'.

PERFORM UPDATE_TAB USING: 'ITAB1[]' 'A' 'E',
                          'ITAB2[]' 'D' 'B',
                          'ITAB3[]' 'E' 'B',
                          'ITAB4[]' 'H' 'B',
                          'ITAB5[]' 'I' 'B'.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  FILL_TAB
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_0041   text
*      --&amp;gt;P_LV_STR1  text
*      --&amp;gt;P_EMP_PERNR  text
*----------------------------------------------------------------------*
FORM FILL_TAB USING    TABNAME
                       P_LV_STR1
                       P_EMP_PERNR.

  FIELD-SYMBOLS: &amp;lt;TAB&amp;gt;   TYPE TABLE.

  DATA: WA TYPE TY_LINE.

  ASSIGN (TABNAME) TO &amp;lt;TAB&amp;gt;.

  WA-MISHPACHA = P_LV_STR1.

  WA-EMP_PERNR = P_EMP_PERNR.

  APPEND WA TO &amp;lt;TAB&amp;gt;.

ENDFORM.                    " FILL_TAB
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  UPDATE_TAB
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_TAB  text
*      --&amp;gt;P_VALUE  text
*----------------------------------------------------------------------*
FORM UPDATE_TAB USING    P_TAB
                         P_CHECK
                         P_VALUE.
  FIELD-SYMBOLS: &amp;lt;TAB&amp;gt;   TYPE TABLE,
                 &amp;lt;WA&amp;gt;    TYPE ANY,
                 &amp;lt;FIELD&amp;gt; TYPE ANY.

  ASSIGN (P_TAB) TO &amp;lt;TAB&amp;gt;.

  LOOP AT &amp;lt;TAB&amp;gt; ASSIGNING &amp;lt;WA&amp;gt;.

    ASSIGN COMPONENT 'EMP_PERNR' OF STRUCTURE &amp;lt;WA&amp;gt; TO &amp;lt;FIELD&amp;gt;.
    CHECK &amp;lt;FIELD&amp;gt; = P_CHECK.

    ASSIGN COMPONENT 'PRATY' OF STRUCTURE &amp;lt;WA&amp;gt; TO &amp;lt;FIELD&amp;gt;.
    &amp;lt;FIELD&amp;gt; = P_VALUE.
  ENDLOOP.
ENDFORM.                    " UPDATE_TAB&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 12:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-perform/m-p/2439740#M545998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T12:16:40Z</dc:date>
    </item>
  </channel>
</rss>

