<?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: problem with condition statement... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218193#M135435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Viray,&lt;/P&gt;&lt;P&gt; You can use my previuos post with a little modification..&lt;/P&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;range-sign = 'E'.&amp;lt;/b&amp;gt; an all places..&lt;/P&gt;&lt;P&gt; which means Excluding..&lt;/P&gt;&lt;P&gt; then select * from ... where &amp;lt;f&amp;gt; in range..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2006 05:25:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-02T05:25:10Z</dc:date>
    <item>
      <title>problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218186#M135428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me a condition that if a material's movement type is 702, 708, 712 and 718 it would instead be moved to a different table named t_ztm_acc_variance. Below is the code that I am trying to modify. Thanks guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM get_new_variance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_new_variance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_objk.&lt;/P&gt;&lt;P&gt;    READ TABLE it_ser03 WITH KEY obknr = it_objk-obknr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      LOOP AT it_mseg_mara WHERE mblnr = it_ser03-mblnr&lt;/P&gt;&lt;P&gt;                             AND mjahr = it_ser03-mjahr&lt;/P&gt;&lt;P&gt;                             AND zeile = it_ser03-zeile&lt;/P&gt;&lt;P&gt;                             AND bwart = it_ser03-bwart&lt;/P&gt;&lt;P&gt;                             AND werks = it_ser03-werk&lt;/P&gt;&lt;P&gt;                             AND lgort = it_ser03-lagerort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR t_ztm0019_dum.&lt;/P&gt;&lt;P&gt;        LOOP AT t_ztm0019_dum WHERE matnr = it_mseg_mara-matnr&lt;/P&gt;&lt;P&gt;                                AND sernr = it_objk-sernr.&lt;/P&gt;&lt;P&gt;          MOVE: 'X' TO t_ztm0019_dum-delete_flag.&lt;/P&gt;&lt;P&gt;          MODIFY t_ztm0019_dum.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: it_mseg_mara-werks TO t_ztm0019-werk,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-lgort TO t_ztm0019-lagerort,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-matkl TO t_ztm0019-matkl,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-matnr TO t_ztm0019-matnr,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-mblnr TO t_ztm0019-mblnr,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-bwart TO t_ztm0019-bwart,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-grund TO t_ztm0019-grund,&lt;/P&gt;&lt;P&gt;              it_mseg_mara-sgtxt TO t_ztm0019-sgtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: it_objk-sernr TO t_ztm0019-sernr,&lt;/P&gt;&lt;P&gt;              it_objk-equnr TO t_ztm0019-equnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE it_ztm0020 WITH KEY bwart = it_mseg_mara-bwart.&lt;/P&gt;&lt;P&gt;        MOVE: it_ztm0020-ztype TO t_ztm0019-lbbsa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE maktx INTO t_ztm0019-maktx&lt;/P&gt;&lt;P&gt;          FROM makt&lt;/P&gt;&lt;P&gt;          WHERE spras = 'EN'&lt;/P&gt;&lt;P&gt;            AND matnr = it_mseg_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE wgbez INTO t_ztm0019-wgbez&lt;/P&gt;&lt;P&gt;          FROM t023t&lt;/P&gt;&lt;P&gt;          WHERE matkl = it_mseg_mara-matkl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE lgobe INTO t_ztm0019-lgobe&lt;/P&gt;&lt;P&gt;          FROM t001l&lt;/P&gt;&lt;P&gt;          WHERE lgort = it_mseg_mara-lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; t_ztm0019-verpr = it_mseg_mara-dmbtr / it_mseg_mara-erfmg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE it_mkpf WITH KEY mblnr = it_ser03-mblnr&lt;/P&gt;&lt;P&gt;                             mjahr = it_ser03-mjahr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: it_mkpf-budat TO t_ztm0019-budat,&lt;/P&gt;&lt;P&gt;              it_mkpf-bldat TO t_ztm0019-bldat,&lt;/P&gt;&lt;P&gt;              it_mkpf-usnam TO t_ztm0019-usnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: it_ser03-datum TO t_ztm0019-datum,&lt;/P&gt;&lt;P&gt;              it_ser03-uzeit TO t_ztm0019-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND t_ztm0019.&lt;/P&gt;&lt;P&gt;        CLEAR t_ztm0019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " GET_NEW_VARIANCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 03:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218186#M135428</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-02T03:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218187#M135429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi viraylab,&lt;/P&gt;&lt;P&gt;You can do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF TABLE tblnm TO t_ztm_acc_variance.&lt;/P&gt;&lt;P&gt;DELETE t_ztm_acc_variance WHERE movty NE '702' OR&lt;/P&gt;&lt;P&gt;       movty NE '708' OR&lt;/P&gt;&lt;P&gt;       movty NE '712' OR&lt;/P&gt;&lt;P&gt;       movty NE '718'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 03:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218187#M135429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T03:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218188#M135430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Viraylab,&lt;/P&gt;&lt;P&gt; you can use ranges..&lt;/P&gt;&lt;P&gt; data : &amp;lt;f&amp;gt; like itab-&amp;lt;fieldname&amp;gt;.&lt;/P&gt;&lt;P&gt; ranges : range for &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt; range-low = '702'.&lt;/P&gt;&lt;P&gt; range-sign = 'I'.&lt;/P&gt;&lt;P&gt; range-option = 'EQ'.&lt;/P&gt;&lt;P&gt; append Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range-low = '708'.&lt;/P&gt;&lt;P&gt; range-sign = 'I'.&lt;/P&gt;&lt;P&gt; range-option = 'EQ'.&lt;/P&gt;&lt;P&gt; append Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range-low = '712'.&lt;/P&gt;&lt;P&gt; range-sign = 'I'.&lt;/P&gt;&lt;P&gt; range-option = 'EQ'.&lt;/P&gt;&lt;P&gt; append Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;range-low = '718'.&lt;/P&gt;&lt;P&gt; range-sign = 'I'.&lt;/P&gt;&lt;P&gt; range-option = 'EQ'.&lt;/P&gt;&lt;P&gt; append Range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab where &amp;lt;field&amp;gt; in range.&lt;/P&gt;&lt;P&gt; move itab to t_ztm_acc_variance.&lt;/P&gt;&lt;P&gt; append t_ztm_acc_variance.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 04:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218188#M135430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218189#M135431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Copy Orignal table into another table.&lt;/P&gt;&lt;P&gt;From orignal table delete entries whose movement type is &lt;/P&gt;&lt;P&gt;702,708,712, and 718 by using delete statment.&lt;/P&gt;&lt;P&gt;and from other table delete entries whose movement type is not equal to 702,708,712, and 718 by using delete statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 04:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218189#M135431</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-02T04:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218190#M135432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guys, Thanks for the expert replies. However, I do not want records that contains 702, 708, 712 and 718 to be added to t_ztm0019.How can I restrict that given the code above?thank you so much guys...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 05:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218190#M135432</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-02T05:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218191#M135433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete t_ztm0019 where   cond = 712 &lt;/P&gt;&lt;P&gt;                          or cond = 718 &lt;/P&gt;&lt;P&gt;                          or................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 05:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218191#M135433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T05:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218192#M135434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete t_ztm0019 where   cond = 712 &lt;/P&gt;&lt;P&gt;                          or cond = 718 &lt;/P&gt;&lt;P&gt;                          or................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 05:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218192#M135434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T05:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218193#M135435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Viray,&lt;/P&gt;&lt;P&gt; You can use my previuos post with a little modification..&lt;/P&gt;&lt;P&gt; use &lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;range-sign = 'E'.&amp;lt;/b&amp;gt; an all places..&lt;/P&gt;&lt;P&gt; which means Excluding..&lt;/P&gt;&lt;P&gt; then select * from ... where &amp;lt;f&amp;gt; in range..&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 05:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218193#M135435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T05:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218194#M135436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello satesh, If you don't mind, can you give me an example using my code above? I'm really new to abap so please bear with me:) thanks you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 05:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218194#M135436</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-02T05:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218195#M135437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Viary,&lt;/P&gt;&lt;P&gt; hope BWART is the movement type..&lt;/P&gt;&lt;P&gt; so when you populate the table itab &amp;lt;b&amp;gt;t_ztm0019&amp;lt;/b&amp;gt; using select statement, use the following ranges for your selection..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:MSEG.
