<?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: MB1B BDC Program Problem. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580706#M262033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the recording in client 220 and see if the screen appears as some times the config may be different or the depending on data there might be dynamic screens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Sep 2006 13:22:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-29T13:22:12Z</dc:date>
    <item>
      <title>MB1B BDC Program Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580704#M262031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written a BDC program for transaction code MB1B. The program will search the table MARD for plants PRD1 and PRD2. The data is stored in an internal table. All the stocks in PRD1 and PRD2 are then transferred to other plants based on some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that it runs absolutely fine in MODE 'A', however when I run it in background it gives an error -"No batch input data for screen SAPLKACB 0002". This screen does not display when we are recording the transaction MB1B in SHDB. Any idea why this error is occuring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have recorded the transaction in client 200 - Development Client. The program is running in Client 220 - Test as there is no data in the client 200 to test it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 13:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580704#M262031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: MB1B BDC Program Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580705#M262032</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;   Generally in BDC you should be able to see the small box which displays the ok code. If it doesnot appear automatically for even a single screen in mode 'A' that means there is a problem with your recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Also some screen will look different in BDC ( for example XD02 ).The comparison  has to be made during recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Please reward useful answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 13:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580705#M262032</guid>
      <dc:creator>sathish_perumal</dc:creator>
      <dc:date>2006-09-29T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: MB1B BDC Program Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580706#M262033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the recording in client 220 and see if the screen appears as some times the config may be different or the depending on data there might be dynamic screens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 13:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580706#M262033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T13:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: MB1B BDC Program Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580707#M262034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the BAPI instead,  it will save you from such headaches. Here is an example.  You will need to modify for you particular requirement, I assume you are using movement type 301?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


* Structures for BAPI
data: gm_header  type bapi2017_gm_head_01.
data: gm_code    type bapi2017_gm_code.
data: gm_headret type bapi2017_gm_head_ret.
data: gm_item    type table of
                 bapi2017_gm_item_create with header line.
data: gm_return  type bapiret2 occurs 0 with header line.
data: gm_retmtd  type bapi2017_gm_head_ret-mat_doc.

clear: gm_return, gm_retmtd. refresh gm_return.

* Setup BAPI header data.
gm_header-pstng_date = sy-datum.
gm_header-doc_date   = sy-datum.
gm_code-gm_code      = '06'.                                " MB11

* Write 971 movement to table
clear gm_item.
move '971'                 to gm_item-move_type     .
move '000000000040000100'  to gm_item-material.
move '1'     to gm_item-entry_qnt.
move 'EA'    to gm_item-entry_uom.
move '0004'  to gm_item-plant.
move '4999'  to gm_item-stge_loc.
move '0901'   to gm_item-move_reas.


append gm_item.

* Call goods movement BAPI
call function 'BAPI_GOODSMVT_CREATE'
     exporting
          goodsmvt_header  = gm_header
          goodsmvt_code    = gm_code
     importing
          goodsmvt_headret = gm_headret
          materialdocument = gm_retmtd
     tables
          goodsmvt_item    = gm_item
          return           = gm_return.

if not gm_retmtd is initial.
  commit work and wait.
  call function 'DEQUEUE_ALL'.
else.
  commit work and wait.
  call function 'DEQUEUE_ALL'.
endif.

write:/ gm_retmtd.

loop at gm_return.
  write:/ gm_return.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 13:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580707#M262034</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-29T13:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: MB1B BDC Program Problem.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580708#M262035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check OSS note 521523.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2006 13:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb1b-bdc-program-problem/m-p/1580708#M262035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-29T13:32:18Z</dc:date>
    </item>
  </channel>
</rss>

