UDF for Bin Location

Hello,
I have created a UDF in Item Master to store a bin location called Bin(EMPR_BinCode), we use multiple warehouses so for whse 01 the bin maybe AAA100 and for warehouse 02 the bin maybe ZZZ100.
I have created a UDF in marketing documents and also called it Bin(EMPR_MDBinCode) and defined a query for the search, which is.
SELECT T0.U_EMPR_BinCode FROM OITW T0 WHERE T0.ItemCode = $[$38.1.0] AND T0.WhsCode= $[$38.24.0]
This is Auto refreshed in the UDF when Exiting the WhsCode(Whse) field.
My problem is that the default warehouse is usually 01 so when inserting the first item it defaults to warehouse 01 and returns no Bin as this has not been altered. If I change this to 02 and then back to 01 the Bin appears.
Is there any way that I can have the 01 Bin show as default without have to perform the above?
Appreciate any help, thank you in advance...
Ben

Hi Ben,
I understand your situation.  The option to make this work would be.
To create another Formatted Seach  - SELECT '01'    and assign this to WhsCode field on document line.  Set it to Auto Refresh when Item Name changes and Select Display Saved Values.
This I am suggesting only because you mentioned the default WH for your Items is '01'
The above Formatted Search result in the WHCOde to change (infact set it to '01' again) and this triggers your Formatted Seach on the Bin to fire automatically and show the Bin number for the Item.
Best wishes
Suda

