<?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: again Batch Input for Transaction MB1B in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153353#M749916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;you solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and a happy new Year,&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 12:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-27T12:49:25Z</dc:date>
    <item>
      <title>again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153348#M749911</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;I figured out that the solution for my program I wanted to create is not working &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I tried a new way to program the batch Input for the transaction MB1B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, I want to write my the material number (matnr) and the batch number (charg) in this transaction.&lt;/P&gt;&lt;P&gt;Both numbers are stored in an internal table (looks like the following).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr         charg&lt;/P&gt;&lt;P&gt;111000      10000000000&lt;/P&gt;&lt;P&gt;112001      10532432000&lt;/P&gt;&lt;P&gt;133013      13423423512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM07M' '0400'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM07M-WERKS'&lt;/P&gt;&lt;P&gt;                              '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'XFULL'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM07M-WVERS3'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Loop                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM07M' '0421'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-MATNR'&lt;/P&gt;&lt;P&gt;                              itab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-CHARG'&lt;/P&gt;&lt;P&gt;                              itab-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'MB1B' using BDC mode 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Dynpro-Selection for Batch Input                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDC.&lt;/P&gt;&lt;P&gt;  BDC-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDC-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDC-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDC.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;    CLEAR BDC.&lt;/P&gt;&lt;P&gt;    BDC-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDC-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDC.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is, every time I try to run the program, it says "the field MSEG-CHARG does not exist on the screen 0421".&lt;/P&gt;&lt;P&gt;In the batch input recording the field is called MSEG-CHARG(01)  - the (01) is for the line I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am searching for a possibility to call this field dynamically?!?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-MATNR(n)'&lt;/P&gt;&lt;P&gt;                              itab-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with n as a counter?!?!&lt;/P&gt;&lt;P&gt;Can anybody help me out with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153348#M749911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153349#M749912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to do that programatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u've charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use concatenate 'charg(' count ')' into string. and pass this. increment count &amp;amp; use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ANUPAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153349#M749912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153350#M749913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anupam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;Could you provide me an example how you mean that? &lt;/P&gt;&lt;P&gt;How do you like to assign this string to the field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'charg(' count ')'  - if I do that, something like this should be the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;charg1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where in the following code would you pass it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSEG-CHARG'&lt;/P&gt;&lt;P&gt;                              itab-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153350#M749913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153351#M749914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;concatenate 'mseg-charg('    count    ')' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if count is 01 then after concatenate it'll be mseg-charg(01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to generate count by program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ANUPAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153351#M749914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153352#M749915</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;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_charg(40).&lt;/P&gt;&lt;P&gt;  CONCATENATE 'LIPS-CHARG'    '(' w_x ')' INTO w_charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using w_charg itab-charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 12:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153352#M749915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: again Batch Input for Transaction MB1B</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153353#M749916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;you solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards and a happy new Year,&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 12:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/again-batch-input-for-transaction-mb1b/m-p/3153353#M749916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T12:49:25Z</dc:date>
    </item>
  </channel>
</rss>

