FM to get transaction number based on product

Hi,
Do we have any FM to get all the transction number which are using the product?

Don't know for function module, but you can certanly get it from tables. Do the following:
1. from table COMM_PRODUCT read guid (PRODUCT_GUID) of material id (PRODUCT_ID)
2. from table CRMD_ORDERADM_I read guid of header (HEADER) of material guid (PRODUCT)
3. in table CRMD_ORDERADM_H read transaction number of header guid
You can also try with just 2 step approach:
1. from table CRMD_ORDERADM_I read guid of header (HEADER) of material id (ORDERED_PROD)
2. in table CRMD_ORDERADM_H read transaction number of header guid
Regards.

Similar Messages

  • Function Module to get pernr number based on first name and last name

    Hi All,
    What is the Function Module to get pernr number based on first name and last name.
    Could you please help me.
    T@R.
    Vidya

    hi Vidya,
    you can get perner from PA0002 based on firs name and last name.
    use select query and get perner.

  • How to get po number based on billing document number

    Hi every body
          how to get a po number based on billing document number
    thanks in advance.
    sekhar.k

    Hi,
    Check this field VBRK-BSTNK_VF.
    Regards,
    Satish

  • Getting dynamic number based on databank variable.

    I have run into an interesting issue, and I was wondering if anyone has any ideas.
    Here is a run down of the setup.
    I have 3 drop downs Category, Sub-Category, and Sub-Sub-Category (nice huh).
    The values of the drop down as stored by E-Tester are numeric, so I am running into a bit of a problem trying to databank this test. It is stored as <option value=18>MyCategory</option>
    I need to be able to choose the drop-down based on my databanked variable of "categoryName", but I couldn't figure out a way to set that on the form.
    The other option, which I was diving into was parsing out the number from the html but again I am running into a problem since this is running off a databank.
    I tried to run it through either the custom variable option or custom VBA and am running into the same problem. I can't tell it that the ending part of the string is a variable.
    Here is my DOM Property Expression working on the inner html
    <OPTION value=(\d+)>MyCategory</OPTION>
    It works great as long the category is MyCategory, but I can't figure out a way to set the last portion to use a variable. If I try anything less than <OPTION value=(\d+)>MyCategory it matches all of the options in the drop down including -1 which is to add a new one.
    Does anyone have any ideas or am I attempting something beyond the limitations of VBA?

    I think I may have a solution for you. Put this code on the page that you are trying to set the option of. Of course, the path to the select element will have to be replaced with the correct path.
    Private Sub RSWVBAPage_afterPlay()
    On Error GoTo ERRLBL
    Dim element As HTMLSelectElement
    Dim optionEl As HTMLOptionElement
    Dim itemText As String
    'Get the Path to the SELECT list
    RSWApp.om.GetElementByPath "window(index=0).form(name=""myform"" | id=""myID"" | action=""submit.asp"" | index=0).formelement[SELECT](name=""Sub-Sub-Category"" | index=6)", element
    If element Is Nothing Then
    errDescription = "html object not found!"
    errNumber = -1
    Exit Sub
    End If
    'Get the Data bank value associated with the data bank value named "var_ItemText"
    Call RSWApp.GetDataBankValue("var_ItemText", itemText)
    'Go through each option element and match the text attribute with the data bank value. If we match, set the selected property to true
    For Each optionEl In element
    If StrComp(itemText, optionEl.text) = 0 Then
    optionEl.selected = True
    Exit For
    End If
    Next optionEl
    Exit Sub
    ERRLBL:
    errDescription = Err.Description
    errNumber = Err.Number
    Let me know if this works for you.
    - GateCity_QA

  • Sales order number based on Production order number.

    Hi,
    Can anyone provide me the relationship between the sales order and production order .
    I need to get the customer material description(ie from vbap for related sales document no) when i give the input  as a production order number ,now my question is how the data is  retriewed  i mean how the production order gets related to sales order and form it how the material no is picked up and its material description..
    Please provide me with the tables and what key fields  are related (clear view how tables are related and how could i fetch the data)

    Swetha,
    There is no exact relationship between a Production order and a Sales order in an MakeToStock environment.  I will therefore assume that you are speaking of MakeToOrder,  where there is an exact relationship between the Production order and the Sales Order/Item.
    Functionally, CO03 > enter the production order number.  On the display screen will be displayed the associated Sales order and item.  Double click on this and it will bring you to VA03.  Select the item of interest, and then Goto > Item > Purchase order data.  The customer material is displayed.  If you have entered a customer material description in your Customer Material Info Record (CMIR) (VD51), and if the Material in the sales order was determined by the customer material info record, then the description will be displayed instead.
    So, at table level:
    Look in AFPO to find production order number.  Contained in AFPO is AFPO-KDAUF and AFPO-KDPOS.
    Use these fields to look in VBAP to locate your sales order/item.  Find VBAP-KDMAT. This is customer material.
    The description of the 'standard' customer materials can always be found in KNMT.  To look this up, you need to know sales org, dist channel, customer, and material.  Lookup using a program is dicey, since it is possible, within a sales order, to determine the material from Customer material, or it is possible to just enter any customer material in the sales order.  When the material is determined, it depends upon your determination logic (sold to? Hierarchy?), which can differ from system to system, and from customer to customer.  To sum it up, it is possible to get the CustMat description from data found in VBAP and VBAK, but you first need to know how your CMIRs are structured.
    For a simple lookup, I suggest you just get to the customer material in VBAP, and stop there.
    For more info about how data is stored in the Sales documents, you might want to ask your question in one of the SD forums.
    Best Regards,
    DB49

  • How to get RFQ number based from PO number...

    Hello Experts,
    How do I get the RFQ(request for quotation) based on a given PO(purchase order) number?
    Thank you guys and take care!

    EKKO-EBELN = EKPO-EBELN
                             EKPO-ANFNR = RFQ Number.
    Hope this helps.
    Regards
    Vinayak

  • ABAP GET Personnel Number based on SY-UNAME

    Hi,
    anyone knows a bapi, function, etc, that can return a personnel number with sy-uname as input ?

    Check out this link ...
    Get PERNR using SY-UNAME
    Hope this helps ...

  • How to get Partner Number based on Vendor Number

    Hi,
       I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
    Any help will be appreciated.
    Thanks,
    Ibrahim

    Hi...
    have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
    Hope this solve your problem.
    Thanks
    shankar

  • CRM - Get Transaction Number  - BP ?

    Hi,
    I need to read all transactions(orders) with FM CRMD_ORDER_READ for all BP's
    BUT000 --> CRMD_ORDERADM_H
    Is there a FM?
    tnx,
    Adibo.

    Hi,
    Try the FM CRM_BUPA_READ_ORDER_OBJECTS, which will give the guid of all the orders.
    Keerthi

  • Get nth number of sets from user in proper set format in C#

    how to take nth number of sets from user using string type list in C#. 
    Each set should be in this format {1, 2 , 3, ab,....nth }.
    User can enter nth number of item in each set
    then count the number of item in each set
    Waiting for you answers 

    I think you still not got my point. okay once again i explain you what i want.
    User Enter set in WPF window in this format e.g {1,2,3,ab},{ab,cd,1,2}.
    User can enter nth number of set.
    User can enter nth number of elements\ items in each set.
    Count the number of elements in each set.
    Hopefully now you got my point
    If I understand you correctly, you want to get the number based on the string like "{1,2,3,ab},{ab,cd,1,2}". Maybe you could try Regular Expression:
    https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx
    For example this code snippet is able to count the set numbers and element numbers for you:
    string input = "{1,2,3,ab},{ab,cd,1,2}";
    string pattern1 = @"{.*?}";
    string pattern2 = @"\w+,?";
    Regex reg = new Regex(pattern1);
    MatchCollection mc1 = reg.Matches(input);
    Console.WriteLine("Number of set:" + mc1.Count);
    for (int i = 0; i < mc1.Count; i++)
    reg = new Regex(pattern2);
    MatchCollection mc2 = reg.Matches(mc1[i].Value);
    Console.WriteLine("Set " + (i + 1) + " element number:" + mc2.Count);
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Customer received wrong transaction number

    Hi all,
    I encountered a strange problem with our shopping cart today.  We had two transactions that occured around the same time.  Let's say, customer A was assigned transaction number 100 and customer B transaction number 101.  Both transactions were saved into the database correctly.  However, customer B received an email confirmation stating that his transaction number is 100.  The details of his transaction in the email are correct, only the transaction number is mixed up.
    Here's roughly the code:
    // get transaction number
    transNum = salesCFC.createTransactionNumber()
    // save shopping cart into db
    salesCFC.saveTransaction( transNum, session.shoppingBagObj)
    // email customer
    <cfmail from="" to="" subject="Transaction Number #transNum#">
         // shopping bag printout
    </cfmail>
    transNum is a local-scoped variable.
    I have been scratching my head to understand how this happened.  We only discovered this issue because customer B wanted to cancel his transaction and he gave the transaction number belonging to customer A.  We checked our sent mail folder and sure enough both customers received confirmation emails with the same transaction number.
    Is it possible that customer B's transNum variable got corrupted and crossed with customer A's transNum?

    Here's roughly the code:
    Can you post the actual code.  Including the code for createTransactionNumber().  Snip out anything that's not relevant (so code that does not use or influence the transaction number in any way... and excise any mark-up ;-), but include any branching and looping logic, and the relationship between any different files involved, incuding how each is called from other files.
    It sounds like the transaction number is correct when you call saveTransaction(), but it gets overwritten between there and the CFMAIL call.  To state what is probably obvious.
    Perhaps at some point you are inadvertantly putting the transaction number in some shared-scope variable which is being accessed by reference rather than value, eg one can have two requests doing this:
    variables.myStruct = application.myStruct;
    Which might look like variables.myStruct is local, but all it is is a reference to the shared scope variable.  So if one then does this:
    variables.myStruct.someVariable = "some request-specific value";
    Then all requests accessing variables.myStruct.someVariable will be accessing the same variable (the one in the application scope), and that variable will have a request-specific value.  Bad.  This will be the case for any complex objects in CF, except for arrays.  I only mention this because we've quite often been caught out by this.
    Adam

  • Reg: Getting an error for getting Delivery number

    Hello ABAPers,
    Could you pleae assist me, For getting Delivery number based on the Sales Order Number.
    Here for getting Delivery number i used "BAPI_OUTB_DELIVERY_CREATE_SLS" Function Module, how ever i'm getting the below error message through Retrurns. i.e The sales document is not yet complete: Edit data.
    it would be a great helpful if you provide with sample coding. Thank you.
    Regards
    Mallikarjun

    to get delivery, read document flow table VBFA for next document....  However, the error you're mentioning comes from incompletion processing....probably cannot create a delivery when the SO document is incomplete!  Complete the SO document (by processing the incompletion data) and try again.

  • Get Division based on Product

    I have created one material using COMMPRO1 transaction and i have assigned Division for it.
    Now i want to know where that division gets stored...so that i can retrieve the division based on product guid.
    I want the table name for fetching the division based on product..
    Poits are sure....

    Hi
    as per my knowledge Org data which contains division and Product hierchy should match otherwise mismatch or data in consistency between division and product hierarchy occus.
    So go to division or product field place mouse there F1 then go to technical data there you will find table name,label name,field name from table it is coming.
    reward if helpful
    regards

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • How do I get rid of the security warning for disc based Flash product

    I have a project that use a program called Articulate to turn
    powerpoint shows into a more rich flash product with audio, search
    capacities, quiz etc. There are multiple sections from multiple
    powerpoint files that generate a dozen or so flash files. The flash
    files reside in an html shell to allow for navigation. The whole
    thing is delivered on disc as a browser based training product.
    The problem is that viewing flash from a disc results in a
    security alert every time the viewer goes to a flash file. There is
    an Articulate theme blog that suggests using a product called
    server2go to make the disc function as a server to kinda fool
    browsers on the local machine into thinking the disc is a web
    server. My client wants the product to allow the users' default
    browser. So far, although server2go is supposed to allow this, it
    doesn't with the latest version of firefox (client's preferred
    browser). I can only get it to work on a select machine or 2 in my
    office with IE (server2go default) but it takes forever to launch.
    I haven't gotten it to work on any of the client's machines. The
    disc (auto launch) just freezes the machines.
    Can anyone recommend a better server emulation product, or
    tell me another solution to delivering a disc based flash product
    without getting the security warning and without making the viewer
    change settings on their machine to allow flash to play?
    I understand security issues but this makes flash virtually
    unusable for this application and I'm dead in the water if I can't
    fix it.

    Sorry, Ralph has already answered your question. If you need to get your security questions reset, you will have to contact iTunes Support:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

