Problems when maintaining 0MATERIAL

Hi,
I have found a problem with 0MATERIAL characteristic. when you double-clic on it, a message displays:
"Settings for material number conversion not found"
And the create/maintain infoobject shows all the text boxes blank.
¿does any one knows what is happening?
thanks for the help.
Mauricio

Hi.......
Try oss note 555675, it tells you to use transaction OMSL.
Symptom
One of the following errors occurs:
1. The following message appears when you create or schedule an InfoPackage: RC = 4'.
2. When you display the 0MATERIAL InfoObject or when you use the InfoObject  in a query, the message 'Settings for the material number conversion do not exist' appears (message number BMG 135).
3. When you display the master data for the 0PRODUCT InfoObject in transaction RSD1, the 'Setting for the material number conversion does not exist' (message number BMG 135).
4. The error message BMG 135 is written to the log when you execute the after-import method of an InfoSpoke. The transport receives the return code 8.
Other terms
BMG135, MATN1, conversion exit, OMSL, TMCNV, InfoSpoke, transport
Reason and Prerequisites
There are no settings for the material number conversion.
Solution
Make the settings for the material number conversion.
In BW Release 2.1C, the settings are maintained for the material number conversion via report RSCC_V_TMCNV.
As of BW Release 3.0A, the settings are maintained for the material number conversion via transaction OMSL.
Select the same settings as the settings made in the OLTP system.
Note that you must also perform the setting in client 000 if the error occurred while you were importing a transport request.
Hope this helps.......
Regards,
Debjani.......
Edited by: Debjani  Mukherjee on Oct 21, 2008 7:20 AM

