Query to get Customer details

Hi,
Can any body please provide me the query by which I can get all the details of customer entered in customer form. I know there is a standard report available but my client want it in excel format. Only best way I feel is, I have to use a query to get all the details from back end.
Thanks in advance.
Reagrds,
Suren

Hello. Here's the query of the report.
SELECT substrb ( PARTY . PARTY_NAME , 1 , 50 ) CUSTOMER_NAME , DECODE ( upper
(:P_ORDER_BY ) , 'PHONETIC' , DECODE ( party.party_type , 'PERSON' ,
SUBSTR ( per_prof.person_name_phonetic , 1 , 50 ) , SUBSTR ( party .
organization_name_phonetic , 1 , 50 ) ) , null ) ALTERNATE_NAME , RACU .
ACCOUNT_NUMBER CUSTOMER_NUMBER , RALU1.MEANING STATUS , RACU .
ORIG_SYSTEM_REFERENCE REFERENCE , ARCPC.NAME CREDIT_PROFILE_CLASS , RACU
.TAX_CODE TAX_CODE , ARVT.TAX_RATE TAX_RATE , PARTY.TAX_REFERENCE
TAX_REFERENCE , RALU9.MEANING SHIP_PARTIAL_MAIN , RALU8.MEANING FOB ,
RALU7.MEANING GSA_INDICATOR_MAIN , RALU6.MEANING CATEGORY , RALU5 .
MEANING CUSTOMER_CLASS , RALU3.MEANING CUSTOMER_TYPE , SOOT.NAME
ORDER_TYPE , SOPL.NAME PRICE_LIST , DECODE ( PARTY.PARTY_TYPE ,
'ORGANIZATION' , PARTY.SIC_CODE , NULL ) SIC_CODE , SOLU1.MEANING
SALES_CHANNEL , SOLU2.MEANING FREIGHT_TERMS , RASR.NAME
PRIMARY_SALESPERSON , RACU.CUST_ACCOUNT_ID CUSTOMER_ID , ORGD .
ORGANIZATION_NAME WAREHOUSE_MAIN , ORGF.DESCRIPTION CARRIER , PARTY .
JGZZ_FISCAL_CODE JGZZ_FISCAL_CODE
FROM
HZ_CUST_ACCOUNTS_ALL RACU , HZ_PARTIES PARTY , AR_LOOKUPS RALU1 , AR_LOOKUPS
RALU3 , AR_LOOKUPS RALU5 , AR_LOOKUPS RALU6 , AR_LOOKUPS RALU7 , AR_LOOKUPS
RALU8 , AR_LOOKUPS RALU9 , HZ_CUSTOMER_PROFILES ARCP ,
HZ_CUST_PROFILE_CLASSES ARCPC , SO_ORDER_TYPES SOOT , RA_SALESREPS RASR ,
SO_PRICE_LISTS SOPL , SO_LOOKUPS SOLU1 , SO_LOOKUPS SOLU2 ,
ORG_ORGANIZATION_DEFINITIONS ORGD , AR_VAT_TAX ARVT , ORG_FREIGHT ORGF ,
HZ_PERSON_PROFILES PER_PROF WHERE RALU1.LOOKUP_CODE = RACU.STATUS AND
RALU1.LOOKUP_TYPE = 'CODE_STATUS' AND PARTY.PARTY_NAME >=
<customer_name_low> AND PARTY.PARTY_NAME <= <customer_name_high> AND
PARTY.PARTY_ID = PER_PROF.PARTY_ID (+) AND ARCP.CUST_ACCOUNT_ID (+) =
RACU.CUST_ACCOUNT_ID AND RACU.PARTY_ID = PARTY.PARTY_ID AND ARCP .
SITE_USE_ID IS NULL AND ARCPC.PROFILE_CLASS_ID (+) = ARCP .
PROFILE_CLASS_ID AND RALU3.LOOKUP_CODE (+) = RACU.CUSTOMER_TYPE AND
RALU3.LOOKUP_TYPE (+) = 'CUSTOMER_TYPE' AND RALU5.LOOKUP_CODE (+) =
RACU.CUSTOMER_CLASS_CODE AND RALU5.LOOKUP_TYPE (+) = 'CUSTOMER CLASS'
AND RALU6.LOOKUP_CODE (+) = PARTY.CATEGORY_CODE AND RALU6.LOOKUP_TYPE
(+) = 'CUSTOMER_CATEGORY' AND RALU7.LOOKUP_CODE (+) = DECODE ( PARTY .
PARTY_TYPE , 'ORGANIZATION' , PARTY.GSA_INDICATOR_FLAG , 'N' ) AND RALU7
.LOOKUP_TYPE (+) = 'YES/NO' AND RALU8.LOOKUP_CODE (+) = RACU.FOB_POINT
AND RALU8.LOOKUP_TYPE (+) = 'FOB' AND RALU9.LOOKUP_CODE (+) = RACU .
SHIP_PARTIAL AND RALU9.LOOKUP_TYPE (+) = 'YES/NO' AND ORGD .
ORGANIZATION_ID (+) = RACU.WAREHOUSE_ID AND ARVT.TAX_CODE (+) = RACU .
TAX_CODE AND TRUNC ( SYSDATE ) BETWEEN NVL ( ARVT.START_DATE , TRUNC (
SYSDATE ) ) AND NVL ( ARVT.END_DATE , TRUNC ( SYSDATE ) ) AND SOOT .
ORDER_TYPE_ID (+) = RACU.ORDER_TYPE_ID AND RASR.SALESREP_ID (+) = RACU
.PRIMARY_SALESREP_ID AND SOPL.PRICE_LIST_ID (+) = RACU.PRICE_LIST_ID
AND SOLU1.LOOKUP_CODE (+) = RACU.SALES_CHANNEL_CODE AND SOLU1 .
LOOKUP_TYPE (+) = 'SALES_CHANNEL' AND SOLU2.LOOKUP_CODE (+) = RACU .
FREIGHT_TERM AND SOLU2.LOOKUP_TYPE (+) = 'FREIGHT_TERMS' AND ORGF .
FREIGHT_CODE (+) = RACU.SHIP_VIA AND ORGF.ORGANIZATION_ID (+) =
:ITEM_FLEX_STRUCTURE ORDER BY DECODE ( upper ( 'Customer' ) , 'CUSTOMER
NUMBER' , RACU.ACCOUNT_NUMBER , 'CUSTOMER' , PARTY.PARTY_NAME ,
'PHONETIC' , DECODE ( party.PARTY_TYPE , 'PERSON' , PER_PROF .
PERSON_NAME_PHONETIC , PARTY.ORGANIZATION_NAME_PHONETIC ) , PARTY .
PARTY_NAME )
Hope this helps.
Octavio

