Help with a module pool snippet

Dear experts,
I am provding a small code snippet of my program from module pool .Here my aim is that incase message
'No pending gatenentry found by this no.Plz check details.' is displayed .Program should go back to screen.
However, it moves to next statement after displaying information message. What to do ?.I
dont wat to use type 'E' as it doesnot let me do anything further.
if t_zrgpno[] is initial.
clear: t_rec,t_rec[].  "Incase something was entered previously
message 'No pending gatenentry found by this no.Plz check details.' type 'I'.
leave list-processing.
endif.
endif.
*********** Check if grn attached to this process has a blank store loc
*********** if yes then direct user to old system flow in order to finish ok.
data: genmes type string.
select mblnr zeile matnr lgort from mseg into table check_542 where smbln = p_grn
and bwart = '542' and shkzg = 'S' and werks = p_werks.

Hi
There are two special key words for Flow Logic ON INPUT and ON REQUEST
issue an Error Message instead of Type S message by using above key words.
for further info please take the help of Key word documentation of help of Tcode ABAPDOCU
Cheers
Ram

Similar Messages

  • Calling search helps dynamically in module pool program

    Hi Experts,
    I have created two search helps. I need to call these search helps in my module pool program dynamically for a single field (i.e ZMATNR).
    you might be known... if it is a single search help, we can assign that in field attributes.
    But here... I need to call different search helps for a single field based on the condition.
    Pls help me.
    Thanks
    Raghu

    Hi,
    Use the below function module and  pass the search help created in search help field according to the condition.
    Process on Value-request.
    if condition = A.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created                                                          
    Elseif  Conditon =B.
    call function " F4IF_FIELD_VALUE_REQUEST"
    TABNAME           =                                                         
    FIELDNAME        =                                                       
    SEARCHHELP     =  "Mention search help created      
    Endif.
    Regards,
    Prabhudas

  • Want to know the screens associated with a module pool program ??

    Hi,
    I have an M type program (module pool), say SAPMF05M. I want to
    1) see which transaction code initiated it ??
    2) see the screens associated with it ??
    how do i achieve this ?? I know just the program name !!
    thanks

    Go to SE80, make sure "program" is in the object list box, enter the program name in the field underneath the object listbox and hit enter.  You will see a bunch of folders in  the tree structre.  There will be one for screens and one for transactions.
    Please remember to award points for helpful answers.  Thanks.
    Regards,
    Rich HEilman

  • Table QBE-Filter BUG in combination with Application Module Pooling ?

    Hi,
    i use JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407, Java 1.6.0_14, ADF BC and ADF Faces.
    I have one View Object, one Page with a panelCollection and a table with option filtering (create via drag-and-drop from datacontrol).
    When I disable the application module pooling on the AM configuration and run the application, i can execute the query-by-example filter, but when I delete the filterCriteria and press enter (requerry for select all) the table shows the old data.
    Image for setting on application module:
    http://img265.imageshack.us/img265/1374/filterdoesnotwork1.png
    Image for execute querry and requerry for "all rows" (deleted filterCriteria)
    http://img140.imageshack.us/img140/1963/filterdoesnotwork2.png
    When I enable application module pooling all works fine. Is this a issue?
    kind regards

    Hi Frank,
    if I filter for employees which firstname starts with "D" and then for employees with "F" --> i see "No data to display.".
    So uncheck "Enable Application Module Pooling" on application module doesn't work with QBE-Filter ?
    I can send a testcase but it is so simple you can create it with jdeveloper in 2 minutes ;)
    Martin

  • Need help with the Modulation Toolkit to configure a QPSK Modulation

    Hi! I'm
    trying to build a CDMA system with the Modulation Toolkit to use it later with
    a PXI-RF Product as a part of my thesis (I don't remember the exact model
    number because it's in my university and I'm home right now, sorry). But my problem right now is, I assume, a very simple one.
    I'm having
    some trouble understanding the MT Modulate PSK.vi and the MT
    Demodulate PSK.vi since I have them both connected and the output bit stream is
    not the same as the input bit stream. I'm guessing it's a problem with the sync
    parameters in the MT Generate Synchronization Parameter.vi because maybe I
    don't really understand how the sync bits work. I tried using a simple
    sync header but the output bit stream is always shorter than the input and shows
    only a little portion of the input bit stream and some of the 1's I used to
    create the sync header, and it gets worse when I increase the number of input
    bits.
    I'm
    attaching the simple vi I created to try to understand the mod-demod vi's, so
    if someone knows what I'm doing wrong it would be great if you let me know
    since I'm stuck in my thesis and understanding this issue will let me continue
    with the project.
    Thanks a
    lot in advance!
    Daniel
    Attachments:
    QPSK Test V-1.0.vi ‏31 KB

    Por favor mire en enlace abajo:
    Cordiales Saludos
    http://forums.ni.com/ni/board/message?board.id=6170&message.id=11549&jump=true
    Luciano Borges
    National Instruments Brazil
    Luciano Borges
    R&D Engineer
    Pirelli Brazil

  • Help with amplitude modulation

    Dear Labview users, 
    Im having some trouble with this Amplitude Modulation. What I want is to change the Amplitude of a sine wave using a rectangular pulse as following (see figure): 
    The A.M. sinewave will be the input for my Daq device. I figured this is a strange modulation since i haven't found any info about this type of modulation (most only refer to sine-by-sine modulation). 
    Any help on this problem would be greatly appreciated  
    Regards, Dennis
    Solved!
    Go to Solution.

    Dear Mike,
    Thank you for your reply! My problem is indeed that i dont know how to do the modulation =/
    My drawing might be misleading. The carrier (which is the sinewave) is in fact between the rectangular pulse (AM-modulated by it) i haven't drawn that one because there is no sine function in paint
    Some additional information regarding the frequencys: 
    - The sinewave is a typical mains signal with 50 Hz.
    - The squarewave's amplitude will be increasing, starting from 0.008 Hz till 40 Hz.
    So yes you are indeed right about the carrier frequency being higher..
    Still, any help will be greatly appreciated

  • Need help with RF Modulation

    I have an F Jack (coaxial) jack coming from a wall plate I want the video signal to go to a Sharp DLP projector and the audio to go to an amp connected to 4 speakers.   I need to find some way to convert the RF signal from an F-Jack to RCA or S-Video.
    I have purchased an RCA CRF940 RF Modulator but I do not seem to be having any signal coming from the Audio-Video Output jacks after connecting the F-Jack connector from the wall plate. 
    I know the best way to make the conversion is with a simple DVD/VCR combo unit however, I cannot find a unit that has an F-Jack IN/OUT.
    If anyone has a suggestion or suggestions I would appreciate it.   By-the-way the RCE CRF940 also has S-Video ports as well.  I had the same luck with those.
    Thanks in Advance 

    Ok...I'm getting a better picture now.
    You've got a reversed idea what that RF modualtor does. It takes an RCA feed and sends to out of the RF...not vice versa.
    You will need to modify the in-wall wiring and the wall plate to accommodate RCA connections for this scenario to work.
    Disclosure: Former BBY employee.

  • I need help with socket connection pooling please

    I need a basic connection pooling system for the code below users sets number connections 5 etc.
    <main class>
    s = new ListService(ssock.accept(),serverDir); //give list to client
    Thread t = new Thread(s);
    t.start();
    <main class>
    class ListService implements Runnable
    Socket client;
    String serverDir;
    public ListService(Socket client,String serverDir)
    this.client = client;
    this.serverDir = serverDir;
    public void run()
    try
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(client.getOutputStream()));
    // send something to client
    catch(Exception e)
    System.out.println(e);
    System.out.println("client disconnected\n");
    catch(Exception e){}
    Thank you so much

    My code already accepts multi clients I need pooling only 5 clients can be using the server at a time when one client disconnects that means another incoming client can enter the pool to use the server.
    I tried to do a counter so when a connection is made it increments and then if counter>=numOfClients
    set a variable to true or false and this is sent with the server setup so it determines if the server code is run or it just closes the connection but there is no way I can access the counter variable from within a runnable class thread when a client closes connection it should -1 from the variable
    thanks

  • Need Help with Function Module or BAPI for Stock Requirements & PIRs

    Hello,
             I am working on making changes to a Report which should be displaying the PIR (Planned Independant Requirements) Quantities as well as Stock Requirements for SOs & STOs for below Type of Materials for the Given Date.
    1. Planning Materials
    2. Planned SKUs (that is Materials which do not have a Planning Material attached to them).
            In the Current Logic, we are using an FM REQUIREMENTS_ALLOCATION which fetches the Requirements only for the Planning Materials. It does not work for Planned SKUs.
    So, is there any Function Module / BAPI which serves this Purpose for both types of Materisls?
       Also, I've managed to Find out two Function Modules which I thought might be useful but still need confirmation regarding the same.
    MD_STOCK_REQUIREMENTS_LIST_API and
    BAPI_MATERIAL_MRP_LIST
            Please suggest any other FM if available for this Requirement.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

    Basically, here is what my scenario is. I have two Types of Materials which have a Planning Material attached to it. and the Other Category is that it doesn't have a Planning Material attached to it. So, we call it a Planned SKU. That is a Material planned at the SKU level.
              Now, the Issue is , the Function Module REQUIREMENTS_ALLOCATION doesn't work for the Plannd SKUs but it only works for the Planning Material. Now, based on this Function Module, we are populating the Data for the Planning Materials of Material Type ZPLN. Similarly, is there any we can make this FM work for a Material which is planning at its own Level.
              Please help me in this Regard.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Help with a simple code snippet?

    Can someone tell me where I'm going wrong with this bit of code? Its more or less derrived from the Java tutorials, though its mid chapter so lets you make your own mind up about the surrounding code...I'm just trying to get a grip on how notifyAll() and wait() work(). The WaitProcess is suposed to sit there and wait for the NotifyProcess to wake it up. I was expecting both processes to finish after the notifyAll().
    Thanks for any help...
    Steve
    public class NotifyWaitTest {
        static boolean waiting = true;
        static class WaitProcess implements Runnable {
            public void run() {
                System.out.println("WaitProcess: started and waiting");
                waitHere();
                System.out.println("WaitProcess: Finished");
            public synchronized void waitHere() {
                while(waiting)
                    try {
                        wait();
                    } catch(InterruptedException e) {
        static class NotifyProcess implements Runnable {
            public void run() {
                System.out.println("NotifyProcess: started and sleeping 10s");
                try {
                    Thread.sleep(10000);
                } catch(InterruptedException e) {  
                notifyWait();
            public synchronized void notifyWait() {
                waiting = false;
                notifyAll();
                System.out.println("NotifyProcess: waiting = false, notifyAll()");
        public static void main(String... args) {
            new Thread(new WaitProcess()).start();
            new Thread(new NotifyProcess()).start();
    }Message was edited by:
    Steve12345

    The object you are waiting on and the object you are
    notifying are different.
    I thought notifyAll() interrupted all threads?No. notifyAll is an instance method (and wait is instance method too) and wakes up only threads, that waits on that object (instance) beeing notified. In your code call
    notifyAll();is actually the same, as
    this.notifyAll();which is notification of objects, that waits on notifying object (but not all waiting threads).
    All synchronization in java is tied to particular instances and is not a "global synchronization". This means, that two threads can simultaneously hold locks (or, other words, execute sections inside synchronized statements), but only on different instances. Lock on the particular instance can be hold by an only one thread at a time. Waiting and notifications are also tied to instances and requires a lock on the used object (i.e. should be executed in the synchronized block for that object). In your code syncronization is performed on different instances: one on the instance of WaitProcess (and wait is preformed on this instance), and second is performed on the instance of NotifyProcess (and notifyAll is performed on this instance). You should use synchonized section in both classes, and this synchonized section should be invoked on the same instance (not on two instances of same class).
    P.S. "interrupted" is wrong word here. notifyAll() "wakes up" threads, which waits on particular lock, allowing them to continue their execution. But "interrupt" means setting "interrupted" flag or throwing InterruptedException (which is abrupt completion of wait method).

  • Help with Oracle Connection Pooling

    Hi,
    I want to create a connection pool that can be accessible in any jsp and in any class of my web application. Is it a good idea to create a class with a static member of type OracleDataSource or any class that handles connections?

    Rafa,
    In order to use JSP, you usually need an application server.
    Oracle's application server already has connection pooling built in.
    No need to re-invent the wheel.
    (In fact most application servers provide database connection pooling.)
    Good Luck,
    Avi.

  • Help with Application Module

    I have created 3 application modules
    am1, am2, am3.
    am2, am3 are nested in am1
    Now on trying to access application module instance am2 or am3 in a custom static method in am1 throws this error:
    Exception in thread "main" oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
         at oracle.jbo.server.ComponentObjectImpl.getRootApplicationModule(ComponentObjectImpl.java:168)
         at oracle.jbo.server.ApplicationModuleImpl.findApplicationModule(ApplicationModuleImpl.java:1295)
         at
    the code is as below incase needed:
    public class AppModule1Impl
    extends ApplicationModuleImpl
    /**This is the default constructor (do not remove)
    public AppModule1Impl()
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    //launchTester("sni.pricing", /* package name */
    // "AppModule1Local" /* Configuration Name */);
    AppModule1Impl am=new AppModule1Impl();
    AppModule2Impl m2=(AppModule2Impl)am.getAppModule2();
    AppModule3Impl m3=(AppModule3Impl)am.getAppModule3();
    /**Container's getter for AppModule2
    public ApplicationModuleImpl getAppModule2()
    return (ApplicationModuleImpl) findApplicationModule("AppModule2");
    /**Container's getter for AppModule3
    public ApplicationModuleImpl getAppModule3()
    return (ApplicationModuleImpl) findApplicationModule("AppModule3");
    Message was edited by:
    Naga Kalyan

    You can't just instantiate an application module with new AppModuleImpl(). You have to set up an application module in a context. Therefor you have to create an root application module which set up all other stuff for the framework.
    The easiest way to set things up is to build an JUnit test case (Business Components Test Suit or Business Components Test Fixture). This will create the fixture class which handles the creation of the root application module and some code how to use it.
    Timo

  • Need help with Flex Modules

    Hello..I am very new to flex. I have recently studied little
    bit about modular pgming in flex..I am doing a simple project as
    explained below..but for some reason I am not able to make it to
    work..I am gettig below error..I really apreciate some help on
    this.
    ReferenceError: Error #1069: Property subViewStack not found
    on IntranetHome and there is no default value.
    I have a 'IntranetHome' which has code similar to below:
    <mx:Application>
    <mx:ViewStack id="superViewStack" borderStyle="solid"
    width="100%" height="100%" >
    <mx:ModuleLoader url="Module1" width="100%" height="100%"
    />
    <mx:ModuleLoader url="Module2" width="100%" height="100%"
    />
    </mx:ViewStack>
    </mx:Application>
    In Module1..I have code similar to below:
    <mx:Module>
    <mx:ViewStack id="subViewStack" borderStyle="solid"
    width="100%" height="100%" >
    <mx:ModuleLoader url="SubModule1.swf" id="sm"
    width="100%" height="100%" />
    <mx:ModuleLoader url="SubModule2.swf" id="sm1"
    width="100%" height="100%" />
    </mx:ViewStack>
    </mx:Module>
    In SubModule1 there are couple of buttons..when I click on
    these buttons..I would like to load SubModule2.swf which is under
    subViewStack of Module1.. I am getting errors when I am trying to
    say :
    on button
    click="Applixation.application.subViewStack.selectedIndex=1"
    Am I doing something wrong...Please help me out here..If
    there is a better way please let me know. Thanks

    "Smart_flex" <[email protected]> wrote in
    message
    news:g7b8ol$d57$[email protected]..
    > Hello..I am very new to flex. I have recently studied
    little bit about
    > modular
    > pgming in flex..I am doing a simple project as explained
    below..but for
    > some
    > reason I am not able to make it to work..I am gettig
    below error..I really
    > apreciate some help on this.
    >
    > ReferenceError: Error #1069: Property subViewStack not
    found on
    > IntranetHome
    > and there is no default value.
    >
    > I have a 'IntranetHome' which has code similar to below:
    > <mx:Application>
    > <mx:ViewStack id="superViewStack" borderStyle="solid"
    width="100%"
    > height="100%" >
    > <mx:ModuleLoader url="Module1" width="100%"
    height="100%" />
    > <mx:ModuleLoader url="Module2" width="100%"
    height="100%" />
    > ...
    > </mx:ViewStack>
    > </mx:Application>
    >
    > In Module1..I have code similar to below:
    >
    > <mx:Module>
    > <mx:ViewStack id="subViewStack" borderStyle="solid"
    width="100%"
    > height="100%" >
    > <mx:ModuleLoader url="SubModule1.swf" id="sm"
    width="100%"
    > height="100%" />
    > <mx:ModuleLoader url="SubModule2.swf" id="sm1"
    width="100%"
    > height="100%" />
    > .....
    > </mx:ViewStack>
    > </mx:Module>
    >
    > In SubModule1 there are couple of buttons..when I click
    on these
    > buttons..I
    > would like to load SubModule2.swf which is under
    subViewStack of
    > Module1.. I
    > am getting errors when I am trying to say :
    >
    > on button
    click="Applixation.application.subViewStack.selectedIndex=1"
    >
    > Am I doing something wrong...Please help me out here..If
    there is a better
    > way
    > please let me know. Thanks
    http://blogs.adobe.com/aharui/presentations/
    Look at the last one

  • How to have a search help in module pool without using Process on value req

    Can someone please tell me what r the ways if any to have F4 help in the module pool screen
    with out using POV ?

    Hi,
    They are two ways to define search help for an object...
    BY using POV
    or
    go to screen Layout and double click on the field you want F4 help and Pass the Search help math code for feild at the
    place of Search_help field aand also you can add parameter-id at this place to provide search help.
    go to screen Layout -->double click on the field you want F4 help
    -->Pass the Search help math code for feild at the place of Search_help
    save and activate..
    reagrds,
    Prabhudas

  • Date search help in module pool programming in 4.6C version

    Hi Experts,
    How can i have input help in my module pool screen, I gave the searh help EXT_DATE in the search help parameter of that screen's field parameter.
    But its not showing the input help.
    I m facing this issue in 4.6C.
    Please advise
    Thanks
    Yogesh Gupta

    Hi,
    Just to make sure that you are talking about F1 help and not F4 for input of date right?
    For F1 help of screen field, please check program for tcode: F150 (Dunning Run), You will find FM: F150_FIELD_SELECTION_HELP used for one field on screen (112).
    I guess this might help you.
    thanks,
    Ags.

Maybe you are looking for

  • Using a Variable to Substitute the path\filename of a Batch file in the Start_Process Command

    I am trying to write a script that will execute a batch file on a remote Windows server. This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file. in

  • Missing Parts in Process Order

    Hi Gurus, I was created process order, in that some materials are shortage, System showing what are the missing parts. it is also not allowing to release. But, it is allowing to save without release. My problem is System should not allow to save, if

  • Unable to install CS5.5.2 update

    I am unable to install the CS5.5.2 update for premiere pro. The updater shows two updates available, and wierdly both are the same update CS5.5.2 for premiere pro. If I proceed to install them, it prompts for my admin user password on my mac. When I

  • 40 Gig iPod Photo will only play for five seconds

    My 40 Gig iPod Photo will only play the first five seconds of the songs I have on it. I have not changed anyting and it worked just fine last week. Any ideas? I have done a hardware re-set. I have no clue what is going on. Any help would be great!

  • Sssssllllooooowwww browsing of RAW files

    LR 1.2 and below seem to display my RAW files very slowly (it says "loading" at the bottom of the pic). I'm on a fast 3.2ghz Core 2 duo with 2gbs of ram, but average video card. Irfanview displays them perfectly fast. Is the LR RAW engine just slower