<?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: Copying pf-status from one custom program to other programatically..... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218350#M1206849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Set PF-Status '&amp;lt;Name&amp;gt;' of Program '&amp;lt;ProgName&amp;gt;'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 16:24:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-25T16:24:23Z</dc:date>
    <item>
      <title>Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218348#M1206847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement where I have to copy pf-status of one program in another based on ceratin configuration that user does. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Note: I know how to do it in se41, but thats not what I want.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was debugging SAP code to see how SAP does that. I found that the if pf-status of one program is to be copied in another program, then a particualar perform " copy_status_diff_progs_new" in program "SAPLSMPE" is used.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried to use trhe same in my code as follows. But it gives me ABAP dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constants: con_false value space.
data: t_prog like TRDIR-NAME,
      s_prog like TRDIR-NAME,
      t_status like RSMPE-STATUS,
      s_status like RSMPE-STATUS.

data: rcode type rcode.

s_prog = 'ZCUST1'.
s_status = 'REALINDEX'.


t_prog = 'ZCUST2'.
t_status = 'REALINDEX1'.


perform copy_status_diff_progs_new in program SAPLSMPE
                                      using con_false
                                      s_prog   t_prog
                                      s_status t_status
                                      rcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell if there is any function module or how can I modify above code so that pf-status can be copied programatically in my custom code.?&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;Jainam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218348#M1206847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218349#M1206848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the perform 'copy_status_diff_progs_new' that I am trying to call is in the Include 'LSMPEF07' of program 'SAPLSMPE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218349#M1206848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218350#M1206849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Set PF-Status '&amp;lt;Name&amp;gt;' of Program '&amp;lt;ProgName&amp;gt;'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218350#M1206849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218351#M1206850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gurpreeet for your reply. The pf-status that I want to set is for selection screen not a dialog program. So I have to set it at initilaization. I am doing as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report ZCUST2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt; set pf-status 'GUINDEX' OF PROGRAM 'ZCUST1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an error saying that user interface does note xist for ZCUST2.&lt;/P&gt;&lt;P&gt;&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;Jainam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218351#M1206850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218352#M1206851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, bad answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gustavo Campanelli on Feb 25, 2009 2:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218352#M1206851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copying pf-status from one custom program to other programatically.....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218353#M1206852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto&lt;DEL&gt;&amp;gt;Se41&lt;/DEL&gt;&amp;gt;In program name type---&amp;gt;Zcust1&lt;/P&gt;&lt;P&gt;Click on &lt;STRONG&gt;User interface&lt;/STRONG&gt; mention Zcust2 in the to program.&lt;/P&gt;&lt;P&gt;And copy it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Activate the user interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;Use BDC to simulate the above functionality .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 16:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copying-pf-status-from-one-custom-program-to-other-programatically/m-p/5218353#M1206852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T16:40:48Z</dc:date>
    </item>
  </channel>
</rss>

