<?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 while displaying inspect6ion plan for recipe in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354322#M1399323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to every one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used this FM QPAX_PLMKB_READ_FROM_PLKO&lt;/P&gt;&lt;P&gt;then there i wil get Plnkn i compared Plnkn with plpo&lt;/P&gt;&lt;P&gt;i got the out put&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2009 08:32:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-24T08:32:43Z</dc:date>
    <item>
      <title>problem while displaying inspect6ion plan for recipe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354318#M1399319</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;below is my code....&lt;/P&gt;&lt;P&gt;i will input material number , plant and task list type&lt;/P&gt;&lt;P&gt;then i wil get all the recipes and inspection plan for recipe...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my problem is for group counter 1 is there then i wil get correct output but if same group is having group counter 2 than im getting wrong out put...it displays wtvr data is there in group counter one ....&lt;/P&gt;&lt;P&gt;if there is no Inspection plan for group counter 2 than i dont want it to display...&lt;/P&gt;&lt;P&gt;can any one tel me this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is there any Function module to get Inspection plan for respective recipe details ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT matnr
               werks
               plnnr
               plnty
               plnal
          FROM mapl
          INTO TABLE it_mapl
          WHERE matnr in s_matnr
          AND werks in  s_werks
          AND plnty = '2'.

         SELECT VORNR
                STEUS
                LTXA1
                plnnr
                plnty
                plnkn
           FROM plpo
           INTO TABLE it_recipe
           FOR ALL ENTRIES IN it_mapl
           WHERE plnnr = it_mapl-plnnr
           AND plnty = it_mapl-plnty
           AND steus = 'PI02'.

           SELECT plnnr
                  plnkn
                  plnty
                  VERWMERKM
                  KURZTEXT
                  MERKNR
             FROM plmk
             INTO TABLE it_plmk
             FOR ALL ENTRIES IN it_recipe
             WHERE plnnr = it_recipe-plnnr
             AND   plnty = it_recipe-plnty
             AND   plnkn = it_recipe-plnkn.

CLEAR : wa_mapl,wa_final.
LOOP AT it_mapl INTO wa_mapl.
  WA_FINAL-MATNR = WA_mapl-MATNR.     "MATERIAL NUMBER
  WA_FINAL-WERKS = WA_mapl-WERKS.
  WA_FINAL-PLNNR = WA_mapl-PLNNR.      "GROUP
  WA_FINAL-PLNTY = WA_mapl-PLNTY.      "TASK LIST TYPE
  WA_FINAL-PLNAL = WA_mapl-PLNAL.      "GROUP COUNTER

CLEAR : wa_recipe.
LOOP AT it_recipe INTO wa_recipe WHERE plnnr = wa_final-plnnr.
      WA_FINAL-VORNR = WA_recipe-VORNR.      "OPERATION / ACTIVITY NUMBER
      WA_FINAL-STEUS = WA_recipe-STEUS.      "CONTROL KEY
      WA_FINAL-LTXA1 = WA_recipe-LTXA1.      "OPERATION SHORT TEXT


CLEAR : wa_plmk.
  LOOP AT it_plmk INTO wa_plmk WHERE plnnr = wa_final-plnnr and plnkn = wa_recipe-plnkn.
       WA_FINAL-VERWMERKM = WA_plmk-VERWMERKM. "Master Inspection Char
         WA_FINAL-KURZTEXT = WA_plmk-KURZTEXT. "Short Text for Inspection Characteristic
         wa_final-MERKNR   = wa_plmk-MERKNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 09:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354318#M1399319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem while displaying inspect6ion plan for recipe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354319#M1399320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLNAL is a key field. Try to use them in your loop where condition statements along with other conditions inorder to avoid the repeatation of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Devendran Krishnan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 22:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354319#M1399320</guid>
      <dc:creator>devendran_krishnan</dc:creator>
      <dc:date>2009-11-23T22:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem while displaying inspect6ion plan for recipe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354320#M1399321</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;thanks for the reply..&lt;/P&gt;&lt;P&gt;yes if i use PLNAL as a key my problm will solve but there is no PLNAL field in PLMK and PLPO....&lt;/P&gt;&lt;P&gt;is there any others tables u know wr i get inspection plan detail with respect to group and group counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Smitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:24:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354320#M1399321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem while displaying inspect6ion plan for recipe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354321#M1399322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Smitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table PLMW contains fields PLNAL and PLNKN. It may be used as a link between MAPL and PLMK.&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;Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354321#M1399322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem while displaying inspect6ion plan for recipe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354322#M1399323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to every one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the answer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used this FM QPAX_PLMKB_READ_FROM_PLKO&lt;/P&gt;&lt;P&gt;then there i wil get Plnkn i compared Plnkn with plpo&lt;/P&gt;&lt;P&gt;i got the out put&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 08:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-displaying-inspect6ion-plan-for-recipe/m-p/6354322#M1399323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T08:32:43Z</dc:date>
    </item>
  </channel>
</rss>

