<?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: Write values in SAP screen fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167896#M996401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Franc but your method won't do for many cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using WS_EXECUTE (deprecated by the way) it assumes a) you are using WINDOWS, and b) you are actually logged on to the SAP system at your workstation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A C ++ or JAVA (or other language) program might be running from a totally separate application such as an old SIEBEL database / or whatever. The database needs to send / retrieve data from the remote SAP system. This is exactly what the BAPI calls are designed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application calling the BAPI doesn't have to be running on Windows either.  The call could come from MySQL running say on a remote Linux server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Of course if you ARE logged on then the method will still work but the BAPI call doesn't require you to be logged on to the presentation server. The WS-EXECUTE method means you HAVE to be logged on and of course won't then work in Batch).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 13:44:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T13:44:42Z</dc:date>
    <item>
      <title>Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167891#M996396</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;We have a requirement where we need to populate the values on SAP Screen fields using an external application like c++ or Java running on the presentation server. Is this possible? Please share your thoughts on the approach if possible.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 12:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167891#M996396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167892#M996397</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;as per my knowlege it is possible but for this more appropiate is to cinsult to EPor XI consultant..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 12:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167892#M996397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T12:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167893#M996398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is possible using the system routines. Here the test1.bat is a test batch file in the C:\ path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report ztest1.      
 call function 'WS_EXECUTE'          exporting        
     program        = 'C:\Test1.bat'         
 exceptions             frontend_error = 1      
       no_batch       = 2           
  prog_not_found = 3             illegal_option = 4     
        others         = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also class CL_GUI_FRONTEND_SERVICES has execute method.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Franc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Franc on Jul 22, 2008 2:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 13:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167893#M996398</guid>
      <dc:creator>former_member226999</dc:creator>
      <dc:date>2008-07-22T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167894#M996399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franc - Thanks for the input. Unfortunately we cannot store the details as it contains sensitive information. We need to write it directly on the SAP screen. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 13:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167894#M996399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167895#M996400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a BAPI -- this will be acessible by your external C++ / Java or whatever program. Ensure your BAPI is RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass it parameters -- name of screen field you wish to populate and the values inside your BAPI.&lt;/P&gt;&lt;P&gt;Use FM DYNP_VALUES_UPDATE or possibly FM DYNP_UPDATE_FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't done this for a while but one of these Function modules should be able to update the screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good thing about BAPI's is that the interface is designed so they can be called by external (i.e non SAP) programs such as C++ etc. In fact that is EXACTLY what a BAPI is designed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to check the syntax for your external application program depending on whether it's C++ or JAVA  but both C++ and JAVA can call a BAPI directly (assuming the network connections are all in place).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course another way is to pass standard parameters to your SAP program and in the initialisation stage set the sensitive fields as Non-display or invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still use the BAPI of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you won't be able to submit a SAP program directly from the BAPI just create a function module which does the submit as a get around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget techniques like writing to a dataset etc. Apart from the security implications you should now be using the newer supported interfaces like BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 13:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167895#M996400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167896#M996401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Franc but your method won't do for many cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using WS_EXECUTE (deprecated by the way) it assumes a) you are using WINDOWS, and b) you are actually logged on to the SAP system at your workstation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A C ++ or JAVA (or other language) program might be running from a totally separate application such as an old SIEBEL database / or whatever. The database needs to send / retrieve data from the remote SAP system. This is exactly what the BAPI calls are designed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application calling the BAPI doesn't have to be running on Windows either.  The call could come from MySQL running say on a remote Linux server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Of course if you ARE logged on then the method will still work but the BAPI call doesn't require you to be logged on to the presentation server. The WS-EXECUTE method means you HAVE to be logged on and of course won't then work in Batch).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 13:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167896#M996401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Write values in SAP screen fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167897#M996402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your inputs are truly valuable for us. But the only issue is we need to populate the fields of SAP screen currently active and displayed on the presentation server without any updates to the database. I believe BAPI may be updating the database directly. Is there a work around to this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 16:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-values-in-sap-screen-fields/m-p/4167897#M996402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T16:52:51Z</dc:date>
    </item>
  </channel>
</rss>

