<?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: reg:Logic Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004023#M408290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the code u r using to retieve and check whether attachements are theer is correct.&lt;/P&gt;&lt;P&gt;Also make sure this concatenate is correct.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE itab-bukrs
itab-belnr
itab-gjahr
INTO g_instance.

SELECT SINGLE *
FROM srgbtbrel
INTO wa
WHERE instid_a = g_instance.
IF sy-subrc = 0.
flag1 = 'X'.
g_attachment = 'Contains Attach.'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text field u can get anything.&lt;/P&gt;&lt;P&gt;Let me know in debugging which is retrieving wrong value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 07:17:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-05T07:17:42Z</dc:date>
    <item>
      <title>reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004013#M408280</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;I want to add in this programm following conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If contains attachments and documents header text(bkpf-bktxt)that documetnts only can disply . how to give logic update me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bukrs&lt;/P&gt;&lt;P&gt;  belnr&lt;/P&gt;&lt;P&gt;  gjahr&lt;/P&gt;&lt;P&gt;  bldat&lt;/P&gt;&lt;P&gt;  blart&lt;/P&gt;&lt;P&gt;  bktxt&lt;/P&gt;&lt;P&gt;  FROM bkpf&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  WHERE bukrs IN bukrs&lt;/P&gt;&lt;P&gt;  AND belnr IN belnr&lt;/P&gt;&lt;P&gt;  AND gjahr IN gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(00) WITH 'no data found!'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    CLEAR wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE itab-bukrs&lt;/P&gt;&lt;P&gt;    itab-belnr&lt;/P&gt;&lt;P&gt;    itab-gjahr&lt;/P&gt;&lt;P&gt;    INTO g_instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE *&lt;/P&gt;&lt;P&gt;    FROM srgbtbrel&lt;/P&gt;&lt;P&gt;    INTO wa&lt;/P&gt;&lt;P&gt;    WHERE instid_a = g_instance.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      flag1 = 'X'.&lt;/P&gt;&lt;P&gt;      g_attachment = 'Contains Attach.'.&lt;/P&gt;&lt;P&gt;      CONVERT TIME STAMP wa-utctime&lt;/P&gt;&lt;P&gt;      TIME ZONE tzone&lt;/P&gt;&lt;P&gt;      INTO DATE bdate TIME btime.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      Flag2 = 'X'.&lt;/P&gt;&lt;P&gt;      g_attachment = 'No Attachment'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004013#M408280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004014#M408281</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;loop at itab1.&lt;/P&gt;&lt;P&gt;if itab1-bktxt is not initial.&lt;/P&gt;&lt;P&gt;append itab1 to itab2.&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;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;write:itab2-XXy....&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;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004014#M408281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004015#M408282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jana,&lt;/P&gt;&lt;P&gt;     Hope u want only those records to be displayed from the internal table "itab" where itab-bktxt is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE itab[] WHERE bktxt  EQ space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Avi...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004015#M408282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004016#M408283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare an extra field Attachment(for G_INSTANCE) in ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare another Internal table ITAB1 (in the place of 'wa' in your program) with the key fields like BUKRS, GJAHR and BELNR and fetch the g_instance ino it.&lt;/P&gt;&lt;P&gt;Loop the ITAB and modify the ITAb with the ITAB1 g_INStance  by reading it with the key fields of ITAb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now ITAB consists of both text and Instance.&lt;/P&gt;&lt;P&gt;Check if both are there then write to output.&lt;/P&gt;&lt;P&gt;Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004016#M408283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004017#M408284</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;Tq for reply,'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz see the follwoing programm.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  Z2GFR_TEST799                                               *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&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;/P&gt;&lt;P&gt;REPORT  Z2GFR_TEST799   NO STANDARD PAGE HEADING .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: bkpf.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;bukrs TYPE bkpf-bukrs,&lt;/P&gt;&lt;P&gt;belnr TYPE bkpf-belnr,&lt;/P&gt;&lt;P&gt;bktxt TYPE bkpf-bktxt,&lt;/P&gt;&lt;P&gt;gjahr TYPE bkpf-gjahr,&lt;/P&gt;&lt;P&gt;bldat TYPE bkpf-bldat,&lt;/P&gt;&lt;P&gt;blart TYPE bkpf-blart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : flag1(1),&lt;/P&gt;&lt;P&gt;       flag2(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa TYPE srgbtbrel,&lt;/P&gt;&lt;P&gt;bdate TYPE bkpf-budat,&lt;/P&gt;&lt;P&gt;btime TYPE sy-uzeit,&lt;/P&gt;&lt;P&gt;tzone TYPE ttzz-tzone VALUE 'UTC+1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_instance LIKE srgbtbrel-instid_a. &lt;/P&gt;&lt;P&gt;DATA: g_attachment(20) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: bukrs FOR bkpf-bukrs,&lt;/P&gt;&lt;P&gt;                belnr FOR bkpf-belnr,&lt;/P&gt;&lt;P&gt;                gjahr FOR bkpf-gjahr OBLIGATORY DEFAULT sy-datum(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_att TYPE c RADIOBUTTON GROUP ra1,&lt;/P&gt;&lt;P&gt;             p_nat TYPE c RADIOBUTTON GROUP ra1,&lt;/P&gt;&lt;P&gt;             p_nwt TYPE c RADIOBUTTON GROUP ra1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bukrs&lt;/P&gt;&lt;P&gt;  belnr&lt;/P&gt;&lt;P&gt;  gjahr&lt;/P&gt;&lt;P&gt;  bldat&lt;/P&gt;&lt;P&gt;  blart&lt;/P&gt;&lt;P&gt;  bktxt&lt;/P&gt;&lt;P&gt;  FROM bkpf&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  WHERE bukrs IN bukrs&lt;/P&gt;&lt;P&gt;  AND belnr IN belnr&lt;/P&gt;&lt;P&gt;  AND gjahr IN gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001(00) WITH 'no data found!'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    CLEAR wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE itab-bukrs&lt;/P&gt;&lt;P&gt;    itab-belnr&lt;/P&gt;&lt;P&gt;    itab-gjahr&lt;/P&gt;&lt;P&gt;    INTO g_instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE *&lt;/P&gt;&lt;P&gt;    FROM srgbtbrel&lt;/P&gt;&lt;P&gt;    INTO wa&lt;/P&gt;&lt;P&gt;    WHERE instid_a = g_instance.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      flag1 = 'X'.&lt;/P&gt;&lt;P&gt;      g_attachment = 'Contains Attach.'.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      Flag2 = 'X'.&lt;/P&gt;&lt;P&gt;      g_attachment = 'No Attachment'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 2 ON.&lt;/P&gt;&lt;P&gt;    IF p_att EQ 'X'.&lt;/P&gt;&lt;P&gt;      if flag1 = 'X' and itab-bktxt is not initial.&lt;/P&gt;&lt;P&gt;      WRITE : /2 itab-bldat ,&lt;/P&gt;&lt;P&gt;          15 itab-bukrs,&lt;/P&gt;&lt;P&gt;          30 itab-belnr,&lt;/P&gt;&lt;P&gt;          45 itab-bktxt,&lt;/P&gt;&lt;P&gt;          75 g_attachment,&lt;/P&gt;&lt;P&gt;          95 sy-uname,&lt;/P&gt;&lt;P&gt;          105 itab-blart.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    ELSEIF p_nat EQ 'X'.&lt;/P&gt;&lt;P&gt;      if flag1 = 'X' and itab-bktxt is initial.&lt;/P&gt;&lt;P&gt;      WRITE : /2 itab-bldat ,&lt;/P&gt;&lt;P&gt;          15 itab-bukrs,&lt;/P&gt;&lt;P&gt;          30 itab-belnr,&lt;/P&gt;&lt;P&gt;          45 itab-bktxt,&lt;/P&gt;&lt;P&gt;          75 g_attachment,&lt;/P&gt;&lt;P&gt;          95 sy-uname,&lt;/P&gt;&lt;P&gt;          105 itab-blart.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSEIF p_nwt EQ 'X'.&lt;/P&gt;&lt;P&gt;     if flag2 = 'X' and itab-bktxt(1) = '@'.&lt;/P&gt;&lt;P&gt;      WRITE : /2 itab-bldat ,&lt;/P&gt;&lt;P&gt;          15 itab-bukrs,&lt;/P&gt;&lt;P&gt;          30 itab-belnr,&lt;/P&gt;&lt;P&gt;          45 itab-bktxt,&lt;/P&gt;&lt;P&gt;          75 g_attachment,&lt;/P&gt;&lt;P&gt;          95 sy-uname,&lt;/P&gt;&lt;P&gt;          105 itab-blart.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  FORMAT COLOR 1 ON.&lt;/P&gt;&lt;P&gt;    WRITE:/2 'Doc Date:'(t01),&lt;/P&gt;&lt;P&gt;    15 'Comany Code:',&lt;/P&gt;&lt;P&gt;    30 'Doc No:',&lt;/P&gt;&lt;P&gt;    45 'Header Text:',&lt;/P&gt;&lt;P&gt;    75 'Status:',&lt;/P&gt;&lt;P&gt;    95 'User Name:',&lt;/P&gt;&lt;P&gt;    105 'Doc Type:'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'BUK' FIELD itab-bukrs.&lt;/P&gt;&lt;P&gt;  SET PARAMETER ID 'BLN' FIELD itab-belnr.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'GJR' FIELD itab-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. suppose 100 documents there in that 20 records having attachments inthat 10 having header text(means 10 records having attachments and header text) that records only need to disply.&lt;/P&gt;&lt;P&gt;2.with attachments without header text&lt;/P&gt;&lt;P&gt;3.without attachments with header text(with @ is starting symbol) only disply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz update this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004017#M408284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004018#M408285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;IF p_att EQ 'X'.
