Getting building code for teh storage location in the output

HI !
In one of my program I ahve to bring in several plant details as well external bill of lading deatils as well as the building code . I have been able to get the other details except for the building code which needs to come from teh adrc table I suppose. Actually not able to connect the detaisl to grab in the building code. Would anyone be able to help me out in getting the building code for the storage location in my program if possible .
Help would be greatly appreciated.
Thanks

I wrote down a code for that and this
is what its doing as of now.
When I do the selection of a single plant and for a particluar date
it does give me the correct storage location building
code , bust as soon as I put a range of plant say 120 to 300
it copies the the storage location building code
of the previous plant itself which si contradictory.
I would like to get the correct building code
even when I do the range of selection like when I do
a single selection of plant.
For example when I select the range between 0135 and 0351
this is the output I get.
50002438 80002249 0135 ABWP0000659 100051 < correct
50002439 80002250 0135 ABWP0000659 100005 < correct
50002447 80002257 0135 ABWP0000659 100005 < correct
50002459 80002258 0135 ABWP0000659 100005 < correct
50002460 80002259 0135 ABWP0000659 100005 < correct
50002461 80002260 0135 ABWP0000659 100005 < correct
50002424 80002235 0351 ABCT0000426 100101 < copied teh B.code from Strg loc "CT" of plant 135
50002429 80002237 0351 ABTM0082315 100101 < copied teh B.code from Strg loc "TM" of plant 135
50002430 80002244 0351 ABWP0000659 100101 < copied teh B.code from Strg loc "WP" of plant 135
The code I used :-
  loop at gt_adrc assigning <fs_adrc> .   <  this is where I am trying to get the building code from S.Loc address into lgobe
        loop at gt_twlad assigning <fs_twlad>.
          if <fs_twlad>-adrnr = <fs_adrc>-addrnumber  and
             <fs_twlad>-lgort = <lfs_lips>-lgort_i.
            gt_deliveries-lgobe = <fs_adrc>-building.
          endif.
        endloop.
      endloop.
********and then .......
* Selecting Address Number from TWLAD
  select werks lgort adrnr
    from twlad
    into corresponding fields of table gt_twlad
    where werks in s_werks and lgort in s_lgort  .
* Selecting Facility code
  if not gt_twlad[] is initial.
    select addrnumber name2 street roomnumber building
      from adrc
      into corresponding fields of table gt_adrc
      for all entries in gt_twlad
      where addrnumber = gt_twlad-adrnr.
  endif.
  if not gt_adrc[] is initial.
* Get the provinces
    select * from t005u
      into table gt_t005u
      for all entries in gt_adrc
      where spras = sy-langu and bland = gt_adrc-region.
  endif.
  loop at gt_twlad assigning <fs_twlad>.
    clear gt_lgort.

