<?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: Material document and account document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749004#M1459805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may refer to the table field BKPF-AWKEY(reference key), here the material document number and&lt;/P&gt;&lt;P&gt;material document year is saved, and then you can read table MSEG, for the item information of&lt;/P&gt;&lt;P&gt;material document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Polly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 05:36:46 GMT</pubDate>
    <dc:creator>PollyGan</dc:creator>
    <dc:date>2010-04-12T05:36:46Z</dc:date>
    <item>
      <title>Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749003#M1459804</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;&lt;STRONG&gt;Business Scenario:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Purchase order with one line item, quantity 10. I have created the partial delivery for this material which inturn created a Material document with line items say 1,2 and 3 followed by Accounting document .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical requirement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to pick the BATCH value populated in the line item of the Material document.&lt;/P&gt;&lt;P&gt;In the custom code I only have the accounting document and the line item available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how do I get the value of the material document and the Material document line item from Accounting documet and Account document line item available in code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 05:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749003#M1459804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T05:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749004#M1459805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may refer to the table field BKPF-AWKEY(reference key), here the material document number and&lt;/P&gt;&lt;P&gt;material document year is saved, and then you can read table MSEG, for the item information of&lt;/P&gt;&lt;P&gt;material document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Polly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 05:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749004#M1459805</guid>
      <dc:creator>PollyGan</dc:creator>
      <dc:date>2010-04-12T05:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749005#M1459806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Polly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BKPF-AWKEY will contain the concatenated value of material document and material document year.&lt;/P&gt;&lt;P&gt;I need material document and the line item linked to the accounting document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 05:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749005#M1459806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T05:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749006#M1459807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have 3 line items for the Material Document ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am correct you are interested in the line where Batch Number is not empty. Select the particular line from MSEG for the material document where batch is not empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 05:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749006#M1459807</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-12T05:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749007#M1459808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Below Logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select awkey from BKPF
where belnr = &amp;lt;accounting doc&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awkey = (docno + Fiscal Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select &amp;lt;ebeln (PO Number)&amp;gt;, &amp;lt;ebelp(po line item)&amp;gt; 
from BSEG where belnr = &amp;lt;bkpf-belnr&amp;gt;

select &amp;lt;required fields&amp;gt; from mseg
where mblnr = &amp;lt;first ten characters of bkpf-awkey&amp;gt;
and   ebeln = &amp;lt;bseg-ebeln&amp;gt;
and   ebelp = &amp;lt;bseg-eblep&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 05:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749007#M1459808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T05:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749008#M1459809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way system generates FI document item, is to LOOP AT material document item table, and &lt;/P&gt;&lt;P&gt;for each item, create corresponding FI document item. For example for 1 material document item, &lt;/P&gt;&lt;P&gt;2 FI items(with BSX and WRX) can be generated. Thus you can read FI document items by sequence &lt;/P&gt;&lt;P&gt;to find out corresponding material document item. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Polly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 06:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749008#M1459809</guid>
      <dc:creator>PollyGan</dc:creator>
      <dc:date>2010-04-12T06:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749009#M1459810</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 dont want all the line items of the material document. I only want those line items likned with the line items of the Accounting document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 06:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749009#M1459810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-12T06:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Material document and account document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749010#M1459811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;h&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 05:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-material-document-and-account-document/m-p/6749010#M1459811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T05:14:00Z</dc:date>
    </item>
  </channel>
</rss>

