How to know an order number from the service contracts table

Hi all,
I want to know how the order entry module and service contracts module are connected. I mean to ask if a service is placed as an order for purchase how do i get the information about the order_id or order_number from the service contracts table.
please point me in a direction so as to which tables i should be lookling at.
Thanks.

Try OKC_K_REL_OBJS table. The column JTOT_OBJECT1_CODE contains values 'OKX_ORDERHEADER' or 'OKX_ORDERLINE' and the column RTY_CODE = 'CONTRACTSERVICEORDER'. The column OBJECT1_ID1 should store order HEADER_ID or LINE_ID based on JTOT_OBJECT1_CODE value. Hope this helps.

Similar Messages

  • Case number from the service order number

    Hi,
    I am doing a report where in when the user enters a service order number <b>or</b> case number (both are optional )the result list that he gets would include both case number <b>and</b> the service order number(of the service and case documents).
    I would like to know the function module that i can use to get the case number for the given service order number.
    Thanks and Regards,
    Harish.

    Pls use the FM CRM_PRIDOC_READ_OW. You can pass the header GUID.

  • How to get purchase order number from delivery number?

    hi all,
    how to get purchase order number and item if i have only delivery.
    and in same way how to get po number and item if i know only batch number.
    kindly give me some solution i need this urgently.
    thanks in advance.

    Check the logic below:
    * Selecting the Sales Documents from VBFA for corresponding Invoice
        SELECT vbelv
                     posnv
          FROM vbfa
          INTO TABLE gt_itab3
         WHERE vbeln EQ gt_itab5-vbeln
           AND posnn EQ gt_itab5-posnr
           AND vbtyp_n EQ 'J'.
        IF sy-subrc EQ zero.
          SORT gt_itab3 BY vbelv posnv.
        ENDIF.
      ENDIF.
      IF NOT gt_itab3 IS INITIAL.
    * Selecting the Purchase Orders from VBFA for corresponding Sales Documents
        SELECT vbeln
               posnn
          FROM vbfa
          INTO TABLE gt_itab4
       FOR ALL ENTRIES IN gt_itab3
         WHERE vbelv EQ gt_itab3-vbelv
           AND posnv EQ gt_itab3-posnv
           AND vbtyp_n EQ 'V'.
        IF sy-subrc EQ 0.
          SORT gt_itab4 BY vbeln posnn.
        ENDIF.
      ENDIF.
    Batch number will be there in delivery item.
    Regards
    Kannaiah

  • How can I delete my number from the iCloud?

    I would like to delete my phone number from the icloud

    Hi conrad0509,
    If you are talking about removing your phone number from your Apple ID (which associates it with iMessage and iCloud), you may find the following article helpful (instructions on unlinking should be near the bottom):
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Regards,
    - Brenden

  • How to trace sales order number from delivery number, when batch is split

    Hi All,
    I have created a Sales Order and a Outbound Delivery against the sales order.
    While creating the Outbound delivery, I have split the qty in two batches.
    Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
    Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
    Immediate help would be appreciated.
    Thanks in Advance.
    Ankush

    Hi,
    I have created delivery against sales order.
    While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
    Sales order (SO1) - Material (Mat1) - qty (15 ea)
    Delivery against sales order (Del1) - batch split: batch1 - 10 ea
                                                                         batch2 - 5 ea
    In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
       del no.     Item No.      Material   Qty       Batch no       Sales Order no     Sales Order Item no
    1. DEL1       10              Mat1        10 ea    batch1          SO1                    10
    2. DEL1       20              Mat1         5 ea     batch2         ______                 ____
    Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
    I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
    Hope this clarifies the issue faced.
    Regards,
    Ankush

  • How to remove Credit Card number from the account

    Dear Sir/Madam,
    Someone used my Creadit card to buy credit and I agreed initially.
    Now i want to remove my creadit card number from her account and disallow her to use it. But it seems the credit card infomation can not be removed and she still can buy credit using my credit card.
     I checked with her account and it seems my credit card number is always shown there, no matter how I try.
    May I know how can I do?
    Thanks
    Solved!
    Go to Solution.

    Hi,
    You can delete a credit card if you have used it to buy Skype Credit, but you cannot delete a card that is being used for recurring payments (a subscription or Auto-recharge). You have to cancel the recurring payment first.
    To delete a credit card:
    1. Sign in to your account:
    http://www.skype.com/go/myaccount
    2. In the Account details section, click Billing & payments.
    3. On the Payment settings page that appears, click Stored payment details, and then next to the credit card you want to delete, click the Delete button.
    For more help with updating your credit card details, visit:
    https://support.skype.com/faq/FA10486/
    Hope this helps.
    Rod
    If you found this answer helpful, please give Kudos. If it resolved your issue, mark it as a solution to help others. Thanks!

  • How toset 2nd sales order number on the status application in Inbound Idocs

    Hi All,
    When processing inbound idocs in sales order we are splitting that idocs into two sales orders so for one sales order we are getting on Apllication with sales order number, But i want display second sales order number same as first one. can any one suggest me any function module for that....
    Regards,
    Sudhakar Reddy.A

    Hi ,
    Thanks for the relies i am writing the code in same FM (EXIT_SAPLVEDA_005) include (ZXVEDU07). this is for error message i wrote .
    Data : wa_e1ed19_E TYPE ty_e1edp19,
           wa_status1 type BDIDOCSTAT.
    if DIDOC_STATUS-status = '51' and DIDOC_STATUS-msgty = 'E' and DIDOC_STATUS-msgno = '382'.
    read table IT_E1EDP19 into wa_e1ed19_E with key idtnr = DIDOC_STATUS-msgv1.
    if sy-subrc = 0.
    wa_status1-docnum   = DIDOC_STATUS-docnum.
    wa_status1-STATUS   = DIDOC_STATUS-STATUS.
    wa_status1-MSGTY    = DIDOC_STATUS-MSGTY.
    wa_status1-MSGV1    = wa_e1ed19_E-idtnr.
    wa_status1-MSGV2   = wa_e1ed19_E-posnr.
    append wa_status1 to DIDOC_STATUS.
    clear wa_status1.
    endif.
    endif.
    Regards,
    Sudhakar Reddy .A

  • How do I unlock my phone from the service provider

    Hi I've got an old phone which I got from the apple store as a replacement  how do I unlock it form the network? The network says they can't help me cheers

    M30SHM wrote:
    The network says they can't help me cheers
    Well, only they can authorize the phone's unlocking, & it they refuse, then there's no way for you to get it officially unlocked.
    Apple can't/won't help you.

  • How to remove your phone number from the iPad

    How do I get my phone number off of my iPad? I don't want to receive texts on the iPad. I don't want to just turn it off, I want it off permanently.

    Hi Tjmills14!
    I believe the options you are looking for can be found right here:
    Messages settings - iPad User Guide
    http://help.apple.com/ipad/7/#/iPad99acb5bb
    If you go to the Messages settings on your iPad and turn off iMessage, then you will no longer receive or send texts from your iPad. Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Find Sales order number from IDOC number

    I have a bunch of SO idocs, in status 64. They are then posted and Sales orders are created.
    How can I programatically find the Sales order Number from the Sales Order idoc number once it is in status 53 (other than going to EDIDS and checking if status = '53' and grabbing the 'STAPA2' field there ).

    Look at table EDIDS for sales order idocs and you can see SO number in any of STAPA1/2/3/4 variable for specific message id and message number.

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

  • HT1904 How to you view the order number from a previous app purchase?

    I need to get a refund for an accidental purchase I made but in order to email apple about my problem I need the order number for the product. I can't find out how to access it on my iPhone and have no access to a desktop computer. Please help because I need my money refunded as soon as possible.
    Thanks.

    Hi Ergo496,
    Kindly post this query in Acrobat forums:Acrobat
    Regards,
    Florence

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • HT4061 I bought my iPhone online but I don't have its IMEI number and I lost it today, can I know its IMEI if I have the order number of the shipment ?

    I bought my iPhone online but I don't have its IMEI number and I lost it today, can I know its IMEI if I have the order number of the shipment ?

    You could always READ the article from which the question was posted as it explictily details how to find the IMEI and several other identifying numbers.  Including ways to find them in iTunes without the phone.

