<?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 No-Display parameter on a BDC session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569331#M257034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC sessions are not my speciality so I hope this makes sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a program that creates a batch job via BDC.  The BDC needs to enter data into a parameter field on the selection screeen of the program it applies to.  However, the program that is 'called' from the BDC session can also be run by users and we do not want the parameter to be available to them - only to the batch job.  We have therefore created the parameter with the NO-DISPLAY option but this causes an error saying that the the field cannot be found.  If we remove the NO-DISPLAY option then it works fine.  Presumably as the BDC session emulates a user it is subject to the same restrictions as an ordinary user.  Does anybody know of a way of solving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 09:20:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T09:20:29Z</dc:date>
    <item>
      <title>No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569331#M257034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC sessions are not my speciality so I hope this makes sense!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a program that creates a batch job via BDC.  The BDC needs to enter data into a parameter field on the selection screeen of the program it applies to.  However, the program that is 'called' from the BDC session can also be run by users and we do not want the parameter to be available to them - only to the batch job.  We have therefore created the parameter with the NO-DISPLAY option but this causes an error saying that the the field cannot be found.  If we remove the NO-DISPLAY option then it works fine.  Presumably as the BDC session emulates a user it is subject to the same restrictions as an ordinary user.  Does anybody know of a way of solving this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569331#M257034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569332#M257035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the case of batch mode,the system variable sy-batch will have value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if sy-batch eq 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = &amp;lt;paramter name&amp;gt;.&lt;/P&gt;&lt;P&gt;screen-active = '0'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;screen-active = '1'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569332#M257035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569333#M257036</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;I think you can use the system variable SY-BINPT and SY_BATCH before setting the parameter for no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569333#M257036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569334#M257037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   try below code&lt;/P&gt;&lt;P&gt;         if sy-batch = 'X'&lt;/P&gt;&lt;P&gt;           loop at screen.&lt;/P&gt;&lt;P&gt;             if screen-name = 'P_TEST'.&lt;/P&gt;&lt;P&gt;               screen-visible = 0.&lt;/P&gt;&lt;P&gt;               modify screeen.&lt;/P&gt;&lt;P&gt;           endloop.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569334#M257037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569335#M257038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can try out here is that U can try to modify the screen depending on the way ur executing the program. U can do this in the event AT SELECTION SCREEN OUTPUT.This event block allows you to modify the selection screen directly before it is displayed..Here's a piece of code from SAP help which may give u some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: TEST1(10) MODIF ID SC1,&lt;/P&gt;&lt;P&gt;            TEST2(10) MODIF ID SC2,&lt;/P&gt;&lt;P&gt;            TEST3(10) MODIF ID SC1,&lt;/P&gt;&lt;P&gt;            TEST4(10) MODIF ID SC2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  IF SCREEN-GROUP1 = 'SC1'.&lt;/P&gt;&lt;P&gt;    SCREEN-INVISIBLE = '1'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    CONTINUE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF SCREEN-GROUP1 = 'SC2'.&lt;/P&gt;&lt;P&gt;    SCREEN-INVISIBLE = '0'.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569335#M257038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569336#M257039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do u have a tcode for this program????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 09:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569336#M257039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T09:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569337#M257040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create a variant for the particular abap and call it from BDC using the defined variant. I think that should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I just tried it and it does work..first you need to take out the no-display parameter and create the variant..and later introduce it again.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anurag Bankley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569337#M257040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: No-Display parameter on a BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569338#M257041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had thought of using a variant but the data was going to change each time and as Anurag pointed out would still require ectivating de-activating the field anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end I opted for the loop within the At selection-screen output event.  I used most of the solution provided by Varun as specifying screen-name = 'P_TEST' did not hide the parameter label. However, I included an IF statement checking the value of sy-binpt ( = 'X' ) and did screen-active = '1' instead of -invisible = '1', which just sets the filed to have a '*' input mask.  Here is my actual code for reference:.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: p_test type c MODIF ID SC1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT screen.

  IF screen-group1 = 'SC1'.

    IF sy-binpt = 'X'.

      screen-active = '0'.
      MODIFY screen.

    ENDIF.

  ENDIF.

ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/no-display-parameter-on-a-bdc-session/m-p/1569338#M257041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T10:51:43Z</dc:date>
    </item>
  </channel>
</rss>

