Posting only possibel in "0008" storage location

Dear all
I am procuring material against cost center , i have used K and G/L acounts in PO, but during GR it is throwing the above error. Posting only possible in "0008" Sloc. i have not assigned any sloc in the po also as it is not required, because during GR the procurement will be consumed directly against the cost center.
Please guide
Sam

Go to Transaction SE24
Enter the Object Type CL_EXITHANDLER and click on Display.
Double Click on method "GET_INSTANCE".
Put a Break-point on 
Call method cl_exithandler=>get_class_name_by_interface
Run any Transaction for which you need enhancements.
The execution will stop at the break point. Check the values of variable 'exit_name', it will give you the BADI name called at that time.
and for finding User Exit
Find User exits with TCode
By Roshini
Selection Text: P_TCODE: Transaction Code to Search
Text Symbols: 001 - Enter the Transaction Code that you want to search through for a User Exit
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*&  Enter the transaction code that you want to search through in order
*&  to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc,     "SAP® Transaction Codes
         tadir,    "Directory of Repository Objects
         modsapt,  "SAP® Enhancements - Short Texts
         modact,   "Modifications
         trdir,    "System table TRDIR
         tfdir,    "Function Module
         enlfdir,  "Additional Attributes for Function Modules
         tstct.    "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
  SELECT SINGLE * FROM tstc
    WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
  IF sy-subrc EQ 0.
    SELECT SINGLE * FROM tadir
       WHERE pgmid    = 'R3TR'
         AND object   = 'PROG'
         AND obj_name = tstc-pgmna.
    MOVE : tadir-devclass TO v_devclass.
    IF sy-subrc NE 0.
      SELECT SINGLE * FROM trdir
         WHERE name = tstc-pgmna.
      IF trdir-subc EQ 'F'.
        SELECT SINGLE * FROM tfdir
          WHERE pname = tstc-pgmna.
        SELECT SINGLE * FROM enlfdir
          WHERE funcname = tfdir-funcname.
        SELECT SINGLE * FROM tadir
          WHERE pgmid    = 'R3TR'
            AND object   = 'FUGR'
            AND obj_name = enlfdir-area.
        MOVE : tadir-devclass TO v_devclass.
      ENDIF.
    ENDIF.
Find SAP® Modifications
    SELECT * FROM tadir
      INTO TABLE jtab
      WHERE pgmid    = 'R3TR'
        AND object   = 'SMOD'
        AND devclass = v_devclass.
    SELECT SINGLE * FROM tstct
      WHERE sprsl EQ sy-langu
        AND tcode EQ p_tcode.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    SKIP.
    IF NOT jtab[] IS INITIAL.
      WRITE:/(95) sy-uline.
      FORMAT COLOR COL_HEADING INTENSIFIED ON.
      WRITE:/1 sy-vline,
      2 'Exit Name',
      21 sy-vline ,
      22 'Description',
      95 sy-vline.
      WRITE:/(95) sy-uline.
      LOOP AT jtab.
        SELECT SINGLE * FROM modsapt
        WHERE sprsl = sy-langu AND
        name = jtab-obj_name.
        FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
        WRITE:/1 sy-vline,
        2 jtab-obj_name HOTSPOT ON,
        21 sy-vline ,
        22 modsapt-modtext,
        95 sy-vline.
      ENDLOOP.
      WRITE:/(95) sy-uline.
      DESCRIBE TABLE jtab.
      SKIP.
      FORMAT COLOR COL_TOTAL INTENSIFIED ON.
      WRITE:/ 'No of Exits:' , sy-tfill.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'No User Exit exists'.
    ENDIF.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'Transaction Code Does Not Exist'.
  ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
  GET CURSOR FIELD field1.
  CHECK field1(4) EQ 'JTAB'.
  SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
  CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

