Looking for a function that returns the currently opened document type

Dear SAP gurus
I have a user exit for transaction VA02. In VA02, when I click on button (Item details-configuration),
it launches a URL in a browser. I am asked to add to the URL, values like Document Type, Document Number
and Line Item Number.
I can get Document Number and Line Item Number from the presently opened Sales Document by using the standard Function 'CUCB_GET_OWNER_OF_CFG'.
However, I am not able get the value of Document Type. Is there any function that will give me
the value of the Document type of the present document that is open.
Any feedback/Suggestion will be highly appreciated.
Thanks
Ram

If you're in a VA02 user exit, the document type should be in VBAK-AUART, if I remember the field name correctly.  I would think that ANYWHERE in VA02, that field will be available to you.
If you want the text of the document type, forward navigate from vbak-auart data element to the domain and look at the values...there'll be a config (T) table (and you may need to add T to the end to get the associated text table) that describes the document type in your system's language,  like:
E OR   Order
or something like that...  Sorry, in my installation, we don't use the logistics modules, so I'm writing from memory.

Similar Messages

  • Functionality that select the current tag

    I am trying to add functionality that selects the current
    tag. Like the tag editor does, but without the pop-up. I haven't
    got vary far on figuring it out and I would appriciate some help.

    What do you mean by the "current" tag? To me, that means the
    one that is
    already (i.e. currently) selected.
    Randy
    > I am trying to add functionality that selects the
    current tag. Like the tag editor does, but without the pop-up. I
    haven't got vary far on figuring it out and I would appriciate some
    help.

  • Function that returns the date/time ?

    We would like to make a validation in the Activity status based on the activity End Time.
    Pls... is there a function that returns something that I could compare with: "8/6/2009 01:00 PM" ?
    I know of Today but I understand that today() returns just the day (no time).
    Txs.
    Antonio

    Hi Antonio,
    You can try using the function -: Timestamp()
    To quote the CRM On Demand help files...
    "+The Timestamp function in Expression Builder returns the server date and time converted to the current user's time zone setting. For example, if the current user's time zone setting is set to Eastern Daylight Time (EDT) -0400 UTC, the Timestamp function converts the server time to EDT. The TimeStamp function performs UTC (universal time code) conversion. NOTE: Arithmetic operations (for example, add or subtract) are not supported with the Timestamp() function.+"
    Hope this helps.
    Regards,
    Cameron

  • Is there any function that returns the latest DDL statement

    can anyone tell me if there is any FUNCTION that returns latest DDL statement performed in a schema.
    OR
    if there is any TABLE that will be populated with latest
    DDL statement in schema.
    THANK YOU.

    The table all_objects (and/or dba_objects) contains a column called last_ddl_time. Thus, a query like
    scott@jcave > SELECT max(last_ddl_time)
      2  FROM all_objects
      3 WHERE owner = 'SCOTT';
    MAX(LAST_DDL_TI
    28-NOV-03will tell you the last time any object owned by SCOTT had DDL issued against it.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Looking for lake.class that allows the direction of waves

    Is there a version of the lake.class applet that allows the direction of the waves to change. Also any other applets for lake that allow more settings. Mainly the direction thing right now.
    I appreciate any help.

    Hi Gunter,
    The software class is System.SoftwareItem.
    The device class is System.Device.
    The relationship is System.DeviceHasSoftwareItemInstalled.
    The management pack's name is System.Software.Library (System Software Library).
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
    LinkedIn:
    Graveyard:

  • Function that return the results of a select

    Hi,
    I would like to create a function on the famous HR oracle Departments table to select * from it. I don't know how to do it.
    Does anybody can help me?.
    Thank you

    Oracle stored functions cannot directly return result sets but can return REF CURSOR. Please read [Optimize Result Set Retrieval Using ODP.NET and Ref Cursors |http://www.oracle.com/technology/pub/articles/mastering_dotnet_oracle/williams_refcursors.html] which gives full examples in PL/SQL for server side and in VB. Net for client side.

  • I am looking for video recorder that starts when you open the app

    Id like to be able to use siri to open the app and it start recording video and audio right away for use as a dash cam.
    I know that I can tell siri to start an app, but siri can't control the start and stop of video.

    I don't believe it will open a Word document, but Writepad allows for handwritten conversion of notes to text and then to email. Might help you some of the way...

  • DFF validation - Looking for a function that validates a DFF

    Hi,
    I have found this code:
    IF NOT fnd_flex_descval.validate_desccols (appl_short_name => p_application_short_name
    , desc_flex_name => p_desc_flex_name
    , resp_appl_id => p_resp_appl_id
    , resp_id => p_resp_id
    But I would like to find out which attributes are not valid.
    I also have found this call:
    SELECT application_column_name BULK COLLECT
    INTO L_attributeTbl
    FROM fnd_descr_flex_column_usages
    WHERE descriptive_flexfield_name = p_desc_flex_name -- G_descFlexNameLines
    AND descriptive_flex_context_code = p_desc_context -- PR_context
    ORDER BY column_seq_num;
    dbms_output.put_line('Attribute rejected: ' || L_attributeTbl(fnd_flex_descval.error_segment) );
    l_error_message := fnd_flex_descval.error_message;
    But the author of the message writes that it is unreliable.
    Many thanks if you can help.

    Hi Jean;
    Pelase check below and see its helpful for your issue:
    how to do validation on DFF ?
    how to do validation on DFF ?
    Validate DFF in Oracle Apps
    http://www.oraclearea51.com/code/code-snippets/oa-framework/tutorial-code/validate-dff-in-oracle-apps_14.html
    HOW TO validate ALL DFF values in one go
    http://wiki.oracle.com/page/HOW+TO+validate+ALL+DFF+values+in+one+go
    Hope it helps
    Regard
    Helios

  • HT1925 I am trying to remove iTunes, but am receiving an error message "The feature you are trying to use in on a network resource that is unavailable."  It is looking for a folder that contains the installation package 'iTunes.msi'

    Can anyone please help me?  I have having difficulty removing iTunes from my PC; this is the message I am getting:

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Looking for a bapi that gets the list of customers with a credit limit

    Hello SAP gurus
    I want to know if there is a standard bapi that I can use to find all customers with a credit limit of $10000 and that have exceeded this limit.
    Any response/feedback will be highly appreciated.
    Tks
    Ram

    Thanks J@Y,
    I had read that discussion about the tables with the info. However, I have an external program that is integrated to SAP sytem (using webservices). The external program when needed has to retrieve the list of customers who have exceeded certain credit limit. So I was wondering if there is any standard BAPI which I can use. Or do I need to write my own BAPI using the tables info that you have indicated.
    Tks
    Ram

  • Looking for a BAPI that does the same as /$SYNC

    Dear Experts,
    Could someone tell me which BAPI resets all buffers, I need one just like running /$SYNC. Thanks in advance.
    PS: I use a system for test purpose, not a real one in a company.

    Thanks for your answer Markus. I would like to call the t-code $SYNC out of the SAP GUI, because I am using a webservice to measure the memory used in the buffers, which gives me the same as the transaction ST02 (and I want to avoid the SAP GUI effect on memory usage by using ST02 and $SYNC, for the ST02 I have a BAPI, but not for the T-Code).Then I need to reset the buffers to know how much memory is used by some of my webservices.
    Do you know a way to use this t-code $SYNC out of the SAP GUI?
    PS: I use a system for testing purposes, not a real one in a company. And it's on Unix.
    Edited by: raesna1 on Dec 14, 2010 6:12 PM

  • Function that returns currently selected cell address or column

    Is there a function that returns the address (or just the column) of the currently selected cell? Simply put, something like =selectedcolumn.
    Background: I want to display help text in a cell, and I want that help text to change according to which cell (actually, which column) the user has selected. I have put the help texts in a hidden row. They take up too much space to be displayed all the time. I want one cell to contain the help text of the column of the currently selected cell.
    Trying to not use Filemaker for this project if possible
    Thanks for any help /Matt

    The Numbers method, using comments as Barry showed, is probably the best method.  An alternate method which is more complex would be to use an Applescript running in the background.  The Applescript can scan in the background for which cell/column is currently selected and write that cell/column address into a cell in your table. A formula in your table (most likely a lookup formula) can use that address to serve up the correct help text in a diffrerent cell in the table or in another table.
    Some problems with this methodare
    The script is not part of the document. It is a separate entity.
    The script must be started manually. It will not automatically start when the Numbers document is opened.
    If the Numbers document is to be used on other Macs, each would also need the script installed.

  • Function to return the Entry Value based on Assignment, Element and Date

    Hi Guys,
    Is there a function that returns the Entry Value for the Assignment Element, based on the Assignment Number, Element Name, Entry Segment and the End of Period date?
    Example:
    ==============
    Input Parameters:
    Employee: Iana
    Assignment Num: 123
    Element: D480
    Element Entry: Fund Name
    Output Parameter:
    Element Entry Value: MLC Super Fund
    Thanks,
    Iana

    For element entry values you can use:
    select petf.element_name, nvl(peevf.screen_entry_value,0) screen_entry_value
    from
    pay_element_entries_f peef, pay_element_types_f petf,
    pay_element_entry_values_f peevf, pay_input_values_f pivf,
    per_all_assignments_f paaf
    where petf.element_type_id = peef.element_type_id
    and :p_date_earned between pivf.effective_start_date and pivf.effective_end_date
    and :p_date_earned between petf.effective_start_date and petf.effective_end_date
    and peevf.input_value_id = pivf.input_value_id
    and paaf.assignment_id = peef.assignment_id
    and petf.business_group_id = :p_business_group_id
    and peevf.element_entry_id = peef.element_entry_id
    and :p_date_earned between peef.effective_start_date and peef.effective_end_date
    and :p_date_earned between peevf.effective_start_date and peevf.effective_end_date
    and :p_date_earned between paaf.effective_start_date and paaf.effective_end_date
    and pivf.name = :p_input_value_name
    and petf.element_name = :p_element_name
    and peef.entry_type = 'E'
    and peevf.effective_start_date = peef.effective_start_date
    and peevf.effective_end_date = peef.effective_end_date
    --and peef.assignment_id = :p_assignment_id
    and paaf.assignment_number = :p_assignment_number;
    For payroll results you can use:
    select sum(prrv.result_value)
    from pay_run_results prr, pay_run_result_values prrv,
    pay_assignment_actions paa, pay_payroll_actions ppa,
    pay_element_types_f petf, pay_input_values_f pivf,
    per_all_assignments_f paaf, per_all_people_f papf
    where
    petf.element_type_id = pivf.element_type_id
    and :p_pay_date between petf.effective_start_date and petf.effective_end_date
    and :p_pay_date between pivf.effective_start_date and pivf.effective_end_date
    and paa.assignment_action_id = prr.assignment_action_id
    and petf.element_type_id = prr.element_type_id
    and ppa.payroll_action_id = paa.payroll_action_id
    and prrv.input_value_id = pivf.input_value_id
    and prr.run_result_id = prrv.run_result_id
    and petf.element_name = :p_element_name
    and pivf.name = :p_input_value_name
    and ppa.date_earned = :p_pay_date
    and papf.person_id = paaf.person_id
    and nvl(prr.start_date,ppa.effective_date) between paaf.effective_start_date and paaf.effective_end_date
    and nvl(prr.start_date,ppa.effective_date) between papf.effective_start_date and papf.effective_end_date
    and paaf.assignment_id = paa.assignment_id
    and papf.employee_number = :p_employee_number;

  • Loking for a Doc that has the definition of the calculations that used in Historical reports.What makes up Average Queue time?

    Looking for a Doc that has the definition of the calculations that are used in Historical reports.
    What metrics are used in Average Queue time?
    What metrics are used in Average Speed of answer?

    If you're on UCCE, the Reporting Guide and the Database Schema are fantastic resources.
    http://www.cisco.com/c/en/us/support/customer-collaboration/unified-contact-center-enterprise/products-user-guide-list.html
    http://www.cisco.com/c/en/us/support/customer-collaboration/unified-contact-center-enterprise/products-technical-reference-list.html
    -Jameson

  • I am looking for an app that can unmute my iphone after a preset time, eg 1 or 2 hours. Does anybody know an app with this feature?? The apps I have found are linked to a calendar or a place, I just need the timer function..

    I am looking for an app that can unmute my iphone after a preset time, eg 1 or 2 hours. Does anybody know an app with this feature?? The apps I have found are linked to a calendar or a place, I just need the timer function..

    thanks. yes i am aware of the VoiceOver feature but it is NOT the solution to my problem. as you said, it is a solution to a different set of issues. i want the text to speech ability because i there are books i need to read but do not have the time to sit down and read them and have become used to listening to them read to me either by a professional human reader or with the text to speech software on the Kindle.
    I think Apple makes the best audio devices but i am really disappointed in this inexplainable shortcoming. if apple can give us siri they ought to be able to design a nice little button that i can push to turn on text to speech while i am in a document, book, magazine or webpage. clearly it is possible as apple has added the "reader" button in safari to have web pages dropped into the reader format.
    thanks for your suggestion though, it is what everyone suggests but it does not address the issue.

Maybe you are looking for

  • Vendor bank name in Payment Means

    Dear ALL I just want to have one clarification... the Bank name which we are defining in payment means for incoming payments,whether its vendor's bank name or company's bank name.... Kindly clarify on this... Edited by: kaleeswaran.T on Jun 15, 2011

  • Iphone stuck in headphone mode

    Hi, I have seen that I'am not the only one with this issue. I'am quite sure that this is not a hardware issue on my iphone 5, because my workaround is to turn the phone off/on. Then it works fine until I connect headphone again. Quite annoying.. This

  • Where is the link to extend Skype Number subscript...

    Have you guys figured out where Skype hides the link to extend our subscriptions for fixed phone numbers? I've been searching the message boards for about an hour now and all I can find are hundreds of other angry people trying to find the same answe

  • BT please give me a straight answer.

    Following the announcement of price increases from January 14, I understand that if you feel charges are to your detriment as in the BT terms and conditions, you may leave an existing contract early. I am contracted into BT Infinity until November 14

  • Can't get Thread IDs to display in server.log or syslog

    I'm trying to capture the Java thread IDs for a custom application. According to the SunOne documentation, the thread IDs are only available if you configure the app to use the syslog for logging... even then, the thread IDs are optional. I've config