<?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 Inner Join Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533581#M574736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;iam using an inner joiN ON vbak,vabp,vbkd.&lt;/P&gt;&lt;P&gt;the selection screen is &lt;/P&gt;&lt;P&gt;select-options: s_erdat for vbak-erdat, "SO CREATION DATE&lt;/P&gt;&lt;P&gt;s_vbeln for g_vbeln, " SALES ORDER&lt;/P&gt;&lt;P&gt;s_bstkd for vbkd-bstkd_e. " CLIENT PURCHASE ORDER NO&lt;/P&gt;&lt;P&gt;THE sample records:&lt;/P&gt;&lt;P&gt;SO soline PO poline&lt;/P&gt;&lt;P&gt;86333 1 - - &lt;/P&gt;&lt;P&gt;87000 1 49000 1 &lt;/P&gt;&lt;P&gt;my inner join:&lt;/P&gt;&lt;P&gt;select vbak&lt;SUB&gt;vbeln vbap&lt;/SUB&gt;posnr vbap&lt;SUB&gt;route vbkd&lt;/SUB&gt;bstkd_e vbkd~posex_e&lt;/P&gt;&lt;P&gt;into table t_vbap&lt;/P&gt;&lt;P&gt;from vbak&lt;/P&gt;&lt;P&gt;inner join vbap&lt;/P&gt;&lt;P&gt;on vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;inner join vbkd&lt;/P&gt;&lt;P&gt;on vbap&lt;SUB&gt;vbeln = vbkd&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;and vbap&lt;SUB&gt;posnr = vbkd&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;where vbak~erdat in s_erdat&lt;/P&gt;&lt;P&gt;and vbap~vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;and vbkd~bstkd_e in s_bstkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem:&lt;/P&gt;&lt;P&gt;selection screen:&lt;/P&gt;&lt;P&gt;DATE: - TO -&lt;/P&gt;&lt;P&gt;SO : 86333 TO -&lt;/P&gt;&lt;P&gt;PO : - TO -&lt;/P&gt;&lt;P&gt;INPUT IS ONLY sales order no.&lt;/P&gt;&lt;P&gt;and in V BKD NO po - blank .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBKD table if the PO is blank am not getting any record.&lt;/P&gt;&lt;P&gt;mean the first one should be retrived but not happening.&lt;/P&gt;&lt;P&gt;at least it should show me like this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;86333 1 - - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls clera me asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2007 08:27:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-08T08:27:45Z</dc:date>
    <item>
      <title>Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533581#M574736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;iam using an inner joiN ON vbak,vabp,vbkd.&lt;/P&gt;&lt;P&gt;the selection screen is &lt;/P&gt;&lt;P&gt;select-options: s_erdat for vbak-erdat, "SO CREATION DATE&lt;/P&gt;&lt;P&gt;s_vbeln for g_vbeln, " SALES ORDER&lt;/P&gt;&lt;P&gt;s_bstkd for vbkd-bstkd_e. " CLIENT PURCHASE ORDER NO&lt;/P&gt;&lt;P&gt;THE sample records:&lt;/P&gt;&lt;P&gt;SO soline PO poline&lt;/P&gt;&lt;P&gt;86333 1 - - &lt;/P&gt;&lt;P&gt;87000 1 49000 1 &lt;/P&gt;&lt;P&gt;my inner join:&lt;/P&gt;&lt;P&gt;select vbak&lt;SUB&gt;vbeln vbap&lt;/SUB&gt;posnr vbap&lt;SUB&gt;route vbkd&lt;/SUB&gt;bstkd_e vbkd~posex_e&lt;/P&gt;&lt;P&gt;into table t_vbap&lt;/P&gt;&lt;P&gt;from vbak&lt;/P&gt;&lt;P&gt;inner join vbap&lt;/P&gt;&lt;P&gt;on vbak&lt;SUB&gt;vbeln = vbap&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;inner join vbkd&lt;/P&gt;&lt;P&gt;on vbap&lt;SUB&gt;vbeln = vbkd&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;and vbap&lt;SUB&gt;posnr = vbkd&lt;/SUB&gt;posnr&lt;/P&gt;&lt;P&gt;where vbak~erdat in s_erdat&lt;/P&gt;&lt;P&gt;and vbap~vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;and vbkd~bstkd_e in s_bstkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem:&lt;/P&gt;&lt;P&gt;selection screen:&lt;/P&gt;&lt;P&gt;DATE: - TO -&lt;/P&gt;&lt;P&gt;SO : 86333 TO -&lt;/P&gt;&lt;P&gt;PO : - TO -&lt;/P&gt;&lt;P&gt;INPUT IS ONLY sales order no.&lt;/P&gt;&lt;P&gt;and in V BKD NO po - blank .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBKD table if the PO is blank am not getting any record.&lt;/P&gt;&lt;P&gt;mean the first one should be retrived but not happening.&lt;/P&gt;&lt;P&gt;at least it should show me like this below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;86333 1 - - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls clera me asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 08:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533581#M574736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T08:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533582#M574737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the PO is blank and still you want to retrieve the data from VBKD then you shuld use OUTER JOIN instead of INNER JOIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 09:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533582#M574737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T09:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533583#M574738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;tahnx for that.&lt;/P&gt;&lt;P&gt;Even, i changed accordingly but its giving the below error.&lt;/P&gt;&lt;P&gt;NO-FILEDS FROM TEH RIGHT-HAND SIDE OF TABLE OF left -outer join may appear in WHERE condition : " vbkd~bstkd_e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems in where conditon its not allowing this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 09:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533583#M574738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T09:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533584#M574739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not in front of system, but you must have written query wrongly. Just do F1 on OUTER JOIN, you can get the sample query.&lt;/P&gt;&lt;P&gt;Change your query accoringly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 09:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533584#M574739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T09:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533585#M574740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank  you very much.&lt;/P&gt;&lt;P&gt;i placed if condition  then with outer join.&lt;/P&gt;&lt;P&gt;its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 09:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533585#M574740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-08T09:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533586#M574741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.2 Inbound Interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow steps 1 to 5 inclusive as detailed above in outbound interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6&lt;/P&gt;&lt;P&gt;Write a custom function module to handle custom inbound processing. This custom function module must&lt;/P&gt;&lt;P&gt;&amp;#149; Check for the correct message type&lt;/P&gt;&lt;P&gt;&amp;#149; Read the IDoc data segment&lt;/P&gt;&lt;P&gt;&amp;#149; Perform data conversion and validate the data as appropriate&lt;/P&gt;&lt;P&gt;&amp;#149; Post the data to the database&lt;/P&gt;&lt;P&gt;&amp;#149; Handle any error situations&lt;/P&gt;&lt;P&gt;&amp;#149; Set the correct return values for the status record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the Function Module must not make a commit to the database. This is because the status record is not written until control returns to the ALE layer. So if you commit work in the Function Module and an error occurs in returning to the ALE Layer, the status record must not be updated with a successful outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commit work is executed in the ALE Layer after the status records are updated, via the standard SAP function module IDOC_INBOUND_PROCESS. This attributes of this function module are set up in (Transaction BD51), click on &amp;#145;New Entries&amp;#146; and fill in data; the main input parameters being &amp;#145;Input Type&amp;#146; and &amp;#145;Dialog Allowed&amp;#146;.&lt;/P&gt;&lt;P&gt;Take care as some standard SAP transactions contain a Commit Work as part of their processing. Therefore using a BDC to process inbound data to SAP may not be acceptable. You need to check that the SAP transaction is ALE enabled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7&lt;/P&gt;&lt;P&gt;(Transaction WE57)&lt;/P&gt;&lt;P&gt;Assign the custom function module to the IDoc type and the message type.&lt;/P&gt;&lt;P&gt;Set function module to type &amp;#145;F&amp;#146; and direction &amp;#145;2&amp;#146; for inbound.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8&lt;/P&gt;&lt;P&gt;(Transaction WE42)&lt;/P&gt;&lt;P&gt;Create a new process code and assign it to the function module. The process code determines how the incoming IDoc is to be processed in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 9&lt;/P&gt;&lt;P&gt;(Transaction BD67)&lt;/P&gt;&lt;P&gt;Assign the function module to the process code created above. Got to &amp;#145;New Entries&amp;#146; and enter the process code and the function module name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 10&lt;/P&gt;&lt;P&gt;(Transaction WE20 and Transaction BD64)&lt;/P&gt;&lt;P&gt;Create a partner profile for your message and ensure that in transaction WE20 the process code is the one that points to your function module. (See step 6 of creating Outbound Idocs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 11&lt;/P&gt;&lt;P&gt;Ensure that error handling functionality is present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an interface is expecting a file every day, and a custom IDoc may only be output from SAP periodically, it would be necessary to create some kind of output from SAP on a daily basis to pass to Mercator to allow it to map to an empty file. As we are dealing with custom IDoc types we can design the IDoc so that the data segments are not mandatory. Therefore the SAP program, on finding no data to populate the custom IDoc, would only need to create the control record. The empty IDoc containing the control record would be passed to Mercator. Mercator will map this to an empty file format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful Transaction Codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WEDI : IDoc Menu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE02 : IDoc List (can enter IDoc number to select on)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE05 : IDoc List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE19 : Transaction WE19 can be used to test the IDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE30 : IDoc Type Development: Initial Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE31: Development Segments: Initial Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE60 : Documentation for IDoc Types. This allows you to view the IDoc you have created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE81 : Display View &amp;#145;EDI: Logical Message Types&amp;#146;: Overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE82: Display View &amp;#145;Message Types and Assignment to IDoc Types&amp;#146;: Overview &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 17:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-issue/m-p/2533586#M574741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T17:28:28Z</dc:date>
    </item>
  </channel>
</rss>

