Problem with restriction of material creation

I have a problem  regarding this code logic mention below
itz for checking the plant and profit center should be same . restrict by a message at the time of material creation .
now when we create a Alfanumeric plant and the profit center and we enter the same this message is stil comming and itz restrict the material creation .
can anybody please help me out for change the logic of this code .
break-point.
3       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
4         EXPORTING
5           input         = MARC-PRCTR
6        IMPORTING
7          OUTPUT        = MARC-PRCTR
8                 .
9     *break-point.
10       if sy-tcode eq 'MM01' or sy-tcode eq 'MM02'.
11       if RMMG1-WERKS <> MARC-PRCTR and MARC-PRCTR is not initial.
12       message id 'ZS' type 'S' number 057.
13       endif.
14       endif.
15       IF ( sy-dynnr(1) = '4' OR sy-dynnr = '0060' )             "note 754457
16          AND NOT c_set IS INITIAL AND
17           ( x_win NE sy-srows OR y_win NE sy-scols )
18           and ok-code is initial and c_classification IS INITIAL.
19         bildflag = x.
20       ENDIF.

Hi,
Aren't you missing an = in the following line...
11 if RMMG1-WERKS MARC-PRCTR and MARC-PRCTR is not initial.
Shouldn't it read as follows?
11 if RMMG1-WERKS = MARC-PRCTR and MARC-PRCTR is not initial.
Regards,  Andy

