Query for batch number

Hi
i want query that
suppose i create 'i01' item make management method by batch.
when i create ap invoce at that time i add vendor refrence number add add that 'i01'
item with '5' quantity's then add. at that time it ask for batch update.
then i get new window of batch OBTN  in that window  i make user defined field.
"In that user defined field i want that vendor reference number which i give in ap invoce "
so plz help ..................

Hi,
Unless I misunderstood your question (if so, sorry), I presume you mean formatted-search to copy vendor reference number from main A/P Invoice form to batch selection form, isn't it? You can't do this, formatted search works in one form, can't work across two form / document. Hope this help.
Best Regards,
Hendry Wijaya

Similar Messages

  • Stored Procedure for Batch Number Format and Block Duplicate Batch Number

    Hi Experts !
    I am new one in forum asking question.. I want Stored procedure for Batch Number Format. I want fix one Batch number format in Stored Procedure.
    Example :
    My Batch number format Like  BATCH00001 - It should be first five digit is text format and next five is Numeric.
    IF create Goods receipt PO or Goods receipt stage I create batch number like BATCH 00001 or any other number means don't add that document and also duplicated batch number also does not allowed. please give me the solutions. I am sorry for my bad english .

    Dear Nagarajan K.
                         Thanks for your replay ..
    IF @transaction_type IN ('A','U') AND (@object_type = '106' )
    BEGIN
    set @item = LEFT( @list_of_cols_val_tab_del, CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,1) - 1)
    set @batch = substring(@list_of_cols_val_tab_del, len(@item)+1, (CHARINDEX(CHAR(9),  @list_of_cols_val_tab_del,len(@item)+2)) - (len(@item)+1))
    --set @base =( select basetype from ibt1 where batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    set @count = (select count(*) from oibt quantity > 0 and where  batchnum = ltrim(rtrim(replace(@batch,char(9),''))))
    if @count > 1
    begin
    set @error = 1
    set @error_message = 'Please enter different Batch Code for batch ''' + @batch + ''' for item ' + @item 
    select @error, @error_message
    END
    END
                  I used above Stored Procedure. here we can use one batch number for different item but  i want to block one batch we should use one item and one time only after than we never use that batch number for same item and another item.
             After that I want format for Batch, we should follow unique Batch number for all items.

  • Verification field for Batch number - Transaction LM05

    Hi Experts,
    Can some one help on the issue of adding a verification field for BATCH NUMBER on the screen 2502 and make it work.
    Requirement : Add Verification field for batch number and build the logic to verify the batch number -  as the SAP standard does for other fields.
    I have proceeded to some extent and seems like I am not winning.
    Steps done :
    1. Copied physical screen 2502 (SAPLLMOB)  to screen 9502(SAPLXLRF)
    2. Changed the screen to subscreen and removed the OK_CODE from the element list.
    3. Created the project ZMWMRF502 and assigned user exit MWMRF502 to this project.
    4. In the components of the project assigned 9502(SAPLXLRF) to 1502((SAPLLMOB).
    5. Assigned the screen 9502 to logical screen 0502 in the config.
    6. In the transaction LRFMD given the username and variant '1'.
    Now When I execute the transaction LM05 and give the TO number, the system calls my screen 9502 with new field seen in that.
    But the screen is completely greyed out with no data in that.
    I checked PBO and PAI of my new copied screen.
    In all the modules which I received from the copy of SAP standard screen there is no code except name.
    I mean to say that names of all modules exist but when I double click on any module it ask me to create a new object.
    If I have to create module similar to SAP there is a lot of coding in side. How do I proceed further.
    Can some help me.
    Thanks and regards
    Joshi

    Hi Dez,
    If you go in to transaction LM05 and input a number of TRANSFER ORDER, it will take you to a screen where the system will populate the fields pertaining to that particular transfer order.  In that screen we have normal fields as well as verification fields for that particular field. These screens are used on scanners. When the scanner scans the material slip, the corresponding value such as material number, storage bin number etc will be get populated in the verification field.  When the user selects next then the system will perform a check for the two values and pops up an error message if required.
    So there are verification fields for material number, storage type, quantity etc but not for batch.  Our user requirement is to put a verification field just by the side of batch number field and perform same operation as it does for other fields.
    Hope you understood.
    Thanks and regards
    Joshi

  • Querying for large number of objects... searchspec limitation

    As part of a product i'm developing i may come across a scenario where i need to query for 100+ specific objects based on ids.
    I know the query input for WS 2.0 has a "searchspec" string field, but based on the sheer number of specific objects i need to query for i'm afraid the string may eventually get too large.
    Is there a way around this? Can i send multiple individual queries in a batch request? Can i add more than one search object to a single query page request? Anything?
    Thanks!
    -Kevin

    A few options available using the WS v2.0 Query methods:
    1. Use Arguments like page size and startrownumber arguments. This will allow you to specify the pagesize of the recordset to be returned and also the starting row number.
    2. The searchspec is a powerful argument and it supports a set of binary and unary operators. Refer the Ondemand user guide for a more complete set of operators supported by searchspec. To narrow the results of your query, you could use the "AND" operator between 2 or more fields in your object query.
    Hope this helps.
    Jaya

  • Query on batch number in Invoice

    Hi Experts,
    I would like to get the batch number picked during the Delivery document and shown in the print layout in A/R Invoice. Unfortunately, PLD of Invoice with Batch will not show the Batch numbers as they're already linked in the DR document.
    My workaround is to attach a FMS in the INV1 field line to get the batch number when the Invoice is copied from the DR.
    Any help with the query is very much appreciated.
    We are using 8.81 PL7.
    Thanks,
    Don

    Hi Don..........
    Please check this........
    Select (Case When T1.BaseType=15 then I1.BatchNum else I11.BatchNum end) 'BatchNum', T0.DocNum 'Inv. No'      
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCTG T2 ON
    T0.GroupNum = T2.GroupNum LEFT Join INV12 T3 On T3.DocEntry=T0.DocEntry LEFT JOIN OITM T4 On T4.ItemCode=T1.ItemCode LEFT JOIN OCHP T5 On T4.ChapterID=T5.AbsEntry
    LEFT Join DLN1 T6 On T6.DocEntry=T1.BaseEntry and T6.LineNum=T1.BaseLine
    left outer join IBT1 I1 on T1.ItemCode=I1.ItemCode   and (T6.DocEntry=I1.BaseEntry and T6.ObjType=I1.BaseType)
    left outer join OBTN T8 on T8.ItemCode=I1.ItemCode and I1.BatchNum=T8.DistNumber
    LEFT Join WTR1 T16 On T16.DocEntry=T1.BaseEntry and T16.LineNum=T1.BaseLine
    left outer join IBT1 I11 on T1.ItemCode=I11.ItemCode   and (T16.DocEntry=I11.BaseEntry and T16.ObjType=I11.BaseType)
    left outer join OBTN T18 on T18.ItemCode=I11.ItemCode and I11.BatchNum=T18.DistNumber
    LEFT Outer Join OWHS T20 On T20.WhsCode=T0.Filler
    Run this query you get Invoice No. and its Batch.....
    You may insert required c0olumns also.....
    Regards,
    Rahul

  • Query of batch number range

    Hi experts
    I found that I can assign a external  batch number  to  a material manually,but in background I have not assigned an external number range for batch, who can tell me that's why?
    thank you!

    Hi,
    It is not relevant with No. Range of Batch
    Go to SPRO > Logistics - General > Batch Management > Creation of New Batches > Define Initial Creation of Data for Batch Master Transactions > Here for Material Type select option as "C" (Automatic / No Manual)
    Also check in SPRO > Logistics - General > Batch Management > Creation of New Batches > Define Batch Creation for Goods Movements > Here for Movement Type select option as "C" (Automatic / No Manual)

  • Advise on sql query for batch job

    Hi all,
    I'm planning to perform a batch query for 4000 records.
    The query is as follows and we will loop it for 4000 times.
    select w.idno, w.place, e.user_arrival_dt from main.tbl_user w, main.tbl_job e
    where w.idno = e.idno and w.idno = <idno>
    I find that rather inefficient in term of performance.
    I can use the below too but the the in clause has a limit.
    select w.idno, w.place, e.user_arrival_dt from main.tbl_user w, main.tbl_job e
    where w.idno = e.idno and w.idno in <idno1, idno2, idno3, idno4, etc>
    Another way that I can think of is to loop for 10 times and use this query
    select w.idno, w.place, e.user_arrival_dt from main.tbl_user w, main.tbl_job e
    where w.idno = e.idno and w.idno in <idno1, idno2, idno3, idno4, until idno400>
    is there any other more efficient way of coding to achive the above?
    kindly advise.
    thanks!

    Hi,
    Qwerty and Surachart are right; the best way is to put the 4000 values into 4000 rows of a table (perhaps a Global Temporary Table) and use a sub-query.
    If you really must have 4000 literals, then you can have 4000 items in a list like this:
    where      w.idno      = e.idno
    and      (w.idno, 0) IN     ( (idno1,    0)
                   , (idno2,    0)
                   , (idno3,    0)
                   , (idno4000, 0)     
                   )See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3508573&#3508573] for discussion.

  • Query for Serial number

    Hello all,
    I want a query for show all the record along with serial number.Here i mentioned a sample table along with data.
    COMPCODE
    ITEMCODE
    ACTIVITY
    DESIGNATION
    QTY
    105
    001
    A13
    D7
    50
    105
    001
    A22
    D7
    44
    105
    001
    A34
    7
    54
    105
    001
    A45
    D7
    34
    105
    001
    A45
    D8
    54
    105
    001
    A52
    D13
    32
    105
    001
    A52
    D14
    3
    105
    001
    A61
    D2
    43
    105
    002
    A12
    D1
    43
    105
    002
    A25
    D1
    53
    105
    002
    A35
    D5
    42
    105
    002
    A35
    D4
    45
    105
    002
    A35
    D3
    65
    105
    002
    A44
    D2
    423
    105
    002
    A55
    D3
    43
    105
    002
    A62
    D4
    65
    These is the sample table along with data.My requirement is I want show the serial number based on the itemcode and activity.
    The final result should be  like this
    COMPCODE
    ITEMCODE
    SLNO
    ACTIVITY
    DESIGNATION
    QTY
    105
    001
    1
    A13
    D7
    50
    105
    001
    2
    A22
    D7
    44
    105
    001
    3
    A34
    D7
    54
    105
    001
    4
    A45
    D7
    34
    105
    001
    4
    A45
    D8
    54
    105
    001
    5
    A52
    D13
    32
    105
    001
    5
    A52
    D14
    3
    105
    001
    6
    A61
    D2
    43
    105
    002
    1
    A12
    D1
    43
    105
    002
    2
    A25
    D1
    53
    105
    002
    3
    A35
    D5
    42
    105
    002
    3
    A35
    D4
    45
    105
    002
    3
    A35
    D3
    65
    105
    002
    4
    A44
    D2
    423
    105
    002
    5
    A55
    D3
    43
    105
    002
    6
    A62
    D4
    65
    I tried write a query  used with row_number() function  but i didn't get the exact output.kindly help me for getting this type of output

    I see, try dense_rank instead:
    SQL> with your_view_resultset as (
      2  select 105 compcode, 001 itemcode, 'A13' activity, 'D7' designation, 50 qty from dual union
      3  select 105, 001, 'A22', 'D7', 44 from dual union
      4  select 105, 001, 'A34', '7', 54 from dual union
      5  select 105, 001, 'A45', 'D7', 34 from dual union
      6  select 105, 001, 'A45', 'D8', 54 from dual union
      7  select 105, 001, 'A52', 'D13', 32 from dual union
      8  select 105, 001, 'A52', 'D14', 3 from dual union
      9  select 105, 001, 'A61', 'D2', 43 from dual union
    10  select 105, 002, 'A12', 'D1', 43 from dual union
    11  select 105, 002, 'A25', 'D1', 53 from dual union
    12  select 105, 002, 'A35', 'D5', 42 from dual union
    13  select 105, 002, 'A35', 'D4', 45 from dual union
    14  select 105, 002, 'A35', 'D3', 65 from dual union
    15  select 105, 002, 'A44', 'D2', 423 from dual union
    16  select 105, 002, 'A55', 'D3', 43 from dual union
    17  select 105, 002, 'A62', 'D4', 65 from dual
    18  )
    19  --
    20  --
    21  --
    22  select t.*
    23  ,      dense_rank() over (partition by t.itemcode order by t.itemcode, t.activity) slno
    24  from   your_view_resultset t
    25  order by t.itemcode, t.activity;
      COMPCODE   ITEMCODE ACT DES        QTY       SLNO
           105          1 A13 D7          50          1
           105          1 A22 D7          44          2
           105          1 A34 7           54          3
           105          1 A45 D7          34          4
           105          1 A45 D8          54          4
           105          1 A52 D13         32          5
           105          1 A52 D14          3          5
           105          1 A61 D2          43          6
           105          2 A12 D1          43          1
           105          2 A25 D1          53          2
           105          2 A35 D3          65          3
           105          2 A35 D4          45          3
           105          2 A35 D5          42          3
           105          2 A44 D2         423          4
           105          2 A55 D3          43          5
           105          2 A62 D4          65          6
    16 rows selected.

  • Different Number Range for Batch number in MIGO

    Hi Techies,
    I have a requirement to assign the internal range number to Batch Number as K120101701 for CHARG field in MIGO. Where K1 is the Storage location, 2010 is year, 17 is current date 01 is the serial Number.  Next day the number range should be K120101801, 18 is next day's date. How can I achieve this? 
    Thanks & Regards,
    Muralikrishna P
    Edited by: muralipsharma on Nov 17, 2010 5:35 PM
    Moderator Message: Do not dump your specifications here for others to do your work. Try on your own first.
    Edited by: kishan P on Nov 18, 2010 11:31 AM

    just check with following code . it will give all badi and user exit in the transaction . in selection screen u have to pass tcode and package
    <<copy-paste from http://naveenvishal.wordpress.com/2009/07/05/user-exits-and-badi-list-for-a-t-code/ or some other location>>
    Moderator Message: DO NOT copy-paste other people's work without giving them due credit. If you continue this, you user-id will have to be deleted.
    Edited by: kishan P on Nov 18, 2010 11:36 AM

  • Linked Button for Batch number and Serial Number

    Hi,
    Is there a way i can have a linked button for Batch numbers and serial numbers?
    (These are 2 separate fields by the way).
    If i use the object no 94 for serial numbers, it cannot find the record. The same issue occurs when i use batch number's object no 106.
    Anyone has any idea how do i go about this?
    Thanks in advance.

    Hi shafi,
    It wont work, but i did check it once and confirmed my doubt. instead of writing 
    SAPbouiCOM.BoLinkedObject.lf_ItemBatchNumbers
    i'm using the "106" object number. its the same thing.
    Your using the linked button for the item code. I want the object to link to the batch number.
    Your your linked button, when you run it against an item having 10 or so batch numbers it'll always take the 1st record. Not the record that u want it to link to on the form. (because we cannot define the Batch number with that object).
    BTW, the code you've written for a matrix, you can assign all these things in the xml file or in the srf itself.
    Appreciate the response, thanks.

  • Query for Transaction number in Create Accounting = Draft Mode

    Hi al!!
    I run the Create Accounting program concurrent in my R12 instance in DRAFT MODE, and when the concurrent program finish i want to obtain the TRANSACTION number of the transactions in the XLA_AE_LINES table, how can i do that ???... it's for AP_INVOICES, AP_PAYMENTS, RECEIPT and CE Tables...
    Thanks in advance..
    Pablo.-

    1 row in ap_invoice_distributions_all ------> 1 row in xla_ae_lines.xla_ae_lines will have more than one row. dr and cr has to be there for each journal entry.
    I want to do a query that get lines from XLA_AE_LINES and then obtain the transaction number (AP_INVOICES_ALL.INVOICE_NUM) that was generated this line in the table.Check the link http://www.orafaq.com/node/2242
    I know that this is possible to do using the XLA_ENTITY_TRANSACTIONS table... but when the concurrent is run in DRAFT mode no line are created in this table.The rows in xla_transaction_entities table will get created when the invoice is created. NOT after running accounting, which is much earlier.
    Check the link http://www.orafaq.com/node/2243
    Also some more details on draft, final accounting are available at http://www.orafaq.com/node/2240
    By
    Vamsi

  • Questions for Batch number in CRM

    Dear All,
    I have batch questions in current CRM project. Basically we want to allow user to enter the Batch for products in item level.
    1. I have config the COMM_PR_BATCH set type in comm_hierarchy for MAT_ materail.  But the Batch set type don't exist in commpr01. Why don't it work?
    2. In standard order, the batch field only displays. If I want to make this field editable. Do I need some configuration?
    I 'm very appreciated if you give advice. Thank you so much.
    Anna

    Hi Tinu,
    As part of standard SAP deployment the batch characteristics are defined in R/3 as product classification data and then donwloaded into CRM. Actually batch determination takes place in the R/3 System when you call ATP check from CRM, and is only visible in the CRM System during delivery. There are no confoguration settings In CRM to maintain batch information.
    Hope the below help document link will give you a good in-sight of batch determination : http://help.sap.com/saphelp_crm50/helpdata/en/21/0f1eb09da5f74cbc40798eb4ed71ee/content.htm
    <b>Do not forget to reward if it helps,</b>
    Regards,
    Paul Kondaveeti

  • Query for serial number for items sold

    hi,
    I want a query which would show serial numbers for Product A and Product B which were sold. I know that following tables will be used
    SELECT T0.[CardCode], T0.Docnum,T0.[DocDate], T0.[CardName],T1.Quantity,T1.[ItemCode],T6.DistNumber
    FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry
    inner join DLN1 T4 on T1.DocEntry=T4.BaseEntry
    inner join ODLN T7 on T4.DocEntry=T7.DocEntry
    inner join OSRN T6 on T4.itemcode=t6.itemcode
    WHERE T1.[ItemCode] in ('ProductA','ProductB') and  T0.[CardName] like'% naaveol%' and T0.CANCELED<>'Y'
    group by T0.[CardCode],T0.[CardName], T0.[DocDate],T1.[ItemCode] ,T0.Docnum,T6.DistNumber,T1.Quantity
    Howerver I am doing some thing wrong and it is showing alot more records than it should. basically what I was trying to do was to get
    item code
    serial num
    quantity
    for the items mentioned  sold to the particular business partner.
    Your help will be greatly appreciated

    Hi again.......
    Please try this.......
    SELECT T0.CardCode, T0.Docnum,T0.DocDate, T0.CardName,T1.Quantity,T1.ItemCode,T4.DistNumber
    from ODLN T0 inner join DLN1 T1 on T0.DocEntry=T1.DocEntry
    left outer join SRI1 I1 on T1.ItemCode=I1.ItemCode   and (T1.DocEntry=I1.BaseEntry and T1.ObjType=I1.BaseType)
    left outer join OSRN T4 on T4.ItemCode=I1.ItemCode and I1.SysSerial=T4.SysNumber
    Regards,
    Rahul

  • How to generate the batch number for group of records

    Hi All,
    requirement: i have created one sequence to generate the batch numbers.i have to get the nextval of the sequence for batch number (this column is not part of the table. its dynamic column/alias column) only for every 50000 records of a table.
    detail description:
    for example, if i have 10 records in a table. And, if i want to generate the batch number for every 2 records, then the output should look like belo.
    batch-number qty
    1 10
    1 20
    2 30
    2 40
    3 50
    3 60
    4 70
    4 80
    5 90
    5 100
    Please help me on this. Please let me know if you need more info.

    one more update on the above request. this has to be done using SQL query only.

  • Maximum Number of characters for Batch

    Hello MM Experts,
    Please let me know if there is any way to increase the length of the field for batch number so that I can give batch numbers with more than 10 characters (which is as per Std SAP).
    Is there any way to increase the same ?
    Thanks,

    Hello Friend
    Not suggested to alter Standard field size but nothing stops you from increasing the field size.
    MCHA - CHARG
    Down fall to do such enhacement is if you you are not sure where all the field is refered and proper error handling is not addresed then it is a bigger aniamal to resolve issues
    Regards
    SE

Maybe you are looking for

  • Compile error "input line is too long" when using useLegacyAOT

    I'm using FlashBuilder 4.7 and the release of AIR 4 on Windows 7 to package for iOS...As soon as I include 3 or more ANEs I can no longer compile to iOS (and also use the new "useLegacyAOT no" command).  When I try I get an error "The input line is t

  • Solaris 10 11/06 - grub Error 28: Selected item cannot fit into memory

    I don't get install Solaris 10 11/06 in my IBM Thinkpad 600X laptop with 584 MB RAM memory. When I try I get allways this message: Error 28: Selected item cannot fit into memory. I have seen similars topics in this forum but nobody has found a right

  • Choosing the right language for movies downloadable on the iTunes Store

    Hello, I just wanted to point out, that last night, I almost bought a movie in the non-original version through my iPhone/iPad and Apple TV, and this would have been a first (mistake). I have now noticed at work on iTunes that it does say what langua

  • BT Sport never gets activated

    Hello I had BT broadband installed on 16th Aug and expected BT sport (free HD as I ordered before 1st aug) to also be available on my SKY platform, it is not. I have rung BT every day and speak to 3 or 4 people each time who pass me between departmen

  • Why won't apple make a special ios 7 for 4g ipod touch

    Im very disappointed in apple right now they had me all excited about ios and they never even tried to make it for ipod touch 4g. Is my ipod going to end up like the iPhone 3, and all the older stuff. If it does i will eventually switch over to micro