Similar Messages

  • Query to get  customer details in oracle istore

    Hi all ,
    Please help me how to get the customer contact(bill to and ship to), customer name , and address, from database using query in oracle istore.
    Thanks

    I have not worked on istore, but you can access this information using TCA tables.
    These tables are under AR schema and start with HZ
    -- FOLLOWING IS A QUERY TO GET CUSTOMERS
    SELECT
    hp.party_id,
    hp.party_name,
    hp.party_number registry_id,
    hl.address1,
    hl.address2,
    hl.address3,
    hl.city,
    hl.county,
    hl.state,
    hl.postal_code,
    hl.country
    FROM
    hz_locations hl ,
    hz_party_sites hps ,
    hz_cust_accounts_all hca,
    hz_parties hp
    WHERE 1 = 1
    AND hl.location_id = hps.location_id
    and hca.party_id = hp.party_id
    and hp.party_id = hps.party_id
    and hps.identifying_address_flag = 'Y'
    and party_type='ORGANIZATION'
    following query is for contacts and you will have twik these queries as per your env
    SELECT 'a' sort,
    hp.party_id,
    hp.party_number "registry id",
    hp.party_name,
    HZ_PARTIES.party_name "contact name",
    HZ_ORG_CONTACTS.job_title,
    hz_org_contacts.job_title_code,
    RelationshipParty.email_address email,
    HzPuiRelationshipsEO.start_date,
    REL_GROUP_CODE,
    HzPuiRelationshipsEO.STATUS,
    decode(nvl(RelationshipParty.primary_phone_country_code, 'N'), 'N','',
    '+ '||RelationshipParty.primary_phone_country_code)||
    decode(nvl(RelationshipParty.primary_phone_area_code, 'N'), 'N', '', ' ('||RelationshipParty.primary_phone_area_code||') ')||
    RelationshipParty.primary_phone_number||
    decode(nvl(RelationshipParty.primary_phone_extension,'N'), 'N','', ' Ext. '||RelationshipParty.primary_phone_extension)||
    decode(nvl(RelationshipParty.primary_phone_line_type,'N'), 'N', '', ' ('||RelationshipParty.primary_phone_line_type||')') phone
    FROM HZ_RELATIONSHIPS HzPuiRelationshipsEO,
    HZ_RELATIONSHIP_GROUPINGS_V,
    HZ_PARTIES,
    HZ_PARTIES HP,
    HZ_PARTY_SITES,
    HZ_ORG_CONTACTS,
    HZ_PARTIES RelationshipParty,
    fnd_lookup_values fnd1
    WHERE 1=1
    AND HzPuiRelationshipsEO.relationship_type = HZ_RELATIONSHIP_GROUPINGS_V.relationship_type
    AND HzPuiRelationshipsEO.relationship_code = HZ_RELATIONSHIP_GROUPINGS_V.backward_rel_code
    AND HzPuiRelationshipsEO.directional_flag = 'B'
    AND HZ_PARTIES.party_id = HzPuiRelationshipsEO.object_id
    AND HZ_PARTY_SITES.party_id(+) = HzPuiRelationshipsEO.subject_id
    AND HZ_PARTY_SITES.identifying_address_flag(+) = 'Y'
    AND hp.party_id = HzPuiRelationshipsEO.subject_id
    and hp.status = 'A'
    and hz_parties.status = 'A'
    AND HzPuiRelationshipsEO.relationship_id = hz_org_contacts.party_relationship_id(+)
    AND HzPuiRelationshipsEO.subject_id <> HzPuiRelationshipsEO.object_id
    AND HzPuiRelationshipsEO.object_type = HZ_RELATIONSHIP_GROUPINGS_V.subject_type
    AND HzPuiRelationshipsEO.subject_type = HZ_RELATIONSHIP_GROUPINGS_V.object_type
    AND HzPuiRelationshipsEO.party_id = RelationshipParty.party_id
    AND fnd1.view_application_id(+) = 222
    AND fnd1.language(+) = USERENV ('LANG')
    AND fnd1.lookup_type(+) = 'RESPONSIBILITY'
    AND HzPuiRelationshipsEO.end_date > sysdate
    AND fnd1.lookup_code(+) = HZ_ORG_CONTACTS.job_title_code
    and rel_group_code='PARTY_REL_GRP_CONTACTS'

  • Query to get the details of Blocking and deadlock occurred for the Day

    Hi,
       I need a query to get the details of blocking and deadlock occurred for the day.

    You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
    You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
    Check this link -
    http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
    This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
    That being said if you are looking for something to capture for the future check the below links.
    Check these links on how to setup extended events to capture deadlock and blocking.
    http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
    http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • SQL query to get transaction detail from DEFERRED_TRAN_ID

    Hi,
    I'm using Oracle Advance Replication and get the transaction detail from Enterprise Manager Console.
    So instead of using the console.
    Is there a way any SQL query which get transaction details like SQL query fired, old and new column value etc from DEFERRED_TRAN_ID.
    thanks

    quote:
    Originally posted by:
    lucapac
    I have two tables: tblWorkers and tblSkills. tblWorkers has a
    column, Skills, which is populated from a multiple-checkbox form
    field with one or more skill_IDs from tblSkills, so each
    tblWorkers.Skills consists of a list of one or more comma-delimited
    values. For any Skill_ID, I need to generate a listing of all
    Workers with the corresponding skill, so I have tried to do
    something along the lines of SELECT WorkerName FROM tblWorkers
    WHERE Skills IN (Skills, #FORM.Skill_ID#) ... or WHERE Skills IN
    (ListFind(Skills, #FORM.Skill_ID#)) ... etc. ??? My results (once I
    got data type mismatches out of the way) return all Workers, not
    just those with the desired Skill. There must be an easy way to do
    this ... How do people with a bit more CF/SQL experience than I
    have do this???
    As Kronin implied, we normalize our databases. If you don't
    understand that answer, the book "Database Design for Mere Mortals"
    is often mentioned on this forum.

  • Best query to get customer name

    Hi all,
    I am writing query to get some from ra_customer_trx_all in oracle receivables. I found here customer_id
    Which query can give me customer name against customer id?
    Thanks

    Hi.
    Link BILL_TO_CUSTOMER_ID in table RA_CUSTOMER_TRX_ALL to column CUSTOMER_ID in view RA_CUSTOMERS and take CUSTOMER_NAME from RA_CUSTOMERS.
    Octavio

  • SAP standard FM or BAPI for getting customer details from condition record

    Can someone suggest some SAP standard BAPI or FM with the help of which we can get the customer details of all it's pricing conditions maintained in condition tables provided we have the condition record number with us.

    Hi,
    look at the below BAPI's
    BAPI_CUSTOMER_DISPLAY
    BAPI_CUSTOMER_GETDETAIL2
    Regards
    Sudheer

  • SQL query to get the details

    We have a database with machine details such as ID, Hostname, IP Address, OS, etc...
    ID IP Address Hostname Protocol NetMask
    1 10.216.16.47 Test123 DNS 255.255.255.0
    1 10.216.16.48 Test123 DNS 255.255.255.0
    54 10.216.68.85 Test73711340 DNS 255.255.255.0
    71 10.216.63.101 Test737101230 DNS 255.255.255.0
    94 10.216.34.153 Test10000182 DNS 255.255.255.0
    I need to write a query which will find a machine with two IP addresses and give the output with a separate column for each IP.
    Expected output:
    ID IP Address IP Address 2 Hostname Protocol NetMask
    1 10.216.16.47 10.216.16.48 Test123 DNS 255.255.255.0
    54 10.216.68.85 Null Test73711340 DNS 255.255.255.0
    71 10.216.63.101 Null Test737101230 DNS 255.255.255.0
    94 10.216.34.153 Null Test10000182 DNS 255.255.255.0
    Any Suggestions?

    I hope this helps - 
    DECLARE @tblName TABLE (ID INT  , IPAddress   VARCHAR(100),   Hostname     VARCHAR(100),Protocol    VARCHAR(100),NetMask VARCHAR(100) )
    INSERT INTO @tblName
    SELECT 1   ,'10.216.16.47    ','Test123         ','DNS     ','255.255.255.0' UNION ALL
    SELECT 1   ,'10.216.16.48    ','Test123         ','DNS     ','255.255.255.0' UNION ALL
    SELECT 54  ,'10.216.68.85    ','Test73711340    ','DNS     ','255.255.255.0' UNION ALL
    SELECT 71  ,'10.216.63.101   ','Test737101230   ','DNS     ','255.255.255.0' UNION ALL
    SELECT 94  ,'10.216.34.153   ','Test10000182    ','DNS     ','255.255.255.0' 
    ;WITH CTE AS (SELECT *, ROW_NUMBER() OVER (PARTITION BY ID ORDER BY IPAddress) AS  Row_NUM from @tblName)
    select ID,[1] as IPAddress, [2] as IPAddress2,Hostname , Protocol, NetMask  FROM CTE PIVOT (max(IPAddress) FOR Row_NUM in ([1],[2])) PVT
    MCTS 2008 & 2005 , MCITP 2008 -- Please remember to mark the post as answered if it answers your question.

  • Dear Gurus, Can i have SQL query to get Ar cash receipt appled lines details in R12

    Dear Gurus, Can i have SQL query to get Ar cash receipt appled lines details in R12

    I need to get ar and ap details from GL through xla.For ex: Reference1,reference2,reference3,reference4,reference 5, in 11i these column values are displayed in gl_je_lines where as in R12 we need to join xla tables with gl_sl_link_id and gl_sl_link_table
    Can someone provide query to get subledger details particularly ar and ap?.How are the AP & GL Journal Tables linked? [ID 1188714.1]
    R12 Mapping Between Subledger Tables, SLA and GL Tables [ID 871622.1]
    eTRM
    http://etrm.oracle.com/
    Thanks,
    Hussein

  • Customer details SQL Query

    Hi All,
    I need an sql query which shows customer details as follows: Customer party id, customer name, customer account id, customer account number, party site number, address1, address2, city, country, customer contact phone number. I developed the below query but it shows lot of repeated records with incorrect party site number.
    Please assist.
    SELECT hp.party_id,hp.party_name customer_name,hcp.phone_number,cust.account_number, hps.party_site_number, hl.ADDRESS1, hl.address2, hl.address3, hl.city,hl.country--, hp.person_first_name first_name, hp.person_last_name last_name
    FROM
    hz_parties hp,
    hz_relationships hr,
    hz_parties h_contact ,
    hz_contact_points hcp,
    hz_cust_accounts cust,
    hz_party_sites hps,
    hz_locations hl
    where hr.subject_id = h_contact.PARTY_ID
    and hr.object_id = hp.party_id
    AND hcp.owner_table_id(+) = hr.party_id
    AND cust.party_id = hp.party_id
    AND hcp.owner_table_id = hps.party_id(+)
    AND hps.location_id = hl.location_id
    AND hcp.CONTACT_POINT_TYPE ='PHONE'
    AND hcp.STATUS = 'A';

    Hi,
    Looks like some of your joins are incorrect. Try the below query :
    SELECT hp.party_id, hp.party_name customer_name, cust.account_number,
           hps.party_site_number, hl.address1, hl.address2, hl.address3, hl.city,
           hl.country, hcp.phone_number
      FROM hz_parties hp,
           hz_cust_accounts cust,
           hz_party_sites hps,
           hz_locations hl,
           hz_contact_points hcp
    WHERE cust.party_id = hp.party_id
       AND hp.status = 'A'
       AND cust.status = 'A'
       AND hps.party_id = hp.party_id
       AND hps.status = 'A'
       AND hl.location_id = hps.location_id
       AND hcp.owner_table_name = 'HZ_PARTIES'
       AND hcp.owner_table_id = hp.party_id(+)
    Regards,
    Manjusha.

  • Query to get  Forms User Session

    Can any one suggest what is the SQL query to get the detail of the user session(Forms) in 10G Application Server Rel 2?

    How EM takes the IP address of user in the user_session of forms?
    Is there any table that it takes from?
    Thanx

  • How to get Invoice Details in 11i ?

    Hi All,
    Can anyone please suggest a query to get Invoice Details consisting PO Number and requester Name that are shown in notification of Oracle Apps Version 11i. I have created a query to get all other details consisting of Invoice Number, Supplier, Supplier Site etc except Po Number and Requester Name.
    Currently I am getting following values for PO:
    PO Number: Multiple POsCan anyone please suggest from where 'Multiple Pos' is fetched?
    Regards,
    Meghana

    HI Meghana,
    Can anyone please suggest a query to get Invoice Details consisting PO Number and requester Name that are shown in notification of Oracle Apps Version 11i. I have created a query to get all other details consisting of Invoice Number, Supplier, Supplier Site etc except Po Number and Requester Name.please see if this can help you
    http://www.oracleerp4u.com/2010/06/ap-po-technical-link.html
    http://www.club-oracle.com/forums/invoice-payment-query-t2336/
    to get PO number against invoices at header level only
    ;) AppSmasTi ;)
    Sharing Is Caring

  • Query to get the customer's ship_to  Phone# and Fax#

    Gurus -
    Can anyone of you please help me in getting a query to shows the phoen and fax# of the Customer's ship_to Phone# and fax#
    customers--> on Address tab ( click open) On next screen click on contacts tabe for SHIP_TO row , there under the communications section, there are telephone and fax details , i want to get those details.
    Please help me in getting the query to get the fax and phone#.
    Infact I am using the below query and still having issues getting the correct fax# ( using teh same logic for phone#)
    select DISTINCT DECODE(PHONE_AREA_CODE,NULL,'',PHONE_AREA_CODE||'-')||PHONE_NUMBER
    FROM hz_cust_accounts_all hca,
    hz_parties hzp1,
    hz_cust_acct_sites_all hcas,
    hz_cust_site_uses_all hcsu,
    hz_relationships hzr,
    hz_org_contacts hoc,
    hz_contact_points hcp,
    hz_parties hzp,
    hz_cust_accounts_all hca1,
    hr_locations hrl
    WHERE 1 = 1
    AND hca.party_id = hzr.object_id
    AND hzr.relationship_id = hoc.party_relationship_id
    AND hoc.party_site_id = hcas.party_site_id
    AND hcas.cust_acct_site_id = hcsu.cust_acct_site_id
    AND hzr.party_id = hcp.owner_table_id
    --AND hcp.primary_flag = 'Y'
    AND hzr.subject_id = hzp.party_id
    AND hzp.party_id = hca1.party_id(+)
    AND hzp1.party_id(+) = hca.party_id
    AND hcsu.location = hrl.location_id(+)
    and hcsu.site_use_id = hsu.site_use_id
    AND hcp.OWNER_TABLE_NAME IN ('HZ_PARTIES')
    AND hcp.CONTACT_POINT_TYPE IN ('PHONE')
    AND hcp.PHONE_LINE_TYPE = 'FAX'
    AND hcp.STATUS = 'A'
    and nvl (hcsu.status, 'x') = 'A'
    AND hcsu.SITE_USE_CODE = 'SHIP_TO'
    --and hcsu.site_use_id = hsu.site_use_id
    -- and hcsu.cust_acct_site_id = hsu.cust_acct_site_id
    --and hca1.cust_account_id = hca.cust_account_id                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    What is the responsibility name? Form name and navigation path?
    You can determine the query from the form itself as follows:
    - Query the record(s)
    - Click on Help > Diagnostics > Examine
    - Under 'Block' field, select 'SYSTEM'
    - Under 'Field' field, select 'LAST_QUERY'
    You may also review the following note:
    Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=259722.1

  • How to get customer / sales order details for VBBS table?

    Hi Friends,
    I have a requirement to create a report that will give the details of sales order ( VBELN ) and customer ( KUNNR) details from the sales requirement totals record table ( VBBS )
    Currently we have a report that just gives out the VBBS table entries for plant and material combination. As you are aware, the VBBS table contains the sales / deliveries requirements as displayed in MD04 transaction.
    Now there is a requirement to have the customer ( KUNNR ) and sales order (VBELN )  detail for each individual requirement totals.
    I checked the VBBE table ( sales requrirement : individual records ) but I cannot find any relationship between VBBS and VBBE. If there is a material / plant in VBBS , the same entry does not exist in VBBE.
    Please suggest if there is any other table to get this detail.
    Thanks
    Satya

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • How to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input

    Hi all,
    I need your help how to write customer exit in my BI query to get (current fiscal quarter) and (current fiscal quarter - 1 ) without user input.
    in my query info object is 0CALQUARTER and variable is ZFIS_QTR.
    in 0CALQUARTER fiscal quarter stored in 201301,201302,201303,201304 and 201401 format, for current fiscal quarter 201401 and (current fiscal quarter - 1 ) would be 201304.
    please replay ASAP to deliver the report to client.
    thanks in advance.
    -- Rakesh Nagpure

    I am Getting the same error for both the codes that i have written...
    Do i Need to write sth else in the code...
    Code:
    WHEN 'ZVLIVELEASES'.
      IF I_STEP = 2.
            L_DATE = SY-DATUM.
            SELECT * FROM "DSO_ACTIVE_TABLE"
                INTO TABLE ITAB_LL where "EXPIRY_DATE" > L_DATE.
            LOOP AT ITAB_LL INTO WA_LL.
            CLEAR l_s_range.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = WA_LL-"EXPIRY_DATE".
           APPEND L_S_RANGE TO E_T_RANGE.
            ENDLOOP.
       ENDIF.
    Error: Error for variable in customer enhancement ZLIVELEASES

  • Getting approval details by SQL query

    Hi,
    Could you please let me know the sql query to get all the details of a request in SOA.
    Thanks

    Check in SOA INFRA tables.
    WFTASK
    WFTASK_TL
    WFTASKHISTORY
    WFTASKHISTORY_TL
    WFCOMMENTS