Similar Messages

  • Problem with filtering on material

    I encountered a problem when filtering on material numbers that have a period in them (e.g. 111.10.114.00). 
    This happens only on materials that contain a period, and it only happens if you do not use the checkboxes to select the filter value. 
    If you use the funnel to filter AND use the checkbox to select what you want, then everything works fine.
    If you filter by using u201CKeep filter valueu201D and selecting the line then it does not work
    If done on material number that has no period (.) in it, then itu2019s ok.  If the material has a period (.) then filter does not work.  This seems to happen only with period as a character.  Tried materials with letters in them and dashes, these worked ok.
    does anyone had this issue before or knows any OSS Notes that could be helpful?
    Thanks
    best regards
    Nesimi

    hi,
    for executing  BAPI_MATERIAL_GET_DETAIL bapi i have to set
    VALUTIONARA .Thats why i am asking ,how to get valutionarea.
    regards
    Guru

  • Problem with Restrict Access to Page with access level using ASP

    I'm using Dreamweaver CS3 with ASP-VBScript and an Access
    database. The pages were created from scratch for this project,
    using those tools all the way through.
    I've created a login page, an admin homepage, and add, edit,
    and list records pages for three tables. The login page uses the
    Server Behavior "Log in User", all other pages use the Server
    Behavior "Restrict Access to Page". All of these are based on an
    Access Level.
    Login seems to work correctly, and redirects to the admin
    homepage. From the admin homepage, I can open any other page as
    expected, and they initially display correctly. On the add and edit
    pages, however,
    submitting the form often results in getting logged out, but
    not always.
    Once this happens, I can log back in, but other problems will
    sometimes occur during that second login session. Sometimes,
    logouts will occur on pages that worked fine during the first login
    session. Sometimes, another session variable that I've setup
    manually will change when it shouldn't...as if there were two
    values stored for my session variable, and reloading the page
    changes to the other value.
    This
    post seems closest to my experience, but it doesn't look like
    there was really an answer beyond "I had to fight with it for a bit
    to get it to work":
    I suspected that there is some problem with session settings
    on the server. We have an almost identical tool on the same server
    that was developed with an older version of DW that works more
    reliably; it sometimes has problems with the initial login, but
    never has a problem after that.
    Has anyone experienced problems like this? Any suggestions
    for what to check? I'm really pulling my hair out since it's so
    unreliable...the kind of problem that goes away when you try to
    show someone and comes back when they leave.

    Hello,
    I was thinking that all I would need would be the username, although username and paswsword would be more secure.  There are about 50 users and no groups or levels.  They are all equal ... same level.
    The website is private and there is a general content area for all users and then there will be private areas for each user where proprietary documents will be held.  I need to be able to ensure that user 'A' can only see the user 'A' pages, user 'B' can only see user 'B', etc.
    I don't really understand what the Dreamweaver script is doing, but the overview sounded like it was the right tool to accomplish what I'm trying to do.
    Any assistance greatly appreciated.
    thanks.

  • Problem with Restricted Key figure!

    Hello BW Gurus,
    Currently I am having problem with a report that is using a restricted key figure in the formula. When I filter down this restricted key figure, it is working fine but when I use this restricted key figure in formula that calculate greater than value, its giving me wrong figure and when I calculate less then value, its giving me zero total result. I am drilling down this restricted KF on a hierarchy. Did I miss any setting or do I need to do anything extra for this?
    Please let me know and thanks in Advance,
    Vaghar.

    In that case create two calculated keyfigures CKF1 and CKF2 such that
    CKF1 = ((Count >100)*1 + 0)
    CKF2 = (Count<100)*1 + 0)
    and then define Greater Count as a formula such that
    Greater Count = <b><i>Count</i></b> (CKF1)
    and similarly Lesser Count = <b><i>Count</i></b> (CKF2).
    where <b><i>Count</i></b> is a data function which gives a value of 1 when the operand <>0 and returns a 0 when the operand = 0.
          Hope this helps.

  • Problem with Restricted Recruiter Requisition Status Change Approval Proces

    Hello,
    Our company is having a problem with Recruiters recieving any approval notifications for requisitions where the status change is performed by someone logged on as a Restricted Recruiter.  The approval notification never appears in the Recruiters approval page.  The Restricted Recruiter is able to submit the request without any problems.
    I was hoping that someone could help point me in the right direction so that I may begin troubleshooting this.
    Thanks for your assistance.
    Ryan

    I have been doing some digging on this matter on E-Recruiting workflow and have discovered transaction SWI2_FREQ (Work Items per Task), very useful.  Upon running this utility I found 8 pending approval request tasks.  I double clicked on the task to show the workflow status of each task.
    I double clicked on one of the request for status change tasks for a requisition which took me to the approval request for status change of Req ########.  Here I clicked on the activities tab selected the activities tab, selected the activity Approval request for status change of Requisition ######## then clicked on the execute icon.
    Doing this opened up a new web browser and prompted me to login.  Using the correct login credentials for this environment I click the login button and promptly recieve the error message...
    Error in Web service execution
    E:SWF_HTTP:050 TS51807979
    At this point I am unsure of where to go...
    Any help would be appreciated.
    Ryan

  • Problem with Tools Area iView Creation - Help Needed.

    Hi Guys,
    I am having a small problem with the Tool Area Par, I downloaded the Par and have edited it and then redeployed it on the Portal, however when I am creating an iView I am getting the Following error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/every_user/general/defaultDesktop/frameworkPages/frameworkpage/com.sap.portal.toolAreaiView
    Component Name : null
    Page could not create the iView.
    See the details for the exception ID in the log file
    Can anyone suggest me what could be wrong and why I am not able to see the Iview and why I get this exception.
    Thanks,
    John.

    Log File:
    [code]
    Component : com.sap.portal.navigation.toolarea.default
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
         at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
         at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
         at com.sapportals.portal.prt.connection.PortalRequest.getRootContext(PortalRequest.java:435)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:607)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:545)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.core.broker.PortalComponentInstantiationException: Could not instantiate implementation class com.sapportals.portal.navigation.ToolAreaiView of Portal Component com.sap.portal.navigation.toolarea.default because: Could not find implementation class
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:242)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getComponentInstance(PortalComponentItemFacade.java:160)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:732)
         at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
         at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
         ... 26 more
    Caused by: java.lang.ClassNotFoundException: com.sapportals.portal.navigation.ToolAreaiView
    Found in negative cache
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@2086d]
    Parent loader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@695f94]
    References:
       not registered!
    Resources:
       C:
    usr
    sap
    J2E
    JC00
    j2ee
    cluster
    server0
    apps
    sap.com
    irj
    servlet_jsp
    irj
    root
    WEB-INF
    portal
    portalapps
    com.sap.portal.navigation.toolarea
    private
    classes
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:360)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.getInstanceInternal(PortalComponentItemFacade.java:228)
         ... 30 more
    [/code]

  • Problem with BAPI of Material Master creation

    Hi,
    I am creating material master(mm01) through BAPI_MATERIAL_SAVEDATA.
    Program is working fine but when i m checking in MM03 to display uploaded data through BAPI, i cant able to see material which i created to through BAPI but i can see in MARA table.
    i dont know wht is the problem ?
    can anybody let me know abt this ?

    then u are not committing the work.
    flow will be like this
    call ' BAPI'
    if return[] is initial.
    commit work.
    else.
    endif.
    Regards
    peram

  • GW8 HP1 Windows client - problems with restricted users

    I've reproduced these on a few clean WinXP and Windows 2003 systems in both a GW 7.0.3 upgrade scenario and fresh install of GW 8 HP1 scenario. I am curious if anyone else has been able to reproduce these:
    - Client ignores DefaultIPAddress and DefaultIPPort values for non-administrative users. If these are defined under HKEY_CURRENT_MACHINE\Software\Novell\GroupWise by the installer's setup.cfg, they are ignored when the user who is logged in is a non-administrative user. Administrative user profiles correctly pull these values but non-administrative users always try ngwnameserver. If the user profile is upgraded to an admin profile, then they start reading DefaultIPAddress and DefaultIPPort. This does not seem to be a permissions problem on the reg. keys themselves, as the values can be read by regedit when logged in as the user.
    - Client does not setup MAPI profiles for the Address Book for a non-administrative user. Windows Messaging configuration dialog opens if you try to use the Address Book. If the user account is upgraded to an admin, then the next GW startup will configure the profile correctly. Downgrading the user to a non-admin at that point allows the Address Book to continue to function.
    This also does not seem to be a permission problem writing to the MAPI profiles registry keys under HKCU\Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem. I can manually import the correct keys when logged in as the restricted user and then the Address Book works without issue.
    It does not look like in both cases the GW client even attempts to access the registry keys in question as per RegMon.
    GW 7.0.3 client on the same equipment does not have a problem.
    Any thoughts? Any other issues people have seen running GW 8 as a non-administrative user?

    Originally Posted by elarsson
    I've reproduced these on a few clean WinXP and Windows 2003 systems in both a GW 7.0.3 upgrade scenario and fresh install of GW 8 HP1 scenario. I am curious if anyone else has been able to reproduce these:
    - Client ignores DefaultIPAddress and DefaultIPPort values for non-administrative users. If these are defined under HKEY_CURRENT_MACHINE\Software\Novell\GroupWise by the installer's setup.cfg, they are ignored when the user who is logged in is a non-administrative user. Administrative user profiles correctly pull these values but non-administrative users always try ngwnameserver. If the user profile is upgraded to an admin profile, then they start reading DefaultIPAddress and DefaultIPPort. This does not seem to be a permissions problem on the reg. keys themselves, as the values can be read by regedit when logged in as the user.
    - Client does not setup MAPI profiles for the Address Book for a non-administrative user. Windows Messaging configuration dialog opens if you try to use the Address Book. If the user account is upgraded to an admin, then the next GW startup will configure the profile correctly. Downgrading the user to a non-admin at that point allows the Address Book to continue to function.
    This also does not seem to be a permission problem writing to the MAPI profiles registry keys under HKCU\Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem. I can manually import the correct keys when logged in as the restricted user and then the Address Book works without issue.
    It does not look like in both cases the GW client even attempts to access the registry keys in question as per RegMon.
    GW 7.0.3 client on the same equipment does not have a problem.
    Any thoughts? Any other issues people have seen running GW 8 as a non-administrative user?
    I've reproduced this now with the FCS GW 8 client as well.
    Also a point of clarification on the MAPI profiles -- in an upgrade scenario from GW 7 client, if the user profile previosuly existed on the machine and had the MAPI settings configured by the GW 7 client, then they will work fine with GW 8. The issue seems to only occur with new user profiles, logging into a machine as a non-administrative user. The GW 8 client does not create the proper registry keys for the MAPI profile under HKEY_CURRENT_USER and the Address Book does not function.

  • Problem with restricted key figures

    Hi all,
    I have four restricted key figures in my structure each one is restricted  Fiscal period with user entry variable but when i execute the report and check one of the restricted keyfigure is actually not restricting the values.
    suppose user entered 10.2006 in the selection for fiscal period then one of the column Goods receipts QTY which is restricted with Fiscal period display values other than that of 10.2006
    Did anyone faced such problem earlier?
    Please let me know if anyone had a clue.
    Thanks in advance
    Regards
    Ajay

    Hi gopi,
    Thanks for all of the restricted keyfigures it is "include value".
    Regards
    Ajay

  • Problem with Restricted Key Figures Please Solve

    Dear All.
    i restrict the key figure on some GL's for Cumulative balance, this RKF show me the result base on the 0CALMONTH which is select in the variable screen.
    i created one more RKF with the same GL's but i restrict that RKF also with fix 0Calmonth say DEC2008.
    but the problem is when i run the report it shows me that data correct, but when i bring the 0CALMONTH on top of the Key Figure structure it only show me the data for selected month for the fix month RKF the result come empty.
    my requirement is that i have to select month range and i need to show every month value minus the Dec2008 value, this only works if i donot bring the 0CALMONTH on top of Key figure structure but i want to keep it on the top of KF structure so i can show each month value - dec2008 value.
    Please explain how can i control this.
    Kind regards,
    Edited by: Zeeshan haider on Nov 11, 2009 9:49 AM
    Edited by: Zeeshan haider on Nov 11, 2009 9:59 AM

    Dear Chandu.
    I am creating the RKF on Cummulative Balance KF by restricting it with some combinations of GL's, let say the name of RKF is TRADE_Accounts.
    My requirement is to give Calmonth selection from the variable in interval let say from 01.2009 - 05.2009
    i simply want to display TRADE_Account balance for each month in selection but by doing the minus the value of Trade_Account from the same RKF i.e. TRADE_Account_2 which i restrict on DEC2008.
    so i created Two RKF for KF cummulative balance one is restricted with 0CALMONTH value for DEC2008 only.
    then i create on CKF let TRADE_BALANCE = TRADE_Account2008 - TRADE_Account.
    and place the CKF in Key Figure Structure, it work fine but problem comes when i try to bring 0CALMonth on top of key figure structure so i can show the result for each selected month.
    when i do this it only shows the Balance for selected months but it did not minus it with the other RKF i.e. TRADE_Account2008.
    when for testing i also put the TRADE_Account2008 in Key figure structure it shows empty result when the 0CALMONTH is on top of the Key figure structure.
    Please explain how can i achieve this.
    Kind regards,

  • Problem with BOM (packaging material) in order change

    Hi Gurus,
    In my b2b shop, i have created an order with BOM material and that order contains one main material and a sub item material after update or order. When i open the same order and click on change, when i click on update, a new sub item is getting added as a main item.
    Details:
    item 10 is 12007492 (main material)
    item 20 is 12007491(sub item for the main material)
    when i click on update,again one more sub item 30 is getting added.
    When i check the logs, all the items guids are getting passed to IN of crm_isa_basket_changeitems functions module. But when check it in runtime using external debuggin mode, the sub item guid is blank.
    Then the main material is again getting exploded and the sub item is coming at item 20 and actual sub item before update is shifting to item 30 as new item.
    Please help me in this regard why it is happening like this.
    Thank you
    Lakshman

    Hello Lakshman,
    I had the same issue, however my backend system was ERP and not CRM. In any case, the logic might be the same.
    When a BOM material is sent to the backend system for simulation/save, only the header needs to be sent. By this, backend system will explode the material and send 2 items back. I guess in your case, ISA is sending both items to SAP and that is the reason you are getting back 3 items.
    Simplest approach is to write some logic in your backend class to avoid sending this subitem to SAP. You can achieve this by manupulating the items table sent to SAP
    Suppose salesDoc is the ISA document and itemsTable is the JCO table that is sent to SAP as a table parameter:
                   ItemList itemList = salesDoc.getItems();
                   for (Iterator iter = itemList.iterator(); iter.hasNext();) {
                        ItemSalesDoc itemSalesDoc = (ItemSalesDoc) iter.next();
                        TechKey parentKey = itemSalesDoc.getParentId();
                        if(null!=parentKey){
                             if (!parentKey.getIdAsString().equalsIgnoreCase("")) {
                                //Here remove it from the tables parameter which is sent to SAP
                                               itemsTable.deleteRow(i);
    I am not too sure how it would work for CRM, but works in ERP.
    Pradeep

  • Problem with 'restrict data' option in Web Analysis' Analysis Tool

    I feel like i'm in the twilight zone.
    We have made a report in web analysis, withh essbase as a source, and works fine.
    We want to restrict data for customers that generate more than 1,000,000 revenue, for example
    So, we go to Analysis tools, restrict data. The dialog window opens
    We hit 'Select Column...' and nothing happens. No Column is shown, thus being unable to complete the dialog.
    Should we enable something in essbase to allow this? We are newbies, but we think this should be pretty straightforward.
    We have also tried to do that with the Analysis tools administrator, with the same result.
    We are using Web Analysis 9.3.1.
    Any feedback will be appreciated.
    Thank you
    Edited by: hectorsosar on 22/06/2009 02:31 PM

    It got fixed by removing a filter from a dimension, and placing that dimension as a page.
    Thanks,
    Hector

  • Problems with restricted users, urgent help needed

    Greetings,
    I represent a company called eChiron, a service desk company for several client companies.
    We have a client company that has bought between 100 to 200 cell phones, all Nokia 6233. They all run client PCs with windows XP SP2 and are all restricted users (mandatory).
    We've installed 2 nokia PC suites as pilot prior to mass deploying and have both failed to run correctly.
    They execute correctly if the user is changed to local admin (being that the method of instalation), but when reverting back to restricted user the application doesn't work correctly.
    It starts and (apparently) conects to the mobile phone trough bluetooth interface. In reality the conectivity is nonexistent (we've tested by turning off the mobile phone...) and the connection log reports "conection failed".
    As i mentioned before, it's not an hardware fault since it all works correctly in admin mode.
    Thanks in advance for any possible help,
    J
    Edit: the installed version is the latest (17/december) and the language is portuguese.
    Message Edited by echiron on 17-Dec-2007 02:27 PM

    This has always been a limitation in PC suite, I assume you've tried the latest version 6.85?
    You may want to take a look at the link below, it may suit your needs better.
    http://www.businesssoftware.nokia.com/pc_suite_downloads.php

  • Problem with restriction specifier in C++ AMP code

    Hi,
    I'm using C++ AMP (I'm not that experienced with C++ and I'm new to AMP, so I have to stumble through this stuff) But I thought I had this code working, but now I'm getting the following error:
    Error    1    error C3930: 'WRC_Raytracer::RaytracerRTC::RenderSceneWithAMP::<lambda_c13eb21eb34534d03d408733745bcf16>::operator ()' : no overloaded function has restriction specifiers that are compatible with the ambient
    context 'Concurrency::_Parallel_for_impl'
    Here is my parallel loop (cut down slightly to focus on the issue):
    [code]
        parallel_for(0, 720 * 576, 1, [w, cBuffer, pixelDataView](int i) restrict(amp)
                    // compute x and y for the given index
                    float x = (float)(i % w);
                    float y = (float)(i / w);
                    // convert color from {0,1}f to {0,255}b
                    int bInt, gInt, rInt;
                    bInt = (int) (min(x/719.f, 1) * 255);
                    gInt = (int) (min(y/575.f, 1) * 255);
                    rInt = (int) (min(0, 1) * 255);
                    // represent color data as (int)argb
                    int pixelAsInt = (255 << 24) + (rInt << 16) + (gInt << 8) + bInt;
                    // update pixelData element
                    pixelDataView[i] = pixelAsInt;
    [/code]              
    Can anyone see what's wrong here ? As I said, I'm sure this was working yesterday, and I did something just before shutting down, and now it's not working.

    The documentation for AMP mentions parallel_for_each:
    http://msdn.microsoft.com/en-us/library/hh265136.aspx. Seems that you should redesign the code and use
    parallel_for_each instead of parallel_for in case of restrict(amp).

  • Problem with restricted key-figure using off-set variable

    Hello Gurus,
    I have created a query in Bex Query Designer with a key figure restricted. This key figure shows me the 0amount value for the last month. When I select 003.2009, the key figure brings the 002.2009 values. I used an off-set variable to do this
    It works!
    But when I show this key-figure in Webi, no value shows up on the table.
    Any suggestions?
    tks
    Edited by: Allisson Valverde on Jul 23, 2010 12:12 AM

    Which variable are you using in BEx and in WEBI to restrict the month/year?

Maybe you are looking for