Obtaining Material number from the CRM Document number

Hi Gurus
From which table can I get the material number if I know the CRM document number. Which are the tables that need to be linked to get this information?
thank you very much

Hi,
Using doc number you can access CRMD_ORDERADM_H-OBJECT_ID = DOCNUM.
CRMD_ORDERADM_I-HEADER = CRMD_ORDERADM_H--GUID.
The material is in CRMD_ORDERADM_I.
Hope this helps.
Best regards,
Caíque Escaler

Similar Messages

  • 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

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • Opening Word document templates from the New Document drop down does not open Word

    I have a document library with a number of Content Types attached to it.  Each one has a different Word document attached.  We have an intermittent problem where when you click to open one of these templates from the 'New Document' drop
    down list that nothing happens. The workaround appears to be either open Word first or re-boot the computer.  I think there is a problem with SharePoint not linking in with Word correctly.  Does anyone have any suggestions on how to fix this?
    Thanks
    Julie
    J Sykes

    Hi J,
    Can you please check in your internet explorer whether MS office Add ons enable or not.
    If not enable that and restart your browser and try again.
    Also try to repair MS Office if issue still persist.
    Regards
    Soni K

  • Item 000002 is not copied from the reference document

    Dear All,
    I am facing a typical problem while creating Price difference sales order w.r.t. invoice.
    Document types in the system are -
    Z2FC - Normal Sales order type, ZPD - Price change order type, Z2FB - Normal invoice type
    My item category determination is -
    Doc. type -  Itm cat. gp.  -  Usage - Hghr itm cat - Default itm cat. - Manual itm. cat.
    ZPD         -   NORM         -  blank   - blank           -  G2N                  - L2N
    ZPD         -   NORM         -  blank   - G2N            -  G2N                  - L2N
    Z2FC       -   NORM         -  blank   - Blank           - TAN                  - TAP
    Z2FC       -   NORM         -  blank   - TAN            - TANN                - TAN
    Copy control is -
    Z2FB to ZPD for item category TAN with proposed item categories are G2N and L2N.
    Z2FB to ZPD for item category TANN u2013 requirement 302 [Do not copy item]
    During my Z2FC sales order creation I was having line items as follows
    Item no. -  Mat. code     -  Qty -      Higher level item - Item category - Amount
    10         -  101329          -  3     -      blank                 - TAN                - 35,000.00
    20         -  MC091234    -  3     -      10                      - TANN             - 0
    30         -  MC091234    -  1     -      10                      - TAN                - 5000
    We are not using the sales BOM. I need to provide line 20 free to the customer. Hence I have manually maintained 10 in the higher level item column for the line item 20. The item category determined was TAN. Then I had changed it to TANN manually. So the amount became zero. Line 20 became the child and line 10 became parent.
    At the same time customer also wishes to buy the material code MC091234. Now the material code MC091234 is of HALB type where as the material code 101329 is of FERT type. There is validation in the system that only FERT type of material could be sold and HALB type of material could be supplied as free. [With item category TANN]. In case HALB type material is also required to be sold then I need to manually maintained value in the higher level item. So I had maintained the value 10 in the higher level item column for the line item 30. The default item category determined is TAN. The invoice is also created properly. [Z2FB type]
    But when I am creating the invoice correction document type ZPD w.r.t. Z2FB type invoice, I am able to get the two line items for the material code 101329 in line item 10. One each for G2N and L2N item category.
    But for the material code MC091234 in line item 30, I get only one line item with item category G2N. I did not get another line item for the material code MC091234 for the corresponding L2N type item category
    At the same time following messages are displayed
    Message no. V1475 Item category for item 000002 cannot be determined and
    Message no. V1476 Item 000002 is not copied from the reference document
    Please help.
    Thanks in advance
    Piyush Ranpura

    Dear All,
    Any help???
    Yet my issue is unresolved.
    Thanks & Regards
    Piyush Ranpura

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • SharePoint - Error_1_Error occurred in deployment step 'Add Solution': Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was rea

    Hi,
    I am Shanmugavel, SharePoint developer, 
    I am facing the below SharePoint 2013 deployment issue while deploying using VS2012.
    If i will deploy the same wsp or existing wsp
    (last build) using direct powershell deployment, the solution adding properly, but the same timeout exception coming while activation the features.  Please find the below error.
    I tried the below activists:
    1. Restarted my dev server, DB server. 
    2. tried the same solution id different server
    3. tried existing wsp file (last build version)
    4. Deactivated all the features, including project Active deployment configuration.... but still i am facing the same issue.
    I hope this is not coding level issue, because still my code is not start running, before that some problem coming.
    Please help me any one.....  Last two days i am struck because of this...

    What you need to understand is the installation of a WSP does not do much. It just makes sure that you relevant solution files are deployed to the SharePoint farm.
    Next comes the point when you activate the features. It is when the code which you have written to "Activate" certain features for your custom solution.
    Regarding the error you are getting, it typically means that you have more connections (default is I guess 100) open for a SQL database then you are allowed to.
    If you have a custom database and you are opening a connection, make sure you close it as well.
    Look at the similar discussion here:
    The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool
    size was reached[^]
    I would suggest further to look at the
    ULS logs[^] to get better insight.
    Manas Bhardwaj's Stream : www.manasbhardwaj.net

  • HT3349 How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    There is no analog to MS Excels print range.  So the next best thing is to plan your data so that you don't need to use print range.  The next best thing after that is to select the range of cells you want to print, then copy, the switch to the application Preview, and create a new document from the clipboard (select the menu item "File > New from Clibboard") then select all, copy then paste to the destination (maybe an email) .
    You can also paste that portion of the table into another table (or a new table) by pasting values only

  • Obtaining file name from the file path given

    hi,
    how to obtain  file name from the file path given

    Hi bharath,
    1. PC_SPLIT_COMPLETE_FILENAME
    2.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    extension = extension
    name = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    regards,
    amit m.

  • In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, save as, etc. but no option to delete.

    In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, saveas, etc. but no option to delete. Thank you.

    Hello.
    I have no idea and you should contact Microsoft for support. This is Firefox's support forum.
    Thank you for your understanding.

  • Event for transferring information from the billing document to the fica do

    Dear all,
    We are having a requirement in which we need to transfer the information from the billing document to the fica document..Can anybody tell me which event can be used for  transferring information from the billing document to the fica document
    Susmita

    Susmitha Harini,
    Can you provide exactly what you want to transfer? Do u want to transfer that information at billing moment?
    Best Regards,
    Pedro Nunes

  • Database Connection Error: Cannot obtain error message from the server

    I have a SQL statement that wants to add a temp table to the database.   The SQL statement works fine but when I try to add it via 'Add Command' feature in Crystal XI R2, I get the following error message:
    Database Connection Error: Cannot obtain error message from the server
    Any ideas?
    Thanks in advance,
    Zack H.

    Hi Raghavendra,
    I am using this in the 'Add Command' feature but I get the error message displayed in the subject line:
    CREATE TABLE #TibetanYaks(
    YakID char(4),
    YakName char(20) )
    INSERT INTO #TibetanYaks (YakID, YakName)
    SELECT  LastName, FirstName
    FROM      Employee
    WHERE      EmployeeID between '2000' and '3000'
    I haven't tried to add this as a stored procedure but I imagine it will work as I have no problems yet with stored procedures.  I simply want to be able to use temporary tables for the sole purpose of that session and not creating anything static in the database.
    By the way, even though I get the error message, when I look on the backend database, I see that the temporary table was successfully created...its just not brought across correctly in Crystal.
    Any ideas?
    Zack H.

  • IImporting formated chart from the Word document...

    Is there anyways I can cut and paste without losing the text style or format from the Word Document to a CS3 InDesign file?
    TIA

    Thanks Rob.
    But I don't want to import the entire 35 pg. Word document.
    There are a few embeded chart art within it that I would like to import without losing its original formating.
    Any idea?

  • UoM is not transferred from the shipping document to the shipping cost doc

    Hello,
    I have a problem. The Unit of Measure of the sales orders selected in the Shipping document is not transferred when I create the Shipment Cost document. So when I try to calculate the cost of the price conditions, I am getting a message V1297 It is not possible the conversion of (blank) to KG
    In the tab of shipping I can see all the sales order numbers from the shipping document, all the information is transferred with the exception of UoM.
    I would appreciate any help for my problem.
    Thanks

    Hello Gustavo,
    please clarify how is this problem related to Tranport Management System - you mean, you transported a change request to another system with these modifications and it's not working? (I believe this problem is more related to its own area - SD? - than to CTS).
    I'm not an SD expert but, anyway, please check whether notes #102852  and #1010597 can help out (a customer with similar problems fixed this way).
    Best regards,
    Tomas Black

  • BDOC's to update the custom fields in R/3 from the CRM sales order

    Dear All,
    I need a small help.
    My requirement is as follows.
    When ever a sales order is created in CRM, an outbound delivery will be automatically created in the R/3 system.
    There are some fields in the CRM sales order which are not there in the R/3 system.So I have to create these fields in the LIKP and LIPS tables in R/3 which is not a problem.
    But I have to copy these fields from CRM to the LIKP and LIPS tables in R/3 when ever a sales order is created and saved in CRM. (This should happen automatically)
    So could anyone tell me whether there are any BDOC’s available to update the sales order info in the LIKP and LIPS tables and also any BADI which can be trigger for this purpose.
    Thanks in advance.
    Regards
    Shafath

    Hi,
    Thanks a lot. You have given a good solution.
    But a small correction.
    Sales Order is not transferred from CRM to R/3. The system is creating (automatically) a delivery in the r/3 system for the sales order created in CRM (Here we will not have the sales order in R/3), so we don’t have an entry in VBAK and VBAP tables.
    When we create a sales order in CRM and save , the delivery in R/3 is created and the sales order is not transferred to R/3.
    So while saving the sales order itself in CRM, I need to trigger a badi to update the LIKP and LIPS tables by calling a RFC (which needs to be developed in R/3).
    So I need a badi which triggers when the sales order is saved and which tells whether the sales order is saved without errors or not (because delivery in R/3 is created for only those orders which are created and saved without errors in CRM)  and returns the sales order number.
    It will be helpful if you can send some info on this.
    Any how thanks a lot for your quick response.
    Regards
    Shafath

