<?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: psuedo code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154777#M455129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the breakpoints after each select statement. Select the selection criteria so that only few records were populated in to the tables. Check the records as per the statements in the program.Once you are into the loop (in debugging mode) proceed by single steps (F5). you can find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2007 10:38:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-12T10:38:34Z</dc:date>
    <item>
      <title>psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154771#M455123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i want a help on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Retrieve Object type(OBJTY) , Object Id (OBJID) , Document number(DOKNR) from CRVD_A database table for selection screen document numbers. If no documents found raise an error message.&lt;/P&gt;&lt;P&gt;2.	Extract Task list type(PLNTY) , Task list key(PLNNR) , Object type(OBJTY) , Object Id (OBJID) , Task list object (PLNAL) from PLFH table for all entries of above document numbers.&lt;/P&gt;&lt;P&gt;3.	Retrieve material(MATNR) , plant(WERKS) , Task list type (PLNTY) , Task list key(PLNNR) , Task list object(PLNAL) from MAPL table for all entries of above internal table and selection screen material number and plant.&lt;/P&gt;&lt;P&gt;4.	Retrieve material(MATNR) , Description(MAKTX) , Language key(SPRAS) from MAKT table for all entries of above internal table and selection screen language.&lt;/P&gt;&lt;P&gt;5.	Loop on MAPL internal table .&lt;/P&gt;&lt;P&gt;a.	Read PLFH internal table for Object type(OBJTY) and object id(OBJID) with current record task list type(PLNTY) , Task list key(PLNNR) , group counter(PLNAL).&lt;/P&gt;&lt;P&gt;b.	Read CRVD_A internal table for document number DOKNR with above object type(OBJTY) and Object id(OBJID).&lt;/P&gt;&lt;P&gt;c.	Read MAKT internal table for material description(MAKTX) , language key (SPRAS) for current record material.&lt;/P&gt;&lt;P&gt;d.	Populate final internal table with above retrieved values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2007 07:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154771#M455123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-08T07:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154772#M455124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare the intenal table to hold the data from table CRVD_A.select the fieldsbased on the selection-screen enter values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select OBJTY OBJID DOKNR &lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;from  CRVD_A&lt;/P&gt;&lt;P&gt;where doknr in s_DOKNR.&lt;/P&gt;&lt;P&gt;2.Declare another internal table for  PLFH. select the data based on objty and objid&lt;/P&gt;&lt;P&gt; select...filed list&lt;/P&gt;&lt;P&gt; into table itab1&lt;/P&gt;&lt;P&gt; from  PLFH for all entries in itab&lt;/P&gt;&lt;P&gt; where objty = itab-objty and &lt;/P&gt;&lt;P&gt;          objid = itab-objid.&lt;/P&gt;&lt;P&gt;3.same like the step 2. declare internal table for the material information&lt;/P&gt;&lt;P&gt;  and use the table itab1. In select statement put the condition on the selection screen material number and plant&lt;/P&gt;&lt;P&gt;select...field list&lt;/P&gt;&lt;P&gt;into table itab2&lt;/P&gt;&lt;P&gt;from MAPL for all entries in itab1&lt;/P&gt;&lt;P&gt;where PLNTY = itab1-PLNTY and &lt;/P&gt;&lt;P&gt;         PLNNR = itab1-PLNNR and&lt;/P&gt;&lt;P&gt;         matnr in s_matnr and &lt;/P&gt;&lt;P&gt;         werks in s_werks.&lt;/P&gt;&lt;P&gt;4.declare internal table and get the data for all the materialsin step 3.&lt;/P&gt;&lt;P&gt;5.declare the final internal tabel with all the field.&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;read table itab with key objty =itab2-objty and&lt;/P&gt;&lt;P&gt;                                   objid = itab2-objid..............&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;append it_final.&lt;/P&gt;&lt;P&gt;clear it_fianl.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;do the same to read the material description and document number and populate the final internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 11:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154772#M455124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154773#M455125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijaya&lt;/P&gt;&lt;P&gt;thanxs for ur reply&lt;/P&gt;&lt;P&gt;i have already done those things but having problem  in looping only that u have nt written&lt;/P&gt;&lt;P&gt;so i m sending my codes tell me where i m wrong :&lt;/P&gt;&lt;P&gt;LOOP AT it_crvd_a INTO wa_crvd_a.&lt;/P&gt;&lt;P&gt;    wa_final-doknr = s_doknr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_plfh INTO wa_plfh WITH KEY objty = wa_crvd_a-objty&lt;/P&gt;&lt;P&gt;                                          objid = wa_crvd_a-objid.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    READ TABLE it_mapl INTO wa_mapl WITH KEY plnty = wa_plfh-plnty&lt;/P&gt;&lt;P&gt;                                         plnnr = wa_plfh-plnnr&lt;/P&gt;&lt;P&gt;                                         plnal = wa_plfh-plnal.&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa_final-matnr = wa_mapl-matnr.&lt;/P&gt;&lt;P&gt;    wa_final-werks = wa_mapl-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE it_makt INTO wa_makt WITH KEY matnr = wa_mapl-matnr.&lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa_final-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;    wa_final-spras = p_lang.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;  APPEND  wa_final TO it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 15:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154773#M455125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T15:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154774#M455126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijaya&lt;/P&gt;&lt;P&gt;i didnt get the result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 14:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154774#M455126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T14:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154775#M455127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i didn't saw ur thread y'day.&lt;/P&gt;&lt;P&gt;here is the loop logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_mapl INTO wa_mapl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_plfh INTO wa_plfh WITH KEY plnty = wa_mapl-plnty&lt;/P&gt;&lt;P&gt;					 plnnr = wa_mapl-plnnr&lt;/P&gt;&lt;P&gt;					 plnal = wa-mapl-plnal.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; wa_final-objty = wa_plfh-objty.&lt;/P&gt;&lt;P&gt; wa_final-objid = wa_plfh-objid.&lt;/P&gt;&lt;P&gt;*--read crvd_A&lt;/P&gt;&lt;P&gt; read table it_crvd_a into wa_crvd_a with key objty = wa_plfh-objty&lt;/P&gt;&lt;P&gt;					      objid = wa_plfh-objid.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  wa_final-doknr = wa_crvd_a-doknr.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt; READ TABLE it_makt INTO wa_makt WITH KEY matnr = wa_mapl-matnr.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;	wa_final-maktx = wa_makt-maktx.&lt;/P&gt;&lt;P&gt;	wa_final-spras = wa_makt-spras.&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;APPEND wa_final TO it_final.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 10:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154775#M455127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154776#M455128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijaya&lt;/P&gt;&lt;P&gt;Thanxs once again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, after doing this i am trying to findout that it_final has data or not by using debugger&lt;/P&gt;&lt;P&gt;as follows:&lt;/P&gt;&lt;P&gt;......... &lt;/P&gt;&lt;P&gt;APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.   &amp;lt;----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;breakpoint&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it shows no data.&lt;/P&gt;&lt;P&gt;so please help me out am i going rit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i  also tried write statement &lt;/P&gt;&lt;P&gt;but it showed only one field and that too with value '000000'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 16:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154776#M455128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T16:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: psuedo code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154777#M455129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the breakpoints after each select statement. Select the selection criteria so that only few records were populated in to the tables. Check the records as per the statements in the program.Once you are into the loop (in debugging mode) proceed by single steps (F5). you can find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/psuedo-code/m-p/2154777#M455129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:38:34Z</dc:date>
    </item>
  </channel>
</rss>