Similar Messages

  • One SO but I would like Post Goods Issue from different Storage Locations?

    Dear All,
    Pls help me solve this issue below:
    I have one SO, Item xzy, Qty = 300 but I would like to Post Goods Issue from different Storage Locations (Qty = 100 for each locations)
    E.g I have 3 storage locations: A, B, C and need to assign Post Goods Issue authorizations to 3 users U1, U2, U3:
    - U1 can Post Goods Issue from storage location A only (but cannot from B, C)
    - U2 can Post Goods Issue from storage location B only (but cannot from A, C)
    - U3 can Post Goods Issue from storage location C only (but cannot from A, B)
    How can I assign the Authorization for users?
    How can I create Outbound Delivery:
    a. 1 SO --> 1 outbound delivery --> Post GI 3 times
    b. 1 SO --> 3 outbound delivery --> Post GI
    Thank you very much for your support
    Cao Huy.

    Hi Senthils,
    Pls see my comment below:
    For Authorization check for storage Location
    1. GO to the following Menu path
    Spro>Material Management> Inventory manangement and Physical Inventory>Authorization Management>Authorization check for Storage Location.
    Here you have activate authorization tick for storage location and plant combination.
    --> Done
    2. Set authorization for Authorization object MM_MSEG_LGO thro Basis for the combination of movement type and storage location
    for each user.
    --> Done
    There are 3 storage locations(A,B,C) in one outbound delivery, and when user 01 tries to Post GI this outbound, it means that the system will Post GI for all line items in this outbound, but user 01 has not authorization for location B, C.
    How can user 01 Post GI from only location A in this outbound???
    And then user 02 will Post GI from only location B in this outbound,
    user 03 will Post GI from only location C in this outbound.
    Thanks
    Cao Huy

  • MB5B - Stock on posting date doesn't show Storage Location field

    Hi All,
    I run report MB5B - Stock on posting date with Stock Types = Storage Loc/Batch Stock, but the report doesn't show
    Storage Location field in result.
    How can I see it in this report?
    Thank you very much for your kind support!
    Cao Huy.

    hi
    what i think i sthis report is only for the OPENINGand CLOSING stock for the period or day
    now whenu give SL field then system will only concider stock from that SL
    the filed of SL will not be viewable in report as it is just opening and closing balance
    regards
    kunal

  • Creation of PO only for one particular storage location

    Hi Friends
    One of my material is extended to four storage location within a plant say S001 S002 S003 and S004 but here requirment is at the time of raising PO for this material,system should always propose only one particular storage location say S001. Is this possible
    Need your guidance
    Regards
    VS

    Hi supergene
    system will never propose particular  storage location based on material.
    May be u can add particular storage location in <b>personal setting</b> so that for all PO it will be picked as default storage location.
    system will propose storage location at the time of GR based on storage location maintained in Material master
    Or
    you can use the authorisation object M_MSEG_LGO. To restrict users from using storage location other than which they have authorised for
    Vishal...

  • Why can not freeze book inventory Storage location and Posting block?

    Hello,
    I tried to freeze book inventory storage location and posting block at storage location level in SAP.
    1) OMBP -> "Freeze book inventory storage' is checked at that storage location.
    2) MI01 -> the 'Posting Block' and 'Freeze book inventory' in the Physical Inventory Document  is checked.
    3) Post the Physical Inventory Document by using MI02.
    But, I am still able to post inventory movement at that storage location after executing the above.
    (I run MB1C with movement type 501 at that location.
    I input the material number which are in the created Physical Inventory document.
    The posted manterial document is created after I run MB1C.
       The document date and the posting date in MB1C are the same date of Physical Inventoery Document.
    I can see this material inventory movement from MB51!! )
    My question is:  Why SAP is allowed to execute the inventory movement after the 'freeze book inventory storage location' and 'Posting block' are checked at OMBP and MI01 ?
    Any idea?
    Help me, thank you.
    Regards,
    Sylvia Chen

    Problem solved.  Thank you for all help!!

  • Inspected stock posting to multiple storage location without batch

    Hi,
    At the time of Usage Decision, I want to post the inspected stock to multiple storage location i.e., Rejected Stock to Scrap Storage Location, Qualified Stock to Unrestricted Use Storage Location.
    Quick response will be appreciated.
    Anandkumar KS

    The scrap line has no storage location since that stock is typically written off and scrap cost center is defined in configuration.
    A possible alternative is to set up VMENGE08 and VMENGE09 with the same material movements you want to use.  You obviously aren't using the 553 movement type as that writes off the material.  That could give you two lines to use for your scraping.  I can't remember if these stock posting lines give you the storage location option or not and I don't have a sandbox available to test today.  If you need to post more then two grades in one inspection lot, you'll have to do the first two postings, save the UD, then come back in and do a second posting for the next two grades.
    Read the configuration help file you'll find in confg for "Define Inventory Postings" under the QM config.
    You can also change the displayed names of the stock posting lines.  That's explained in the config file as well.
    Craig

  • Default storage location for transfer posting

    Hi Gurus,
    In transfer posting using mvt type 311,i want to make the storage location defaulted by a particular storage location. In other words system should not allow transfer posting if i use other storage location. Is this possible?
    Regards,
    Kumar

    [Restrict user to post to a particular storage location|Restrict user to post 313 to a particular storage location.]

  • Stock valuation down to Storage location level

    Dear all,
    System setup for stock valuation is till Plant level. And understand that's how data stored in table MBEW and MBEWH until plant level only.
    Eventhough that is system standrd, is that possible to get the stock valuation until Storage location level?
    For eg: In MB5B, there is opening stock, closing stock and the material movement posting. I need to get opening and closing stock for each storage location.
    Could you please comment if there are tables store these data? Kindly comment.

    Hi Afshad Irani,
    Thanks for your reply. Understand from the previous post that stock valuation for storage location can be done via table MARDH or report MC.9, but this tools are excess base on period/month basis.
    My case, i need to report storage location stock for both (1)last month 06.2010 and (2)yesterday's stock 06.07.2010. So i can use MARDH table to report (1)last month stock for each storage location. While for (2) yesterday stock, table MARDH isn't help.
    Could you please advice further?

  • Allow Goods Movement for materials through specified storage Location

    Dear Experts ,
    In Process order while confirming the goods movement , i want that goods movement shoould be allowed only through the specified storage location that is the production store . Even if the stock is there in the other stores like the general; store , i donot want the goods movement to be done.
    Kindly guide me how can this be done ?
    Anis

    Hello VS ,
    We have maintained the Pord Storage location in both BOM & Material Master.
    Despite this in Good Movement for process order the system doesnt stop from selecting any storage .
    I want that it should not be possible to post an entry from any other store.
    Is there any other way to do it without the user exit ?
    Regards
    Anis

  • Storage location based on valuation type

    Hi Experts,
                      I have a scenario where the same HALB material in the plant can be of 3 different grades.
                      Accordingly, if  split valuation is done based on the 3 grades, and  3 different storage locations are allocated for the 3 valuation types, how can the storage locations be configured so that material of one type procured or produced will not be allowed to be stored in any other location other than the one allotted for this type?
    Regards
    Sm.

    Hi Bijay,
                 Since 3 locations are maintained, it is already decided that when a particular valuation type (or grade) is received with 101 movement , only a particular storage location will be chosen as the destination storage location for that batch. The issue here is that the user may mistakenly post it at a different storage location. My question is that how the necessary settings may be done so that the system does not allow that particular material to be posted to  a different storage location ?
    Regards
    Sm.

  • Can we derive Profit Center from Storage Location?

    Dear All,
    Pl advice me regarding following -  (Version - ECC 6.0 with Doc Splitting Active)
    The client is into Engg, Construction industry. We are having Project System. There are around 20-30 projects going on. Client wants to track receivables / payables on Each Project along with the Profitability of the project.
    1) Therefore we have decided to created each project as a Profit Center.
    2) Now the problem is with material code & plant.
    3) If we Create only One Plant & create Storage Locations relating to the Projects - we can track the Quantity data on the PROJECT Level. But when we create One Material Code - we can maintain ONLY one Profit Center in its Master Data. When GR / IV happens, system will be able post the document to only One Profit Center maintained in the Material Master.
    We want the posting (GR / IV / Vendor Payment etc) to go  to the Project Profit Center  & not to the Common Profit Center.
    4) The other option which we are thinking of is to create Plants = Projects .
    Now we can extend the material to the respective plant & maintain the PRofit Center in Plant Data.
    But here I am not certain about the Excise Implications. The Client has only ONE Excise Registration.
    Pl advice,
    Thanks & regards,
    Gov

    Dear All,
    Any guidance on the above? pl advice
    Gov

  • Storage Location level ATP check with CRM

    Hi:
    I am on an implemenation where the integration is between CRM, EWM and GATP. So, consider the situation where the sales order check is done through CRM and a call to GATP is made.
    Some background on supply
    EWM would like to receive the goods into storage location ROD (Received On Dock) and then do a movement type to move it to storage location AFS (Available For Sale). The sales orders should consider only the supply from storage location AFS and not ROD.
    First question is, is it possible to do a storage location level determination in CRM? I don't think so but wanted to confirm. The reason is because even a plant determination is not possible in CRM when you integrate with GATP (the plant is determined through Rules).
    Now, suppose that we have determined the storage location called AFS (in gATP through enhancement) and will do an ATP only at that level in GATP. Suppose that the first plant that will be checked is Plant A and then based on the location determination procedure, the next plant that will be checked is Plant B. When the system checks supply at Plant B, then the question is this: will it still check only at storage location AFS in Plant B or will it check at the plant level? The requirement will be to check at the same storage location level (which means that whatever process we used to determine the storage location at Plant A has to be followed for Plant B also).
    One option that can be considered is to check at the Storage Location MRP Area level (there seems to be better support for RBA and Storage Location MRP Area than just storage location). See SAP Note 412314. But this is also complicated.
    Another option is to not check at the storage location level but represent the various stocks with stock types (stock type ROD and stock type AFS) and only the stock type AFS will be used in the list of ATP categories.
    Please share any experience that you may have in this.
    Thanks,

    Hi Satish,
    In my project also we had this requirement to determine the correct Storage location after plant has been determined by using rules.
    What we did is as follows:
    - We created a Z table which had entries for all plants and preferred storage locations for those plant (only one entry per plant) in your case it will be like:
    Plant A - AFC
    Plant B - AFC
    Plant C - AFC
    - We used a ATP user exit in APO to get the storage location of source plant ( which was determined in APO via rules) from the Z table.
    I hope this helps.
    Please let me know if you have any questions.
    Thanks,
    Anupam
    Edited by: Anupam Sengar on Dec 20, 2011 12:03 AM

  • Storage Location Level ATP check through CRM

    Hi:
    I am on an implemenation where the integration is between CRM, EWM and GATP. So, consider the situation where the sales order check is done through CRM and a call to GATP is made.
    Some background on supply
    EWM would like to receive the goods into storage location ROD (Received On Dock) and then do a movement type to move it to storage location AFS (Available For Sale). The sales orders should consider only the supply from storage location AFS and not ROD.
    First question is, is it possible to do a storage location level determination in CRM? I don't think so but wanted to confirm. The reason is because even a plant determination is not possible in CRM when you integrate with GATP (the plant is determined through Rules).
    Now, suppose that we have determined the storage location called AFS (in gATP through enhancement) and will do an ATP only at that level in GATP. Suppose that the first plant that will be checked is Plant A and then based on the location determination procedure, the next plant that will be checked is Plant B. When the system checks supply at Plant B, then the question is this: will it still check only at storage location AFS in Plant B or will it check at the plant level? The requirement will be to check at the same storage location level (which means that whatever process we used to determine the storage location at Plant A has to be followed for Plant B also).
    One option that can be considered is to check at the Storage Location MRP Area level (there seems to be better support for RBA and Storage Location MRP Area than just storage location). See SAP Note 412314. But this is also complicated.
    Another option is to not check at the storage location level but represent the various stocks with stock types (stock type ROD and stock type AFS) and only the stock type AFS will be used in the list of ATP categories.
    Please share any experience that you may have in this.
    Thanks,
    Satish

    Hi Satish,
    In my project also we had this requirement to determine the correct Storage location after plant has been determined by using rules.
    What we did is as follows:
    - We created a Z table which had entries for all plants and preferred storage locations for those plant (only one entry per plant) in your case it will be like:
    Plant A - AFC
    Plant B - AFC
    Plant C - AFC
    - We used a ATP user exit in APO to get the storage location of source plant ( which was determined in APO via rules) from the Z table.
    I hope this helps.
    Please let me know if you have any questions.
    Thanks,
    Anupam
    Edited by: Anupam Sengar on Dec 20, 2011 12:03 AM

  • Re: ATP check at storage location level in sales order.

    Hi ,
    I have a requirement wherein storage location is determined in my sales order,  the ATP check is done at plant level as well as storage location level , and the smaller of the two quantities is taken as the result of the ATP check.
    My requirement is that the ATP check should only be performed at storage location level .
    Please suggest if there is any standard setting available in SAP.
    iF NO , PLEASE SUGGEST SUITABLE USER EXIT, WHERE I can add my requirement.
    Regards,
    Nilesh

    Hi Nilesh,
    in SAP standard the system is always checking on plant level first and then on the storage location level, there is no possibility to change this behaviour.
    I'm also not sure if the process is correct, because if you have also requirements on plant level only then you would create negative ATP if you confirm on storage location level even though there is no ATP on plant level.
    I'm also not aware of a user-exit that would suite your requirement, additionally according to the IMG documentation the user-exits in the availability check area should only be carried out in agreement with SAP.
    Regards,
    Markus

  • Availability at Storage Location Level

    Dear All,
    While  creating a sales order system is checking the material  stock at the plant level it is including the stock in all the storage location
    we have several storage locations in the plant
    Hence i want to restrict the availablity to be done only for one storage location that is sales storage location
    Kilndly Advise
    Mohammed Raees

    Just try to populate the stock storage location in the sales order using user exit USEREXIT_MOVE_FIELD_TO_VBAP in program MV45AFZZ (or Userexit_Source_Determination in program MV45AFZB.). By this way, the system will check only in the particular storage location.
    Also check the link, which discussed similar requirement Re: Availability Check - Storage Location
    Regards,

Maybe you are looking for