Maybe you are looking for

  • How can I tell if my start up problems are RAM related.

    I keep getting a blank white page a third of the way thru my startup sequence. I have tried everything I can think of to fix this but I now think it is due to a faulty RAM card. How can I find out if it is due to a bad RAM card or not?

  • Quality of Photo on Book Cover Poor

    I just received my book created in iPhoto '08. I am very happy with the quality of the photos in the book. Nearly what I see on the monitor. However, the quality of the cover is poor. The pictures on the front, back, and insets are dark, muddy, and o

  • ** PC to Mac OS X Developing

    Hi All I am new to Mac OS I used to develop on a PC I had Internet Information Server, SQL Database and Access Database IDE Visual InterDev. Using ASP and VB, Java to code in. Yes it was some time ago. I used Acces for testing and SQL server for pro

  • O2 and the MMS issue

    Despite having o2's MMS mail server address (from an email sent from another o2 account holders mobile to my iPhone), this address does not accept incoming email messages and therefore I cannot send MMS messages to another mobile on o2. With all the

  • Downloading Adobe Muse - Download Application Manager Error

    When trying to download a trial version of Muse, the following occurs: "Do you want to allow this website to open a program on your computer?" So I 'Allow'... Momentarily the following error appears (I was only able to read it by taking a screenshot