To change the standard program

Hi all,
My reqmt is to change the GUI status and interface of the transaction MB26. MB26 uses the report PP_PICK_LIST to execute. The current GUI status and interface are,
GUI Interface : SAPLCOWB
GUI Status : STATUS_MMIM
I have coded in the exit EXIT_SAPLCOWB_001 as,
TYPES: reftype TYPE REF TO data.
DATA: lty_ref TYPE reftype.
DATA: ls_control TYPE cowb_ctrl,
      ls_prog TYPE progname.
FIELD-SYMBOLS: <lfs_control> TYPE ANY,
               <lfs_prog> TYPE ANY,
               <lfs_prog1> TYPE ANY.
GET REFERENCE OF ls_control INTO lty_ref.
ASSIGN lty_ref->* TO <lfs_control>.
CHECK sy-subrc = 0.
ASSIGN ('(SAPLCOWB)G_COWB_CTRL') TO <lfs_control>.
CHECK sy-subrc = 0.
ls_control = <lfs_control>.
ls_control-pf_status = 'ZSTATUS_MMIM'.
<lfs_control> = ls_control.
UNASSIGN <lfs_control>.
to change the pf status of the transaction MB26.
Now what I need to do is to change the standard program from SAPLCOWB to ZSAPLCOWB.
For it is there anyway to change in the enhancement like the pf status or can we change in the standard program PP_PICK_LIST.
I used sy-repid also, but its giving me a dump. So provide a solution other than that.

Dear Sharan,
You can use a System Field  SY-CPROG which gives you the Program Name.
This Varibale can be used to change the Program Name.
Try this Hope this will help you.
But i think this you would using to only call the PF-STATUS of this New Z Program.
Hope this helps.
Encourage others in answering your queries by suitably rewarding them
Thanks
Venugopal

