Use of Table T556C

Hi!, Anyone with knowledge of how to configure table T556C ? I need to configure the Counting Rule 002 in order to work as follows:
Right now, I have some kind of absences that are not counting the holidays when entered in IT 2001.
Example: If I enter absences between Sept 01 and Sept 05 ( with Sept 05 set as Holiday class 1 ), I expect SAP to count 5 absence days instead of 4.
Some documentation indicates that this can be fixed through this rule.
Is that the only thing to consider? Which options have to be marked/unmarked in the rule?
Thanks.
(Points granted!!)

Hi,
I believe this is the table where you need to do your customizing.
Make sure you define your counting rule for specific weekdays, holiday class and day type for the current day.
Make sure you also assign the deduction rule and rounding rule to your counting rule.
Hope this helps,
Reward points if helpful,
Thank You,

Similar Messages

  • How can we see status of all Requests at a time using any tables?

    How can we see status of all Requests at a time in the Info cube or ODS using any tables? what I am facing was while I run a Process Chain in some data targets red requests remains and due to this all other requests doesnot available for reporting.
    Now is there any T-Code or Table to view all requests in a single shot.
    Thanks in advance,
    Raj

    Hi Go for RSMONICDP give timestamp and u'll have it.
    Please assign points if useful
    Edited by: Aadil on Jan 21, 2008 7:43 AM

  • How to use a Table View in AppleScriptObjC

    How can I use a table view and add data to it? And how can I display a button cell and image cell in the table? Thanks.

    Hi all,
    Actually i need some more clarification. How to use the same select statement, if i've to use the tabname in the where clause too?
    for ex : select * from (tab_name) where....?
    Can we do inner join on such select statements? If so how?
    Thanks & Regards,
    Mallik.

  • How to use the Table Function defined  in package in OWB?

    Hi,
    I defined a table function in a package. I am trying to use that in owb using Table function operator. But I came to know that, owb R1 supports only standalone table functions.
    Is there any other way to use the table function defined in a package. As like we create synonyms for functions, is there any other way to do this.
    I tryed to create synonyms, it is created. But it is showing compilation error. Finally I found that, we can't create synonyms for functions which are defined in packages.
    Any one can explain it, how to resolve this problem.
    Thank you,
    Regards
    Gowtham Sen.

    Hi Marcos,
    Thank you for reply.
    OWB R1 supports stand alone table functions. Here what I mean is, the table fucntion which is not inculded in any package is a stand alone table function.
    for example say sample_tbl_fn is a table function. It is defined as a function.It is a stand alone function. We call this fucntion as "samp_tbl_fn()";
    For exampe say sample_pkg is a package. say a function is defined in a package.
    then we call that function as sample_pkg.functionname(); This is not a stand alone function.
    I hope you understand it.
    owb supports stand alone functions.
    Here I would like to know, is there any other way to use the functions which are defined in package. While I am trying to use those functions (which are defined in package -- giving the name as packagename.functionname) it is throwing an error "Invalid object name."
    Here I would like know, is there any other way to use the table functions which are defined in a package.
    Thank you,
    Regards,
    Gowtham Sen.

  • How to use the Table Valueset in another Table Valuset

    Hi Friends ,
    I have one requirement let me explain you the scenario.
    in one segment of the Keyflex filed i need to get the all the grades of the business. which i did using the table valueset.
    now in another segment of the kff, i need to get all the grade steps depending on the selected grade.
    like if i have a grades say G1,G2,G3,G4...........
    and grade steps
    for G1-steps(1,2,3,4,5,6)
    for G2-steps(1,2,3,4)
    for G3-steps(1,2,3)
    for G4-(1,2,)
    etc.
    Now my requirement is if the user select the grade G1 from the valueset. then in the next filed of the segment should come only those steps which are valid for that grade.
    i hope i have given clear pic of my requirement can anyone please help me out, how to proceed for this.
    thanks in advance.

    Well, I know what you're talking about, but this is something that is usually done in different ways depending on the front end interface being used.
    Are you referring to Oracle Forms? Apex? .NET? Java? or what???
    This forum is for SQL and PL/SQL questions, so doesn't relate to a particular interface. SQL and PL/SQL do not have key flex fields, so, either ask your question in the correct sub-forum or give us more details as to your requirements.

  • Namedquery using same table field multiple times with the use of a label

    Hi all,
    i'm having some trouble with a namedquery. I'm trying to
    use the following namedquery in Toplink to retrive some
    data out of a database.
    select proj.id
    , proj.code
    , proj.name
    , proj.budget
    , proj.status
    , proj.startdate
    , proj.enddate
    , proj.mdr_id projleader_id
    , med_leader.name projleader
    , proj.mdr_id_valt_onder promanager_id
    , med_promanager.name promanager
    , proj.mdr_id_is_account_from accmanager_id
    , med_accmanager.name accmanager
    from uur_projecten proj
    , uur_medewerkers med_leader
    , uur_medewerkers med_promanager
    , uur_medewerkers med_accmanager
    where ( #p_name is not null or #p_search_string is not null )
    and med_leader.id = proj.mdr_id
    and ( proj.mdr_id = nvl( #p_name, proj.mdr_id )
    or proj.mdr_id_valt_onder = nvl( #p_name, proj.mdr_id )
    or proj.mdr_id_is_account_van = nvl( #p_name, proj.mdr_id ))
    and (( #p_status is not null
    and substr( proj.status, 1, 1 ) = upper( #p_status ))
    or ( #p_status is null ))
    and ( upper( proj.code ) like upper( '%' || #p_search_string || '%' )
    or upper( proj.name ) like upper( '%' || #p_search_string || '%' ))
    and med_promanager.id = proj.mdr_id_valt_onder
    and med_accmanager.id = proj.mdr_id_is_account_van
    order by decode( substr( proj.status, 1, 1 )
    , 'A', 2, 'T', 3, 'F', 4, 1 ), proj.code desc
    As you all can see the table ‘uur_medewerkers’ is been used trice to
    determine the name for the corresponding ID. I have a Java class with
    the fields for the results and created a Toplink descriptor to map
    the fields to the database fields.
    The problem is that for the 'projleader', 'promanager' and 'accmanager'
    fields the results are null. The reason is probably that Toplink doesn't
    recognize the fields because of the label for the tables.
    Is there a way to make this work?
    Greets, René

    Post Author: quafto
    CA Forum: .NET
    Your query is not too clear so I'll do my best to answer it broadly.
    You mentioned that you have a .NET web application where your users enter data on one screen and then may retrieve it on another. If the data is written in real time to a database then you can create a standard Crystal Report by adding multiple tables. The tables should be linked together using the primary and foreign keys in order to optimize the database query and give you a speedy report. Using unlinked tables is not recommended and requires the report engine to index the tables (it is quite slow).
    You also mentioned you have a "PropID" to be used in a WHERE clause. This is a great place to use a parameter in your report. This parameter can then be used in your record selection formula inside Crystal Reports. The report engine will actually create the WHERE clause for you based on the parameter value. This is helpful because it allows you to simply concentrate on your code rather than keeping track of SQL queries.
    Now, what Crystal does not do well with is uncertainty. When you design a report with X number of tables the report engine expects X number of tables to be available at processing time. You should not surprise the print engine with more or less tables because you could end up with processing errors or incorrect data. You may need to design multiple reports for specific circumstances.
    Regarding the group expert question. I'm not sure how you would/could use the group expert to group a table? A table is a collection of fields and cannot be compared to another table without a complex algorithm. The group expert is used to group and sort records based on a field in the report. Have a look at the group expert section of the help file for more information.
    Hopefully my comments have given you a few ideas.

  • Abap Logic for performance tuning not working when using Internal tables

    Hi,
    I wrote this piece of code that is working correctly that is select SUM of cost from DSO where Plant is the same for Sales Items.
    LOOP AT RESULT_PACKAGE INTO rp.
    SELECT SUM( /N/S_STRDCOST ) FROM /N/ADSP_DPIT00 INTO
    rp-/N/S_STRDCOST
    WHERE /N42/S_SALESITEM = rp-/N42/S_ITEMID AND /N42/S_PLPLANT EQ
    rp-/N42/S_SOURCE.
    MODIFY RESULT_PACKAGE FROM rp.
    Clear rp.
    ENDLOOP.
    Now I try to rewrite it for performance tunning using internal table  but I am getting 0 values. can't figure out whats the problem and been struggling fixing it.
    TYPES : begin of ty_DSO_TABLE,
             /N42/S_STRDCOST TYPE /N/ADSP_DSPC00-/N/S_STRDCOST,
             /N42/S_ITEMID TYPE /N/ADSP_DSPC00-/N/S_ITEMID,
           end of ty_DSO_TABLE.
    DATA: it_DSO_TABLE type hashed table of ty_DSO_TABLE with unique key
    /N/S_ITEMID,
         wa_DSO_TABLE type ty_DSO_TABLE.
    Field-symbols:  <rp> TYPE tys_TG_1.
    LOOP AT RESULT_PACKAGE assigning <rp>.
      clear wa_DSO_TABLE.
    Read table IT_DSO_TABLE into wa_DSO_TABLE with table key /N/S_ITEMID
      = <rp>-/N/S_ITEMID.
      if sy-subrc ne 0.
          select SUM( /N/S_STRDCOST )  into CORRESPONDING
          FIELDS OF wa_DSO_TABLE from
          /N/ADSP_DPIT00 WHERE /N/S_SALESITEM =  <rp>-/N/S_ITEMID AND
          /N/S_PLPLANT EQ <rp>-/N/S_SOURCE.
         if sy-subrc eq 0.
              <rp>-/N/S_STRDCOST = wa_DSO_TABLE-/N/S_STRDCOST.
         endif.
    endif.
    ENDLOOP.
    Any idea whats wrong with the code
    thanks

    Hi Vaidya,
    According to the code which you have written, there is no value in table IT_DSO_TABLE when you are trying to read the values.And after the read statement you have given a condition for sy-subrc. Hence the select statement is actually not even getting executed. *Also you have not assigned the final value back to the ResultPackage.*_
    So Kindly correct your code as follows:
    Data: wa_dso type ty_DSO_TABLE.
    LOOP AT RESULT_PACKAGE assigning <rp>.
    clear wa_DSO_TABLE.
    select SUM( /N/S_STRDCOST ) into CORRESPONDING
    FIELDS OF wa_DSO_TABLE from
    /N/ADSP_DPIT00 WHERE /N/S_SALESITEM = <rp>-/N/S_ITEMID AND
    /N/S_PLPLANT EQ <rp>-/N/S_SOURCE.
    if sy-subrc eq 0.
    <rp>-/N/S_STRDCOST = wa_DSO_TABLE-/N/S_STRDCOST.
    MODIFY RESULT_PACKAGE FROM <rp>.
    endif.
    ENDLOOP.
    Hope this helps you.
    Regards,
    Satyam

  • Using internal tables in BI 7 Start routines

    Hi All
    I tried searching for using internal tables in a start routine in BI 7 could not find the right pointers.
    This is what I am trying to do is the following:
    In a DSO ZSD_O01  I have a sales order and sales order item number and this DSO also contains the Contract number and the contract Item number.
    The DSO structure is as follows:
    /BIC/AZSD_O0100
    DOC_NUMBER
    ITEM
    CONTRACT
    CITEMNUM
    I want to read the data in this DSO into a internal table. But the key fields in this DSO is DOC_NUMBER and ITEM so I want to read this data into a internal table only for the first data package into the internal table. Thereafter I want to lookup into the internal table given the doc_number and ITEM to find the CONTRACT and CITEMNUM.
    Can any of you kindly show me how to :
    - Read data from a DSO into a internal table
    - Read the internal table for the first data package
    - How do I make the access in the internal table fast when my lookup in the internal table is not on the
      DSO key columns but on a different key column
    Appreciate your help
    Thanks
    Karen

    Hi Karen ,
    It will be helpful if you tell your requirement  as the approach you suggested is not looks convincing .May be their is some easy way and we can suggest you better approach
    -how to check for source_package = 1
    You need to hard code it .
    We decide package size at DTP level so you can declare a global variable .let say you have 50000 size of your  package then use global variable as counter and read only when record_count is <= 50000 .
    -how to declare the internal table so the values in it exists between different data packages
    Declare a global table and select data into it .A global table retain data across  the packages .
    - The key on which I need to lookup in the internal table is not the key fields as in the DSO
    Its ok .Let say you are doing lookup on A B and C field of DSO1 and the values may duplicate  in your source .then you just need to read the internal table having data from DSO2  with key field  A B C .
    Better if you set them as semantic keys at DTP level so that all  duplicate entries of A B  C will appear in same package .
    global Declarations
    In your start routine you will have this following code :
      TYPES:
          tyt_SC_1        TYPE STANDARD TABLE OF tys_SC_1
                            WITH NON-UNIQUE DEFAULT KEY.
    $$ begin of global - insert your declaration only below this line  -
    ...   insert your code here
    $$ end of global - insert your declaration only before this line   -
    One question
    Why you want to populate values for 1 source package only not for all ?This will be helpful to understand your requirement and may be we can fulfill it in some other manner .
    Regards,
    Jaya Tiwari

  • XML Publisher Report Fails While using Pivot Table in R12 Oracle EBS

    Hello All,
    Need your help. I am trying to create a report with a Pivot table. I have created the .rtf file using the Oracle BI Publisher Template Builder for word 10.1.3.4.1. the data comes correctly in preview but when i register it in EBS and run the concurrent program it competes in warning and no output is displayed.
    The error message looks like as follows.
    [9/3/10 4:03:17 PM] [19934:RT444621] Executing post-processing actions for request 444621.
    [9/3/10 4:03:17 PM] [19934:RT444621] Starting XML Publisher post-processing action.
    [9/3/10 4:03:17 PM] [19934:RT444621]
    Template code: XXECOHCGEN
    Template app: XXECO
    Language: en
    Territory: 00
    Output type: EXCEL
    [9/3/10 4:03:31 PM] [19934:RT444621] Output file was found but is zero sized - Deleted
    [9/3/10 4:03:31 PM] [UNEXPECTED] [19934:RT444621] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:599)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'crosstab' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 17 more
    would appreciate some pointers to fix this issue.
    Regards,
    Abhijeet K
    Edited by: Abhijeet K on Sep 3, 2010 8:10 AM

    HI, was there a Solution Ever found for this post other than the Workaround.
    I am at the Same issue now, Any Valuable inputs will Help me finish my Report ASAP, becos currently this is my only Show stopper
    we have Oracle Apps R12 realease 12.1.3  we use XMLpublisher built in R12
    The issue i have is .
    I created a XMLPublisher Report using PIVOT TABLE i would like to have my output to be in Excel, When i Preview it works fine, when i execute via Concurrent Program it gives the Following Log file
    XXTPC Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    TPC_ITEM_COUNT_RPT module: TPC ITEM COUNT RPT
    Current system time is 25-JUN-2012 11:00:39
    XDO Data Engine Version No: 5.6.3
    Resp: 21676
    Org ID : 101
    Request ID: 2149483
    All Parameters: report_name=RUN BY ORDER TYPE:org_name=HQF:org_choice=TPC US:item_selection=1001:order_type=k-us:pstatus=entered,waved,notwaved,shipped:transit_days=:first_receipt_date=01-jun-2012:last_receipt_date=22-jun-2012
    Data Template Code: TPC_ITEM_COUNT_RPT
    Data Template Application Short Name: XXTPC
    Debug Flag: N
    {first_receipt_date=01-jun-2012, org_choice=TPC US, item_selection=1001, report_name=RUN BY ORDER TYPE, pstatus=entered,waved,notwaved,shipped, org_name=HQF, last_receipt_date=22-jun-2012, order_type=k-us, transit_days=}
    Calling XDO Data Engine...
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    29148
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2149483 on node HQTERPAS1LX at 25-JUN-2012 11:00:51.
    Post-processing of request 2149483 failed at 25-JUN-2012 11:00:52 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 25-JUN-2012 11:00:52
    I have requested my DBA to get me the OPP file..
    Thanks in advance for any solution.

  • Report using internal table events

    Hi,
    i have an internal table with  the fields 1. profitcenter 2. company code 3. gl account 4. amount
    for each profit center i need to seggregate accounts based on company code.
    the report should look like the one below.
    please suggest some code using internal table events at new , at end etc. as im not using alv. your help will be rewarded
    regards,
    ravi.
    -Profitcenter-companycodeglaccount-amount---
    -pfcenter1----
    glaccount1-1000---
    glaccount2-2000---
    4444-total--3000---
    glaccount1-4000---
    glaccount2-1000---
    3333-total--5000---
    -profitcentre1*total8000---
    profitcentre2.........

    Hi.
    TYPES: BEGIN OF G_I_DATA,
             PROFIT(4)   TYPE C,
             COMPANY(4)  TYPE C,
             ACCOUNT(10) TYPE C,
             AMOUNT      TYPE P,
           END OF G_I_DATA.
    DATA: G_IT_DATA TYPE TABLE OF G_I_DATA,
          G_WA_DATA TYPE G_I_DATA.
    DATA: G_SUM_COMPANY  TYPE P,
          G_SUM_PROFIT   TYPE P,
          G_AMOUNT       TYPE P.
      G_WA_DATA-PROFIT = '0001'.
      G_WA_DATA-COMPANY = '1111'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
      G_WA_DATA-AMOUNT = 2000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0001'.
      G_WA_DATA-COMPANY = '1111'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
      G_WA_DATA-AMOUNT = 3000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0001'.
      G_WA_DATA-COMPANY = '2222'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
      G_WA_DATA-AMOUNT = 4000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0001'.
      G_WA_DATA-COMPANY = '2222'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
      G_WA_DATA-AMOUNT = 5000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0002'.
      G_WA_DATA-COMPANY = '1111'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
      G_WA_DATA-AMOUNT = 2000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0002'.
      G_WA_DATA-COMPANY = '1111'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
      G_WA_DATA-AMOUNT = 3000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0002'.
      G_WA_DATA-COMPANY = '2222'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT1'.
      G_WA_DATA-AMOUNT = 4000.
      APPEND G_WA_DATA TO G_IT_DATA.
      G_WA_DATA-PROFIT = '0002'.
      G_WA_DATA-COMPANY = '2222'.
      G_WA_DATA-ACCOUNT = 'ACCOUNT2'.
      G_WA_DATA-AMOUNT = 5000.
      APPEND G_WA_DATA TO G_IT_DATA.
      SORT G_IT_DATA BY PROFIT COMPANY ACCOUNT.
      WRITE: /6 'ProfitCenter', 20 'CompanyCode',
              34 'Glaccount', 48 'Amount'.
      WRITE: /6 SY-ULINE(50).
      LOOP AT G_IT_DATA INTO G_WA_DATA.
        AT NEW PROFIT.
          WRITE: /6 G_WA_DATA-PROFIT.
        ENDAT.
        G_AMOUNT = G_WA_DATA-AMOUNT.
        AT NEW ACCOUNT.
          WRITE: /34 G_WA_DATA-ACCOUNT,
                 48  G_AMOUNT.
        ENDAT.
        G_SUM_PROFIT = G_SUM_PROFIT + G_WA_DATA-AMOUNT.
        G_SUM_COMPANY = G_SUM_COMPANY + G_WA_DATA-AMOUNT.
        AT END OF COMPANY.
          WRITE: /20 G_WA_DATA-COMPANY,
                  34 'Totle',
                  48 G_SUM_COMPANY.
          CLEAR G_SUM_COMPANY.
          WRITE: /6 '*******'.
        ENDAT.
        AT END OF PROFIT.
          WRITE: /6 G_WA_DATA-PROFIT,
                  20 'Totle',
                  48 G_SUM_PROFIT.
          CLEAR G_SUM_PROFIT.
          WRITE: /6 '*************************************'.
        ENDAT.
      ENDLOOP.

  • How to display ICONS in normal report without using icons table

    Hi Friends,
    I have to display icons(traffic lights) in a normal report.
    Can we do that without using icons table?
    If yes, please let me know how?
    Thanks,

    Hi Pagidala,
    Go to txcode - ABAPDOCU and in that expand BC-ABAP Programming->ABAP User Dialog->Screens->complex screen elements->status icons on Screens.
    In this you can see sample code which may help you.
    Cheers!!

  • Import invoices using interface table

    Dear all ,
    I want to import invoice from legacy system to oracle EBS R12 , and i use interface table to import the invoice.
    The problem is when i run Payable open interface import concurrent program to import the invoices , it didn't import any invoices
    and the report output didn't show any error or any data according to the invoices.
    Report output :
    Report Date: 27-JUN-2010 11:25
    Page: 1
    Payables Open Interface Import Report
    Hold Name:
    Source Name: Manual Invoice Entry Hold Reason:
    Group: GL Date:
    Purge: No
    Summarize Report N
    Report Date: 27-JUN-2010 11:25
    Page: 2
    Payables Open Interface Import Report
    Hold Name:
    Source Name: Manual Invoice Entry Hold Reason:
    Group: GL Date:
    Purge: No
    Summarize Report N
    So i go to the db and open the interface table and the status was null ,
    i dont know why????????

    Hi ,
    100% org_id problem Please check. Same i faced after i update the org_id it is working fine and showing the output with inovice and rejection details also
    Thanks
    Venkat

  • Query Needs to be changed to only use 1 Table

    I would appreciate some help with changing this query to only use the table "ain.impl_oh_order_header oh table"
    SELECT oh1.partner "Dealer",
    od.sales_code "Dealer Sales Code",
    oh1. external_order_number "Original Dealer Order Number",
    oh1.region,
    cust. billing_account_number "BAN",
    dsl.n_order "DSL OrderNo",
    dsl.tn_or_ftn "DSL TN",
    dsl.activation_date "DSL Activation",
    telco.tn "ACCESS_TN",
    to_char( oh1.created_ts, 'YYYY-MM-DD') "Original Order Date",
    pack1.display_name "Original Order Description",
    pack1.price "Original Plan Price",
    uname. user_first_name "Agent First Name",
    uname.user_last_name "Agent Last Name",
    uname.user_name "Agent ID",
    -- to_char(dh.timestamp, 'yyyy-mm-dd HH:MI') "USCS Button Pressed",
    to_char(oh2.created_ts, 'YYYY-MM-DD') "USCS Order Date",
    pack2.display_name "USCS - Order Description",
    CASE
    WHEN cd.state IN ('1','15') THEN 'RECEIVED'
    WHEN cd.state IN ('2') THEN 'PROCESSING'
    WHEN cd.state IN ('3','8','16','18') THEN 'COMPLETE'
    WHEN cd.state IN ('4','9','17') THEN 'CANCELED'
    WHEN cd.state IN ('6','10','13','14') THEN 'PENDING'
    WHEN cd.state IN ('7') THEN 'INCOMPLETE'
    WHEN cd.state IN ('12','19','20') THEN 'SUBMITTED'
    ELSE 'OTHER'
    END AS state_desc,
    pack2.price "USCS - Plan Price",
    pack2.price - pack1.price "Net Change",
    ina.first_name,
    ina.last_name,
    ina.add_line_1,
    ina.city,
    ina. STATE,
    ina.zip
    FROM ain.impl_oh_order_header oh1
    INNER JOIN ain.impl_oh_order_header oh2 ON oh1.external_order_number = oh2.external_order_number
    INNER JOIN ain.impl_order_data od ON oh1.transaction_id = od.transaction_id
    INNER JOIN ain.impl_package pack1 ON oh1.transaction_id = pack1.transaction_id
    INNER JOIN ain.impl_package pack2 ON oh2.transaction_id = pack2.transaction_id
    INNER JOIN ain.impl_name_address ina ON oh1.transaction_id = ina.transaction_id
    INNER JOIN ain.impl_customer cust ON oh2.transaction_id = cust.transaction_id
    LEFT OUTER JOIN ain.impl_dsl dsl ON oh2.transaction_id = dsl.transaction_id
    LEFT OUTER JOIN ain.impl_access telco ON oh2.transaction_id = telco.transaction_id
    INNER JOIN ain.sncr_order_curr_disp cd ON cd.transaction_id = oh2.transaction_id
    INNER JOIN AIN.sncr_order_disp_head dh ON oh1.transaction_id = dh.transaction_id
    INNER JOIN ain.sncr_order_disposition disp ON dh.disp_transaction_id = disp.disp_transaction_id
    INNER JOIN ain.sncr_ssm_principal uname ON uname.user_id = dh.user_id
    WHERE oh2.created_ts BETWEEN to_date('3/01/2012 00:00:00','mm/dd/yyyy hh24:mi:ss') AND to_date('3/31/2012 23:59:00', 'mm/dd/yyyy hh24:mi:ss')
    AND oh1.uscs = 0 AND oh2.uscs = 1
    AND oh1.external_order_number NOT LIKE '%PROD_TEST%'
    AND oh2.external_order_number NOT LIKE '%PROD_TEST%'
    AND oh1.order_type = 'ORDER'
    AND oh2.order_type = 'ORDER'
    AND pack1.product_type = 'ORDER'
    AND pack2.product_type = 'ORDER'
    AND disp.category = 110 AND disp.state = 5
    AND disp.trx_seq = (SELECT MAX(trx_seq)
    FROM ain.sncr_order_disposition sod, ain.sncr_order_disp_head sodh
    WHERE sodh.disp_transaction_id = sod.disp_transaction_id
    AND sodh.transaction_id = oh1.transaction_id
    AND sod.category = 110 AND sod.state = 5)
    AND pack1.offer_id IS NOT NULL
    AND pack2.offer_id IS NOT NULL
    AND ina.type = 'SERVICE'
    AND cd.category = 100
    ORDER BY to_char(oh2.created_ts, 'YYYY-MM-DD')

    Hi,
    Try:
    select
      oh.*
    from
      ain.impl_oh_order_header ohIf that is not what you want you have to give more info about your tables, what you want etc. etc.
    See FAQ: how to ask a question
    Regards,
    Peter

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

Maybe you are looking for

  • How to join two DataSource in a single InfoSource

    Hello, I have got two datasources which both share the same primary key (Field IDCO) and also have several individual fields. For example: Datasource 1: | IDCO | price | Datasource 2: | IDCO | amount | Now I would like to join both datasources into a

  • Terrabyte online Initial impressions

    Hi everyone, Got Aperture couple days ago. I have about 2 years of Nikon NEF's and a a year of Canon 1dsMkII files and a ton of medium format scans that i'm moving into Aperture right now. About a terrabyte of RAW and edits. Speed: It's almost as goo

  • BP Extension

    Hi All, can any one tell me the procedure to extend bp using eewb in crm 5.0. I am very new to CRM Middleware, so I need your help in understanding and developing the enhancement from start to the ending. If you have any related documents please send

  • Audio effects and transitions reference

    This question was posted in response to the following article: http://help.adobe.com/en_US/premierepro/cs/using/WS2CFD24BB-0B2B-4059-8098-D36F5EBED240.ht ml

  • Wireless network drops out on one MBP, not the other

    I have two Macbook Pros as part of a wireless network (Extreme/Express 802.11g). Lately the older of the MBPs (2.16 Core Duo) keeps losing the connection and won't recognize the network. If I restart the Airport Extreme and my modem and the MBP it wi