AAA Problem when WAN is offline

Hi All,
I have a problem at the moment logging into a router while the WAN is offline. TACACS+ works fine when the WAN is up but when its down i get prompted for a password which i enter and then get authorisation failed...
Here is the AAA config
aaa authentication login default group tacacs+ enable
aaa authorization config-commands
aaa authorization exec default group tacacs+
aaa accounting exec default start-stop group tacacs+
aaa accounting commands 1 default start-stop group tacacs+
aaa accounting commands 15 default start-stop group tacacs+
aaa accounting network default start-stop group tacacs+
aaa accounting connection default start-stop group tacacs+
aaa accounting system default start-stop group tacacs+

Specifying local as a backup method for authorization may get around this problem, but does it not require that local user IDs and passwords be configured? Since the authentication login did not use the local IDs as backup I wonder about the logic of doing this for authorization. I have had good success by configuring authorization like this:
aaa authorization exec default group tacacs+ if-authenticated
which will bypass authorization processing if TACACS is not available and if the user has successfully authenticated.
HTH
Rick

Similar Messages

  • Nokia xl, problem when starting an offline mix vi...

    When I start an offline mix  and my phone is already connected via bluetooth, the mix does not start and back to the list.
    to hear it via bluetooth, I have to start the mix with the BT disabled, then I can enable it.
    Feedback already sent.

    Hi, RamanaReddy.
    How's your day? ;-) Are you still experiencing the mentioned issue with your Nokia XL? Does this happen with all your active calls or only with specific contact numbers? Did you happen to change any settings on your phone or install an app/game that possibly caused such behavior? 
    Have you tried restarting your phone? Remove the battery, put it back into the phone and then power it on to do that. By the way, where are you located? 
    We look forward to your reply & welcome to our community. 

  • Could anybody suggest how I must fix the outgoing mail server-SMTP problem, when it indicates to be offline? I couldn't manage to turn it on. Thank you!

    Hello everybody!
    Could anybody suggest how I must fix the outgoing mail server-SMTP problem, when it indicates to be offline?
    I tried everythind and still couldn't manage to turn it on.
    Thank you!

    Hopefully I solved it....

  • Exchange Mail Offline Problem when moving/deleting mails

    Hi there,
    I am using the Apple Mail Program to connect to my corporate Microsoft Exchange Server. This work perfectly well (also with the calendar, tasks, etc.)
    Mail also work s well while I am online.
    When I work offline (I often travel in planes in trains) I can write emails, respond to mails and those will be synchronized without any problem when I am back online.
    But the strange thins is that Mail sets back all changes in my inbox without any recognizable trigger. Meaning, I am moving emails from the inbox folder to other folders and/or deleting emails from my inbox. After switching from the inbox to another folder, or simply shortly to another program and then coming back, ALL moved and deleted emails show up again in the inbox. This is strange, because I am offline the whole time - thus the expanation that the server synch has changed everything back cannot be. At the same time, written emails stay in the outbox folder and remain there until I go online again.
    I asked an apple employee at Genious Bar but he could help me. Another friend of me who uses another corporat Exchange Server experiences the same  problem. Can anyone help?

    One thing that may help is to go to Mail Preferences, Accounts, and in your account under the Advanced tab select the check box for "Prompt me to skip messages over xxx kB" (where you indicate how many kB). This can reduce the download times by factors of 2 to 4 or more, depending on the size of the attachments.
    I think the more specific control you are looking for that is analogous to what you can do on the iPhone and iPad might not be available on the computer versions of Mail.
    Edit added: I just noticed that the above option is only available for POP accounts, but not for Exchange (IMAP) accounts, so unfortunately it may not apply to your account.
    Message was edited by: steve626

  • How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    How do i deactivate a device through icloud if the device is broken and i am unable to turn on find my iphone? Also i do not own a apple id as ive been using a family members due to problems when trying to make one?

    Hey tyjox,
    Thanks for the question. After reviewing your post, it sounds like you need to deactivate Find My iPhone on a device that does not work. You will need to work with the family member of the account the iPhone is registered with. I would recommend that you use this article to help you resolve or isolate the issue.
    iCloud: Remove your device from Find My iPhone
    http://support.apple.com/kb/PH2702
    Remove an iOS device you no longer have
    If you no longer have the iOS device because you gave it away or sold it, you need to remotely erase it before you can remove it.
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud).If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.
    Click All Devices, then select the device.
    Click Erase [device], then enter your Apple ID password. Because the device isn’t lost, don’t enter a phone number or message.If the device is offline, the remote erase begins the next time it’s online. You’ll receive an email when the device is erased.
    When the device is erased, click Remove from Account.All your content is erased and someone else can now activate the device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Why does my Macbook Pro crash almost immediately when I'm offline?

    My Macbook Pro (late 2007 if i'm right) crashes randomly, whether I'm using a program or not. Suddenly the whole screen freezes (I see a black mouse and not the spinning ball of death). So I'm forced to use the hard restart.
    It started a while ago, when I still was using Snow Leopard. So I did a clean install, and had to buy Mountain Lion. Ever since the clean install there were 3 software updates. But still I'm having the crash problem.
    After this last update to 10.8.5 I'm noticing that when I turn WiFi off it almost immediately crashes. And sometimes when I reboot I don't have the time to turn on WiFi again or it already has crashed.
    Though I remember that my mac also crashed when I was using the ethernet cable and when i was using WiFi. Only now with the offline modus it seems that crashing is the only thing he can do.
    This is what I already tried:
    -Making a second account as administrator and start up in the safe mode: but still crashes when I go offline.
    -using disk utility to veridy and repair disk permissions: all good.
    -NVRAM reset
    -SMC reset
    I don't know what kind of information anyone needs, but:
    Processor  2,2 GHz Intel Core 2 Duo
    Geheugen  4 GB 667 MHz DDR2 SDRAM
    Videokaart  NVIDIA GeForce 8600M GT 128 MB
    Software  OS X 10.8.5 (12F45)
    And my harddrive has 56 gb free right now.

    Thank you for your fast answer.
    Even though I don't understand the connection between working offline and my videocard I believe you because I see sometimes blocked images when something tries to load or when i scroll down, mostly in photoshop. So I'm considering buying a new computer.
    I tested my harddrive a while ago and it still seemed ok. (still i back up all the important stuff constantly).
    Though I wanted to ask if you know if the Nvidia is a part of my logic board. I had my logic board replaced in 2010 because of an Nvidia error. So that part isn't that old. Still I can imagine that it doesn't work well anymore with other hardware or software on my computer.

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Problem when I extend an oracle rac 10g on new node

    Hi everyone
    I need to extend an oracle RAC but i have problems when I add a new node. My actual enviroment is:
    1) Oracle Grid Infraestructure 11gR2 - 11.2.0.3 (Upgraded from Clusterware 10gR2 + ASM 10gR2)
    2) Oracle Rac Database - 10.2.0.5
    (all on one only node)
    The first problem was when I executed the script "root.sh" on the new node because this script called the old Clusterware home (/oracle/product/10.2.0/crshome). I edited the file and I changed this path for /oracle/gridbase/product/11.2.0/gridhome (current home for GI). Finally, I execute the script.
    Now, I tried to extend the rac through of DBCA, but when, I choose the new node and I clic on "next" button then appears the following error:
    "The nodes "[rstatbdbpm02]" are not part of the cluster. Make sure clusterware is active on these nodes before proceeding"
    However, when I execute the "crsctl" command to view the status of cluster the result is correct:
    [oracle@rstatbdbpm01] /home/oracle > crsctl status res -t
    NAME TARGET STATE SERVER STATE_DETAILS
    Local Resources
    ora.DATA.dg
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.LISTENER.lsnr
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.asm
    ONLINE ONLINE rstatbdbpm01 Started
    ONLINE ONLINE rstatbdbpm02 Started
    ora.gsd
    OFFLINE OFFLINE rstatbdbpm01
    OFFLINE OFFLINE rstatbdbpm02
    ora.net1.network
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.ons
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    ora.registry.acfs
    ONLINE ONLINE rstatbdbpm01
    ONLINE ONLINE rstatbdbpm02
    Cluster Resources
    ora.BDBPM.BDBPM1.inst
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.BPMVEH.BDBPM1.srv
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.BPMVEH.cs
    1 ONLINE ONLINE rstatbdbpm01
    ora.BDBPM.db
    1 ONLINE ONLINE rstatbdbpm01
    ora.LISTENER_SCAN1.lsnr
    1 ONLINE ONLINE rstatbdbpm02
    ora.LISTENER_SCAN2.lsnr
    1 ONLINE ONLINE rstatbdbpm02
    ora.LISTENER_SCAN3.lsnr
    1 ONLINE ONLINE rstatbdbpm01
    ora.cvu
    1 ONLINE ONLINE rstatbdbpm01
    ora.oc4j
    1 ONLINE ONLINE rstatbdbpm01
    ora.rstatbdbpm01.vip
    1 ONLINE ONLINE rstatbdbpm01
    ora.rstatbdbpm02.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan1.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan2.vip
    1 ONLINE ONLINE rstatbdbpm02
    ora.scan3.vip
    1 ONLINE ONLINE rstatbdbpm01
    [oracle@rstatbdbpm01] /home/oracle >
    Please, Any idea with that problem?
    Thanks,
    Luis

    Hi,
    Please check dbca trace logs for further checks, it will give an idea what command is being run to check status of cluster.
    Generally first checks should be on inventory for rdbms home, grid home and making sure no ORACLE related parameter is set in environment.
    Regards,
    Sharma

  • Hi i have an apple macbook air, and i have a problem the starting my mackbook air i dont know that whats the problem, i wana share a video clip 4 u see the clip and tell me that what i do or resolve this problem 1st tell me ho can i post hre my video clip

    Hi i have an apple macbook air, and i have a problem the starting my mackbook air i dont know that whats the problem, i wana share a video clip 4 u see the clip and tell me that what i do or resolve this problem 1st tell me ho can i post here my video clip ?

    Which Mac OS X is installed.
    Troubleshooting advice can depend on that information.
    Without seeing a video, tell us exactly what happens when you startup your Mac?

  • I use captivate 8, the problem when i make app for android. the sound not heard. i use android4.4. how i do?

    i use captivate 8, the problem when i make app for android. the sound not heard.
    i use android4.4. how i do?
    i use phonegap online.
    thank you

    Yes I do spend a lot of time in China but I have had problems in other countires as well.  I am in China right now.
    I have two Gmail accounts and one Cox account.  Cox is my intranet provider back home.  I have had problems with all three accounts. 
    I have tried several outgoing port settings.  993, 995 465, 587 are some that I can remember trying.
    Sometimes my accounts will go offline without me doing anything.  This is all a mystery to me.  I don't have any idea why I have trouble like this.  A few minutes ago I changed my Cox account outgoing port and took the account on line and I got my incoming email but when I tried to forward an email that I got it would not go out. 
    Any ideas you have would be helpful.

  • I have an Epson printer on a Wifi network. Windows 7 desktop and and HP Win 7 laptop (my wifes) print to it just fine. My MacBook Pro running Yosemite won't detect it, and I have the latest driver installed. No problem when I had a Canon...

    I have an Epson printer on a Wifi network. Windows 7 desktop is running the network, and my wife's HP Win 7 laptop prints to it just fine. My MacBook Pro running Yosemite won't detect it, and I do have the latest driver installed. I didn't have a problem when I had a Canon Pixma on the network, but when I replaced it with the Epson nothing seems to work. I go to add a printer to the queue and only the FAX function of the printer shows up - not the WS-4530 print function. Does anyone out there have any suggestions?  Please??? :-)

    Hi Kelly,
    As someone who has to print from my Mac to a networked printer at home all the time, I can certainly understand how frustrating it must be to have that fail to perform as expected. Let's see if we can get you up and running.
    I would suggest that you troubleshoot using the steps in this article -
    OS X Yosemite: Printing troubleshooting
    Start with the section titled Check the network.
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

  • How do I stop Firefox from creating untitled web pages when I try to send email from a web page. The only way I have found is to turn the computor off and then reboot. I don't have this problem when using Internet Explorer

    Every time I click on a web site that has an email option the browser starts making untitled web pages and never stops unless I turn the computer off. It is very frustrating to not be able to use an email option when offered by a web site. The only way I can send email messages on the Firefox browser is to go into my hotmail acct. and copy and paste the addresses. I don't have this problem when I use the Internet Explorer browser.

    See [[Firefox keeps opening many tabs or windows]]

  • Firefox gets problems when 2,7 GB of memory is used by Firefox

    Firefox gets problems when 2,7 GB of memory is used by Firefox. Or more. Like 2,8 GB.
    It started when I read jpost.com with tens of tabs open. I don't remember how many. But I know there was more than 40.
    On the tab I that I was reading, the page turned completely black. Pitch black with nothing else, not even the Firefox interface. It was actually a pitch black shape that looked like a web page in shape. The blackness quickly disappeared and the page was normally readable again. But then it happened again - the page turned black again.
    The same page turns black happened again later.
    One of my browsing sessions had Firefox slow down so much that you could see scrolling happening when I used scrolling.
    Still another time I had 60 tabs open and Firefox worked completely fine without freezes, slowdowns, or black shapes. I could close Firefox by just pressing the red X in the title bar.
    Yesterday, I had 50 tabs open and I experienced a slowdown when I looked at the Breaking News headlines. The headlines would show slower than usual. The Breaking News headlines at jpost.com show the headlines a few words at a time until the headline is completely shown. Then the headline disappears and the next starts showing a few words at a time. And speed in general was not what you normally have with a computer that has 8 GB of memory. And a Core i5 processor. I opened two more tabs from the Breaking News section I had opened. After I opened a new window, Firefox froze. I had to close Firefox from the Task Manager by pressing End process. I had used Firefox for 6 hours without ever closing any of the tabs I had opened.
    In all of these cases, more than 40 tabs were open. In all of these cases, the slow down or freeze meant I had to use Task Manager and then press End process on the Processes tab. In all cases except the two I describe in the next paragraph, I never close any tabs after opening them. No problems have ever happened until Firefox started using 2,7 GB of memory. Until that point, everything is normal with no freezes or slowdowns.
    At two times, I tried to reduce memory usage by closing tabs. However, in both cases this would make Firefox freeze. In one of these cases, Firefox would show something bizarre: there would be about 7 tabs, and one of the tabs would be partly shown. Also, Firefox would show the busy cursor. Firefox did not show how many tabs I actually had. The second time, I tried to close the tabs by clicking Close other tabs in the menu that you get when right-click a tab. The tabs would close fine, but I remember that I opened Gmail and then I did this: I clicked on the Promotions tab. Instead of seeing the tab with the Emails, Firefox showed a busy cursor and the title bar said not responding. Firefox froze.
    The reason might be Adblock Plus memory usage. In Adblock Plus home page, developer Wladimir Palant writes in his blog about how Adblock Plus uses a lot of memory: https://adblockplus.org/blog/on-the-adblock-plus-memory-consumption .

    One more bit of information: I have a Geforce 640 GT graphics card. My graphics card drivers are old- version 311.41. The newest version of the drivers is 340.52. Would a new graphics card driver solve the problem?

  • Problem when I execute program SCM in background

    Hi experts,
        I am with problem when I execute a program (SCM) in background. I inserted a new field (estoque_seg(10)) and the process stopped at execute in background.When I call transaction and press F8, works but for this, I need jump the consistence  IF sy-batch IS INITIAL....Dont has any bath imput, only functions. Any idea?
    Follow below the code:
    Estrutura para tabela ENTRADA
    DATA: BEGIN OF st_entrada,
            matnr(40)            TYPE c,
            werks(20)            TYPE c,
            ponto_abas(10)       TYPE c,
            estoque_max(10)      TYPE c,
            cobertura(10)        TYPE c,
            estoque_seg(10)      TYPE c, " Erlon Lourenço 20/01/2011
          END OF st_entrada.
    Estrutura para tabela de LOG
    *TYPES: BEGIN OF st_saida,
           pernr(8)             TYPE c ,
           date(10)             TYPE c,
           er_contribuition(15) TYPE c,
           tax(15)              TYPE c,
           msg_erro(80)         TYPE c,
         END OF st_saida.
    Tabela para obter descricao da mensagem
    *DATA: ti_saida TYPE STANDARD TABLE OF st_saida WITH HEADER LINE
                                                  INITIAL SIZE 0.
    Tabela que recebera o arquivo texto
    DATA: BEGIN OF ti_entrada OCCURS 0.
            INCLUDE STRUCTURE st_entrada.
    DATA: END OF ti_entrada.
    DATA: BEGIN OF it_matid OCCURS 0,
      matnr TYPE /sapapo/matkey-matnr,
      matid TYPE /sapapo/matkey-matid,
    END OF it_matid.
    DATA: BEGIN OF it_locid OCCURS 0,
      locno TYPE /sapapo/loc-locno,
      locid TYPE /sapapo/loc-locid,
    END OF it_locid.
    DATA: BEGIN OF it_matlotsz OCCURS 0,
      target_dur TYPE /sapapo/matlotsz-target_dur,
      END OF it_matlotsz.
    DATA:        wa_matloc       LIKE /sapapo/matloc   OCCURS  0 WITH HEADER LINE,
                 wa_matlsim      LIKE /sapapo/matlsim  OCCURS  0 WITH HEADER LINE,
                 wa_matlotsz     LIKE /sapapo/matlotsz OCCURS  0 WITH HEADER LINE.
    Variáveis Globais
    DATA: v_tabix   TYPE sy-tabix,
          v_vrsioid TYPE /sapapo/apo01-vrsioid,
          v_tam     TYPE i.
        Select-Options & Parameters
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_versao    TYPE /sapapo/apo01-vrsioex OBLIGATORY DEFAULT '000',
                 p_abas  AS CHECKBOX  ,
                 p_est   AS CHECKBOX  ,
                 p_cober AS CHECKBOX  ,
                 p_estsg AS CHECKBOX.   " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
    SELECTION-SCREEN END OF BLOCK b1.
        Start-of-Selection
    START-OF-SELECTION.
      PERFORM consiste.
      PERFORM f_upload.
      PERFORM f_processa_batch.
      PERFORM f_saida_dados.
      MESSAGE i000 WITH 'Processo encerrado com Sucesso'.
    END-OF-SELECTION.
    *&      Form  F_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM f_upload .
      DATA: lc_file TYPE string.
      TYPES: BEGIN OF st_ent,
                cam(80),
             END OF st_ent.
      DATA: ti_ent TYPE STANDARD TABLE OF st_ent WITH HEADER LINE
                                                  INITIAL SIZE 0.
      RANGES: r_file       FOR zget0001-field_content.
      r_file[] = zbs_constantes=>obter( i_bukrs = space i_field = 'FILE' i_process = 'PONTO-REAB' ).
      READ TABLE r_file INDEX 1.
      lc_file = r_file-low.
      CLEAR: ti_entrada,
             ti_entrada[],
             ti_ent,
             ti_ent[].
    abrir arquivo para leitura
      OPEN DATASET lc_file FOR INPUT  IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        MESSAGE i000 WITH text-e01.
        STOP.
      ENDIF.
    Leitura de arquivos
      DO.
        READ DATASET lc_file INTO ti_ent.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        APPEND ti_ent.
      ENDDO.
    Fechamento do arquivo
      CLOSE DATASET lc_file.
      LOOP AT ti_ent.
        SPLIT ti_ent AT ';' INTO ti_entrada-matnr ti_entrada-werks ti_entrada-ponto_abas ti_entrada-estoque_max ti_entrada-cobertura ti_entrada-estoque_seg.
        APPEND ti_entrada.
      ENDLOOP.
    ENDFORM.                    " F_UPLOAD
    *&      Form  F_PROCESSA_BATCH
          text
    -->  p1        text
    <--  p2        text
    FORM f_processa_batch .
      LOOP AT ti_entrada.
        v_tabix = sy-tabix.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-matnr
          IMPORTING
            output = ti_entrada-matnr.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-ponto_abas
          IMPORTING
            output = ti_entrada-ponto_abas.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-estoque_max
          IMPORTING
            output = ti_entrada-estoque_max.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-cobertura
          IMPORTING
            output = ti_entrada-cobertura.
    IA - ERLON LOURENCO - 20/01/2012
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = ti_entrada-estoque_seg
          IMPORTING
            output = ti_entrada-estoque_seg.
    FA - ERLON LOURENCO - 20/01/2012
        MODIFY ti_entrada INDEX v_tabix.
      ENDLOOP.
      CLEAR: it_matid,
             it_matid[],
             it_locid,
             it_locid[],
             wa_matlsim,
             wa_matlsim[],
             wa_matloc,
             wa_matloc[].
      SELECT matnr matid INTO TABLE it_matid FROM /sapapo/matkey
      FOR ALL ENTRIES IN ti_entrada WHERE matnr = ti_entrada-matnr.
      SELECT locno locid INTO TABLE it_locid FROM /sapapo/loc
      FOR ALL ENTRIES IN ti_entrada WHERE locno = ti_entrada-werks.
      IF p_versao = '000'.
        LOOP AT ti_entrada.
          READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
          IF sy-subrc = 0 .
            READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
            IF sy-subrc = 0.
              SELECT SINGLE * INTO wa_matloc FROM /sapapo/matloc WHERE matid = it_matid-matid  AND
                                                                       locid = it_locid-locid.
              IF sy-subrc = 0.
                IF p_abas = 'X'.
                  wa_matloc-reord    = ti_entrada-ponto_abas.
                ENDIF.
                IF p_est = 'X'.
                  wa_matloc-maxstock = ti_entrada-estoque_max.
                ENDIF.
                " IA - Erlon Lourenço - 23/01/2012
                if p_estsg = 'X'.
                  wa_matloc-safty    = ti_entrada-estoque_seg.     " Erlon Lourenço - 23/01/2012
                endif.
                "FA - Erlon Lourenço - 23/01/2012
                IF p_abas  = 'X'   OR
                   p_est   = 'X'   OR
                   p_estsg = 'X'.      " Erlon Lourenço - 23/01/2012
                  APPEND wa_matloc TO wa_matloc.
                ENDIF.
                SELECT SINGLE * INTO wa_matlotsz FROM /sapapo/matlotsz WHERE lszid = wa_matloc-lszid.
                IF sy-subrc = 0.
                  IF p_cober = 'X'.
                    wa_matlotsz-target_dur = ti_entrada-cobertura.
                    APPEND wa_matlotsz TO wa_matlotsz.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.   " LOOP AT ti_entrada.
      ELSE.
    Verifica versáo para saber se preenche a tabela wa_matlsim
        SELECT SINGLE vrsioid INTO v_vrsioid FROM /sapapo/apo01 WHERE vrsioex = p_versao.
        IF sy-subrc = 0.
          SELECT * INTO TABLE wa_matlsim FROM /sapapo/matlsim WHERE simid = v_vrsioid.
          IF wa_matlsim[] IS NOT INITIAL.
            LOOP AT ti_entrada.
              READ TABLE it_matid WITH KEY matnr = ti_entrada-matnr.
              IF sy-subrc = 0 .
                READ TABLE it_locid WITH KEY locno = ti_entrada-werks.
                IF sy-subrc = 0.
                  READ TABLE wa_matlsim WITH KEY matid = wa_matloc-matid
                                                 locid = wa_matloc-locid.
                  IF sy-subrc = 0.
                    wa_matlsim-reord    = ti_entrada-ponto_abas.
                    wa_matlsim-maxstock = ti_entrada-estoque_max.
                    wa_matlsim-safty    = ti_entrada-estoque_seg.     " Erlon Lourenço - 23/01/2012
                    MODIFY wa_matlsim INDEX v_tabix.
                  ENDIF.
                ENDIF.
              ENDIF.
            ENDLOOP.  " LOOP AT ti_entrada.
          ENDIF.     " IF wa_matlsim[] IS NOT INITIAL.
        ENDIF.     " IF sy-subrc = 0. 1º
      ENDIF.     "IF p_versao = '000'
    Funcáo que atualiza campos nas bases de dados.
      CALL FUNCTION '/SAPAPO/DM_PRODUCTS_POST'
        EXPORTING
          iv_vb         = 'U'
        TABLES
          it_matloc     = wa_matloc
          it_matlsim    = wa_matlsim
          it_matlotsz   = wa_matlotsz
        EXCEPTIONS
          not_qualified = 1
          insert_failed = 2
          update_failed = 3
          OTHERS        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " F_PROCESSA_BATCH
      FORM  BDC_DYNPRO
    *&      Form  F_SAIDA_DADOS
          text
    -->  p1        text
    <--  p2        text
    FORM f_saida_dados .
    IF ti_saida[] IS NOT INITIAL.
       DATA: lc_file TYPE string.
       lc_file = p_erros.
       CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
      BIN_FILESIZE                    =
           filename                        = lc_file
      FILETYPE                        = 'ASC'
         TABLES
           data_tab                        = ti_saida
      FIELDNAMES                      =
        EXCEPTIONS
          file_write_error                = 1
          no_batch                        = 2
          gui_refuse_filetransfer         = 3
          invalid_type                    = 4
          no_authority                    = 5
          unknown_error                   = 6
          header_not_allowed              = 7
          separator_not_allowed           = 8
          filesize_not_allowed            = 9
          header_too_long                 = 10
          dp_error_create                 = 11
          dp_error_send                   = 12
          dp_error_write                  = 13
          unknown_dp_error                = 14
          access_denied                   = 15
          dp_out_of_memory                = 16
          disk_full                       = 17
          dp_timeout                      = 18
          file_not_found                  = 19
          dataprovider_exception          = 20
          control_flush_error             = 21
          OTHERS                          = 22
       IF sy-subrc <> 0.
         MESSAGE i005 WITH 'Error to unload file !'.
         STOP.
       ENDIF.
    ENDIF.
    ENDFORM.                    " F_SAIDA_DADOS
    *&      Form  CONSISTE
          text
    -->  p1        text
    <--  p2        text
    FORM consiste .
      IF p_abas  IS INITIAL  AND
         p_est   IS INITIAL  AND
         p_cober IS INITIAL AND
         p_estsg IS INITIAL.   " ERLON LOURENCO - 20/01/2012 - Estoque Segurança
        MESSAGE i000 WITH text-e03.
        STOP.
      ENDIF.
      IF sy-batch IS INITIAL.
        MESSAGE i000 WITH text-e02.
        STOP.
      ENDIF.
    Best regards,
    Erlon Lourenço
    Edited by: Erlon Louren on Jan 27, 2012 11:09 AM

    Hi Raja,
                Check weather there are  any enhancements to the datasource.If yes once check the code in CMOD.Seems there is some discrepency in that.
    Regards
    Karthik

  • Design problem when using Area Group Page -- BSP

    We have installed MSS ERP2004 and are using the webdynpro based Area Group Page. From this page we have added links to diffrent BSP application (using BSP-iviews in the PCD).
    The problem:
    When we opens one of these links from the Area Group Page the BSP application is opening but the portal design is not inherited.
    The strange thing is that if we refresh the iview the portal design is inherited.
    Why did it not work when opened at first?
    'Support portal integration' is ticked of in the BSP application.
    'Supply Portal Stylesheet' is set to 'Yes' for the iview in the PCD.
    We are running ERP2004/WAS6.40.
    Anyone with the same experience?
    Regards
    Bjorn

    We have installed MSS ERP2004 and are using the webdynpro based Area Group Page. From this page we have added links to diffrent BSP application (using BSP-iviews in the PCD).
    The problem:
    When we opens one of these links from the Area Group Page the BSP application is opening but the portal design is not inherited.
    The strange thing is that if we refresh the iview the portal design is inherited.
    Why did it not work when opened at first?
    'Support portal integration' is ticked of in the BSP application.
    'Supply Portal Stylesheet' is set to 'Yes' for the iview in the PCD.
    We are running ERP2004/WAS6.40.
    Anyone with the same experience?
    Regards
    Bjorn

Maybe you are looking for