Similar Messages

  • How to change call to the function module in the standard program

    Hi Guru,
    My requairment is to create the new Z function module  ZJ_1B_IM_NF_DOCUMENT_FUNCTION in the MM07MFJ1 program.
    I have created the Z Funtion module,
    plz provide me the info how to change the call to the new custom FM from the standard program.
    Points will be given to the ans.

    You use SE38 to change out the code.  When you try and change it you will get a popup asking you for a Key, since you are changing SAP Code.  If you have a Developers key you have to go to the SAP Service Marketplace and tell SAP that you are changing this code in order to get they key.  After this every time you do support packs you run the risk of this getting overlaid and you will have to change it back, also if you have a problem and SAP sees that you customized this code they probably won't spend any time on your problem.

  • What is module pool programming?how we can change the standard screen?

    Hi EXPERTS
    what is module pool programming?how we can change the standard screen using module pool programming ?
    please explain with example.

    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    regards,
    venkat.

  • What are the bad Effect of changing sap Standard Programs?

    Hi all,
    I want to know what are the Bad effects of changing SAP standard screen and reports.
    I need a bit theoretical Explanation.
    Please suggest me some good and effective matter link.
    Regards

    Hi sonal,
    If I write the theory here ,might be its going to mess up here.mm..try this link.There are good information in changing a standard functionality.
    http://software.feedfury.com/content/28535477-changing_the_sap_standard.html
    2. I can tell one of like ...
    To change a standard program or functionality or standard field in  sap,we have to go for related user,customer scvren exit etc.
    We have to find the right exit to that particular transaction and do our customized coding there.We have to be very careful,since we are going to change the standard exit.this user exit will be used in 'N' number of other screens and transaction.So when you change , that change will /may affect the other transactions also.If you corrupt that particular exit,there are chances for that transaction to go for a toss.I have experianced this personally.when I was working on particular userxit and editing,that particular transaction was not working properly for others,since i was doing from my login,everyone came to my place and started bugging me to stop working on it:)
    Regards,
    SanthoshSivanathan

  • Addition of a new column to the standard program

    Hi Friends,
    I have a requirement to add a new column Group Key to the existing report a standard program RFD0PR10 and display the fields based on the group key .
    The standard program uses methods write _header etc...
    can any one guide me in this issue.

    hai naveen,
                        For standard tables, it is possible to add new columns by using either .include or
    Append structures. but,it is not possible to change key of the existing of table .
    if useful, reward points
    bye
    G.V.K.Prasad

  • How to change the standard purchase order ???

    Hi,
       i am trying to change the output form of standard purchase order.for that i copied the standard script/form to my own created script/smart form.i modified it as per user requirement and i have given the same name in NACE>EF>output type>NEU>processing routine..in place of the standard one.and i have also activated the standard program i.e. SAPFM06P.but when i am going to me22n and print preview the previous form format is coming...
    if i will create my own smartform then it is difficult for mapping all the fields to me22n...user can not input other fields in me21n if i am giving my print program name in NACE...
    can anybody please help me...????
    pls reply soon,....
    Regards
    Amayika

    Hi,
    Are you sure you have set it for medium 1 (print output) and specify the program, FORM routine, and the Form/Script correctly?
    Another reason is the output type is not set up yet at the PO. Go to ME22N and click Messages button (next to Print preview button) and check whether your output type is already there. If it is not, then create one.
    Please also check that you have copy client the form/script from development client to test client (SAPScript need this but no need for Smartform) using T-Code SCC1. And the config is configured properly in test client.
    Regards,
    Teddy

  • Reversal of Changes to Standard program HAP_DOCUMENT_BODY

    Hi there,
    Yesterday we made changes to HAP_DOCUMENT_BODY web dynpro component.
    We have added one Interface method which will be called from one of the method in HAP_MAIN_DOCUMENT component controller.
    This change served our purpose. The purpose is to change page dynamically when there is a new page element. Now we don't want that through standard program change. We have decided to do by enhancement. We also did some enhancement before we have modified the standard program.
    I have tried to reset to original through SE95 transaction code and activated. But when I go and check HAP_DOCUMENT_BOY, Method still exist. 
    Actions at SE95
    Can anybody help on this ?
    Regards
    Venkat.O

    Use Leave Program after sending mail

  • How to change the standard layout sets in ALV List

    Hi Gurus,
    How to change the standard layout sets in ALV list.
    Is there any standard program ? or specific way to acheive this?
    Kindly drop some clues?Every valuable clues rewarded more points........
    Thanks in Advance,
    Dharani

    Hello Dharani
    All required function modules can be found in function group SLVC (assuming that you are using OO-based ALV or, at least, fm REUSE_ALV_GRID_DISPLAY_LVC):
    LVC_VARIANT_DEFAULT_GET (Read default display variant (description only, w/o field catalog))
    LVC_VARIANT_EXISTENCE_CHECK
    LVC_VARIANT_F4 (Display variant selection dialog box)
    LVC_VARIANT_SELECT (Read a display variant)
    For a sample report using LVC_VARIANT_DEFAULT_GET have a look at BCALV_GRID_10.
    Regards,
      Uwe

  • Error While executing the Standard Program RSEINB00

    Hi,
    I am trying to execute the Standard Program RSEINB00.
    The input parameters for this program are
    1. File path along with name
    2. Port.
    File path I am giving the application server directory along with the filename.
    For port. i have created a port in WE21.
    For both outbound parametes I selected the Physical directory and gave directory name and file name in both tabs and saved the port definition.
    Now I am passing the port to the RSEINB00 program.
    it is giving an error File cannot be opened.
    Can any one help me on this. Can someone guide me how to use RSEINB00 to read file from application server.
    thanks

    Hi,
    I think,you missed out some steps while creating Port.so please follow the below steps to resolve the issue.
    we21->click on your port number->outbound file tab->function module: EDI_PATH_CREATE_MESTYP_DOCNUM.
    outbound file: give file name .txt.
    and give the physical directory : /usr/sap/.......................................txt and save.
    and click on 'ACESS TEST' button and check any error is coming.
    go to outbound trigger tab-> give RFC destination name which we have created under a port in SM59.
    and one more important thing is check your unicode status is active or not.
    .Please get back me .if any issues.
    Kiran J

  • How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)?

    How do I change the default program to open Pages docs to the old (4.3) version instead of the new one (5.0)? When I do what Apple said and go to a Pages file in finder and select "get info" then select "Pages 4.3" and "change all" it just defaults to the new one even though I'd selected the old one. Do I need to completely uninstall the new version of Pages or is there another work around because the new version of Pages comes dreadfully short of the features I need that are included in the old one?

    Eric Kraft wrote:
    HOWEVER, if you modified a document in 5.0, 4.3 can't open it. You'll have to use Time Machine to replace the modified version with an earlier version that was last modified in 4.3.
    Actually there is a workaround.
    If you open the file in Pages 5, it can then be exported on Pages 0.9 format to another folder. I had to do this as the document was only in iCloud and couldn't be recoverd by Time Machine.
    Worked for me!

  • Need to Change the Standard.joboptions on Acrobat 8.0

    We are a Citrix/Terminal Server shop and have clients using Acrobat 8.0 on the server under their citrix session and they need to have the default resolution of the created PDF to change for everyone on the server from 600 dpi to 300 dpi.
    When I try to do this in the printer setup for Acrobat it tells me that I can't edit the Standard.joboptions file and save it over itself. I then tried to manually edit the file with Notepad and it is still showing 600 dpi when I look at the Standard settings.
    I also changed the Standard and set it as 300 dpi and saved it as a different name in the "Settings" folder and when I try to choose it in the drop down list of settings files I don't see that one.
    Am I missing something? How can I set the default resolution to 300?
    Thanks,
    Jason

    I don't see how to do that. Is there a document or online resource to help with that?
    Like I said, I saved the changes to another file but then do not see a way to specify that new file as the 'default'.
    Thanks,
    Jason

  • When I open iTunes, I get a message that "iTunes has stopped working".  I've tried reinstalling itunes, creating a new user file, changing the startup programs, and am having no success in getting iTunes to stay open. Any "fixes" for this problem?

    When I open ITunes, I get a message that "iTunes has stopped working".  I have tried reinstalling iTunes, creating a new user file, changing the startup programs in accordance with articles in iTunes troubleshooting, but am having no success in getting iTunes to stay open.  Any fixes for this problem?

     

  • How to find the Standard Program associated with a Standard IDOC

    Hi,
          I am going work on enhancing the standard IDOC. Any body can suggest how to find a standard pogram associated with a Standard IDOC. And can any body send some exaple code for extending a standard IDOC and to implement the logic in the standard program .....

    Hi,
    For outbound IDoc the program can be found:
    1) For master IDoc via transaction BD60. Here for the message type you can find the function module used to generate the IDoc. Within this function module you can find the user exit where you can code your logic.
    2) For IDocs with message control (output control) we maintain settings for proces code in WE41. This process code will lead to outbound IDoc generation program.
    For Inbound IDoc the program can be found:
    Via WE42 where inbound process and its related inbound function module is maintained.
    In each cases above we can go the function module and find the customer exit where idoc enhancement logic can be coded.
    For extending IDoc look at the following links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/content.htm">Extending IDoc - SAP help</a>
    It can be summarized as follows:
    Enter transaction WE30 (ALE->Extension-> IDOC types->Maintain Idoc type)
    - Type in your name of the extended IDOC type (usually starting with 'Z') and click on the Basic IDoc type, click the create icon.
    - Click on Create new and enter a description and press enter.
    - Click on ZIDOCTYPE01 and then on the Create icon.
    - Enter ZIDOCTYPE as the segment type, click on Segment Editor.
    - Enter a description for your segment type and create.
    - Enter a description for your segment, enter each field required in your IDoc and press enter to validate.
    - Save and generate, press back
    - To release the segment choose Goto, Release from the menu.
    - Check the box on the line of your segment.
    - Save, back and enter.
    - Your Idoc type structure should be displayed with your new segment.
    - Save and back.
    - To release the Idoc type choose Extras, Release type from the menu and Yes.
    Hope this helps.
    Regards,
    Gajendra.

  • How to change The Standard JOptionPane Icon?

    in this simple code
    i want to change the Standard JOptionPane icon to a different icon
    how could it be?
    thank you
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowEvent;
    import javax.sound.sampled.*;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    import javax.swing.Icon;
    import java.awt.event.*;
      public class MyFrame extends JFrame 
    JLabel label=new JLabel("Hello");
      MyInner inner;
          MyFrame ()
            setupGUI();
        private void setupGUI()
           JFrame f =new JFrame();
        //   f.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
           f.setTitle("Window Event");
            f.setSize(550,350);
            f.setResizable(false);
            f.setLayout(new BorderLayout());
            f.add("Center",label);
            f.show(true);
             inner=new  MyInner();
             f.addWindowListener(inner);
                   class MyInner extends WindowAdapter
           public void windowClosing(WindowEvent ee)
                         Toolkit tool = Toolkit.getDefaultToolkit();
                  tool.beep();
                      JOptionPane.showMessageDialog(null, "Nice Work! " );
                      System.exit(0);
          public  static void main(String[]args)
             MyFrame frame=new MyFrame ();
    }

    For instance:
        class MyInner extends WindowAdapter
            public void windowClosing(WindowEvent ee)
                Toolkit tool = Toolkit.getDefaultToolkit();
                tool.beep();
                JOptionPane.showMessageDialog(null, "Nice Work! ");
                ImageIcon myImageIcon = new ImageIcon("myPic.jpg"); // needs proper path here
                JOptionPane.showMessageDialog(null, "Better Work!", "Dang, I'm smart!", JOptionPane.ERROR_MESSAGE, myImageIcon);
                System.exit(0);
        }

  • How can I change the default program for the external applications editor?

    I have read the on line directions for this and it reads "select a file type in the left pane."   I do not see where this is in the left pane.  All I see in the left pane is "Browser start pages" and a "How do I " Pane.  Nothing with file types.

    Hello,
    Welcome to Adobe Forums.
    In order to change the default program for the external applications editor. Please follow the steps as mentioned below.
    Click on Edit menu then choose preferences.
    Once the preferences dialog box open.
    click on file editors.
    On the Left pane you will find all the file types which you want to edit .
    On the right hand side you will find the editors for that specific file type.
    If you want to add any other application you need to click on + symbol at the top of right pane.
    Select the path of that application which you want to apply.
    clcik on open.
    If you want to make it primay you can click make primary option available at the right hand top. For more detials please check the screenshot below.
    Regards,
    Rajeev

Maybe you are looking for

  • Your credit card information does not match your bank's records

    I just purchase iphone 5c, and I made my iturne account, in order to downloan the app I have to put my payment information. But always shows " your credit card payment information doesn't match your bank's records". and I tried three different card s

  • Need to upgrade?? Please help

    I just bought the nano as a gift for someone. I am trying to put some music on there before I give it. I have itunes version4 on my comp. When I plug the nano in it does not show up in itunes, and I just get a do not disconnect message on it. Do I ne

  • New iMac G5. Is it ok?

    I'm going to be getting a new iMac G5 2.0Ghz this week. I am ready the blogs about the imac and have a few worries about its visual stability. Please could I have some constructive adive about this machine. So I won't go make a mistake! I am updradin

  • Infotype 0008 and 0014

    Hi all, Hi all, We have a requirement of using various fixed allowances to be paid monthly and to be prorated based on the number of days absence/attendance.  Can we prorate (factoring) the allowances used in IT0014? If not, what is the possible draw

  • Fault tolerance of Distributed Locking Mechanism ?

    Is there a lock server for managing locks      in a Coherence distributed cluster ?      How fault tolerant is the locking mechanism ?      What happens if a node which has acquired a lock dies ?      If there is a lock server, what happens if the lo