Control is passed from subscreen to main program in MM01

Hi All,
In MM01, in additional data tab ,we have a subscreen.
This subscreen has following fields
sales org,distribution channel,division and zzpublisher,zzMedia.
sales org,distribution channel,division are within chain, end chain and we have a module to make these field mandatory based on data enetered in zzmedia.Ex:zzmedia 45
similary zzpublisher sould be  mandatory based on data entered on zzmedia(zzMedia =55.
) .This field is not within chain endchain.
When we enter zzmedia 45, sales org ,dist channe and division are working correctly.
whereas when we enter zzmedia =55 ,zzpublisher is becoming mandatory but at the same time I am getting standard popup i.e Do you want to save the data,
YES  No Cancel..
Can you let me know how to avoid calling the popup when we require to make zzpublisher madatory.
note:all the module written to make fields mandatory are in PAI

Let's see... if you call the subscreen9030  after 9020 PBO, then in the 9020 PAI you call it again, and the PBO for 9030 initializes the data, didn't you just wipe out what you have entered?

Similar Messages

  • Passing Text From Class to Main Program

    I am trying to write three separate strings from the class
    file into three separate TEXT boxes within the main program. It
    works using three separate functions. Is there a way to change the
    code so it all can happen from within but one and the same function
    in the class file.
    package Edit
    public class Texter
    public var i:int;
    public static var result:String;
    public function Greeter()
    public function sayHello():String
    result = "This is the first idea I have. ";
    return result;
    public function sayGoodbye():String
    result = "Here is the second idea, like. ";
    return result;
    public function sayHi):String
    result = "Here is the third city disco. ";
    return result;
    Thanks,
    BudHud

    You can use a parametrized function which will display the
    information according to your given data
    like
    public function saySomething(data:String):String
    return data;
    }

  • Saving Data from subscreen to main screen on a click of a button

    Hi,
    I have a main screen which has multiple subscreens attached to it.
    My problem is when ever i enter the data on the screen and execute a button, the data on the screen is not being saved. what i observed is when ever there is a button press, the data is cleared. i have checked the same in debugging mode as well still then i am not able to see the data which i am trying to store.
    I have attached the code, please help me in this regards,
    Thanks,
    Shanky.
    Main screen:-
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9020.
      MODULE MZO_DISABLETABSTRIP.
      MODULE CHECK_MANDATORY_DISABLE.
      CALL SUBSCREEN SUB1 INCLUDING SY-REPID '9030'.
      CALL SUBSCREEN SUB2 INCLUDING SY-REPID '9050'.
      CALL SUBSCREEN SUB3 INCLUDING SY-REPID '9060'.
      CALL SUBSCREEN SUB4 INCLUDING SY-REPID '9080'.
      CALL SUBSCREEN SUB5 INCLUDING SY-REPID '9090'.
      CALL SUBSCREEN SUB6 INCLUDING SY-REPID '9070'.
    PROCESS AFTER INPUT.
    MODULE MZI_USER_COMMAND_9020.
    CALL SUBSCREEN SUB1.
    CALL SUBSCREEN SUB2.
    CALL SUBSCREEN SUB3.
    CALL SUBSCREEN SUB4.
    CALL SUBSCREEN SUB5.
    CALL SUBSCREEN SUB6.
    Subscreen - 1
    PROCESS BEFORE OUTPUT.
    MODULE MZO_STATUS_9030.
      MODULE MZO_INITIALIZATION_9030.
    module mzo_routes_display.
    PROCESS AFTER INPUT.
      MODULE MZI_USER_COMMAND_9030.
    PROCESS ON VALUE-REQUEST.
      FIELD ZTTT001-ZFACTNAME MODULE MZV_ZFACTNAME.
      FIELD ZTTT001-ZTTBASICOBJI1 MODULE MZV_ZTTBASICOBJI1.
      FIELD ZTTT001-ZTTBASICOBJI2 MODULE MZV_ZTTBASICOBJI2.
      FIELD ZTTT001-ZTTBASICOBJI3 MODULE MZV_ZTTBASICOBJI3.
      FIELD ZTTT001-ZTTBASICOBJI4 MODULE MZV_ZTTBASICOBJI4.
      FIELD ZTTT001-ZTTBASICOBJI5 MODULE MZV_ZTTBASICOBJI5.
      FIELD ZTTT001-ZTTBASICOBJI6 MODULE MZV_ZTTBASICOBJI6.
      FIELD ZTTT001-ZTTBASICOBJI7 MODULE MZV_ZTTBASICOBJI7.
      FIELD ZTTT001-ZTTBASICOBJI8 MODULE MZV_ZTTBASICOBJI8.
      FIELD ZTTT001-ZSEASONALPROD MODULE MZV_ZSEASONALPROD.
      FIELD ZTTT001-ZROUTEID MODULE MZV_ZROUTE.
      FIELD ZTTT001-ZFPLANTS MODULE MZV_ZPLANTS.
      FIELD ZTTT001-ZTOPLANTS MODULE MZV_ZTOPLANTS.
      FIELD ZTTT001-ZSTACKCONFIG MODULE MZV_ZSTACKCONFIG.
    G_OKCODE2 = SY-UCOMM.
      CASE G_OKCODE2.
        WHEN 'SAVE'.
          " Write code for save as draft version and saving the existing data.
          PERFORM SAVE_AS_DRAFT_VERSION.
        WHEN 'COMP'.
          ZTTT001-ZDOFCOMMENCT = SY-DATUM.
          PERFORM SAVE_DATA_ORIGINATOR.
          PERFORM F_UPDATENWORKFLOW. " Update the database table and initiate workflow.
          LEAVE PROGRAM.
       WHEN 'ENTER'.
         PERFORM save_temporary_data.
         LEAVE TO SCREEN 9020.
        WHEN 'OTHERS'.
    BREAK-POINT.
      PERFORM TT_GENERATE_NUMBER.
      Wa_ZTTT001-MATNR = ZTTT001-MATNR.
      Wa_ZTTT001-ZTTNO = ZTTT001-ZTTNO.
      Wa_ZTTT001-ZORGNAME = ZTTT001-ZORGNAME.
      Wa_ZTTT001-ZORGCONT = WA_ITZTTT001-ZORGCONT.
      Wa_ZTTT001-ZDECNTNAME = ZTTT001-ZDECNTNAME.
      Wa_ZTTT001-ZFACTNAME = ZTTT001-ZFACTNAME.
      Wa_ZTTT001-ZTTCREDATS = ZTTT001-ZTTCREDATS.
      Wa_ZTTT001-ZTTBASICOBJ1 = ZTTT001-ZTTBASICOBJ1.
      Wa_ZTTT001-ZTTBASICOBJ2 = ZTTT001-ZTTBASICOBJ2.
      Wa_ZTTT001-ZTTBASICOBJ3 = ZTTT001-ZTTBASICOBJ3.
      Wa_ZTTT001-ZTTBASICOBJ4 = ZTTT001-ZTTBASICOBJ4.
      Wa_ZTTT001-ZTTBASICOBJ5 = ZTTT001-ZTTBASICOBJ5.
      Wa_ZTTT001-ZTTBASICOBJ6 = ZTTT001-ZTTBASICOBJ6.
      Wa_ZTTT001-ZTTBASICOBJ7 = ZTTT001-ZTTBASICOBJ7.
      Wa_ZTTT001-ZTTBASICOBJ8 = ZTTT001-ZTTBASICOBJ8.
      Wa_ZTTT001-ZDOFCOMMENCT = ZTTT001-ZDOFCOMMENCT .
      Wa_ZTTT001-ZSEAARSHIPTEXT = ZTTT001-ZSEAARSHIPTEXT.
      Wa_ZTTT001-ZPRODHIERARCHY = ZTTT001-ZPRODHIERARCHY.
      Wa_ZTTT001-ZNEWPRODDEV = ZTTT001-ZNEWPRODDEV.
      Wa_ZTTT001-ZPRODNAME = ZTTT001-ZPRODNAME.
      Wa_ZTTT001-ZNOFPALLETS = ZTTT001-ZNOFPALLETS.
      Wa_ZTTT001-ZSTACKCONFIG = ZTTT001-ZSTACKCONFIG.
      Wa_ZTTT001-ZRATFTT1 = ZTTT001-ZRATFTT1.
      Wa_ZTTT001-ZRATFTT2 = ZTTT001-ZRATFTT2.
      Wa_ZTTT001-ZCOMMENTS = ZTTT001-ZCOMMENTS.
      Wa_ZTTT001-ZROUTEID = ZTTT001-ZROUTEID.
      Wa_ZTTT001-ZTOPLANTS = ZTTT001-ZTOPLANTS.
      Wa_ZTTT001-ZFPLANTS = ZTTT001-ZFPLANTS.
      Wa_ZTTT001-ZSHIPMENTNO = ZTTT001-ZSHIPMENTNO.
      Wa_ZTTT001-ZDELIVERY = ZTTT001-ZDELIVERY.
      Wa_ZTTT001-ZTRAILER = ZTTT001-ZTRAILER .
      Wa_ZTTT001-ZPALLET = ZTTT001-ZPALLET.
      Wa_ZTTT001-ZSTONUM = ZTTT001-ZSTONUM.
      Wa_ZTTT001-ZSTATORG = 'Complete Version'.
      MOVE Wa_ZTTT001 TO ZTTT001.
      MODIFY ZTTT001 FROM Wa_ZTTT001.
      COMMIT WORK.
    endform.

    Let's see... if you call the subscreen9030  after 9020 PBO, then in the 9020 PAI you call it again, and the PBO for 9030 initializes the data, didn't you just wipe out what you have entered?

  • How could I control PXI-2567 from my C/C++ program?

    I need to control the PXI-2567 relay driver from inside my C/C++ programs.
    How could I do this, is there a dl, com, or something?
    Please tell me if there are any integration documents or user manuals for using whichever method if any.

    Hi BSA,
           You'll want to utilize the NI Switch Driver, which will install both example programs and the NI Switches Help.   There is a Function Reference Section in the NI Switches Help (which is installed with the NI Switch driver, and as well can be found on our website).  Example programs will be installed on your computer under Start»All Programs»National Instruments»NI-SWITCH»Examples»C .  You can also program your switch with2567 with DAQmx.  The differences between the two drivers can be found in this KB.  As well, additional resources for your switch are discussed here. 
    aNItaB
    Applications Engineer
    National Instruments
    Digital Multimeters

  • Can we call normal screen from subscreen

    hi,
    can any body tell how to call normal screen from subscreen in Dialog Programming
    thanks in Advance,
    Subodh.

    Hi,
    use stmt like":
    call screen '1001'.
    But this will be diplayed as new screen and not as subscreen.
    Jogdand M B
    Message was edited by:
            Jogdand M B

  • Editor: Annoying pop-up for choosing main programs when searching for text

    Hi,
    We're upgrading to ECC60 and are getting frustrated when searching for text in a source code within the ABAP editor.
    For every include contained in the main program you are searching in there is a pop-up asking to choose the main program for that include.
    This can get crazy when searching in a standard SAP program such as SAPMV45A. You'll have to process through 30-40 of these pop-up windows before your search results appear. I each pop-up you have to scroll though dozens of main programs to find the one you are doing the search in.
    Can this be turned of somehow to have the search functionality work as it did in previous version, where the Editor knows that the program you are launching the search from is the main program you want the results from?
    Thanks,
    Peter

    HI Peter
    Please check if program: <b>RPR_ABAP_SOURCE_SCAN</b> can help you...
    Regards
    Eswar

  • Screen does not seem to reflect changes when called from main program.....

    Hi all,
            here's an issue that i've been trying to solve for a few days now,
    i had created a screen in the screen painter, inside which i've included a table control (screen number 100: ).
    i, then created a second screen pointing to the same program as screen 100 and assigned screen number 200 to it. so both scrn 100 and scrn 200 has got table controls and the validations occur in modules from the same program.
    the issue i face is that, while any changes i make in screen 100 works fine when i call screen 100 from the main program;  it does not work when i try to modify the table control in screen 200. for example, if i were to add a new column, it messes up the allignment of the other columns in screen 200, i can't seem to assign fixed colums, etc....
    has anyone come across similar issues? if so how can i solve it? could it be an error with the SAP GUI?
    any response will be appreciated. points will be rewarded as well... if that's how things work here.
    Thanks,
    David.
    Edited by: david joseph on Aug 14, 2008 2:33 AM

    >
    david joseph wrote:
    > Hi all,
    >         here's an issue that i've been trying to solve for a few days now,
    > i had created a screen in the screen painter, inside which i've included a table control (screen number 100: ).
    >  i, then created a second screen pointing to the same program as screen 100 and assigned screen number 200 to it. so both scrn 100 and scrn 200 has got table controls and the validations occur in modules from the same program.
    >
    > the issue i face is that, while any changes i make in screen 100 works fine when i call screen 100 from the main program;  it does not work when i try to modify the table control in screen 200. for example, if i were to add a new column, it messes up the allignment of the other columns in screen 200, i can't seem to assign fixed colums, etc....
    >
    > has anyone come across similar issues? if so how can i solve it? could it be an error with the SAP GUI?
    >
    > Thanks,
    > David.
    >
    > Edited by: david joseph on Aug 14, 2008 2:33 AM
    Hi David,
    The description of the problem is not so clear.
    Let me know where I'm wrong, you have 2 screens and 2 different tablecontrols ? When you do any changes from the sapgui to the screen 100 there is no problem. But when you do that to the screen 200 is messes up ?
    My logic with table controls
    if you want 2 screens to share the same control then add the control to a subscreen
    when you want to have 2 screens with 2 differents controls :
    in main program
    CONTROLS : tc_100 type TABLEVIEW USING SCREEN 100.
    CONTROLS : tc_200 type TABLEVIEW USING SCREEN 200.
    In screen 100 / 200 assure the name of the controls are tc_100 / tc_200....
    Using this method I never have any problem....

  • How to pass the caught exception in Thread.run back to the main program?

    I have following three Java files (simplified from a real world application I am developing, see files at the end of this posting):
    1. ThreadTest.java: The main program that invokes the Manager.run()
    2. Manager.java: The manager that creates a thread to execute the Agent.run() for each agent
    3. Agnet.java: The run() method can throw Exception
    My goal is twofold:
    1. To execute the run() method of an Agent in a thread (the reason for this is there are many Agents all managed by a Manager)
    2. To catch the exception thrown by Agent.run() in the main program, ThreadTest.main() -- so the main program can alert the exceptions
    My problem:
    Bottomline: I cannot pass the exception thrown by Agent.run() in the Thread.run() back to the main program.
    Explanation:
    The signature of Thread.run() (or Runnable.run()) is
    public void run();
    Since it does not have a throws clause, so I have to try/catch the Agent.run(), and rethrow a RuntimeException or Error. However, this RuntimeException or Error will not be caught by the main program.
    One work-around:
    Subclass the ThreadGroup, override the ThreaGroup.uncaughtException() methods, and spawn the threads of this group. However, I have to duplicate the logging and exception alerts in the uncaughtException() in addition to those already in the main program. This makes the design a bit ugly.
    Any suggestions? Am I doing this right?
    Thanks,
    Xiao-Li "Lee" Yang
    Three Java Files:
    // Agent.java
    public class Agent {
    public void run() throws Exception {
    throw new Exception("Test Exception"); // Agent can throw execptions
    // Manager.java
    public class Manager {
    public void run() throws Exception {
    try {         // <===  This try/catch is virtually useless: it does not catch the RuntimeException
    int numberOfAgents = 1;
    for (int i = 0; i < numberOfAgents; i++) {
    Thread t = new
    Thread("" + i) {
    public void run() {
    try {
    new Agent().run();
    } catch (Exception e) {
    throw new RuntimeException(e); // <=== has to be RuntimeException or Error
    t.start();
    } catch (Exception e) {
    throw new Exception(e); // <== never got here
    // ThreadTest.java
    public class ThreadTest {
    public static void main(String[] args) {   
    try {
    Manager manager = new Manager();
    manager.run();
    } catch (Throwable t) {
    System.out.println("Caught!"); // <== never got here
    t.printStackTrace();

    The problem is, where could you catch it anyway?
    try {
    thread.start();
    catch(SomeException e) {
    A thread runs in a separate, er, thread, that the catch(SomeException) isn't running within. Get it?
    Actually the Thread class (or maybe ThreadGroup or whatever) is the one responsible for invoking the thread's run() method, within a new thread. It is the one that would have to catch and deal with the exception - but how would it? You can't tell it what to do with it, it (Thread/ThreadGroup) is not your code.

  • Read structure from main program class??

    Hi all,
    I know that i can read the structures from the main program with (program)structure
    But now the structure is in a class or form... How can i do this?
    regards

    Hi,
    I want to use BADI WORKORDER_CONFIRM_CUST_SUBSCR and I have created my own subscreen.
    The fields are displayed in the transaction CO11N but the fields are not transfered to the table AFRU where i have created the fields...
    And the BADI is already implemented by SAP.. No multiple use possible...
    I don't know how the data from the screen can be inserted in the table AFRU without modification.
    regards

  • Passing arguments into main program using eclipse

    If I want to pass a file into my Main program using "file redirection" I would do the following when running my program from the command prompt:
    C:\ MainProgram < inputfile.txt
    How do I do this using Eclipse SDK(WinXP)? I have investigated the options for passing in "Program Arguments" and still can't figure it out. Can anyone please help? What do I type in the Program Arguments text box?
    Thank you,
    Mark

    Well, input redirection is a shell thing, so Eclipse may not support it like that. (Maybe it does, somehow, but if it does it's just aping shell behavior for convenience.)
    What I'd suggest, is to create an option to your program to read a specified file. Maybe something like
    MainProgram -input intputfile.txt
    Then give that as an argument in Eclipse.
    If this is for testing purposes, another option is to create a test class, and hardcode the filename in there.

  • How to get return values from a button to main program.

    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..
    Basically something like this :
    //main program
    Authenticate.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    UpdateAuth ua=new UpdateAuth();// opens form which has username and pass for authentication
    ua.setVisible(true);
    //need code here for enabling table
    if(s=="mactus")
    enable table editing
    //table.repaint();
    // form open for auth..(class UpdateAuth )
    private String SigninMouseClicked(java.awt.event.MouseEvent evt) {
    String aname=Aname.getText();
    String apass=Apassword.getText();
    if(aname.equals("") && apass.equals(""))
    JOptionPane.showMessageDialog(null,"Enter login name or password","Error",JOptionPane.ERROR_MESSAGE);
    if(!(aname.equals("") && apass.equals("")))
    if(aname.equals("harshil") && apass.equals("harshil123"))
    String s="mactus"; /// if username and password is success enable table editing in main program
    return s;
    else if (!aname.equals("mactus") && !apass.equals("mactus123"))
    Aname.setText("");
    Apassword.setText("");     
    return null;
    }

    986154 wrote:
    hello,
    I have a main program which has a button Authenticate. On click of authenticate open a form for auth which has USERNAME FIELS AND PASSWORD.
    If entered fields are true then enable editing of jtable in main program..Well, you might be in over your head.
    //need code here for enabling table
    if(s=="mactus") If you don't know how to correctly test for String equality, you will have no chance of getting this to work.
    You need to hit the tutorials. First the basic one, then the Swing one.

  • Pass Value from Excel to custom program

    Hello,
    I want to pass value from Excel to Custom Program being called in the Custom Integrator and i am using the Import in the Importer section but it is not getting passed.
    Please advise and i am on R12.1.3.
    Thanks

    Pl do not post duplicates - Concurrent Program Parameter

  • The main develop module controls have disappeared from the develop window.  How do I recover them?

    The main develop module controls have disappeared from the develop window.  How do I recover them?  I'm working with Lightroom 5.3.  The missing controls are the sliders for exposure, contrast, clarity, etc.  I must have inadvertantly clicked something that made them disappear but nothing I've tried brings them back.  I've never had this experience in the years I've been using Lightroom (since version 1.1).

    Right-click on any other item Tone Curve for ex., and check on "Basic" if that's what you are missing.
    If you miss the complete Develop module right-click any other item  Library for ex and put a check on Develop

  • Sort Main Report on variable passed from Subreport

    Post Author: realw
    CA Forum: Formula
    I'm working on a CR XI report. I want to be able to sort the main report on a value in the subreport. I am trying to create a shared variable to pass that value from the subreport to the main report. So far, however, the formula containing the variable in the main report is not appearing as an option in the Sort dialogue box.
    My first question is, can this be done?
    If the answer is yes, then which sections in the subreport and main report should the formula appear in?
    What I have at this point is:
    In the last Details section of Subreport, formula @ssSubCreator
    WhilePrintingRecords;Shared StringVar Cre;Cre:= {CreCreat_csv.SummaryData};
    In the Report Header of the Main report, formula @ssCre
    Shared StringVar Cre:="";
    In the Details section of the Main report, following the section containing the Subreport, formula @ssCreator
    Shared StringVar Cre;Cre
    I can see that the data is passing correctly to the Main report. I've tried moving the formulas around to different sections in the sub and main reports but haven't gotten the formula to be sortable.
    Thanks in advance for any assistance,
    Will

    Post Author: bettername
    CA Forum: Formula
    How about just grouping the data in the main report on the formula? (Supress group header and footer, obviously)
    I don't have crystal to hand right now to check if that'll work though - you may run into problems with the 'cannot evaluate at this time' issue... but I use this technique for sorting data based on a chosen parameter (say: surname, forenames, age) in this way...

  • Executing code modules (seperate jars) from main program (main.jar)

    Hi all
    Sorry if i am crossposting, but i dont think that is the case.
    I have a main program ( in a jar ) and some modules to be executed and run in the main program.
    Theese components are packed a module in a single jar, and all theese jars are located in the same folder as the main program.
    The main classes in the module jars implement a interface known to the main tool, so that i can use them.
    My problem are, how to load the modules?
    I know i can use JarFile to get the manifests, and thereby get the name of the main class in each jar (they get obfuscated before launch, so no hardcoding of names).
    But how do i instanciate the mainclasses in the modules from the main tool ?
    hope you can help out.
    -Anders

    You can't. I understand the module approach as many others have similar designs. The first problem is that you need to add all the JARs to your classpath so that these JARs are known during starttime. There is no other solution to this if you don't write your own classloader that fetches classes during runtime and work peacefully with the other classloaders of the VM (it's a pain in the ass!). So, your main application needs to know the JAR files. Then it's a small step to also register the modules that your main app should know. Our approach is to have a small database table that holds the fully referenced class names of the modules that are available and can be used via Class.forName(). With this solution, we just need to stop the main app, copy the new JAR, adjust the classpath to add the new JAR, and restart the main app. After adding the new module names to the config table, the main app automatically uses them. Instead of a database table you can use e.g. a properties file.

Maybe you are looking for

  • Not able to see the Person who posts reply and asked the question.

    Hi, I am facing issue with Posts in MSDN forum. I am not getting the name of Person who replied and asked the question which earlier used to come below the Post. Are all facing the same issue? I am using IE 8 and Google Chrome 33.0.1750.117 m. Can an

  • DV PAL preset?

    I have heard that there is something called the "DV PAL Preset" that you can select in Compressor, but I don't know how to find it in the program (to convert from NTSC to PAL) Please help ASAP!

  • Same PO displayed twice for confimations

    Hello We have SRM 5 5.5 version and are up to patch note 15. When searching for a PO to perform a confirmation of goods/services in 'Confirm Goods/Services the same PO shows twice in the search results.  It does not matter which one you click into fi

  • FB60 + SIMULATION + BADI OR USER EXIT

    Hi, I am looking for an exit (user exit or badi) to be triggered when i click on simulation button for FB60 (or FV60) transaction in order to check the vendor in lfbk table. when i used the class cl_exithandler, i found the badi PPA_CUST_BADI . i hav

  • Cursor with nested query in stored procedure problem

    Hello I'm trying to declare the folowing (example) cursor in a stored procedure in Oracle 8i: CURSOR RECORDS IS SELECT d.DUMMY, (SELECT dd.DUMMY FROM dual dd) FROM dual d; The nested part "(SELECT d.DUMMY FROM dual)" is not alowed, while the same que