Maybe you are looking for

  • ITunes cannot read the data on my iPod touch

    Just three weeks or so ago, I was able to use iTunes without any problems to put a few songs on my iPod Touch 2nd Gen. Recently, however, whenever I try to connect my iPod to iTunes via USB, I get an error message that says something along the lines

  • Hall effect gaussmeter

    Hey everybody! I'm a total LabView newbie, so maybe my question is probably answered in about a dozen places.  All help is appreciated, and please feel free to point me to other threads/tutorials/examples. What i'm trying to do is simulate a gaussmet

  • Can't Import from DVD Since 10.5.3 Update

    Hi, I burned a bunch of home movies shot in Super 8 onto DVD and now I'm trying to import into iMovie for editing. I know this isn't directly supported by iMovie for some mysterious reason having to do with Copy Protection but they are my movies. By

  • HT200154 my apple tv 3rd gen is blinking a white light all the time and won't show any video on my tv what do I do

    I recently updated my apple tv software anvd now it just constantly blinks a white light in the front and will show no video to my tv what do I do

  • Nouveau driver gives very low screen resolution [SOLVED]

    Hello. I have a 1680x1050 monitor. I have just switched from nvidia to nouveau drivers. At boot time (I have disabled the old framebuffer setting in grub's menu.lst) after a while I have a beautiful very high resolution console. The problem is, I hav