Sy-batch is not getting set in background?

Hi Experts,
I have a scenario in which we are processing Inbound Idocs via standard FM to create EDI orders from the inbound Idoc data.
We have a requirement in which we implemented enhancement for a Popup screen for user to select a particular material from the list of materials shown on the screen. While background instead of popup we are determining the record progmatically vai customer exit(Function module exit).
The logic for foreground & background is perfectly fine but the problem is SY-BATCH value is not being set to "X" in background. So our background logic does not come into picture & IDOC fails in background.
Just to analyze this issue , I have tried to store value of sy-batch in some variable & then put an infinite loop to check in background debugging(VIA SM50) whether that variable contains an "X" or not, That variable was not set to "X".
Can anybody tell me is there any other way by which we can programatically distinguish whether something is running in foreground or in background?

Hi,
Also test the field sy-binpt ( Batch input ) which is set when a call transaction is made in the program. Usually the IDoc processing functions do a call transaction.
Also at times the IDoc processing function sets a variable and exports it to the memory so you migh want to check for "export" statements in the IDoc processing function as well and import it in your program and test that imported variable.
Br,
Advait

Similar Messages

  • Variable value is not getting set in BEx / WAD

    Hi,
    We have a WAD report where we have selection on Comp Code which is restricted to a variable Var1. In the same WAD, a button group is used to execute a Planning Sequence, it has a filter for Comp Code which is restricted to a mandatory variable Var2.
    Idea is unless the user selects a value for Comp Code in WAD selection screen(Var1), the button group to execute the Planning Sequence will not be visible. When this button group is visible and user clicks to execute the Planning Sequence, the value for Var2 is supposed to get the same value as Var1 since in the underlying BEx query of WAD, we have restricted Comp Code InfoObject with Var1 in Default Values region.
    This was working absolutely fine in BW 7.3. But recently we upgraded to BW 7.4 and now the value for Var2 is not getting set if user selects the value for Var1.
    Appreciate any help on this.
    Note: The issue will resolve if we use the same variable in BEx query as well as the Planning Sequence, but this is not feasible in our case.
    Thanks and Regards,
    Shravan Marathe

    Hi Suman,
    As the issue came up with the latest BW 7.4 upgrade, we are looking for a work around may be implementation of Notes instead of going for an alternative.
    Thanks and Regards,
    Shravan Marathe

  • Value is not getting set in messageTextInput item after PPR action

    Hi everyone,
    I have a page in which On selecting a value from a lov, the next messageTextInput item should be set to "dummy"(I am using setText() method for this). However its not getting set at that time . But if I apply the same code in click event of submitbutton, its getting set. i.e. some kind of page refresh event is required for this.
    Plz suggest me the way of achieving this through PPR.
    My code of controller is like this :
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    /* validation code for Preffered ordering Method LOV */
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if(lovInputSourceId.equals("PreferredOrderingMethodLOV"))
    if(!selectedPrefferedOrderingMethod.matches("URL"))
    String v_ani = pageContext.getParameter("AribaNetworkId");
    if(!v_ani.matches("dummy") || v_ani.length()==0)
    OAMessageTextInputBean aribaNetworkIDTextInputBean =
    (OAMessageTextInputBean)webBean.findIndexedChildRecursive ("AribaNetworkId");
    String dummy = "dummy";
    aribaNetworkIDTextInputBean.setText(pageContext, dummy);//.setText(pageContext,"dummy"); // here its not getting set on page
    String s = aribaNetworkIDTextInputBean.getText(pageContext); // however its showing "dummy"here
    }

    Hi,
    OAMessageTextInputBean aribaNetworkIDTextInputBean =
    (OAMessageTextInputBean)webBean.findIndexedChildRecursive ("AribaNetworkId");
    String dummy = "dummy";
    aribaNetworkIDTextInputBean.setText(pageContext, dummy);//.setText(pageContext,"dummy"); // here its not >getting set on page
    String s = aribaNetworkIDTextInputBean.getText(pageContext); // however its showing "dummy"here
    In processFormRequest() method we should not change bean properties.
    Instead, achieve your requirement using
    row.setAttribute() method.
    -Anand

  • Page items not getting set upon login in APEX 4.0.2

    We just upgraded our APEX in development from 4.0.1 to 4.0.2.00.07. While testing found that in APEX developer, unless we press one of the buttons (Debug/View Debus/Show Edit Links) in the tool bar on the login page, the application/page items are not getting set to display the conditional items (page regions/buttons/Tabs etc,.) Could this be some setting within APEX Developer?
    But the display is fine when the application is run directly in a browser, as an end user.
    Is anybody else having this issue? We are holding off our production upgrade because of this issue.
    Any help is appreciated.
    Thanks
    Radhika

    Hi,
    Could you please explain what you mean by
    Running 4.0.2 version...need to know how to remove the pop-up login and go straight to welcome/splash page?Do you mean application builder or your application login page ?
    If you mean application builder, you can not remove login page. You need always login to builder.
    If you mean your own application then change authentication scheme
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/sec.htm#sthref2297
    Regards,
    Jari

  • Value not getting set in NETValue field in Oppurtunities

    Hi,
    I have requirement to
    make the "Net value"  field in Products assignment block  of new Oppurtunity editable.
    method GET_I_NETVALUE.
        rv_disabled = 'TRUE'.
    endmethod.
    by making rv_disabled = "FALSE" i am able to make it to editable, but i have an issue while entering some value to this field
    for eg: if I give 10.00 and  press enter its getting changed to 0.00. ( value is not getting set )
    Any suggestion will be highly appreciated.
    Regards,
    Sijo...........
    Edited by: sijokjohn85 on Aug 17, 2009 12:04 PM
    Edited by: sijokjohn85 on Aug 17, 2009 9:18 PM
    Edited by: sijokjohn85 on Aug 18, 2009 1:32 PM

    Thread closed

  • In solaris oracle env not getting set always i hv to compile .profile

    In solaris 10 intel version oracle ,listener everything is working but problem is in terminal for each session i hv to compile . .profile where is the exact problem ? why my profile is not getting set permanently.

    Dude wrote:
    Bash looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. (man page) In other words, it's not reading .profile if ./bash_profile or .bash_login exists. However, the OP might not be using bash.OK, I was wrong again, again, again today.
    I am going to quit while I am behind so as to not make it any worse.

  • Batch is not getting determined

    Hi,
    We are facing a serious issue while we create a TO from a Project delivery, batch is not getting determined so automatic confirmatin is also not happening. Please note that we are using Leanwarehouse and the movement type 281 and the special stock is Q. We have also maintained entries in VHC1 batch search strategy.
    Please help me in resolving the issue and let me know in case i need to maintain more settings
    Warm Regards,
    Sridhar b

    I think the problem is the stock catagory.
    "Q" or "S" material is not meant to be picked for out bound delivery, mvmnt type must be specific for Q stock
    try lt03 manual t.o. creation in the forground (entering the source info of the q stock) for the delivery I would expect to see a source bin error "no available stock in bin"
    meaning that SAP does not see "Q" material as available for picking
    Edited by: Arakish on Mar 24, 2010 5:39 PM

  • [ADF] Focus not getting set on second level dialog/popup

    Hi,
    While working on a related bug, I've discovered that for every second level dialog/popup(a popup that is invoked from another popup), the focus does not get set to the second level dialog if the first component in that popup is an inputText, unless a user explicitly clicks on it. By focus I mean that on pressing tab, the fields on the previous popup still get selected/highlighted.
    This does not happen if the first UI Component is any other; everything else kept the same. I suspect this is an ADF bug; does anyone know of a workaround?
    Thanks,
    Ravikiran Sastry
    Edited by: 911228 on Jan 30, 2012 11:59 PM

    Hello,
    we are having the same issue using JDeveloper 11.1.1.4 and Internet Explorer 8.
    The code is really simple: just a regular popup with an inputListOfValues component inside. Open the popup, open the inputListOfValue's "Search and Select" popup and if you press the Esc key, the first one will be closed, while the "Search and select" popup will remain there.
    Jordi

  • Context attributes Not getting set

    Hi,
    I have created a Webservice model from a WSDL file, created a service controller and bound the same to the model. I have also created a view and bound my view to my controller.
    The problem I am facing right now is that certain fields of my request are not getting set.
    The structure of my context is as shown below
    Context
      |-OrderWS
          |- RequestNode
              |-NodeA
                 |-Item1
                 |-Item2
                 |-Item3
              |-NodeB
                 |-ItemA
                 |-ItemB
           |-ResponseNode
    Even though I have created Item 1,Item2,Item 3 elements of Node A as input fields in my View, they cannot be edited, when I run my application.
    Item1,Item2,Item3 have min occurance "0", max occurance "unbounded" , set in the WSDL file.
    Is there any way by which I can set these values?
    Why are only the Item1,2,3 fields not editable? (I have made sure that readonly =false,editable=true are set for these fields as they are for the other fields.)
    -Ashwini.

    Hello Ashwini,
    If I understand you correctly, your problem is, the input fields that you've bound to a model node is
    not open for editing. If yes then,I guess you are not setting the modelObject reference to the model node.
    So use this code in the appropriate method (<i>according to your requirement</i>) to make the input fields editable.
          I<yourView>.IOrderWSElement el
              = wdContext.nodeOrderWSElement()
                     .createOrderWSElementElement(new <i><b>correspondingInterface</b></i>());
         wdContext.nodeOrderWSElement().addElement(el);
             wdContext.nodeRequestNode().bind(new <i><b>correspondingInterface</b></i>());
             wdContext.nodeNodeA().bind(new <i><b>correspondingStructure</b></i>()());
    If this is not the exact problem, then please give an eloborate picture of the scenario.
    Bala

  • [ADF] Focus does not get set on a second level dialog/popup

    Hi,
    While working on a related bug, I've discovered that for every second level dialog/popup(a popup that is invoked from another popup), the focus does not get set to the second level dialog if the first component in that popup is an inputText, unless a user explicitly clicks on it. By focus I mean that on pressing tab, the fields on the previous popup still get selected/highlighted.
    This does not happen if the first UI Component is any other; everything else kept the same. I suspect this is an ADF bug; does anyone know of a workaround?
    Thanks,
    Ravikiran Sastry
    Edited by: 911228 on Jan 30, 2012 11:59 PM

    Hello,
    we are having the same issue using JDeveloper 11.1.1.4 and Internet Explorer 8.
    The code is really simple: just a regular popup with an inputListOfValues component inside. Open the popup, open the inputListOfValue's "Search and Select" popup and if you press the Esc key, the first one will be closed, while the "Search and select" popup will remain there.
    Jordi

  • Automatic Mail not getting generated through background job

    Hi Experts,
    We have set up a job variant with spool recipients. We are getting the automatic mail if the job is getting finished successfully. But we are not getting the automatic mail if the job is in cancelled status. Earlier we used to get the mail even if the job is in cancelled status. We are not sure if there is any setting which would restrict the automatic mail based on the job status.
    Appreciate your help in this regard.
    Thanks and Regards,
    Ranjani.

    Hi,
    Just for a work around, try checking the SAP user inbox for the user who has scheduled the background job.
    I don't there  is any seperate configuration in Spool List Recipient for the canceled jobs. We need to confirm that the email ids provided in the Spool List recipient are correct and the background job creates a spool request even if it is canceled.
    Also if possible try deleting the existing background job and create a new background job with the same parameters and valid email id's maintained in the Spool List recipient.
    OR
    Without deleting the existing background job, parallely create a new background job with the same parameters and valid email id's maintained in the Spool List recipient. If it works then delete the old background job.
    Thanks
    Harish

  • Enhancement spot - Function module not getting triggered in background

    Hello Experts,
    I have implemented an explicit enhancement spot. In the code implementation, I am calling a Function Module.
    When I call that FM in background, things are not working as expected. But if I am calling that FM in normal mode, things are working fine.
    I am passing parameter to FM by 'Value'.
    Can anybody please let me know what I am doing wrong?
    Regards,
    Ashish

    Hi,
    Enhancement not getting triggered in BDC
    Regarding on your query, You would go through below link.
    Screen Enhancement of Transaction CO11N
    I hope, it helps to you.
    Regards,
    Sekhar

  • Variable not getting set?

    'elo!
    I have a slight problem when it comes to setting a variable. I guess it's some kind of variable-not-being-global-or-something-else-I-can't-figure-out-problem.
    Anyway. What I have are two classes.
    The first one is an extended JFrame that holds my GUI and some variables that I wanted to make sure every class could access. And that's what I thought I did.
    Variable outside constructor, so that other methods can access it:
         String characterName = "";Methods modifying that variable.
         // Set char name
         public void setCharName(String name) {
              String characterName = name;
              System.out.println("Char. name: " + characterName);
         public String getCharName() {
              System.out.println("Char. name: " + characterName);
              return characterName;
         }When this class creates an instance of the other class a reference to the JFrame is passed to what is actually an extend JPanel. In that JPanel is a JTextField. When enter is pushed getText() grabs the text and sends it to pf.setCharName() (pf = parent frame). That works, the print gives me a correct result in the console. However when I do pf.getCharName() I only get the "Char. name: " output. The variable characterName is empty. (and it doesnt't return anything.)
    So what am I doing wrong here? I'm stuck!
    /Simon

       String characterName = "";The 'characterName' String has already been defined in the object
            // Set char name
         public void setCharName(String name) {
              String characterName = name;
              System.out.println("Char. name: " + characterName);
         }.In the 'setCharName' method, you are declaring another String 'characterName' again. This is considered as a local variable in the 'setCharName' method. That is the reason why it is not getting reflected in the getCharName method.
    So, try this:
            // Set char name
         public void setCharName(String name) {
              this.characterName = name;
              System.out.println("Char. name: " + characterName);
         }Now, since characterName is no longer a local variable in the 'setCharName' method, it should get reflected in the getCharName method.

  • Not getting sets for jsp:useBean bean when in request scope

    I have a JSF (JSP) page in which I have a bean that I declare using jsp:useBean.
    The bean implements Map. I have a h:inputText and an h:inputHidden with a value referencing the bean.
    The odd thing is that if in jsp:useBean, I set the scope to session, everything works as I expect. However, if I change the scope to request, the put method on the bean never gets called.
    Can anyone explain why this is happening?
    Thanks,
    ken clark

    Yes, I understand that old data I had is gone -- that is fine, I expect that.
    My question is, why do I not get calls on the put method of my Map implementation when the screen is submitted? (I have a breakpoint in the method in the debugger, so I know when I get hit.)
    If the scope is session, I get put calls (yes, the old data is there, it gets overwritten).
    If the scope is request though, I simply never see the calls made at all, and my application errors out for lack of data.

  • Copying or exporting an application - bug?  LOVs not getting set in reports

    Hi all, I apologize if this has been on here before, I thought I may have seen something about it before, but my search turned up empty.
    When I copy an application, or export/import it -- it seems all the LOV based items in my reports (IR or otherwise I think) don't get set. For example if I have a query returning a data value back as 1 or 2, and I have an LOV to translate that to 1 = Male, 2 = Female -- and I have it set to display the value of the LOV for the value -- that is seemingly getting lost in the copy.
    It's extremely painful to have to go to my new copied app and set everything manually again. And this is horrendous for an import/export from dev/test/production moving.
    Any thoughts/ideas how to resolve? Is it an APEX bug?
    Thanks
    David

    I just upgrade to 4.0.2 in hopes it would solve my problem, but unfortunately it doesn't. What could it be about my app? Again, here's what is happening: it seems that anywhere I'm using a "display based on LOV" column in a report (maybe just on IRs, can't find any on non IR reports) -- when I either export/import my app, or simply copy it in the same workspace, the Named LOV attribute is not set in the copy/import -- so the reports don't show my display values.
    Could it be something about my LOVs? Maybe I should try to recreate some of them?
    I wonder is there somewhere in the export file that I could look to see what's missing/going on? Weird thing is that when I ran a copy of my app, there was at least ONE report column that as showing correctly, but when I go and edit that column, I can see the LOV is NOT selected, and I can't save it without selecting one! So it's very strange, and unfortunately 4.0.2 doesn't solve it.
    I'll have to try to create a new lov and do a test. But this is a big deal because I can't move my app to from DEV to TEST or PROD if I have to go into it afterwards and change all the LOV based columns. I suppose a work-around would be to change all my queries to get the display value themselves instead of relying on the LOVs....I wonder if that would be more or less efficient?
    No one else has seen this issue?
    Thanks
    David

Maybe you are looking for

  • No sound device

    Hi all, I need some help for a little problem. Got my new 13" MacBook Pro today and after starting it with the delivered HDD and quick checking its functionality I swapped the HDD. I took the bigger and faster drive with the Leopard installation from

  • AHHH!  Leopard installation gone awry, please help!

    Okay, so here's what happened. I had my husband's iBook G4, and I was installing Leopard on it, with the idea that he would be happy about it when he got home from work. So I started installing Leopard. At about 1/20th through the installation, my hu

  • Customized report on Cisco Prime 2.0

    Hi to all, I'm searching for a customized report on the Cisco PI 2.0. I'd like to have a report showing an inventory of my APs wit their ethernet mac, radio mac, IP, serial number. I did have a look at the 'device' part available on the Report launch

  • Purchase For another Company Code

    Hi A Scenario like 1) Plant 1000 issue PO to External Vendor 2) External Vendor Ship the Parts to Plant 2000 3) Plant 2000 Perform GR 4) Ext.Vendor Issue Bill to Plant 1000. 5) An AR & AP settlement between the Plant 1000 & 2000. Any Idea what config

  • Running slow... said my start-up disk memory was full and I'm only using 200GB of 1TB hard drive.

    Running slow... said my start-up disk memory was full and I'm only using 200GB of 1TB hard drive.