Maybe you are looking for

  • Imac multiple monitors

    Hi I have a weird startup problem on my iMac 27". It boots past the apple logo and blue screen but then I getaway white screen with random grey checkers all over the place! I had issues with my snow leopard install which we're fixed after a fcsk comm

  • Weird event display problem in week view

    Hi. I'm getting a weird display problem in week view. First time this has ever happened. Some events appear to be missing, but when i double click on where I know the event is supposed to be, a new event is created (as excepted), and the missing even

  • Creating new App - error

    Hello I Recive That error in creating new application using apex 3 (oracle xe) I loged in by user HR (DBA) ORA-20001: Unable to create modules. ORA-20001: create_table error: ORA-20001: Excel load run ddl error: ORA-01031: insufficient privileges

  • Audio Problems

    I have had major problems trying to get iDVD to produce a workable DVD. I'm trying to use eyeTV's VHS assistant to change my VHS tapes into DVDs. It creates a .dv file as a result of the process. When I burn the project, there is no audio in settop p

  • Create PD infotype

    Hi, I have problem with <b>create Infotype (9003) in HR-PD</b>. I created structure <b>HRI9003</b> with <b>SE11</b>. In next step i try <b>PPCI</b>, but cannot create all needed things. System is version 4.7. For some months ago I successfully create