Maybe you are looking for

  • Using my 3G as an Ipod now that I upgraded to iPhone 4

    Hi, I hope this has not been asked before but I have 3 questions. 1.) I know I can use my old 3G phone as an iPod touch. What will happen to my purchased apps, are they no longer valid? 2.) Do I just plug it into my computer and have iTunes treat it

  • Prompt for user profile photos

    Hi,   When we try to open any page in SharePoint with intranet users' pics in it, sometimes it prompts for user name and password and that to many times not once. So if I provide the username and password then it allows me to see the profile pics in

  • Adobe starter edition 3.0

    Can i upgrade to edition 3.2 without losing my photos on 3.0 they are priceless as they are my daughters wedding ?

  • Bugcheck error Ox0000007f

    I was greeted with a bugcheck error this morning and my computer was rebooting. Event viewer shows a recovery from a bugcheck. The Bugcheck error: "computer has rebooted from a bugcheck. The bugcheck was: Ox0000007f (00000000000000008, 0x000000008005

  • Is Premiere Pro CC or CS6 better for late-2011 MacBook Pro?

    Hi, I'm trying to decide on whether to get Creative Cloud or CS6 version of Premiere Pro - my main consideration is that the program run smoothly (cost is not a big issue since it's for an institution) - I'm not doing anything heavy duty, just simple