<?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: Reading screen fields during batch input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236734#M141041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also,  it is not possible to "read" values from the screen during BDC processing.  You must know what the value is before execution of the BDC and handle it accordingly in your recording.   As suggested, it is better to do BAPI anyway.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2006 01:47:59 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-04-03T01:47:59Z</dc:date>
    <item>
      <title>Reading screen fields during batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236731#M141038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a batch upload program using the transaction FB50 and one of the screens, SAPMF05A, displays multiple lines of different tax amounts which I need to populate based on the displayed tax codes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have been trying to use FM DYNP_VALUES_READ to read the values of the screen fields but never succeeded in getting any proper return values, L_VALUE. Below is the code block, what am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE VI_ROW_COUNT TO VC_ROWNUM.&lt;/P&gt;&lt;P&gt;        L_LNO = STRLEN( VC_ROWNUM ).&lt;/P&gt;&lt;P&gt;        IF  L_LNO &amp;lt;= 1.&lt;/P&gt;&lt;P&gt;          CONCATENATE '0' VC_ROWNUM INTO VC_ROWNUM.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONCATENATE 'BSET-MWSKZ(' VC_ROWNUM ')' INTO L_FLD.&lt;/P&gt;&lt;P&gt;        CONDENSE L_FLD NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        T_DF-FIELDNAME = L_FLD.&lt;/P&gt;&lt;P&gt;        APPEND T_DF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        L_REPID =  SY-REPID.&lt;/P&gt;&lt;P&gt;        L_SCRNR =  SY-DYNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       dyname                         = L_REPID&lt;/P&gt;&lt;P&gt;       dynumb                         = L_SCRNR&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       dynpfields                     = T_DF&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_abapworkarea           = 1&lt;/P&gt;&lt;P&gt;      invalid_dynprofield            = 2&lt;/P&gt;&lt;P&gt;      invalid_dynproname             = 3&lt;/P&gt;&lt;P&gt;      invalid_dynpronummer           = 4&lt;/P&gt;&lt;P&gt;      invalid_request                = 5&lt;/P&gt;&lt;P&gt;      no_fielddescription            = 6&lt;/P&gt;&lt;P&gt;      invalid_parameter              = 7&lt;/P&gt;&lt;P&gt;      undefind_error                 = 8&lt;/P&gt;&lt;P&gt;      double_conversion              = 9&lt;/P&gt;&lt;P&gt;      stepl_not_found                = 10&lt;/P&gt;&lt;P&gt;      OTHERS                         = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_DF WITH KEY FIELDNAME = L_FLD transporting FIELDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;     L_VALUE = T_DF-FIELDVALUE.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     L_VALUE = '999'.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236731#M141038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-31T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading screen fields during batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236732#M141039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Goh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FB50 is SAP enjoy transaction and this type of transaction is not suitable for BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use a standard program &amp;lt;b&amp;gt;RFBIBL00&amp;lt;/b&amp;gt; or create a BDC program for FB01 transaction instead of FB50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other alternative is using the following BAPI. &lt;/P&gt;&lt;P&gt;BAPI_ACC_DOCUMENT_POST&lt;/P&gt;&lt;P&gt;BAPI_ACC_GL_POSTING_POST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 06:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236732#M141039</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-31T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reading screen fields during batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236733#M141040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry,&lt;/P&gt;&lt;P&gt;Will explore the alternatives suggested. Thanks for the reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2006 01:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236733#M141040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-03T01:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading screen fields during batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236734#M141041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also,  it is not possible to "read" values from the screen during BDC processing.  You must know what the value is before execution of the BDC and handle it accordingly in your recording.   As suggested, it is better to do BAPI anyway.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2006 01:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-screen-fields-during-batch-input/m-p/1236734#M141041</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-03T01:47:59Z</dc:date>
    </item>
  </channel>
</rss>

