<?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: BDC for FB02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575781#M1271792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to include the below standard code to determine the Item Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_winfk         = 'ZKO'.
  lv_mpool         = 'SAPMF05L'.
*----- Assign Constant data to T019W table
  t019w-mpool      = lv_mpool.
  t019w-winfk      = lv_winfk.

  CLEAR : lv_winfk.

  IF lv_umskz NE space.
    t019w-winfk+3  = c_char_x.
    TRANSLATE t019w-winfk TO UPPER CASE.
  ELSE.
    t019w-winfk+3  = lv_koart.
  ENDIF.

  lv_winfk         = t019w-winfk.


*----- Fetch the Screen Number from table T019W
  SELECT SINGLE winnr
  FROM          t019w
  INTO          lv_winnr
  WHERE         mpool = lv_mpool
  AND           winfk = lv_winfk
  AND           buvar = space.

  t019w-winnr     = lv_winnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the financial screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CLEAR : t019.

*------ Pass data to T019 table
  t019-dyncl = c_char_a.
  t019-koart = lv_koart.
  t019-umskz = lv_umsks.
  t019-buvar = lv_buvar.

*------ Check for A, W Transaction Types
  IF ' AW' NS t019-umskz.
    t019-umskz = c_char_x.
    translate t019-umskz to upper case.
  ENDIF.

*------ If Transaction Screen Variant is null
  IF  lv_umsks NE space
  AND lv_buzei EQ it_bseg-buzei.
    t019-umskz = c_char_w.
    translate t019-umskz to upper case.
  ENDIF.

*------ If the Document Status is 'S'
  IF  lv_umsks = c_char_w
  AND lv_bstat = c_char_s.
    t019-umskz = c_char_f.
    translate t019-umskz to upper case.
  ENDIF.

*------ If the Special G/L Ind. from BSEG is not Zero
  IF  lv_umskz &amp;lt;&amp;gt; space
  AND lv_bstat = c_char_s
  AND lv_buzid = c_char_p.
    t019-koart = space.
    t019-umskz = c_char_p.
    t019-buvar = space.
    translate t019-umskz to upper case.
  ENDIF.

*------ Read Table and if it not null, pass null to Transction Variant
  READ TABLE t019.
  IF sy-subrc NE 0.
    t019-buvar = space.
  ENDIF.

*------ Get the Screen Number
  SELECT SINGLE dynnr FROM t019
  INTO   lv_dynnr
  WHERE  dyncl = t019-dyncl
  AND    koart = t019-koart
  AND    umskz = t019-umskz
  AND    buvar = t019-buvar.

*------ Assign the Screen Number to table T019.
  t019-dynnr = lv_dynnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try to analyse the code and get understanding on the same. If you need any other detail, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 09:05:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T09:05:19Z</dc:date>
    <item>
      <title>BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575774#M1271785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using t-code FB02 with BDC to update the accounting documnets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement is to update the item text if it is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an internal table, I have a list of the document items which are to be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recorded FB02 with a random item number. Now it may be required to update any of the document item each time which may not be the same as the recorded one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the issue is how to determine the item number to be changd from the list of item numbers on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest a relevant solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575774#M1271785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575775#M1271786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best way  is use LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object               0100   Financial documents&lt;/P&gt;&lt;P&gt;Method               0000&lt;/P&gt;&lt;P&gt;Program Name         RFBIBL00&lt;/P&gt;&lt;P&gt;Program Type         D   Direct Input&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575775#M1271786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575776#M1271787</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;Insted of BDC goo for BAPI &lt;STRONG&gt;BAPI_ACC_DOCUMENT_POST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info go throught this link:[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="276066"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575776#M1271787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575777#M1271788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it has to be BDC - you could use the option EDIT - &amp;gt; Display from Item inside FB02. &lt;/P&gt;&lt;P&gt;This put the selected item at the top line of the table.&lt;/P&gt;&lt;P&gt;You could just make another recording of FB02 using this option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575777#M1271788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575778#M1271789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go throw bdc session method i think in that no problem comes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575778#M1271789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575779#M1271790</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;better to choose calltransaction method ,run with A (all screen mode).&lt;/P&gt;&lt;P&gt;&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;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575779#M1271790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575780#M1271791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while recording in SHDB for transaction FB02 for selecting line item goto EDIT-&amp;gt;Display from item and do the bdc accordingly.while collectng data in int table decide on line item accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it solve ur problem.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575780#M1271791</guid>
      <dc:creator>former_member438956</dc:creator>
      <dc:date>2009-05-21T08:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: BDC for FB02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575781#M1271792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to include the below standard code to determine the Item Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_winfk         = 'ZKO'.
  lv_mpool         = 'SAPMF05L'.
*----- Assign Constant data to T019W table
  t019w-mpool      = lv_mpool.
  t019w-winfk      = lv_winfk.

  CLEAR : lv_winfk.

  IF lv_umskz NE space.
    t019w-winfk+3  = c_char_x.
    TRANSLATE t019w-winfk TO UPPER CASE.
  ELSE.
    t019w-winfk+3  = lv_koart.
  ENDIF.

  lv_winfk         = t019w-winfk.


*----- Fetch the Screen Number from table T019W
  SELECT SINGLE winnr
  FROM          t019w
  INTO          lv_winnr
  WHERE         mpool = lv_mpool
  AND           winfk = lv_winfk
  AND           buvar = space.

  t019w-winnr     = lv_winnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the financial screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CLEAR : t019.

*------ Pass data to T019 table
  t019-dyncl = c_char_a.
  t019-koart = lv_koart.
  t019-umskz = lv_umsks.
  t019-buvar = lv_buvar.

*------ Check for A, W Transaction Types
  IF ' AW' NS t019-umskz.
    t019-umskz = c_char_x.
    translate t019-umskz to upper case.
  ENDIF.

*------ If Transaction Screen Variant is null
  IF  lv_umsks NE space
  AND lv_buzei EQ it_bseg-buzei.
    t019-umskz = c_char_w.
    translate t019-umskz to upper case.
  ENDIF.

*------ If the Document Status is 'S'
  IF  lv_umsks = c_char_w
  AND lv_bstat = c_char_s.
    t019-umskz = c_char_f.
    translate t019-umskz to upper case.
  ENDIF.

*------ If the Special G/L Ind. from BSEG is not Zero
  IF  lv_umskz &amp;lt;&amp;gt; space
  AND lv_bstat = c_char_s
  AND lv_buzid = c_char_p.
    t019-koart = space.
    t019-umskz = c_char_p.
    t019-buvar = space.
    translate t019-umskz to upper case.
  ENDIF.

*------ Read Table and if it not null, pass null to Transction Variant
  READ TABLE t019.
  IF sy-subrc NE 0.
    t019-buvar = space.
  ENDIF.

*------ Get the Screen Number
  SELECT SINGLE dynnr FROM t019
  INTO   lv_dynnr
  WHERE  dyncl = t019-dyncl
  AND    koart = t019-koart
  AND    umskz = t019-umskz
  AND    buvar = t019-buvar.

*------ Assign the Screen Number to table T019.
  t019-dynnr = lv_dynnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try to analyse the code and get understanding on the same. If you need any other detail, revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 09:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-for-fb02/m-p/5575781#M1271792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T09:05:19Z</dc:date>
    </item>
  </channel>
</rss>