if flag1 = 'X' 
and itab-bktxt is not initial.
WRITE : /2 itab-bldat ,
15 itab-bukrs,
30 itab-belnr,
45 itab-bktxt,
75 g_attachment,
95 sy-uname,
105 itab-blart.
endif.
ELSEIF p_nat EQ 'X'.
if flag1 = 'X' 
and itab-bktxt is initial.
WRITE : /2 itab-bldat ,
15 itab-bukrs,
30 itab-belnr,
45 itab-bktxt,
75 g_attachment,
95 sy-uname,
105 itab-blart.
endif.

ELSEIF p_nwt EQ 'X'.
if flag2 = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &amp;lt;b&amp;gt;and itab-bktxt CA '@'.&amp;lt;/b&amp;gt; if starting symbol then&lt;/P&gt;&lt;P&gt;and itab-bktxt(1) = '@'.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE : /2 itab-bldat ,
15 itab-bukrs,
30 itab-belnr,
45 itab-bktxt,
75 g_attachment,
95 sy-uname,
105 itab-blart.
endif.
ENDIF.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work. Debug and see what is happening.&lt;/P&gt;&lt;P&gt;Let me know if u need ny further help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004018#M408285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004019#M408286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI judith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need following output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.suppose we have 100 documents inthat 100 20 documents having attachments inthat 20 10 documents having attachments(means having attachments and document header text) that records only need to disply.&lt;/P&gt;&lt;P&gt;2. attachments without header text(means remaining 10 documents)need to disply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u understand my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004019#M408286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004020#M408287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey got it but u need to check &amp;lt;b&amp;gt;itab-bktxt = ' '.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if flag1 = 'X' and &lt;/P&gt;&lt;P&gt;NOT itab-bktxt is initial.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;chaneg teh above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because by looking into the code it seems to be correct, but u have to debug and see for each scenario. Whether the btxt is balnk or not? So taht u can change it accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please debug and see u will get the answer.&lt;/P&gt;&lt;P&gt;Only a minor mistake is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 06:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004020#M408287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T06:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004021#M408288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;itab=-bktxt showing follwing&lt;/P&gt;&lt;P&gt;200020002000200020002000200020002000200020002000200020002000200020&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004021#M408288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004022#M408289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi same result showing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004022#M408289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004023#M408290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the code u r using to retieve and check whether attachements are theer is correct.&lt;/P&gt;&lt;P&gt;Also make sure this concatenate is correct.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE itab-bukrs
itab-belnr
itab-gjahr
INTO g_instance.

SELECT SINGLE *
FROM srgbtbrel
INTO wa
WHERE instid_a = g_instance.
IF sy-subrc = 0.
flag1 = 'X'.
g_attachment = 'Contains Attach.'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text field u can get anything.&lt;/P&gt;&lt;P&gt;Let me know in debugging which is retrieving wrong value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004023#M408290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004024#M408291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in bktxt=320030003000360030003600300039002D0048004B004F004200480020002000200020002000200020002000200020002000 getting like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upto attachment program working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004024#M408291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: reg:Logic Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004025#M408292</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;Whatever may be the value u get in the bktxt, u have to do a check whethere it is blank or having some value right?&lt;/P&gt;&lt;P&gt;Then y ur worying about the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur coding should check if it is balnk or contains any value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total length of BXTXT is 25 char.&lt;/P&gt;&lt;P&gt;U can check whether itab-bxtxt EQ SPACE &lt;/P&gt;&lt;P&gt;OR itab-bxtxt NE SPACE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 09:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-logic-urgent/m-p/2004025#M408292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T09:41:22Z</dc:date>
    </item>
  </channel>
</rss>

