<?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: CO02 components in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874260#M1477620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done this sort of requirement in STATTEXT (In SMOD) . (Though the purpose is different for this exit but I was not able to find out any other).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disabled the BOM and Routing screen based on the user name. You have to modify the code according to your requirement and user names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SYSTEM_STATUS_LINE_EXP = SYSTEM_STATUS_LINE.
USER_STATUS_LINE_EXP   = USER_STATUS_LINE.
IF ( SY-DYNNR = '0100' OR SY-DYNNR = '0120' ) AND ( SY-UNAME = 'PRD01' OR SY-UNAME = 'PRD02' OR SY-UNAME = 'ABAP' )
   AND ( SY-TCODE = 'CO02' OR SY-TCODE = 'CO01' ).
*BREAK-POINT.
  IF ( SY-UCOMM EQ 'VGUE' OR SY-UCOMM = 'KPU2' ).
    FIELD-SYMBOLS : &amp;lt;FT&amp;gt; TYPE ANY,
                    &amp;lt;FT1&amp;gt; TYPE ANY.
    DATA : FIELD(50).
    DATA : ITAB1 TYPE RC27S.
    DATA : AUFNR TYPE AUFNR,
           AUART TYPE AUFART.
      UNASSIGN : &amp;lt;FT&amp;gt;,&amp;lt;FT1&amp;gt;.
      CLEAR FIELD.

      IF SY-UCOMM = 'VGUE'.
        MOVE '(SAPLCOVG)RC27S' TO FIELD.
        ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        IF SY-SUBRC NE 0.
           MOVE '(SAPLCOMK)RC27S' TO FIELD.
           ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        ENDIF.
      ELSEIF SY-UCOMM = 'KPU2'.
        MOVE '(SAPLCOMK)RC27S' TO FIELD.
        ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        IF SY-SUBRC NE 0.
           MOVE '(SAPLCOVG)RC27S' TO FIELD.
           ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        ENDIF.

      ENDIF.
      IF SY-SUBRC = 0.
        ITAB1 = &amp;lt;FT&amp;gt;.
        CLEAR FIELD.

        ITAB1-AKTYP_PIC = 'A'.
        ITAB1-AKTYP     = 'A'.
        ASSIGN ITAB1 TO &amp;lt;FT1&amp;gt;.
        &amp;lt;FT&amp;gt; = &amp;lt;FT1&amp;gt;.
      ENDIF.
      UNASSIGN : &amp;lt;FT1&amp;gt;.
      CLEAR : ITAB1.
    ENDIF.
ENDIF.

*ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 May 2010 07:23:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-19T07:23:47Z</dc:date>
    <item>
      <title>CO02 components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874259#M1477619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When typed co02, we can change the process order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i need is that everyuser should not be able to change the values in this transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some users we want to disable to change the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to control this fields to seem as display mode? Any exit etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: after provided process order and entered, you can use F6 to forward for components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 06:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874259#M1477619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T06:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: CO02 components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874260#M1477620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done this sort of requirement in STATTEXT (In SMOD) . (Though the purpose is different for this exit but I was not able to find out any other).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I disabled the BOM and Routing screen based on the user name. You have to modify the code according to your requirement and user names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SYSTEM_STATUS_LINE_EXP = SYSTEM_STATUS_LINE.
USER_STATUS_LINE_EXP   = USER_STATUS_LINE.
IF ( SY-DYNNR = '0100' OR SY-DYNNR = '0120' ) AND ( SY-UNAME = 'PRD01' OR SY-UNAME = 'PRD02' OR SY-UNAME = 'ABAP' )
   AND ( SY-TCODE = 'CO02' OR SY-TCODE = 'CO01' ).
*BREAK-POINT.
  IF ( SY-UCOMM EQ 'VGUE' OR SY-UCOMM = 'KPU2' ).
    FIELD-SYMBOLS : &amp;lt;FT&amp;gt; TYPE ANY,
                    &amp;lt;FT1&amp;gt; TYPE ANY.
    DATA : FIELD(50).
    DATA : ITAB1 TYPE RC27S.
    DATA : AUFNR TYPE AUFNR,
           AUART TYPE AUFART.
      UNASSIGN : &amp;lt;FT&amp;gt;,&amp;lt;FT1&amp;gt;.
      CLEAR FIELD.

      IF SY-UCOMM = 'VGUE'.
        MOVE '(SAPLCOVG)RC27S' TO FIELD.
        ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        IF SY-SUBRC NE 0.
           MOVE '(SAPLCOMK)RC27S' TO FIELD.
           ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        ENDIF.
      ELSEIF SY-UCOMM = 'KPU2'.
        MOVE '(SAPLCOMK)RC27S' TO FIELD.
        ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        IF SY-SUBRC NE 0.
           MOVE '(SAPLCOVG)RC27S' TO FIELD.
           ASSIGN (FIELD) TO &amp;lt;FT&amp;gt;.
        ENDIF.

      ENDIF.
      IF SY-SUBRC = 0.
        ITAB1 = &amp;lt;FT&amp;gt;.
        CLEAR FIELD.

        ITAB1-AKTYP_PIC = 'A'.
        ITAB1-AKTYP     = 'A'.
        ASSIGN ITAB1 TO &amp;lt;FT1&amp;gt;.
        &amp;lt;FT&amp;gt; = &amp;lt;FT1&amp;gt;.
      ENDIF.
      UNASSIGN : &amp;lt;FT1&amp;gt;.
      CLEAR : ITAB1.
    ENDIF.
ENDIF.

*ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 07:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874260#M1477620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T07:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: CO02 components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874261#M1477621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shiba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i typed co02, even if i put a breakpoint at the very beginning of exit, &lt;/P&gt;&lt;P&gt;STATTEXT(smod) &amp;gt; EXIT_SAPLBSVA_001 and break point in this f module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it was not possible to debug this exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a process order number and tried to see what is happening with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have activeted the exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 08:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874261#M1477621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T08:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: CO02 components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874262#M1477622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I checked in my system (ECC 6.0). It is triggering for CO02 while I gave the order number and press enter (and also in the subsequent screen flow like BOM or routing).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the exit (as well as the include in function module ) is activated properly or not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 08:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874262#M1477622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T08:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: CO02 components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874263#M1477623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shiba, thanks for your helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i forgot to ask important part of this problem, how can i disable input property of screen 0120 when sy-ucomm KPU2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible in this exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 10:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co02-components/m-p/6874263#M1477623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T10:15:46Z</dc:date>
    </item>
  </channel>
</rss>