data : char like mseg-bwart.
data : t_ztm0019 like table of mseg with header line.
ranges : range for char.
range-low = '708'.
range-sign = 'E'.
range-option = 'EQ'.
append Range.

range-low = '712'.
range-sign = 'E'.
range-option = 'EQ'.
append Range.

range-low = '712'.
range-sign = 'E'.
range-option = 'EQ'.
append Range.

range-low = '718'.
range-sign = 'E'.
range-option = 'EQ'.
append Range.


select * from mseg into table t_ztm0019 where BWART in range.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this will stop all four movement types into t_ztm0019..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 06:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218195#M135437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-02T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218196#M135438</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;   As per my understanding of ur req i added some codes in ur prg. just try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_NEW_VARIANCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_NEW_VARIANCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_OBJK.&lt;/P&gt;&lt;P&gt;    READ TABLE IT_SER03 WITH KEY OBKNR = IT_OBJK-OBKNR.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;      LOOP AT IT_MSEG_MARA WHERE MBLNR = IT_SER03-MBLNR&lt;/P&gt;&lt;P&gt;      AND MJAHR = IT_SER03-MJAHR&lt;/P&gt;&lt;P&gt;      AND ZEILE = IT_SER03-ZEILE&lt;/P&gt;&lt;P&gt;      AND BWART = IT_SER03-BWART&lt;/P&gt;&lt;P&gt;      AND WERKS = IT_SER03-WERK&lt;/P&gt;&lt;P&gt;      AND LGORT = IT_SER03-LAGERORT.&lt;/P&gt;&lt;P&gt;        CLEAR T_ZTM0019_DUM.&lt;/P&gt;&lt;P&gt;        LOOP AT T_ZTM0019_DUM WHERE MATNR = IT_MSEG_MARA-MATNR&lt;/P&gt;&lt;P&gt;        AND SERNR = IT_OBJK-SERNR.&lt;/P&gt;&lt;P&gt;          MOVE: 'X' TO T_ZTM0019_DUM-DELETE_FLAG.&lt;/P&gt;&lt;P&gt;          MODIFY T_ZTM0019_DUM.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: IT_MSEG_MARA-WERKS TO T_ZTM0019-WERK,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-LGORT TO T_ZTM0019-LAGERORT,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-MATKL TO T_ZTM0019-MATKL,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-MATNR TO T_ZTM0019-MATNR,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-MBLNR TO T_ZTM0019-MBLNR,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-BWART TO T_ZTM0019-BWART,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-GRUND TO T_ZTM0019-GRUND,&lt;/P&gt;&lt;P&gt;        IT_MSEG_MARA-SGTXT TO T_ZTM0019-SGTXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: IT_OBJK-SERNR TO T_ZTM0019-SERNR,&lt;/P&gt;&lt;P&gt;        IT_OBJK-EQUNR TO T_ZTM0019-EQUNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE IT_ZTM0020 WITH KEY BWART = IT_MSEG_MARA-BWART.&lt;/P&gt;&lt;P&gt;        MOVE: IT_ZTM0020-ZTYPE TO T_ZTM0019-LBBSA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE MAKTX INTO T_ZTM0019-MAKTX&lt;/P&gt;&lt;P&gt;        FROM MAKT&lt;/P&gt;&lt;P&gt;        WHERE SPRAS = 'EN'&lt;/P&gt;&lt;P&gt;        AND MATNR = IT_MSEG_MARA-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE WGBEZ INTO T_ZTM0019-WGBEZ&lt;/P&gt;&lt;P&gt;        FROM T023T&lt;/P&gt;&lt;P&gt;        WHERE MATKL = IT_MSEG_MARA-MATKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SELECT SINGLE LGOBE INTO T_ZTM0019-LGOBE&lt;/P&gt;&lt;P&gt;        FROM T001L&lt;/P&gt;&lt;P&gt;        WHERE LGORT = IT_MSEG_MARA-LGORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        T_ZTM0019-VERPR = IT_MSEG_MARA-DMBTR / IT_MSEG_MARA-ERFMG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        READ TABLE IT_MKPF WITH KEY MBLNR = IT_SER03-MBLNR&lt;/P&gt;&lt;P&gt;        MJAHR = IT_SER03-MJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: IT_MKPF-BUDAT TO T_ZTM0019-BUDAT,&lt;/P&gt;&lt;P&gt;        IT_MKPF-BLDAT TO T_ZTM0019-BLDAT,&lt;/P&gt;&lt;P&gt;        IT_MKPF-USNAM TO T_ZTM0019-USNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE: IT_SER03-DATUM TO T_ZTM0019-DATUM,&lt;/P&gt;&lt;P&gt;        IT_SER03-UZEIT TO T_ZTM0019-UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        APPEND T_ZTM0019.&lt;/P&gt;&lt;P&gt;        CLEAR T_ZTM0019.&lt;/P&gt;&lt;P&gt;*********************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;insertion of code.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF IT_MSEG_MARA-BWART EQ '702' AND&lt;/P&gt;&lt;P&gt;           IT_MSEG_MARA-BWART EQ '708' AND&lt;/P&gt;&lt;P&gt;           IT_MSEG_MARA-BWART EQ '712' AND&lt;/P&gt;&lt;P&gt;           IT_MSEG_MARA-BWART EQ '718'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING IT_MSEG_MARA TO T_ZTM_ACC_VARIANCE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         { fill all the fields in t_ztm_acc_variance table)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          APPEND T_ZTM_ACC_VARIANCE.&lt;/P&gt;&lt;P&gt;          CLEAR T_ZTM_ACC_VARIANCE.&lt;/P&gt;&lt;P&gt;        ENDIF&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of insertion&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDFORM. " GET_NEW_VARIANCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;venkatesh&lt;/DEL&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 06:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218196#M135438</guid>
      <dc:creator>kvenkatesh-in</dc:creator>
      <dc:date>2006-03-02T06:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem with condition statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218197#M135439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello venkateshkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use 'AND' or should I use 'OR' in your IF statement? And also, How can I delete records from T_ZTM0019 that contains those restrictions I said after appending them as from the code given. Where would place the delete statement?thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 06:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-condition-statement/m-p/1218197#M135439</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-03-02T06:44:51Z</dc:date>
    </item>
  </channel>
</rss>