Similar Messages

  • Use Batch Number for bin location

    Hi:
    if I not use WM module, can I use batch number for bin location instead.
    I will set naming convention for batch number to represent bin location.

    Hi,
       You can use it, but I wont suggest it. The batch specifies a group of materials produced with same recipe or with same characteristics.
       If you use BIN location as batch name, suppose you transfer post from one storage location to another storage location where the bin location change and the batch number remains the same. It will simply create confusion.
    Regards,
    AKPT

  • Txn for Bin Location

    Hi Experts,
    Do you have any idea on a transaction to display all bin storage locations for a particular plant? except for LX01, LX02 and LX41.
    Thanks.

    Hi
    LI05     Inventory History for Storage Bin
    LM55     Print Storage Bin Labels
    LP22     Replenishm. Planning for Fixed Bins
    LS04     Display Empty Storage Bins
    LS05     Generate Storage Bins
    LS06     Block Storage Bins
    LS08     Block Storage Bins by Aisle
    LS10     Generate Storage Bins
    LS25     Display Quants per Storage Bin
    LSET_BIN_COORDINATES     Maintain Storage Bins by selection
    LT343XYZ     Copy Storage Bin Definition Rules
    LT343XYZA     Maintain Bins by Definition Rule
    LX01     List of Empty Storage Bins
    LX03     Bin Status Report
    LX05     Block Bins in Bl.Storage w.Time Lim.
    LX15     Selection of Bins for Annual Invent.
    LX16     Selection of Bins for Continuous Inv
    LX40     Material Situation Prod. Storage Bin
    LX41     Bin Status Report WM/PP Interface
    LX45     Verification Field in Storage Bin
    rwd if useful
    rgds
    BV

  • Bin Location Setup

    Hello All
    Currently our clients do not use the bin location function in SAP. They have a UDF called bin location on the batch details screen.
    We would like to setup bin locations using the SAP Bin Location functionality. However the client is not happy with how the bin locations work in SAP.
    e.g. of their existing bin locations :

    Hello All
    Currently our clients do not use the bin location function in SAP. They have a UDF called bin location on the batch details screen.
    We would like to setup bin locations using the SAP Bin Location functionality. However the client is not happy with how the bin locations work in SAP.
    e.g. of their existing bin locations :
    1A1  2A1 3A1
    1A2  2A2 3A2
    1A3  2A3  3A3
    e.g. Location 3A1 is not specific to a warehouse. It is a bin location that can be in any warehouse. e.g. A01, J01, etc.
    So in essence bin location 2A1 can contain items that was receipted into warehouse A01 and warehouse J01. The bin location is not specific to a warehouse.
    Is there a way to setup the bin location without specifying it for a specific warehouse. They do not want the bin location to be created as
    "A01-1A1"
    "J01-1A1"
    Any ideas would be appreciated,
    Thanks
    Janice

  • DTW Bin Location - Inventory Transfer / Good Receipts

    Hi Everyone,
    I don´t found Template or Field Link BinLocation on Inventory Transfer and Good Receipts,
    Someone have Idea?
    Very Thanks

    Hi Douglas,
    Please check below links.
    Trying to create Stock Transfer from one Bin Location to another Using DTW SAP B1 9.0 PL05
    DTW for Bin Locations in Goods Receipt
    Where is the DTW Goods receipt bin location information template
    Bin Locations in SAP Business One 9.0
    http://help.sap.com/saphelp_sbo900/helpdata/en/45/221d5373c80108e10000000a114a6b/content.htm
    http://help.sap.com/saphelp_sbo900/helpdata/en/45/22e90473c80108e10000000a114a6b/content.htm
    Hope this help
    Regards::::
    Atul Chakraborty

  • PLD- Bin locations

    Hi Experts,
    Is it possible to show the bin location details in PLD like Receipt from Production or Inventory Transfers?
    Thanks,
    Don Elicor

    Hi Don
    Check the Below Link Table for Bin Location table for all documents. 
    SAP Business One 9 - List Of New Tables
    With Regards
    Balaji

  • Multiple storage bin location for single material in material master

    HI experts
    1) we have a senario for our cliant , for which it is required to enter a 6 or 7 storage bin locations for a single part which is created in materials master without having a WAREHOUSE MANAGEMENT .
    2) User can enter a quantity while doing GR in to that all locations.
    3) reports based on stock avialble in all storage locations ( like MMBE)
    Kaustubh

    Storage bin used in IM is stored in table MARD. Key fields in table MARD are: client/plant/storage location. So you can have only one storage bin for a plant/storage location combination - even if you want to have more.
    If you want more than one storage bin per storage location you have to use warehiuse management.
    That's all.
    Edited by: Csaba Szommer on Jul 26, 2009 12:35 PM

  • Need Inventory transfer query with bIn location information

    Dear Team,
    Please help me to create the query for inventory transfers with bin location information.
    WTR19 field is empty so that i have checked with tables OINM,OILM,OBTL
    But how can i link this tables..?
    Regards
    Sanu.

    Dear AndakondaRamudu,
    In the mentioned link i had already checked .I need the item movement bin transactions report inventory transfer using a parameter with UDF..
    Regards
    Ajith

  • Create a delivery note with bin locations and batch numbers

    Hello everyone,
    when sending this message to my b1if scenario i am receiving this error (which says nothing):
    Exception : DI Error: (-2010) Internal error (-2010) occurred
    This error only occurs when using a warehouse with bin locations. For regular warehouses it works when leaving the <DocumentLinesBinAllocations> away.
    What could cause this issue? Just for clarfying: UOMEntry Nr. 2 means that the sales unit contains 5kg of a product.
    I would greatly appreciate any help.
    Best regards
    Simon
       <CreateDelivery>
          <Documents>
            <row>
              <CardCode>K100002</CardCode>
              <DocDate>04.02.2015</DocDate>
              <DocDueDate>04.02.2015</DocDueDate>
              <DocNum>200048</DocNum>
            </row>
          </Documents>
          <DocumentLines>
            <row>
              <DocEntry>62</DocEntry>
              <LineNum>1</LineNum>
              <BaseLine>1</BaseLine>
              <ItemCode>8705</ItemCode>
              <Quantity>1</Quantity>
              <UoMEntry>2</UoMEntry>
              <WarehouseCode>SB</WarehouseCode>
            </row>
          </DocumentLines>
          <BatchNumbers>
            <row>
              <BatchNumber>20150701</BatchNumber>
              <ExpiryDate>07.07.2015</ExpiryDate>
              <Quantity>5</Quantity>
              <BaseLineNumber>1</BaseLineNumber>
            </row>
          </BatchNumbers>
          <DocumentLinesBinAllocations>
            <row>
              <BinAbsEntry>4</BinAbsEntry>
              <Quantity>5</Quantity>
              <BaseLineNumber>1</BaseLineNumber>
              <AllowNegativeQuantity>N</AllowNegativeQuantity>  
      <SerialAndBatchNumbersBaseLine>0</SerialAndBatchNumbersBaseLine>
            </row>
          </DocumentLinesBinAllocations>
        </CreateDelivery>

    Hi Pablo,
    based on the code from the other thread it should be like that for the first row:
    delivery.Lines.ItemCode = "ID200";
    delivery.Lines.Quantity = 15;
    delivery.Lines.BinAllocations.BinAbsEntry = 3107; // guessed AbsEntry
    delivery.Lines.BinAllocations.Quantity = 10;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0;
    delivery.Lines.BinAllocations.Add();
    delivery.Lines.BinAllocations.BinAbsEntry = 3108;
    delivery.Lines.BinAllocations.Quantity = 5;
    delivery.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 1;
    delivery.Lines.BatchNumbers.Location = "02-A";
    delivery.Lines.BatchNumbers.BatchNumber = "XY";
    delivery.Lines.BatchNumbers.Quantity = 10;
    delivery.Lines.BatchNumbers.Add();
    delivery.Lines.BatchNumbers.Location = "02-B";
    delivery.Lines.BatchNumbers.BatchNumber = "YY";
    delivery.Lines.BatchNumbers.Quantity = 5;  
    You got now :
    1 Delivery Row, Quantity 15
    2 BinLoc Rows, Quantity 10+5
    2 Batch Rows, Quantity 10+5
    regards,
    Maik

  • UDF for leading zero's in message mapping

    Dear team,
    I need UDF for leading zero's in my message mapping.
    Source and Target both structures contains matnr field.But we have to maintain total 18 chars at target matnr , because RFC in R/3 needed.So I want to add leading zero's when mapping. Can anybody provide the UDF code.
    Matnr[source]--->split by value(eachvalue) ->UDF->Matnr[Target]
    Ex::if source matnr conatains value "9846538" ; I need matnr value at target side like "000000000009846538"[total 18 chars].
    -Drumi

    Hi Ambrish,
    Good day...
    I have enterd what you said and I got below error... and I gave "input" in place of var1, 18 in place of filedlenght in below program...
    =================================
    int len = Integer.parseInt(18);
    int inputLength = input.length();
    try {
    Integer.parseInt(input);
    // If it is an integer, add 0 (len - inputLength) times
    for (int i=0; i< len-inputLength;i++)
        input = "0" + input;
    return input;
    } catch (NumberFormatException numForEx) {
    // return as it is, if alphanumeric
    return input;
    ====================================
    ERROR:
    Source text of object Message Mapping: Lubrisur_SHPMNT_SHPMNT05_TO_WMMBXY_WMMBID02_TransferPosting | urn:bp:xi:dwn:lu:common:Logistics:100 has syntax errors:
    Function LeadingZeros, Line 1:
    cannot find symbol symbol  : method parseInt(int) location: class java.lang.Integer int len = Integer.parseInt(18);                  ^ 1 error
    =======================
    Please suggest

  • How to display Bin Location Name in GRPO PLD ?

    Hi Experts,
    Do you have any idea about how to display Bin location name in GRPO PLD (SAP B1 9).
    Awaiting for your valuable suggestions.
    Regards
    KMJ

    Nagaraj,
    The requirement is when the user is doing GRPO, user will select the Bin location to receive the items. When the user given this GRPO details to Store keeper, user has to put the same items in particular bin  location.
    Regards
    KMJ

  • RF Pick and Pack delivery sequence going by material rather than bin locati

    Hi All,
    During picking and packing through RF we are entering the TO number and after that packaging barcode. Everything is working fine but transaction has some kind of logic where its taking the warehouse picker around different aisles based upon material rather than bin location.
    Transaction for wave/discrete picking doesn't have this problem.
    Can someone please advise how to fix this?
    Thanks
    UT
    Edited by: Csaba Szommer on Feb 6, 2012 8:37 AM

    Hi Frenchy
    TO sort profile is setup for picking correctly but nothing for picking and packing. For some reason picking sort profile is not kicking in when using picking and packing.
    Any other suggestions???
    Thanks

  • RF Pick and Pack delivery going by material rather than bin location

    Hi All,
    During picking and packing through RF we are entering the TO number and after that packaging barcode. Everything is working fine but transaction has some kind of logic where its taking the warehouse picker around different aisles based upon material rather than bin location.
    Transaction for wave/discrete picking doesn't have this problem.
    Can someone please advise how to fix this?
    Thanks
    UT

    Hi Frenchy
    TO sort profile is setup for picking correctly but nothing for picking and packing. For some reason picking sort profile is not kicking in when using picking and packing.
    Any other suggestions???
    Thanks

  • How to deliver MM02 to user with only Bin Location editable.

    My user wishes to have access to change only the Bin Location field in MM02. How can we achieve this? or in other words how can we deliver MM02 to user with only the Bin Location field editable.
    My basis guy sees a possibility if we can some how provide the authorization objects of all the fields of MM02.Shall that be a practical approach. if yes, what is the way of finding the authorization objects?
    Regards,
    Alok.

    Hi,
    You can create a transaction variant in SHD0 for MM02.
    [Transaction variants|http://help.sap.com/saphelp_nw70/helpdata/en/7d/f639f8015111d396480000e82de14a/content.htm] simplify transaction flow by:
    -Inserting default values in fields
    -Hiding and changing the ready for input status of fields
    -Hiding and changing the attributes of table control columns
    -Hiding individual menu functions
    -Hiding entire screens
    Transaction variants are actually made up of a series of screen variants. The field values and field attributes for each screen in a transaction variant are stored in screen variants. Each variant is assigned to a transaction. Variants may, however, contain values for screens in multiple transactions, if transaction flow makes this necessary. The transaction the variant is assigned to serves as its initial transaction, whenever you start the variant.
    Both client-specific and cross-client transaction variants exist. Screen variants are always cross-client; they may, however, be assigned to a client-specific transaction.
    A specific namespace has been designated for cross-client transaction variants and screen variants and they are both automatically attached to the Change and Transport System. Client-specific transaction variants can be transported manually.
    Transaction and screen variants may be created for all dialog and reporting transactions. However, there are certain restrictions that apply to their use, depending on how their corresponding transactions have been realized internally.
    Transaction variants may not be created for transactions already containing pre-defined parameters (parameter transactions and variant transactions).
    The following sections contain additional information on how to create and maintain transaction variants:
    Maintenance
    Additional Functions
    Transport
    Regards,
    Srilatha.

  • Bin Location In Stock Transfer

    Hi,
    I have to set the bin location for From Whs and To Whs in B1if
    <StockTransfer_Lines>
                            <xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;C&apos; and ./@id=&apos;atom1&apos;]/jdbc:ResultSet/jdbc:Row">
                                <row>       
                                    <ItemCode>
                                        <xsl:value-of select="jdbc:ITEMCODE/text()"></xsl:value-of>
                                    </ItemCode>
                                    <ItemDescription>
                                        <xsl:value-of select="jdbc:DESCRIPTION/text()"></xsl:value-of>
                                    </ItemDescription>
                                    <Quantity>
                                        <xsl:value-of select="jdbc:QUANTITY/text()"></xsl:value-of>
                                    </Quantity>
                                   <WarehouseCode>
                                        <xsl:value-of select="jdbc:TOWHSCODE/text()"></xsl:value-of>
                                    </WarehouseCode>
                                    <FromWarehouseCode>
                                        <xsl:value-of select="jdbc:FILLER/text()"></xsl:value-of>
                                    </FromWarehouseCode>                               
                                    <MeasureUnit>
                                    Kgs
                                    </MeasureUnit>
                                </row>
                            </xsl:for-each>
                        </StockTransfer_Lines>
    This is the XML I generated for adding StockTransfer Line . But I dont have any idea about the Bin Location, How to set it. Please help.
    Thank You.

    Hi
    Here the schema for Stock Transfer:
    <?xml version="1.0" encoding="utf-8" ?>
    <BOM>
      <!-- DB Table Name: OWTR  -->
      <BO>
        <!-- multiple such elements are allowed  -->
        <AdmInfo>
          <Object>long</Object>
          <Version>long</Version>
        </AdmInfo>
        <QueryParams>
          <DocEntry>string (db: DocEntry, Numeric(11))</DocEntry>
        </QueryParams>
        <StockTransfer>
          <row>
            <!-- multiple such elements are allowed  -->
            <Series>long (db: Series, Numeric(6))</Series>
            <Printed>string (db: Printed, Alpha(1))</Printed>
            <DocDate>string (db: DocDate, Date(8))</DocDate>
            <DueDate>string</DueDate>
            <CardCode>string (db: CardCode, Alpha(15))</CardCode>
            <CardName>string (db: CardName, Alpha(100))</CardName>
            <Address>string (db: Address, Alpha(254))</Address>
            <Reference1>string (db: Ref1, Alpha(11))</Reference1>
            <Reference2>string (db: Ref2, Alpha(11))</Reference2>
            <Comments>string (db: Comments, Alpha(254))</Comments>
            <JournalMemo>string (db: JrnlMemo, Alpha(50))</JournalMemo>
            <PriceList>long (db: GroupNum, Numeric(6))</PriceList>
            <SalesPersonCode>long (db: SlpCode, Numeric(6))</SalesPersonCode>
            <FromWarehouse>string (db: Filler, Alpha(8))</FromWarehouse>
            <ToWarehouse>string</ToWarehouse>
            <TaxDate>string (db: TaxDate, Date(8))</TaxDate>
            <ContactPerson>long (db: CntctCode, Numeric(11))</ContactPerson>
            <FolioPrefixString>string (db: FolioPref, Alpha(2))</FolioPrefixString>
            <FolioNumber>long (db: FolioNum, Numeric(11))</FolioNumber>
            <DocObjectCode>string (db: ObjType, Alpha(20))</DocObjectCode>
            <AuthorizationCode>string</AuthorizationCode>
            <StartDeliveryDate>string</StartDeliveryDate>
            <StartDeliveryTime>long</StartDeliveryTime>
            <EndDeliveryDate>string</EndDeliveryDate>
            <EndDeliveryTime>long</EndDeliveryTime>
            <VehiclePlate>string</VehiclePlate>
            <ATDocumentType>string</ATDocumentType>
            <EDocExportFormat>long</EDocExportFormat>
            <ElecCommStatus>string</ElecCommStatus>
          </row>
        </StockTransfer>
        <StockTransfer_ApprovalRequests>
          <row>
            <!-- multiple such elements are allowed  -->
            <Remarks>string</Remarks>
          </row>
        </StockTransfer_ApprovalRequests>
        <StockTransfer_Lines>
          <row>
            <!-- multiple such elements are allowed  -->
            <LineNum>long</LineNum>
            <ItemCode>string</ItemCode>
            <ItemDescription>string</ItemDescription>
            <Quantity>double</Quantity>
            <Price>double</Price>
            <Currency>string</Currency>
            <Rate>double</Rate>
            <DiscountPercent>double</DiscountPercent>
            <VendorNum>string</VendorNum>
            <SerialNumber>string</SerialNumber>
            <WarehouseCode>string</WarehouseCode>
            <FromWarehouseCode>string</FromWarehouseCode>
            <ProjectCode>string</ProjectCode>
            <Factor>double</Factor>
            <Factor2>double</Factor2>
            <Factor3>double</Factor3>
            <Factor4>double</Factor4>
            <DistributionRule>string</DistributionRule>
            <DistributionRule2>string</DistributionRule2>
            <DistributionRule3>string</DistributionRule3>
            <DistributionRule4>string</DistributionRule4>
            <DistributionRule5>string</DistributionRule5>
            <UseBaseUnits>string</UseBaseUnits>
            <MeasureUnit>string</MeasureUnit>
            <UnitsOfMeasurment>double</UnitsOfMeasurment>
            <BaseType>long</BaseType>
            <BaseLine>long</BaseLine>
            <BaseEntry>long</BaseEntry>
            <UnitPrice>double</UnitPrice>
            <UoMEntry>long</UoMEntry>
            <InventoryQuantity>double</InventoryQuantity>
          </row>
        </StockTransfer_Lines>
        <SerialNumbers>
          <row>
            <!-- multiple such elements are allowed  -->
            <ManufacturerSerialNumber>string</ManufacturerSerialNumber>
            <InternalSerialNumber>string</InternalSerialNumber>
            <ExpiryDate>string</ExpiryDate>
            <ManufactureDate>string</ManufactureDate>
            <ReceptionDate>string</ReceptionDate>
            <WarrantyStart>string</WarrantyStart>
            <WarrantyEnd>string</WarrantyEnd>
            <Location>string</Location>
            <Notes>string</Notes>
            <BatchID>string</BatchID>
            <SystemSerialNumber>long</SystemSerialNumber>
            <BaseLineNumber>long</BaseLineNumber>
            <Quantity>double</Quantity>
          </row>
        </SerialNumbers>
        <BatchNumbers>
          <row>
            <!-- multiple such elements are allowed  -->
            <BatchNumber>string</BatchNumber>
            <ManufacturerSerialNumber>string</ManufacturerSerialNumber>
            <InternalSerialNumber>string</InternalSerialNumber>
            <ExpiryDate>string</ExpiryDate>
            <ManufacturingDate>string</ManufacturingDate>
            <AddmisionDate>string</AddmisionDate>
            <Location>string</Location>
            <Notes>string</Notes>
            <Quantity>double</Quantity>
            <BaseLineNumber>long</BaseLineNumber>
          </row>
        </BatchNumbers>
        <StockTransferLinesBinAllocations>
          <row>
            <!-- multiple such elements are allowed  -->
            <BinAbsEntry>long</BinAbsEntry>
            <Quantity>double</Quantity>
            <AllowNegativeQuantity>string</AllowNegativeQuantity>
            <SerialAndBatchNumbersBaseLine>long</SerialAndBatchNumbersBaseLine>
            <BinActionType>long</BinActionType>
            <BaseLineNumber>long</BaseLineNumber>
          </row>
        </StockTransferLinesBinAllocations>
        <StockTransfer_TaxExtension>
          <row>
            <!-- multiple such elements are allowed  -->
            <SupportVAT>string</SupportVAT>
            <FormNumber>string</FormNumber>
            <TransactionCategory>string</TransactionCategory>
          </row>
        </StockTransfer_TaxExtension>
      </BO>
    </BOM>
    Kind regards,
    Radek

Maybe you are looking for

  • InfoObject as Attribute of another

    Hi Gurus, Could u guys please explain me some doubts in modelling- 1) When exactly a characteristic is used as an attribute of another one? 2) OR How exactly do we decide that we want an infoObject as a seperate characteristic or as an attribute of a

  • Unable to send invitation to one user

    I have a intel mac mini, running server 10.5.2 as an iCal server. 3 users has been created - A, B and C and they have all been setup in open directory and ical and their calendars can be viewed both outside and inside the network. They can all read a

  • Unable To Run CJV4  Standard Transaction

    Hi Friends, I am trying to Tranfer Project through CJV4 Standard Transaction In Ecc6 it is going to Dump at the select query in two different Servers(IDES) Is there any patch we need to apply, as there is no modifications done to the standard one. th

  • How can I make grunge transparent?

    I am very new to Illustrator but have had a little experience creating artwork in Photoshop. In Photoshop, I created a t-shirt design where I used the eraser tool with a grunge brush to erase color in spots so that the color of the shirt was visible

  • IMac won't sleep or sleep hard disks either!

    My iMac is late 2009 and am running Mountain Lion 10.8.2. I used to be able to click sleep under Apple menu>Sleep or by simply pressing the sleep button at the back of the iMac to ensure it goes to sleep including the hard disks. However, for the pas