Line numbers related to order number

hi,
the requirement is , i have two parameters order number and line number.
i want to display the line numbers related to that particular order number while
submitting the request from srs window.
so first i created table value set for order num.
and for line number value set i mentioned oe_order_lines_all ool,
oe_order_lines_all ool in table name field and ool.line number in column field
and in where/order by field i had mentioned like
where ool.header_id=ooh.header_id
and ooh.order_number=:$FLEX$.order_num_value_set.
value set is created but while submitting the request by clicking the line number
field it is giving error.
can u plz give any solution.

.. or dense_rank() ? :
SELECT line_id,
          line_number
       || '.'
       || DENSE_RANK () OVER (PARTITION BY header_id ORDER BY header_id)
                                                                  line_number
  FROM oe_order_lines_all
WHERE header_id = 6250

Similar Messages

  • AR Invoice Line Numbers and Sales Order line numbers are not in Sync.

    Hi,
    There is an AR Invoic with 2 lines and SO with 2 lines. The line numbers on the Invoice and SO are not in Sync. SO line No 2 is Invoice line No1 and SO line No1 is Invoice Line No2. What determines the Invoice line numbering?
    Thanks

    Hi,
    Goto the T.Code "VOV7".
    Select your item category.
    Details.
    Maintain the Completion rule as "A(Item is completed with the first reference)".
    Save.
    If you do this after the follow on document is created,the item is completed and you cannot reject the item.
    For your second question,
    Goto the T.Code "VTLA".
    Select your valid combination.
    Click on item.Select your item category.Details.
    There is a check box called as "Update document flow".Tick that one.
    Save.
    Regards,
    Krishna.

  • How to customize the Product Item lines numbers incrementation in Orders?

    Hello everyone,
    We are using structured products in CRM 7.0 that are replicated from ECC SD. These products consist of a high level product to which are attached sub-level products (BOM in ECC SD).
    When we select a high-level product in a CRM sales transaction (order, quotation...), the system automatically does the BOM explosion, with the 2 levels structure, but it assigns an item line number of 10 to the first line and then increments by 1, which gives :
    10 "item line 01"
    11 "item line 02"
    12 "Item line 03";...etc
    This is not correct for us, because the user might have to insert manually new items in-between the items automatically added by SAP, so, we need the system to change this automatic numbers assignment : we would like tthat the numbers be 10, 20, 30...
    so that the user can insert items with numbers like 11, 12....21, 22.
    Where can the number incrementation be customized or is there a BADI for that?
    thanks
    Ludovic

    This is set in transaction type customazing. go to spro>crm>transactions>basic settings>define transaction types. Open your transaction type and underitem number section set desired values for:
    - Increment Item  for main items
    - IncrementSubItm  for subitems

  • Line Numbers in Sales Order Lines

    In a Sales Order, my line items are shown as 1.1, 1.2, 1.3, 1.4 , 1.5 & 1.6
    but my select returns line_number = 1
    select line_id,line_number from oe_order_lines_all where header_id = 6250
    and the result is
    Line_id Line_number
    5428 1
    5429 1
    5430 1
    5431 1
    5432 1
    5433 1
    how would I write a generic decode to show the line_numbers as 1.1, 1.2, 1.3 ....

    .. or dense_rank() ? :
    SELECT line_id,
              line_number
           || '.'
           || DENSE_RANK () OVER (PARTITION BY header_id ORDER BY header_id)
                                                                      line_number
      FROM oe_order_lines_all
    WHERE header_id = 6250

  • Returns line in a purchase order

    Hello all,
    I am working in a GI for return to vendor and i was instructed to create a returns line in a purchase order number. i would like to know how to create a returns line in a PO.
    Thanks,
    Maxx

    In PO, when you want to create a Return, just tick the "Return" indicator in Item overview tab.

  • Invoice numbers to generate Sales Order Number

    I work for a billing department and we use SAP to key our invoices however we have a sales order that has a different number that corresponds with each invoice.
    If i get a list from my manager that has a bunch of invoice numbers, is there a way i can load them into sap and have it create something where it tells me the sales order number that goes with the invoice number? If it can work with multiple numbers at once will be best..
    what if the invoice numbers have a customer name in the Bill To line that i want to see as well. can that happen?

    Hello,
    Yes, I'm struggling to understand what you're after too. You could create a z table to keep track of the number if it's bespoke. Otherwise try these tables: FBN1, NRIV (intervals), T161 (po) TNRO (linked to NRIV).
    Good luck!
    Ash Thomas
    http://www.ashthomas.com
    Sap Abap Developer & Sap Abap Programmer

  • How to Find Out The Production Order Number For The Sales Order Line Items

    Hi All,
    I want to know the number of production orders for each sales order line item. I know the sales order number .Can anyone tell me how the tables can be linked to get all the production order numbers for each sales order line item.

    I think it depends on your configuration. But check fields KDAUF and KDPOS in table AUFK.  or in table AFPO.
    Regards,
    Rich HEilman

  • How to add serial number contolled item with serial numbers in sales order.

    Hi OM Functional Experts,
    I need a help on sales order booking.
    We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
    And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
    The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
    thanks in advance.
    Rdx,
    J kannan
    Edited by: J Kannan on Feb 17, 2009 1:23 AM

    Kannan
    OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
    But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
    Thanks
    Nagamohan

  • Purchase Order Number in Vendor Line Item (FBl1N) and Clear Vendor (F-44)

    Hello,
    I am not getting the Purchase Order Number in Vendor Line Item.(FBl1N).
    Also during Clear of Vendor through F-44 i am not able to identify the Line item on the basis of Purchase Order Number.
    Could any one pleae help me out on this issue as i have to clear the vendor Line item in mass.
    Thanks
    Nitin Jindal
    Moderator: Please, respect the rules of the forum and search SDN before posting new thread. This question has been answered several times. Also, please choose proper forum to post your questions; this one is related to Financials and not to Controlling

    Based on my experience std feature from SD-FI . Depending on the SD Billing config which can be by delivery(VTFL) or sales order(VTFA). You can assign options of A: Cust PO No. B Sales order no. C Delivery no. D External delivery no.  E Actual invoice number to available header fields of Assignment No. or Reference No. Try it out

  • Task Line Numbers Move Out of Order When Adding Resource to a Task

    I am using MS Project 2013 and we are in the process of setting up Project Server 2013. 
    When I add a resource to a task and close the summary task and re-open the task is moved to the bottom of that section and the line numbers are out of order.
    For example line number 382 is the third task under the summary task.  When I add a resource, hide the subtasks and then expand the subtasks line number 382 is now at the bottom after line 389.  The line numbers then go 381, 383, 384... until 389
    then 382 is after 389.
    I want to keep the tasks in sequential order.
    Has anyone seen this problem before?  I have done extensive research online and cannot seem to find any one with a similar issue.
    Thank you! :)

    Hi Dnbree,
    Do you have any filters applied to the view in Project Pro? Try to change view and check if you experience the same issue.
    Also check if the view uses a sorting in the view tab of the ribbon, such as sort by resources.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • How to implement line numbers in order acknowledge report

    Hi all,
            I am newbie to Oracle Reports.
    I have an order acknowledgement report in which i show columns like
    line number
    Ordered item
    ship from
    quantity
    unit price
    extended price
    In above table format i need to show line numbers as 1.1
                                                                                  1.2
                                                                                  1.3....                        
                                                                                   2.1
                                                                                   2.2
                                                                                   2.3....
    so, how can i achieve this functionality
    Thanks

    That still doesn't say much. How do you need to get from line number in your table to line number on the report? Give an example of your data.
    I can give you an example:
    with line_numbers as (
      select 11 lineno from dual
      union all
      select 12 lineno from dual
      union all
      select 13 lineno from dual
      union all
      select 21 lineno from dual
    select lineno /10 lineno
    from line_numbers
    order by lineno
    LINENO
    1.1
    1.2
    1.3
    2.1

  • Sales order number in Shopping cart related documents tab.

    We are using SRM7.0 with classic scenario. Client wants to see the Sales order number (Created in Backend) for the backend PO in shopping cart Related documents tab same as other history like Confirmation and Invoice.
    How to update the sales order number to shopping cart? is there any BADI ? Please help me..
    Thanks Lot
    Srini.

    Thanks for Reply
    I have already tried validation and sub situation but that is not working and second is it is related to FI GL line item so SD consultant cant help i  that.
    Regards
    Shayam

  • Serial number related sales orders???

    Hi everyone,
    i got this problem when i try to use serial number of an equipment to search all related sales orders.
    in our company it is defined that serial number would be created in the first sales order, when the customer purchase the configurable products at the first time.--- we call that initial sales.
    then after months or year, customer could come again and buy upgrades or addtional options on that products(we can select serial number to locate that machine in the configurator in sales order)--- we call that following up sales.
    so, now the situation is, i can call TA IQ03 to see the equipment and through reference to find the initial sales order, HOWEVER... if i want to have an overview of all Equipments related following up sales, Is that possible ??? or at least the last following up sales which determine the configuration status in the service equipment.
    i dont see any info about that in IE03 or IQ03, is that to be found in any tables, if i would rather write a small report to do that?
    the only way i can figure out now is to check the configuration of sales orders, maybe through VBAP-CUOBJ then call function to get the serial number... is there any other way?
    thanks a lot !!!
    yunfan
    Edited by: yunfan Wang on Feb 11, 2012 5:02 PM

    hi, Ncvajja:
    First thanx for ur instant reply.
    i would try ur way on monday, but as i assumed,
    the method u mentioned may be correct in those companies where the serial number is automatically created by delivery. (as i remembered, the table SER01 is for delivery)
    however in our company the serial number is saved in SER02, which are order related, that means the serial number is automatically created after the sales order is created.
    so in this way, i only find the first order through SER01 or 02, no matter it is delivery or sales order, but what i want is the sales order after that. in the following sales process, the serial number is already there for selection...
    anyway, those above is only based on my knowledge, iif i was wrong about this, hehe, please tell me, i am quite junior in this area...
    thanx

  • Display  Purchase order, PO Item , Order Number ,entry sheet quantity ,entry sheet price ,invoice quantity, invoice price  against each line number

    hello all,
    i have an ALV report requirement like this,
    on the initial screen i have displayed(for a given agreement number like in ME33K )
    in the selection screen i have taken agreement number as EKPO-EBELN.
    purchase document number        item number        short text        target quantity      net price
    5400000019                                  1                      xxx                  1.000                  304300.00
                                                        2                     xxxx                 1.000                  500000.00
    the above fields i have taken from EKPO table.....
    and on double clicking the  item number i have displayed
    line number          service number       short text           quantity    units    gross price   quantity released
    1                           swr10                   xxxx                 2.00          kg          500             2
    2                           swr11                    xxxx                5.00          EA         500             2
    the above fields i have taken from ESLL (esll-extrow, esll-srvpos, esll-ktext1 , esll-menge  etc......)
    this i have done by passing EBELN to ESLH and getting PACKNO and passed this PACKNO to ESLL.
    now my question is i need to display  Purchase order, PO Item , Order Number ,entry sheet quantity ,entry sheet price ,invoice quantity, invoice price
    against each line number above.....
    from which table do i need to take these fields.....
    please guide me....
    thankq....

    Thanks Andra,
    The problem is the multiple invoices is for non goods receipt item so there will be no delivery.At the time of creating a PO the GR is not checked so there will be no delivery .
    Also this setting is for invoices which are comming from Vendors.But if we are genrating the invoices manually it is not blocking those invoices.Also i there is nowhere mentioned in Incomming invoice to set tolerence for incomming invoice.Are you talking about Vendor tolerences?
    Thanks in advance
    Edited by: Metroid01 on May 14, 2009 6:52 PM

  • How to provide relation b/w sales order number &  purchase order number

    hi.....
    i created one report  based on sales order number and displayed by alv grid then by selecting one sales record  using bdc i created purchase order number ,then i have to display that purchase order in alv again,hoe to provide relation b/w sales order and purchase order

    This is what VA05 Does
    SELECT bstkd 
                   vbeln  "Sale order Number
                   posnr
              FROM m_vmvaa
              INTO TABLE i_m_vmvaa
              FOR ALL ENTRIES IN i_bstkd
              WHERE bstkd = i_bstkd-bstkd.   "Your PO Number

Maybe you are looking for

  • Is apple going to continue supporting iWeb

    I've looked around on these forums and can find a lot of speculation about this, but no definite answers as to whether or not Apple will continue supporting iWeb.  Does anyone know?  The program is so easy to use and to make changes to a website.....

  • Watermark Woes

    Hi all Experienced and Helpful Captivate Users, I have tried inserting a semi transparent image into my first slide and in it's settings, I have set it to remain there for the remainder of the project. First of all, I would have expected that image t

  • Can Kodo be set to call executeBatch prior to calling commit?

    We have a situation where we need to track a message ID from a JMS message. Upon a successful commit, the message ID is stored in a table in Oracle. If we find a duplicate ID in the database, then we don't want to process the message. However, becaus

  • OT: Eclipse shortcuts

    For Eclipse users, I found a handy "cheat sheet" for Eclipse keyboard shortcuts at the following site: http://eclipse-tools.sourceforge.net/shortcuts.html I find that the more time I can keep my hands on the keyboard (as opposed to reaching for the m

  • Help on SAP script

    hi, I was trying script program for single page. so when I am calling the function 'open_form' ...i mean when i double clicked on it....i was taken to the module page....but i was not able to change the exporting parameters...though I know what to ch