Similar Messages

  • Can we delete material for particular storage location using MMSC

    Hi,
    Can we delete a Material for particular storage location of a plant usign MMSC Transaction?
    Thanks in advance.
    NDS

    Hi, It is not possible to delete the storage location from MMSC once it is saved, Material gets extended for that storage location, U have to delete the material at the storage location level.
    Now the only option to delete this assignment is with archiving.
    T-code: SARA object MM_MATNR
    Refer below link for procedure
    [Deletion Storage Location From MMSC  |Re: Deletion Storage Locaion From  MMSC]
    [Cannot delete Sloc in MMSC|Re: Cannot delete Sloc in MMSC]

  • The system does not get Storage Location of the material from the Contract

    Hi to all,
    We are encountering a problem now regarding the PR to PO conversion.  Our ABAPer has made a background job for the User to convert a PR to PO using ME59N. 
    Background Job : ZPTI_MM_PR_PO_CON
    Program : RM06BB30
    Tcode: ME59N
    Variant : SAMPLE2_ME59N ( Plant, Vendor, POrg, Pgrp.)
    Rule : When the PO is converted the STORAGE LOCATION of the material should be gotten from a CONTRACT/AGREEMENT instead of the SLoc defaulted in PR.
    Problem:  When the backround job is finished, the PO is converted but the STORAGE LOCATION did not get from the CONTRACT.
    Steps done :
    1. Create a Contract (ME31K)
        1.1 Specify the SLOC of the material
    2. Create PR (ME51N) and enter the Contract Number inside the PR
        note : In the PR the material has a Storage Location which defaults from the Material Master.
    3. Run SM36 and enter the job ZPTI_MM_PR_PO_CON
    4.  Set the job to "Immediately"
    5. Click Steps icon and enter the program RM06BB30 and variant SAMPLE2_ME59N
    6. Save
    7. Go to SM37 and check the job if finished.
    8. When the job is finished, check the PR if it has a PO.
    9. Display the PO.
    10. Check if the storage location in PO has gotten from the Contract
         The problem now appeared.
    We have tried to use ME59N alone and not using the background job. The system has gotten the correct Storage Location, thus it got from the Contract.
    Please help what should be checked on our side.  Our ABaper is also currently debugging the program but we
    are seeking help to fasten the solution.
    Best Regards,
    Elynne

    Hi Elynne,
    Definitively, it is a problem with ME59N background process.
    It is better if you can create a message to SAP asking for the solution.
    I only found the next SAP note:
    Note 1287723 - ME59N in backgound does not populate PR details in PO.
    But, I do not know if it will help to resolve your issue.
    I hope this little information can help you in anyway.
    Kind regards,
    Sandra

  • Block Customer for Particular Storage Location

    Hi.
    I want to Block a Customer for Particular Storage location.
    ie plant 1000(St Loc 01,02)
       plant 2000(St Loc 03,04)
    Block Customer XYZ for Plant 2000 & Sto Loc 03
    is this possible?
    Reg.
    Amol

    Through standard settings, this is not possible.  Try with USEREXIT_SOURCE_DETERMINATION (MV45AFZB) where you have to define the storage location and the customer code.
    thanks
    G. Lakshmipathi

  • Po list   for perticuler storage location

    dear sirs,
    is it possible to see the po list for perticuler storage location of perticuler plant ?
    Regards
    kailas ugale

    HI,
    Yes, it is  possible to see the Purchase Order list for particular Storage Location of particular Plant as follows.
    Using T-code ME2N - Purchasing Documents per Document Number, the input data to be given as follows.
    Plant : _______
    Scope of List : ALV
    Document Date : __________ to __________ (report require period)
    If the report input data Storage Location require, you have to select Dynamic Selection button(Red,Green,Blue color button) and shown 2 options are as follows.
    1) Purchasing Document Header
    2) Purchasing Document Item
    The above option, you have to click Purchasing Document Item shown Storage Location field double click and give input data  Storage Location  ______ (list of PO require Storage Location)  and execute the report. The particular Plant and the particular Storage Location  list of purchase orders displayed.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • HT201318 How do I get a refund for iCloud storage upgrade

    How do I get a refund for iCloud storage upgrade? I just purchased the icloud storage today but do not need it. It says you can get a refund within 15 days but I can't seem to find a number to get refund.

    See Roger Wilmut1's post here: https://discussions.apple.com/thread/4491639?tstart=0.

  • Hard drive died.  Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Hard drive died.  Cannot uninstall CS3 to remove copy registration. Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Thank you Bob.
    Just to clarify - in terms of backing up one set of these, would that just be so I had it on disk and didn't need to re-download from Adobe if the installation got corrupted somehow?  Or do I need a backup for some other reason?
    Thanks

  • Can we block a material for particular storage location ?

    We can allow material to storage locations by MMSC. Can we block a material for particular storage location ?
    Please share ur view.

    Hi,
    If you want a material to be blocked, go to the Basic data 1 view of the material,there in the genral data you have " X-plant material status ". Also in Cost estimate 1 view of the material you have Plant Specific Material status. Use the options available to block the material in these two views.
    Also u can goto MM06 where put material,plant,storage location.When u select enter just tick the check box of material,plant and storage location and save it.
    Pls reward if found useful.
    Regards,
    Indranil
    Message was edited by:
            INDRANIL BHATTACHARYYA

  • DataBase Tables for fetching storage location text

    Hi All,
    May I know the database tables used for storing storage location text.
    Regards
    Nikhil
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Mar 14, 2011 9:22 AM

    Dear Jaques,
    Check in these tables,
    SER00                        General Header Table for Serial Number Management          
    SER01                        Document Header for Serial Numbers for Delivery            
    SER02                         Document Header for Serial Nos for Maint.Contract (SD Order)
    SER03                         Document Header for Serial Numbers for Goods Movements     
    SER04                          Document Header for Serial Numbers for Inspection Lot      
    SER05                          Document Header for Serial Numbers for PP Order            
    SER06                          Document Header for Serial Numbers for Handling Unit-Content
    SER07                          Document Header for Serial Numbers in Physical Inventory   
    EQBS                         Serial Number Stock Segment       
    EQKT                           Equipment Short Texts             
    EQSE                           Serial Number Records             
    EQST                           Equipment to BOM Link             
    EQUI                           Equipment master data             
    EQUK                           Quota File: Header                
    EQUP                           Quota File: Item                  
    EQUZ                           Equipment time segment            
    Regards
    Mangalraj.S

  • How can I get redeem code for free upgrade for OS X Lion

    I had register for serial No: of Mac Pro already but not get redeem code for free upgrade OS X Lion. How can I get the redeem code?
    Best regards,
    Noiloso

    I do not understand why I can not redeem code. Certain that when you buy. Someof you may E-mail.

  • Needed config settings for automatic storage location

    hi,
    sap gurus,
    configuration settings needed for automatic storage location at sales order level.
    it is coming by using OVL3 at delivery document level.
    but we need it sales order level.
    regards,
    balaji.t

    Hi Balaji,
    In standard Storage location cannot be defaulted in Sales order. OVL3 is for determining the storage location in Delivery.
    However to map your requirement of having Storage location determination in the Sales order do the following:
    In the Plant Setting IMG> Enterprise Structure> Definition> Logistics - General> Define, copy, delete, check plant. Here select your plant and go to Address for this plant. Here in Search term 2 Maintain some alphabet say "A". Now ask your ABAPer to write a user exit for determining the Storage location if the Sales order has the same Plant used in it with search term as "A" then use table V_TVKOL (storage location determination table) and fetch the correct storage location based on Shipping Point + Plant + Storage conditions.
    Hope the same works for you!!
    Regards,
    Ajinkya

  • Turn off ATP for a Storage Location

    Hi,
    I want to turn off ATP for a Storage Location.
    I am aware of a setting on IMG where we can have this done but not able to find the right node.
    Can someone help me with it?
    availability check NOT TO CHECK the stock at the storage location level
    Thanks,
    Mike

    Availability checks can be triggered either automatically or manually:
    The availability of components in an order can be checked automatically during order creation and/or order release. You specify in CustomizingOPJK per order type and plant whether the availability should be checked automatically. In addition, an automatic availability check can be carried out when the order is saved.
    You can always trigger a manual availability check
    The checking scope is defined via the Checking Group (in the material master) and the valid Checking Rule (in Customizing).
    They define:
    Which MRP elements are taken into account in the check
    Which inventory categories are taken into account
    Whether the replenishment lead time is taken into account
    Whether the check is also to be carried out at storage location level
    In Customizing (checking control) you specify which quantity is used to check the availability of a material. You can choose between the following:
    Availability Check Against Planned Independent Requirements
    In the check against planned independent requirements, the system only checks the open planned independent requirement quantities created for the components. This means that the ATP quantity is not included in this availability check nor are receipts or stocks.
    This type of availability check is most useful:
    if assembly planning or phantom assembly planning is used to plan the components
    if quick statements about the availability situation are required and the results from this check are precise enough
    The system uses the open planned independent requirements quantity at component level to determine a committed quantity and this quantity is copied to the planned order header in the Committed quantity field. As opposed to the availability check according to ATP logic, however, the committed quantity is not recorded in the dependent requirements. The planned independent requirements of the components are not consumed by the committed quantity but by the complete dependent requirements quantity. In availability checks that follow, the system can only commit quantities for the amount of planned independent requirements that have not yet been consumed.
    In the availability check against planned independent requirements, the following dates/quantities are not calculated:
    overall commitment date
    partial commitment date/quantity
    ATP quantity
    In the check according to ATP logic, the system checks whether the dependent requirements of each component are covered by specific receipt and issue elements or by stock. This check is carried out dynamically, that is, each time you carry out the check, the system recalculates the current situation. If a quantity can be committed for the requirement date, the system enters precisely this quantity as the committed quantity in the dependent requirements and the ATP quantity for the components is reduced by the committed quantity. Therefore, in the next availability check, dependent requirements can only be committed for the amount of the remaining ATP quantity.

  • Can we maintain separate Profit center for each Storage location?

    Dear Friends
    My Org structure is like below:
    We have 10 profit centers, one plant and 5 storage locations.
    Now my requirement is these 5 storage locations belog to 5 different profit centers.
    Can we assign different profit center for each storage location?
    Regards
    Kiran A

    Dear Mehmet Gunenc
    It is not happening because the profit center area is defined as General plant parameters. It is denoting the Profit Center is at Plant level and not at storage location level.
    Please check it.
    Regards
    Kiran

  • Planing via MD01 only for one storage location

    Hi!
    I have the following setup:
    Plant p1 has storage locations sl1, sl2, sl3, ... sl9
    In transaction mm43 (display retail material) I can see the following setup of the material:
    Dispositionsparameters:
    -MRP Type V2, ... and so on
    Behind Button MRP/Forecast Data I can switch to for example storage location sl3 and there I can see
    Storage Location MRP:
    -SLOC MRP indicator = 2
    -Reorder point = 50
    -Replenishment qty = 70
    I think its meant like the following: if the material in storage location sl3 is equal or below 50 then there will be a goods movement from the "main storage location" to the storage location sl3 with 70 pieces of the material. Afterwards there would be 130 in the sl3.
    Maybe its a good thing to run "the report" every day in the evening so that the sl3 location will be filled up every day if necessarily.
    Now the questions:
    Is the transaction MD01 "the report"? I have no chance of setting up the storage location there.
    Where can I check whats the "main storage location", the location where the replenishment comes from?
    Some of my colleagues mentioned the Transaction MB26 where they check the planed for replenichment materials. Is this at all usefull in this context? They told me the list is reacting very slow... so if they run out of stock of some material then "the list" recognizes this 2 or 3 days later.
    I am looking forward to your answers!
    Regards
    Manfred

    What you setup in OMIR will just be the default for a material master created after this customizing, when an existing material will be extented or a new material will be created.
    It does not impact the MRP run directly.
    You have to maintain the  MRP view in your existing  materials for the desired storage location as well. There you have to enter this MRP indicator manually or with MM17.
    However, the MRP will in general run per plant, for all locations, it will just plant the locations separatly if the indicator is set.
    If you really want an extra run per storage location, then you have to use the user exit (you see the 2 fields at the bottom of the MD01 screen).
    the user exit has to be customized in IMG > production > MRP > planning > user exit material seelection

  • How do i get serial number for my element12 i have the redemption code

    how do i get serial number for my element12 i have the redemption code

    Hi ylee0y0te,
    Please follow the steps here.
    1. http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    2.http://helpx.adobe.com/x-productkb/global/find-serial-number-student-teacher.html
    3.http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Hope it helps you.
    Regards,
    Rajshree

Maybe you are looking for