<?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: Function to Get Menu path in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074479#M95849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not directly - and I never found a transaction, where only one menue-path exists, there were always several hits.&lt;/P&gt;&lt;P&gt;But maybe you want to put parts of the following coding into a own FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TEXT_UPPER_CASE = TEXT.
TRANSLATE TEXT_UPPER_CASE TO UPPER CASE.

select * from smensapnew into table i_smensapnew.
select * from smensapt into table i_smensapt where spras = sy-langu.

DESCRIBE TABLE I_SMENSAPNEW LINES LIN.
IF LIN = 0.
  MESSAGE S265(SF).
ENDIF.
SORT I_SMENSAPT BY OBJECT_ID.
SORT I_SMENSAPNEW BY OBJECT_ID.

LOOP AT I_SMENSAPNEW.
  CLEAR SWITCH.
  IF I_SMENSAPNEW-REPORT = TEXT
                               OR I_SMENSAPNEW-REPORT = TEXT_UPPER_CASE.
    SWITCH = 'X'.
  ENDIF.
  READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                          BINARY SEARCH.
  IF SY-SUBRC NE 0.
    I_SMENSAPT-TEXT = '???'.
  ENDIF.
  SEARCH I_SMENSAPT-TEXT FOR TEXT.
  IF SY-SUBRC = 0.
    SWITCH = 'X'.
  ENDIF.

  IF SWITCH = ' '.  CONTINUE. EXIT.  ENDIF.

  READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                          BINARY SEARCH.
  IF SY-SUBRC NE 0.
    I_SMENSAPT-TEXT = '???'.
  ENDIF.
  WRITE: /  TEXT-015, AT 20 I_SMENSAPNEW-REPORT(20),
                            AT 40 I_SMENSAPT-TEXT(40).
  FORMAT INTENSIFIED OFF.
  DO.
    READ TABLE I_SMENSAPNEW WITH KEY OBJECT_ID = I_SMENSAPNEW-PARENT_ID
                                                          BINARY SEARCH.
    IF SY-SUBRC NE 0. EXIT. ENDIF.
    IF SY-SUBRC EQ 0.
      READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                                          BINARY SEARCH.
    ELSE.
      I_SMENSAPT-TEXT = '???'.
    ENDIF.
    IF I_SMENSAPNEW-REPORTTYPE = SPACE.
      CLEAR I_SMENSAPNEW-REPORT.
    ENDIF.
    WRITE: / TEXT-016, AT 20 I_SMENSAPNEW-REPORT(20),
                                  AT 40 I_SMENSAPT-TEXT(40).
  ENDDO.
  FORMAT INTENSIFIED ON.
  ULINE.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2005 14:48:55 GMT</pubDate>
    <dc:creator>christian_wohlfahrt</dc:creator>
    <dc:date>2005-12-09T14:48:55Z</dc:date>
    <item>
      <title>Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074477#M95847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any function in abap to get a menu path &lt;/P&gt;&lt;P&gt;(File-&amp;gt;open)in a particular screen,given the fcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 14:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074477#M95847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074478#M95848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I'm aware of.  You could try building your own function module reading the specific db tables which hold this data.  &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>Fri, 09 Dec 2005 14:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074478#M95848</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-09T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074479#M95849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not directly - and I never found a transaction, where only one menue-path exists, there were always several hits.&lt;/P&gt;&lt;P&gt;But maybe you want to put parts of the following coding into a own FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TEXT_UPPER_CASE = TEXT.
TRANSLATE TEXT_UPPER_CASE TO UPPER CASE.

select * from smensapnew into table i_smensapnew.
select * from smensapt into table i_smensapt where spras = sy-langu.

DESCRIBE TABLE I_SMENSAPNEW LINES LIN.
IF LIN = 0.
  MESSAGE S265(SF).
ENDIF.
SORT I_SMENSAPT BY OBJECT_ID.
SORT I_SMENSAPNEW BY OBJECT_ID.

LOOP AT I_SMENSAPNEW.
  CLEAR SWITCH.
  IF I_SMENSAPNEW-REPORT = TEXT
                               OR I_SMENSAPNEW-REPORT = TEXT_UPPER_CASE.
    SWITCH = 'X'.
  ENDIF.
  READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                          BINARY SEARCH.
  IF SY-SUBRC NE 0.
    I_SMENSAPT-TEXT = '???'.
  ENDIF.
  SEARCH I_SMENSAPT-TEXT FOR TEXT.
  IF SY-SUBRC = 0.
    SWITCH = 'X'.
  ENDIF.

  IF SWITCH = ' '.  CONTINUE. EXIT.  ENDIF.

  READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                          BINARY SEARCH.
  IF SY-SUBRC NE 0.
    I_SMENSAPT-TEXT = '???'.
  ENDIF.
  WRITE: /  TEXT-015, AT 20 I_SMENSAPNEW-REPORT(20),
                            AT 40 I_SMENSAPT-TEXT(40).
  FORMAT INTENSIFIED OFF.
  DO.
    READ TABLE I_SMENSAPNEW WITH KEY OBJECT_ID = I_SMENSAPNEW-PARENT_ID
                                                          BINARY SEARCH.
    IF SY-SUBRC NE 0. EXIT. ENDIF.
    IF SY-SUBRC EQ 0.
      READ TABLE I_SMENSAPT WITH KEY OBJECT_ID = I_SMENSAPNEW-OBJECT_ID
                                                          BINARY SEARCH.
    ELSE.
      I_SMENSAPT-TEXT = '???'.
    ENDIF.
    IF I_SMENSAPNEW-REPORTTYPE = SPACE.
      CLEAR I_SMENSAPNEW-REPORT.
    ENDIF.
    WRITE: / TEXT-016, AT 20 I_SMENSAPNEW-REPORT(20),
                                  AT 40 I_SMENSAPT-TEXT(40).
  ENDDO.
  FORMAT INTENSIFIED ON.
  ULINE.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 14:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074479#M95849</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-12-09T14:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074480#M95850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function CACS_APPL_GET_SET must be called to determine the current application.&lt;/P&gt;&lt;P&gt;If you want to check several InfoSets in a single step, got to the initial screen of the InfoSets component, select the InfoSets that you want to check, and choose the menu path Goto -&amp;gt; More Functions -&amp;gt; Check and Generate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagarajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 14:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074480#M95850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074481#M95851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use transactions...&lt;/P&gt;&lt;P&gt;search_sap_menu&lt;/P&gt;&lt;P&gt;search_user_menu&lt;/P&gt;&lt;P&gt;This will show the menu access sequence for the transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 14:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074481#M95851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T14:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074482#M95852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually,For any given abap screen with a pftstatus,by&lt;/P&gt;&lt;P&gt;mentioning the function code,i need to get the menupath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074482#M95852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074483#M95853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PF-STATUS for a particular screen of a program is a runtime attribute. You will be able to assign some pf-status, enable or disable some function keys during runtime. I don't think you can get that information anywhere. Try these function modules: RS_CUA_ACTIVE_FUNCTION_DIALOG&lt;/P&gt;&lt;P&gt;RS_CUA_GET_STATUS_FUNCTIONS&lt;/P&gt;&lt;P&gt;RS_CUA_GET_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 17:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074483#M95853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function to Get Menu path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074484#M95854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you mixing up function code and transaction code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In status of screen function codes are defined - but they are not linked to a menu (EXIT, BACK, CANC,...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction codes can be part of several menues (MM01, WB01, ...), but seldem they are part of screen status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's your need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 20:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-to-get-menu-path/m-p/1074484#M95854</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-12-09T20:42:34Z</dc:date>
    </item>
  </channel>
</rss>