Similar Messages

  • Problem when creating Database (Database, OS and hardware Configuraiton included)

    Problem when creating Database:
    Below are the problems, which I faced during creation of database. I have mentioned both the problem separately. Plus the log file maintained by Oracle during installation. It might help in diagnosing the error. Plus a little conclusion with I turned up to.
    There are two problems, when creating database with Oracle Database Assistant. One when creating pre tuned database from CD. And second when creating customized database giving options your self.
    Problem # 1:
    When creating pre tuned database from CD. The process of creating Database is 90 % complete and is at step # 3 Initializing Database. It gives error ORA-03113: end-of-file on communication channel.
    I searched following oracle help for this problem.
    ORA-03113: end-of-file on communication channel
    Cause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8, two-task software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.
    Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of customer support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Problem # 2:
    When creating database with custom option. The process of creating Database is 2 % complete and is at step # 2 Creating Database Files. It gives error ORA-12571: TNS:packet writer failure.
    I searched following oracle help for this problem.
    ORA-12571: TNS:packet writer failure
    Cause: An error occurred during a data send.
    Action: Not normally visible to the user. For further details, turn on tracing and re-execute the operation. If error persists, contact Worldwide Customer Support.
    Conclusion:
    What I conceive from this problem and the help available is that, I have to install NET8 again. But I am not sure about the solution, please tell me whether I am rite or not.
    Log File Showing Error :
    Result code for launching of configuration tool is 0
    Launched configuration tool Oracle Database Configuration Assistant
    Command which is being spawned is C:\Program Files\Oracle\jre\1.1.7\bin/jrew.exe -Duser.dir=d:\oracle\ora81\assistants\dbca\jlib -classpath ";C:\Program Files\Oracle\jre\1.1.7\lib\rt.jar;C:\Program Files\Oracle\jre\1.1.7\lib\i18n.jar;d:\oracle\ora81\jlib\ewt-3_3_6.jar;d:\oracle\ora81\jlib\share-1_0_8.jar;d:\oracle\ora81\jlib\swingall-1_1_1.jar;d:\oracle\ora81\assistants\dbca\jlib\dbassist.jar;d:\oracle\ora81\assistants\jlib\jnls.jar;d:\oracle\ora81\assistants\jlib\acc.jar;d:\oracle\ora81\jlib\help-3_1_8.jar;d:\oracle\ora81\jlib\ice-4_06_6.jar;d:\oracle\ora81\jlib\netcfg.jar;" DBCreateWizard -progress_only -responseFile NO_VALUE -createtype seed -numusers NO_VALUE -apptype NO_VALUE -cartridges NO_VALUE -options NO_VALUE -demos NO_VALUE -seedloc d:\oracle\ora81\starterdb -sid ora8i -orabase d:\oracle -clususer NO_VALUE -cluspswd Protected value, not to be logged -nodeinfo NO_VALUE -gdbName ora8i
    Invalid Exit Code. The following result code will be used for configuration tool: 1
    Configuration tool Oracle Database Configuration Assistant failed
    The datafiles will be copied from the CD to d:\oracle\oradata\ora8i. The Oracle Database Configuration Assistant will begin creating the database.
    An Oracle database will be created for you. The database name will be ora8i. The system identifier for the database will be ora8i. The password for the INTERNAL account will be ******, the SYS account will be change_on_install and the SYSTEM account will be manager.
    Log File of Installation:
    The above code is a part of the log file, which is generated by Oracle installer at C:\Program Files\Oracle\Inventory\Log\..
    I just pasted the part of code, highlighted is the code showing error with Oracle Database Configuration Assistant.
    Software & Hardware Configuration are as follow:
    Software:
    Database
    Oracle 8.1.7.0.0 (Oracle8i)
    Operating System
    Microsoft Windows 2000
    5.00.2195
    Service Pack 2
    Hardware:
    x86 Family 6 Model 8 stepping
    10
    AT/AT COMPITABLE
    260,400 KB RAM

    Dont't worry about that. Before you
    create a table(or view), it is wise to
    drop the table(or view) with the same name.
    If the name doesn't exist, of course there
    is an error message. See the following script:
    -------------------begin-----------
    drop table students cascade constraints;
    create table students (
    sid varchar2(5),
    fname varchar2(20),
    lname varchar2(20) not null,
    minit char,
    primary key (sid));
    --------------end-----------------
    Good day!
    null

  • I have a problem when I updated CS6:

    hi,
    I have a problem when I updated CS6:
    Extension Manager 6.0.5 Update
    Installation failed. Error Code: U44M1P7
    Adobe Photoshop 13.0.5
    Done with Errors. Error Code: U44M1P6
    What is it?
    Thx
    Message was edited by: PhotoPlusMore

    www.photoplusmore.com.au       
        m: 0408 96 11 40
        p: (02) 955 22 707
    Begin forwarded message:
    From: Lee_Ann_H <[email protected]>
    Subject: I have a problem when I updated CS6:
    Date: 23 June 2013 2:40:39 PM AEST
    To: PhotPlusMore <[email protected]>
    Reply-To: [email protected]
    Re: I have a problem when I updated CS6:
    created by Lee_Ann_H in Adobe Creative Cloud - View the full discussion
    Hi PhotPlusMore, these links may help.
    Extension Manager: http://helpx.adobe.com/creative-suite/kb/error-u44m1p7-installing-upda tes-ccm.html
    Photoshop: http://blogs.adobe.com/photoshopdotcom/2013/06/photoshop-cs6-13-0-5mac -13-0-1-2win-perpetual-license-updates-now-available.html
    Let us know if you're still having trouble. Thanks!
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5440165#5440165
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5440165#5440165
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5440165#5440165. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem when creating contract  with foreign trade / customs

    Hi,
    I encountered a problem when creating contract / outline agreement.
    I used ME31K to create a contract with a vendor outside of our country. I suppose that I should be able to see "Foreign Trade / Customs" in "Header" menu, but this entry is gray, I cannot enter it.
    I tried to create a scheduling agreement using ME31L with the same vendor and material, I can see "Foreign Trade / Customs" information. I suppose these two process are similar, aren't they?
    Btw., I checked the master data according to this thread:
    http://help.sap.com/saphelp_46c/helpdata/en/ed/3b6cc697e711d1b4e20000e82d81b0/content.htm
    Can anyone give me some hint?
    Thanks!
    Charlie

    These two processes are different:
    The Contract agreement or the Outline Agreement is that create the centrally contract (cross-plant) where it can maintain different pricing conditions for each and every plant. It creates the Release Order with reference to Outline Agreement. No detailed delivery schedule can be made in the Release Order. No Release documentation is created. Only time-dependent conditions can be created, Some Item Category 'M' and 'W' can be used.
    Whereas the Scheduling Agreement is the Plant Location what must be entered in the Scheduling Agreement. Its no need to create any other purchasing document except for delivery schedule line via Transaction ME38 or MRP running (with the appropriate setting of Source List). Delivery Schedule line items are created subject to your specific requirement. It can create both Scheduling Agreement with or without release of Documentation (subject to the Document Type LP or LPA) with the selection of either FRC or JIT delivery schedule. Either time-dependent or time-independent conditions can be created subject to the customizing in the Document Type of the Scheduling Agreement. Item Category 'M' and 'W' can not be used.

  • A namespace problem when doing Create InfoArea in bw system

    Dear all,
    we met a problem when excute a process in our bw system:
    our process as follow:
    rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea
    then a error message window came out as below.
    error in object editing
    No valid change license available for n
    /BPR3R/
    Choose 'Display object' or 'Cancel'.
    its detail message is as follow:
    Message no. TO127
    Diagnosis
    You cannot edit the object AREA 0INDUSTRIES. This may be due to the following reasons:
    The corresponding namespace /BPR3R/ is not entered in the namespace table with a valid change license.
    In the namespace table there is no entry with a valid change license that matches the template /BPR3R/.
    System Response
    The function terminates.
    Procedure
    Check the name of the object AREA 0INDUSTRIES. If necessary, choose another object name.
    Otherwise, let the system administrator check the change licenses of the namespaces in your SAP system.
    Maintain the namespaces in the Tools of the Transport Organizer under Administration -> Display/Change Namespaces.
    You need to check and correct the entries that match the template /BPR3R/.
    You need to distinguish between the following cases:
    The namespace is /0SAP/:
    Make sure that the namespace role is C (recipient) and the flags SSCR popup and SAP standard are activated. The license fields remain empty.
    You did not create the namespace yourself. Instead, the namespace owner is SAP or another software vendor.
    Make sure that the namespace role is C (recipient). The field Repair license must either contain the valid license, or the flag SSCR popup must be activated. Contact the namespace owner and ask what you should now do, and what the valid repair license is.
    You are the namespace owner:
    Proceed according to the documentation on applying for and setting up namespaces. If the namespace role is P (producer) then you need a valid development license. For information on this, see the SAP Library under BC - Basis Components -> Change and Transport System -> BC - Namespaces and Naming Conventions -> Reservation of Namespaces).
    Then we did the below action:
    se06 --> system change option
    in this view, we found  /BPR3R/ this Prefix.
    And it is empty in  /BPR3R/ 's namespace/name range volume.
    What is next action we should take to solve this problem?
    Anyone experienced or expert,
    Please kindly give advice.
    Regards,
    Allen

    Hello Allen,
    Cold you please check the following notes which explain about this namespace creation and transport ?
    401778 - Using namespaces to develop individual BW objects
    150451 - Setting up development namespaces
    105132 - Reserving namespaces
    150451 - Setting up development namespaces
    Best regards,
    Rafa

  • Met a problem when excute a process about Create InfoArea

    Dear all,
    we met a problem when excute a process in our bw system:
    our process as follow:
    rsa1(Data Warehousing Workbench:Modeling) --> InfoProvider --> Create InfoArea
    the below error message window came out.
    error in object editing
    No valid change license available for n
    /BPR3R/
    Choose 'Display object' or 'Cancel'.
    its detail as follow:
    Message no. TO127
    Diagnosis
    You cannot edit the object AREA 0INDUSTRIES. This may be due to the following reasons:
    The corresponding namespace /BPR3R/ is not entered in the namespace table with a valid change license.
    In the namespace table there is no entry with a valid change license that matches the template /BPR3R/.
    System Response
    The function terminates.
    Procedure
    Check the name of the object AREA 0INDUSTRIES. If necessary, choose another object name.
    Otherwise, let the system administrator check the change licenses of the namespaces in your SAP system.
    Maintain the namespaces in the Tools of the Transport Organizer under Administration -> Display/Change Namespaces.
    You need to check and correct the entries that match the template /BPR3R/.
    You need to distinguish between the following cases:
    The namespace is /0SAP/:
    Make sure that the namespace role is C (recipient) and the flags SSCR popup and SAP standard are activated. The license fields remain empty.
    You did not create the namespace yourself. Instead, the namespace owner is SAP or another software vendor.
    Make sure that the namespace role is C (recipient). The field Repair license must either contain the valid license, or the flag SSCR popup must be activated. Contact the namespace owner and ask what you should now do, and what the valid repair license is.
    You are the namespace owner:
    Proceed according to the documentation on applying for and setting up namespaces. If the namespace role is P (producer) then you need a valid development license. For information on this, see the SAP Library under BC - Basis Components -> Change and Transport System -> BC - Namespaces and Naming Conventions -> Reservation of Namespaces).
    Please give your advice.
    Regards

    Hi,
    this forum is about the SAP BusinessObjects BI Solution architecture. I would suggest you post your question into the SAP BW Forum.
    regards
    Ingo Hilgefort

  • Slideshow crop photos problem when i close the thumbnail botton

    In the slideshow i use thumbnail photo "turned on" to change the pictures (is it the only way to do it?)  and manage them with crop function but when i later close thumbnail (i don't want visible) photos resize. Any suggestion ?

    I have not a link yet, i'm preparing the graphic layout at the time. I bypassed the problem importing in muse the right photos size without use crop. Maybe i should see better edit photo functions tutorials. I'm new with Muse.
    Il giorno 09/ago/2013, alle ore 01.37, Brad Lawryk ha scritto:
    Re: slideshow crop photos problem when i close the thumbnail botton
    created by Brad Lawryk in Help with using Adobe Muse CC - View the full discussion
    Can you provide a link or screenshots so we can see what you are doing and what you are trying to achieve?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5579245#5579245
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5579245#5579245
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5579245#5579245. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem when creating update rules

    Hi Friends..
                I'm actually having a problem when I'm creating update rules from my cube to my Infosource. This infosource is created by Dierct update of Master data (ZXXXX) Infoobject. the error which is popping up is ,
    Data source ZMMOBJ1 not maintained (check your entries)
    Message no. RSAU252
    Diagnosis
    The data source is not active
    Can some one guide me, How I can resolve this error.??
    and where the problem must have been??
    Thanks alot in advance,

    Hi,
    Check the infosource you are using for the cube. you cant use direct update infosource.
    'Direct update of master data' infosource updates into the infoobject.
    you will not have update rules for this direct update.
    you use update rules only when you use flexible update infosource.
    hope its clear.
    shylaja.

  • Problem in maintaining the settlement rule in the maintenance order

    Dear Friends,
    I have a problem ,When  I am trying to maintain the settlement rule in the maintenance order ,I am getting information like below
    Decentralized system -> note settlement rule is not distributed
    Message no. /ISDFPS/PM124
    Diagnosis
    You navigated to the settlement rule.
    System Response
    The system informs you that a settlement rule can be created but that it will not be distributed to the target system. Settlement is carried out in the target system, where the order is usually settled to the WBS element of the operation.
    Can anyone throw some light on how this is happeing and remedy?
    Appreciating your early response

    Hello
    Please check
    TC --> KSR2_ORC
    Please maintain the Strategy Sequences for Automatic Generation of Settlement Rule.
    You define a strategy sequence for automatic generation of settlement rules for internal orders.
    Regards,
    Rakesh
    Edited by: RAKESH ASHOK MANE on Sep 3, 2010 12:37 PM

  • Problem when adding ascx user control in the MasterPage: Parser Error Message: The referenced file ... is not allowed on this page.

    Hello,
    I have to maintain a SharePoint 2010 project, in which a TopNavigation User Control for SiteCollection is registered in the MasterPage in this way:
    <%@ Register TagPrefix="ABC" TagName="TopNavigation" src="~/_layouts/ABCApplication/MainSite/Navigation/TopNavigation.ascx" %>
    <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
                                        <ABC:TopNavigation ID="TopNavi" XMLDataLocation="/_layouts/ABCApplicatopm/MainSite/TopNavigation.xml" IsRoot="true"
    runat="server" />
    </asp:ContentPlaceHolder>
    </asp:ContentPlaceHolder>
    When I deploy the SiteCollection, the TopNavigation user control is working correctly. Unfortunately when i modify the masterpage over SharePoint Designer, the following error message comes allways, regardless of the art of changes i did in the MAsterPage
    ( even if I open the MasterPage, add an space and do save/close the MasterPage).
    "Problem when adding user control in my custom master page, Parser Error Message: The referenced file '/_layouts/Navigation/TopNavigation.ascx' is not allowed on this page."
    Any ideas?

    Hi Simon,
     When we use UserControl in SharePoint Page or MasterPage, and the UserControl is kept in any folder other than ControlTemplates, we will got the error. Here is an article about this issue and provided the solution:
    http://sharepoint-tina.blogspot.com/2009/07/referenced-file-pathxyzascx-is-not.html 
    The solution can also be used in SharePoint 2010.
    Qiao Wei
    TechNet Community Support

  • 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

  • IPhone 5 doesn't want to turn on...out of ideas and solutions

    Last week I restored my iphone 5 and I also updated it, it worked normally but the only problem was that battery was dying pretty fast. After charging it I turned it off and after a day when I tried to turn it on again it just didn't want to do that.

  • Multiple network adapters and metric settings

    I can't seem to get Windows to use the preferred wired adapter over the wireless.  I have set a manual metric value to each adapter and it shows correctly in the route table but that doesn't seem to matter.  Its still always defaulting to using the w

  • How I can change this query to generate a sequence

    This query select SZSTCLA_PIDM,   SZSTCLA_TERM_CODE,   SZSTCLA_LAST_NAME   from SZSTCLA,SHRTGPA where SZSTCLA_PIDM IN ( 120125,186114) AND SHRTGPA_TERM_CODE = SZSTCLA_TERM_CODE AND  shrtgpa_pidm  = SZSTCLA_PIDM   AND SZSTCLA_RECORDED_EARNED_CRED > 0

  • Conflict in Sync with iPhone - now programme keeps closing on computer.

    I recently synced my iPhone with my computer and it keeps coming up with the same message that there are 4 conflicts. I click on 'resolve using computer iCal', but the programme keeps closing. Now I cannot access any of my calendar on my computer. Lu

  • OSX Yosemite 10.10.2 MacMail freeze

    Since last Yosemite update 10.10.2 (february 2) MacMail freezes sometime after starting (it can take a few minutes). I notice that it Freeze when the number of threads suddenly rise to the limit of 512!! I get this in the error report:     "Dispatch