Date Picker Problem in BPM VC reports

Hi All,
we have created a VC report, which shows the BPM Process information for certain group of users. this is working fine. We are supposed to give some filtering options to the user so as to reduce the amount of records retrieved. We have to filter based upon the process start date (this value is a defalut parameter available when we create a new data source).
This date is coming in M/D/YY format (ex. 1/1/11). If I use a date picker UI, its date is coming in MM/DD/YYYY format. Due to this the filtering is not working.
Can some body help me how can I make this work.
Regards,
SrinivaS

Hi All,
I solved my problem. I added a new Action on submit of type "Assign" and used the below expression for conversion.
=(DSTR(@STRTDTCUST_From,"M/D/YY")&" - "&DSTR(DADD(@StartDate_To,1,"D"),"M/D/YY"))
SrinivaS

Similar Messages

  • Date Picker problem in Apex 3.1

    Hi,
    I upgraded my apex to 3.1 and found that the date picker icon behaviour become quite strange.
    If I set the label of the date picker Horizontal/Vertical Alignment to Above, the picker icon will show below the text box instead of right side. And the pop-up calendar for Date Picker (DD-MM-YYYY HH24:MI) also not high enought to show the Close and OK button, I have to manually adjust the pop-up calendar height.
    All this problems were not there in 3.01, is these some kind of bug?
    Thanks
    Vincent

    Hello,
    Can you put an example of your particular layout on apex.oracle.com. The solution I had worked in most of the case's I tested , obviously yours is different.
    The next best solution would be to either shim the items with images, or to specifically set the widths of the containing table cells.
    The reason all this is happening is sometimes , depending on the region templates and CSS the regions will collapse down on the content, and the the browsers will do there best to fit the content in the smallest place possible, Unfortunately, in some cases the browsers ignore both nowrap="nowrap" and/or style="white-space:nowrap", why would I want to put nowrap on something and still have it wrap, I don't know it's not me it's the browsers.
    The solution in the patch I'm leaning towards is wrap item into a table. As it will work perfectly everywhere , and greatly annoy people that want tableless layouts, but that won't be available till the patch.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Date Picker problem in APEX 4.1

    Hi,
    I have developed one application in ApEx 4.0 and imported it in ApEx 4.1. In ApEx 4.1, while clicking the Date picker field (on calendar icon) the application is started giving below error :
    Message: Unable to get value of the property '_curInst': object is null or undefined
    Line: 17
    Char: 1448
    Code: 0
    URI: http://*********/i/javascript/apex_4_1.min.js
    I have gone through the below OTN link,But I do not have such scenario which has been discussed over there.
    Apex 4.1 IR: $.datepicker._curInst' is null or not an object
    Other scenario which I have tried:
    In ApEx 4.1, Created a new application with one page having date picker, it is working fine. If I copy/import this page in my old application(which was imported from ApEx 4.0) then the date picker is showing the above error.
    NOte: We are using IE 8 & 9.
    Regards
    Mohan

    Hi,
    We found the problem. The problem is due the file 'jquery.min.js' file we have uploaded in shared components --> images. Once we deleted then it is working fine.
    Regards
    Mohan

  • Uix:dateField and  date Picker problems

    Hello.
    In the Blaf Glossary, I read that is possible to use the date picker on a primary window, without a popup window.
    does anybody has a sample code to see how is this possible?
    thnks !

    What version of JDev are you using? The inlineDatePicker is in 10g preview. There was no way of doing this prior to 10g.

  • Date Validation problem in form with report

    Hi,
    I am stuck on this date validation issue in a form with report that I am working on-
    I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_start then it should error out appropriately asking to change the active_end_date . Also another problem is that the changes are made to the active_date_end they should reflect in the table. How do I accomplish this.
    Appreciate all the help offered.
    Thanks.

    Hi,
    Thanks for the code.Now the APPLY CHANGES works fine except that it throws an error when I change the end date to a date which is less than the start date . So it does show me my error and does not go further but also shows me the error -
    Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number
    or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement
    ignored Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306:
    wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I looked up the error number and it says its a generic error type where the error can be found on the line number specified. But in this case how and where do I look for the error line?. This is the code I am using-
    DECLARE
    vACTIVE_DATE_START DATE;
    vACTIVE_DATE_END DATE;
    BEGIN
    vACTIVE_DATE_START := TO_DATE(:P4_ACTIVE_DATE_START, 'DD/MM/YYYY');
    vACTIVE_DATE_END := TO_DATE(:P4_ACTIVE_DATE_END, 'DD/MM/YYYY');
    IF vACTIVE_DATE_END < vACTIVE_DATE_START THEN
    RETURN 'End date is before start date';
    ELSE
    RETURN NULL;
    END IF;
    END;
    My base table has the active_date_start as NOT NULL. Now I have the exact same code for APPLY CHANGES
    in other form and it works fine not giving the above error. I am at a loss to know how I can get rid of the error.
    Any suggestions!.
    Thanks in advance,
    A

  • Data picking problem

    hi gurus
    i declared itcsy structure.
    but data is not picking
    i developed a form.
    programFORM Z_BNKA TABLES INPUT STRUCTURE ITCSY
                       OUTPUT STRUCTURE ITCSY.
      TABLES : reguh,lfbk.
      data:v_y type lfbk-lifnr,x(20) type n.
      loop at input.
        case input-name.
          when 'reguh-lifnr'.
            x = input-value.
            select bankn from lfbk into v_y where lifnr = x.
            endselect.
        endcase.
      endloop.
      output-name = 'bankn'.
      output-value = v_y.
      append output.
    endform.
    but data is not coming for bankn when i run the tr.
    please help me...
    thanks
    subhasis

    hi,
    u r abosultely right.
    data is avalable for lifnr .
    in lfbk table both lifnr,bankn field exists.
    give solution.
    its very imp.
    please

  • Inserting a Value into otherTable using an App. Proc. from a Date Picker

    I'm trying to call an Application Process that will insert an Attribute of a Row, into another table, after selecting a date from a Date Picker cell.
    I don't know why this shouldn't be possible. I think I've got all of my "Ducks in a Row", so to speak,
    but the Value that is being inserted into the other table is this:.. [object HTMLTableCellElement]
    (Ultimately, I'd like my Application Process to include Page element values with the insert as well, but I'm trying to handle one problem at a time)
    Here's a list of all the steps I've covered:
    1. I've Created an Application Process, (popDevices). The Process Point is "On-Demand". The Type is "PL/SQL Anonymous Block".
    The Process is defined as such:
    BEGIN
    Insert into P_DEVICES
    NAME,
    IP_ADDRESS,
    MODEL
    ) values
    'Unassigned',
    'Unassigned',
    :P153_MODEL
    COMMIT;
    END;
    2. I've Included the Javascript in the Page HTML Header.
    The Javascript is written as such: (minus the tags)
    function popDevices(PART_NO)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_MODEL',PART_NO);
    gReturn = get.get();
    get = null;
    3. I've included the following in the "Element Attributes" field of the Date-Picker Item (Date_Delivered).
    The Region Type is "SQL Query (Updatable Report)"
    onChange="javascript:popDevices(PART_NO);"
    THE RESULTS
    A. A row does get inserted into the other (P_Devices) table,
    But the value of the Attribute from the Page Region is not valid.
    The Inserted value is this: [object HTMLTableCellElement]
    B. I have tried Every conceivable combination of characters in the "Element Attributes" field, such as:
    ...(PART_NO), (#PART_NO#), (||PART_NO||), (+PART_NO+)
    C. The Javascript in the Page HTML Header appears to be correct, since I have written it this same way for other applications without any problems.
    D. If this simply cannot be done by referencing the "onChange" Javascript from the "Element Attributes" field,
    Then can you help me to write the code into the Select statement of the region.
    Thanks for any help you can give me.
    -Gary

    This may not be the most direct approach to the solution. But, none the less, it is a solution.
    For those other novices, like myself, I hope this can be useful at some point in your development:
    MY DESIRED RESULT:
    A. To Insert into another tablle values derived from both; Page Item (i.e. P153_x) and Attributes of a Row in an Updatable Report from which I have selected the Date-Picker.
    B. I want the insert to occur automatically after the user Selects the date from the Date-Picker.
    SOLUTIONS:
    1. I usea Javascript prompt window to prompt for information and store the information in Pre-Created Page Items.
    This is the Javascript as I've entered it into the Page HTML Header region: (Minus the Tags)
    function received_javaprompt () {
    var Serial_Number = prompt("Enter the Serial Number");
    var Bldg_Id = prompt("Enter the Bldg_Id");
    var Clst_Id = prompt("Enter the Clst_Id");
    $x('P153_SERIAL_NO').value = Serial_Number;
    $x('P153_BLDG_ID').value = Bldg_Id;
    $x('P153_CLST_ID').value = Clst_Id;
    2. I needed to identify the (Manufacturer and Part_No) Column Attribute in the Row from which I selected the Date-Picker.
    A. To do this, I enumerated the Columns in the order they were listed in the Select Statement of the region (Click on the Region Definition Tab).
    B. Then (Click on the Report Attributes Tab). Count, In the numerical order which these columns are selected, ONLY the columns that are Editable.
    C. When I counted down as far as the Column I wanted to capture the value of, Then I made a mental note of that number and used it in the following (2) Javascripts (findMaker and findModel).
    3. findMaker (Minus the tags)
    function findMaker (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Maker = html_GetElement('f15_'+vRow).value
    $x('P153_MAKER').value = Maker;
    4. findModel (Minus the tags)
    function findModel (pThis) {
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    var Model = html_GetElement('f16_'+vRow).value
    $x('P153_MODEL').value = Model;
    5. I added one more Javascript, to the Page HTML Header, that references the Application Process which will Insert the values into the "Other" table:
    function popDevices(P153_SERIAL_NO,P153_BLDG_ID,P153_CLST_ID,P153_MAKER,P153_MODEL)
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=popDevices',0);
    get.add('P153_SERIAL_NO',P153_SERIAL_NO);
    get.add('P153_BLDG_ID',P153_BLDG_ID);
    get.add('P153_CLST_ID',P153_CLST_ID);
    get.add('P153_MAKER',P153_MAKER);
    get.add('P153_MODEL',P153_MODEL);
    gReturn = get.get();
    get = null;
    6. I added the "onChange" process to the Element Attributes field of the Table item which utilizes the Date-Picker:
    A. Click on the Report Attributes Tab of the Region.
    B. Click on the Edit icon of the column which utilized the Date-Picker
    C. I added this "onChange" reference to the Element Attributes field, which is found in the Tabular Form section.
    onChange="javascript:received_javaprompt();findModel(this);findMaker(this);popDevices((P153_SERIAL_NO).value,(P153_BLDG_ID).value,(P153_CLST_ID).value,(P153_MAKER).value,(P153_MODEL).value);"
    7. The Application Process which inserts the collected data into the table is as follows:
    (Name= popDevices: Process Point= On-Demand: Type= PL/SQL Anonymous Block)
    BEGIN
    Insert into P_DEVICES
    BLDG_ID,
    CLST_ID,
    NAME,
    IP_ADDRESS,
    SERIAL_NO,
    MAKER,
    MODEL
    ) values
    :P153_BLDG_ID,
    :P153_CLST_ID,
    'Unassigned',
    'Unassigned',
    :P153_SERIAL_NO,
    :P153_MAKER,
    :P153_MODEL
    COMMIT;
    END;
    Well, I hope this may help someone else like me.
    I usually arrive at my solutions by getting help here on the Discussion Forum and also Google. Google inevitably points me to a previous Apex Discussion Forum session.
    Edited by: garyNboston on Mar 15, 2010 10:55 AM

  • Date popup problem in APEX 3.1

    Hi
    I have a date picker (DD-MM-YYYY HH24:MI) and after upgrading to APEX 3.1 from APEX 3.0.1 the popup window height is too small.
    The end user is having to resize the window to click on the OK button.
    Is there a file I can edit to increase the height, couldnt find it in templates/themes.
    Regards
    Adam

    Hi Adam,
    This is a bug in APEX 3.1. It was discussed here:
    Apex 3.1 Upgrade Issue - dba_lock and date picker display
    and here:
    Date Picker problem in Apex 3.1
    I'll let Carl investigate and provide an official response and recommendation. Although I know where this problem is occurring.
    The size of the popup calendar window is hard-wired in the file apex/images/javascript/apex_3_1.js. In APEX 3.0, the size of the popup window was determined programatically at runtime and was a function of the date format, if it included a time component or not.
    The uncompressed, readable version of this same file is in apex/images/javascript/uncompressed/apex_3_1.js. Look for p_DatePicker and you'll see what I'm talking about. You'll see the height is hard-wired to 210 and width to 258. In APEX 3.0, the height was set to 255 if the date format contained a time component.
    So my suggestion, until Carl provides an official response, is to look for '210' in apex/images/javascript/apex_3_1.js and change this to 255. Granted, all calendar popup windows will be this big, but it won't put as great a burden on the end-user.
    I hope this helps.
    Joel

  • Apex 3.1 Upgrade Issue - dba_lock and date picker display

    A couple of minor issues I've seen with my upgrade from 3.0.1 to 3.1. Just wondered if anyone else has seen them and if anyone has a simple fix for the date picker problem :
    1. DBA_LOCK - the upgrade process itself complains about the SYS.DBA_LOCK view not existing - easily remedied by running catblock.sql before you start the upgrade (but not listed as a pre-req)
    2. DATE PICKER display - I have a date picker item in a navigation region - before the upgrade the calendar icon happily appeared directly to the right of the date cell, since the upgrade the icon has moved to underneath the cell, messing up the look and feel. (Also the size of the pop up calendar doesn't quite fit its contents now and you have to resize to see the close and ok buttons )
    Any confirmation that others can replicate the second issue or a quick fix would be very helpful.
    Many thanks,
    Rich.

    Rich,
    >> Unfortunate that something has changed between 3.0 and 3.1 then that will require us to change the formatting. Hopefully not too much work to sort out a form region that looks the same though.
    I know the templates were revised for APEX 3.1, but that should not have affected existing applications. So you're saying that application used a Navigation Template before just fine without issues? I'll ask Carl to investigate.
    >> The issue of the default size of the pop up window cutting off the buttons at the bottom still remains in your example however. (obviously users can resize it but not ideal)
    Well, that really sucks. The worst thing we can do is break the behavior of existing applications, and it appears we've done it here. I filed Bug 6864371 on this issue. We'll get it fixed in the very first patch set for APEX 3.1.
    Joel

  • Problem with Date Picker and wwv_flow_item.date_popup()

    I have a Report based on the HTMLDB How-To “Build Tabular Forms for Multi-Row Operations”
    This is my code:
    select
    X.RRIT_UID,
    X.DOS,
    X.CPT_CODE,
    X.MOD,
    X.DX_CODE,
    X.CHARGES,
    X.UNITS
    from
    (select
    htmldb_item.text(1,RRIT_UID) RRIT_UID,
    wwv_flow_item.date_popup(2,null,RRIT_DATE_OF_SERVICE) DOS,
    htmldb_item.text(4,RRIT_SUBMIT_SERVICE_CODE,6) CPT_CODE,
    htmldb_item.text(5,RRIT_SUBMIT_MODIFIER,3) MOD,
    htmldb_item.text(6,RRIT_ATT_DIAG_CODE,6) DX_CODE,
    htmldb_item.text(7,RRIT_BILLED_CHARGES,9) CHARGES,
    htmldb_item.text(8,RRIT_UNITS,3) UNITS
    from
    RRIT_REPRICE_ITEM
    where
    RRRR_UID = :P5_RRRR_UID
    union all
    select
    htmldb_item.text(1,null) RRIT_UID,
    wwv_flow_item.date_popup(2,null,null) DOS,
    htmldb_item.text(4,null,6) CPT_CODE,
    htmldb_item.text(5,null,3) MOD,
    htmldb_item.text(6,null,6) DX_CODE,
    htmldb_item.text(7,null,9) CHARGES,
    htmldb_item.text(8,null,3) UNITS
    from
    dual)
    X
    My problem is when I run the page and select a date from the Pop-Up calendar I get this error:
    Line 10
    Error: ‘opener.document.forms.0.f02.0’ is null or not an object
    I know it is something to do with data formats and the fact that I do not fully understand the use of wwv_flow_item.date_popup().

    Hi DK,
    It is a WD Java application, Backend is ABAP (MM module).
    The UI is input field, where the context attribute type is Date, So its been changed to Date Picker.
    The problem is when the user runs the WD application in Portal, The calendar format is being changed for some users. That is for few users the Week starts with Monday and for few users the week starts with Sunday.
    I need all the users to have Monday as the First day of the week.
    Please let me know, what will be solution for this.
    Since I haven't done anything in regard to date, it is a simple Date format.
    Thanks & Regards,
    Palani

  • Problem with Date Picker Item

    Hello,
    I'm using APEX 4.2.2.00.11 and I have a problem with the Date Picker. I can't select any day of the second week of the month (it happens for all months).
    Someone know if there are any reason (and how can I solve it) or is an APEX bug?
    Thank you!

    Hi Chimanzee,
    try for : source value
    to_char(sysdate-7,'DD/MM/RRRR')
    hope this helps.
    Leo

  • "Date picker" in report - - View source shows no label for the date picker

    Hi
    In one of my reports, I am using multiple types (textarea/text/date picker/select list)
    I wanted to use a javascript based on the label, but I do not see "<label>" for Date picker in the view source due to which my Javascript fails.
    Snippet of view Source:
    <td class="t3data" ><label for="f08_0001" class="hideMe508">CATEGORY</label><textarea name="f08" rows="4" cols="16" wrap="VIRTUAL" id="f08_0001">EMPLOYEE INDUCTION</textarea></td>
    <td class="t3data" ><span class="lov"><input type="text" name="f11" size="15" maxlength="2000" value="29-FEB-08" style="padding-right:5px;" id="f11_0001" /><script type="text/javascript">
    As you can see above, we have a "label for" for the text area but not for the date picker
    Is there a reason for the same?
    Thanks
    Nitin

    Hi,
    OK - the headers attribute should also help as these will identify the correct cells. You would need to know the html tags used within each cell for each datatype.
    Would using cloneNode help you? It's a method of creating a copy of an entire row in a single instruction
    Andy

  • Report 6i Arabic Date alignment problem in Windows 7

    Hi
    We have 6i Forms and Report and wanna run in windows 7. But we found arabic Date disaplay problem in reports. As you know arabic writting from right. But date display like 21/10/1431 and I wanna like 1431/10//21.
    I tried from regional setting and change date format from report. but this is problem from system it self,
    not accept right alignment. Even I install left to right patch (KB979643-x86).
    Please Help
    Thanks

    Like others have said you need to run the bootcamp installer to install the drivers.
    The time issue was a constant annoyance rebooting with OSX and my old XP bootcamp setup but it's gone with Windows 7 once you set your time to UTC format in the date and time properties instead of local time which OSX uses and XP couldn't support.

  • Need guidline to attach Date picker in Oracle report

    I need to take the input from the date picker in oracle report (in runtime parameter form). Pls. help me if any one can

    Do not use the built in parameter form, but create your own. If you are calling Reports from Forms, create a Form where you can enter the parameters. For the date parameter, you can create the Forms field with a date picker.

  • Report Problem: HR Pay-roll report in particaular date (period) slab

    Dear Experts,
                        I have created a zreport for payroll in which i am also using the logical database called PNP selectioon, but when we execute the report for the output, It always shows the output of one month wise only. But the requirement for the problem is that, data should display with in selected period(with in start date to end date), which is not showing the report. Kindly help me to sort out this problem as soon as possible.? If possible do suggest your advices with program code?
    Warm Regards,
    Amit

    Plz tell where i have to manipulate.
    START-OF-SELECTION.
    GET PERNR.
        RP-PROVIDE-FROM-LAST p0000 space pn-begda pn-endda.
        IF pnp-sw-found EQ 0.
          MESSAGE s089(hrpadin01) WITH '0000' pernr-pernr pn-begda pN-endda.
    *        There is no infotype & for personnel no & from period & to &
         PERFORM build_error TABLES hr_error
                             USING space sy-msgid sy-msgno
                             sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         REJECT.
       ENDIF.
       RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA.
       IF PNP-SW-FOUND EQ 0.
         MESSAGE s089(hrpadin01) WITH '0001' pernr-pernr pn-begda pn-endda.
    *   There is no infotype & for personnel no & from period & to &
        PERFORM build_error TABLES hr_error
                            USING space sy-msgid sy-msgno
                            sy-msgv1  sy-msgv2  sy-msgv3  sy-msgv4.
        REJECT.
      ENDIF.
    IF PNP-SW-FOUND EQ 0.
         MESSAGE s089(hrpadin01) WITH '0002' pernr-pernr pn-begda pn-endda.
    *   There is no infotype & for personnel no & from period & to &
        PERFORM build_error TABLES hr_error
                            USING space sy-msgid sy-msgno
                            sy-msgv1  sy-msgv2  sy-msgv3  sy-msgv4.
        REJECT.
      ENDIF.
    PROVIDE  * FROM p0001
              * FROM P0009
              * FROM P2001
              * FROM P0014
              * FROM P0015
              BETWEEN PN-BEGDA AND PN-ENDDA.
    ENDPROVIDE.
       PERFORM read_cluster.
    *  IF rp-imp-cd-subrc = 0 AND sy-subrc = 0.
        PERFORM get_it_final.
    * ENDIF.
    END-OF-SELECTION.
      SORT it_final BY pernr.
    ************************************* Add On 07/06/2010 ************************************************
    Loop At it_final.
          move-corresponding it_final TO it_final2.
          APPEND it_final2.
    Endloop.
    DESCRIBE TABLE it_final2 LINES count.
      IF count = 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel  = 'Process Discontinued'
            txt1   = 'No Payroll Results available for'(007)
            txt2   = 'employee/employees selected for this criteria'(008)
          EXCEPTIONS
            OTHERS = 1.
        EXIT.
      ENDIF.
      PERFORM DISPLAY_ALV.
    *&      Form  READ_CLUSTER
    FORM READ_CLUSTER .
      CLEAR : trgdir, trt.
      REFRESH : trgdir,trt.
      DATA : mon(2) TYPE c, year(4) TYPE c, month(10) TYPE c.
      cd-key-pernr = p0001-pernr. "Key for cluster directory
      rp-imp-c2-cu.               "Read cluster cu from c2.
      CHECK rp-imp-cd-subrc EQ 0.
      LOOP AT rgdir WHERE fpbeg >= pn-begda AND fpend <= pn-endda.
        MOVE-CORRESPONDING rgdir TO trgdir.
        APPEND trgdir.
      ENDLOOP.
    SORT trgdir BY seqnr DESCENDING
                    fpend DESCENDING.
    LOOP at trgdir.
      READ TABLE trgdir INDEX 1.
      IF sy-subrc = 0.
        mon = trgdir-fpbeg+4(2).
        year = trgdir-fpbeg+0(4).
        CASE mon.
          WHEN  '01'.
            month = 'January'.
          WHEN '02'.
            month = 'February'.
          WHEN '03'.
            month = 'March'.
          WHEN '04'.
            month = 'April'.
          WHEN '05'.
            month = 'May'.
          WHEN '06'.
            month = 'June'.
          WHEN '07'.
            month = 'July'.
          WHEN '08'.
            month = 'August'.
          WHEN '09'.
            month = 'September'.
          WHEN '10'.
            month = 'October'.
          WHEN '11'.
            month = 'November'.
          WHEN '12'.
            month = 'December'.
        ENDCASE.
        CONCATENATE month year INTO period SEPARATED
        BY space.
    ENDIF.
      rx-key-seqno = trgdir-seqnr.
      rx-key-pernr = p0001-pernr.
      rp-imp-c2-in.
    *  CHECK rp-imp-in-subrc EQ 0.
      trt[] = rt[].
    ENDLOOP.
    ENDFORM.                    " READ_CLUSTER
    *&      Form  GET_IT_FINAL
    FORM GET_IT_FINAL .
      CLEAR : it_final.
    loop at p0009.
      CASE p0009-zlsch.
         WHEN 'C'.
          it_final-pmode = 'Cheque'.
          it_final-zlsch = 'C'.
       WHEN 'E' OR ' '.
          it_final-pmode = 'Cash Payment'.
          it_final-zlsch = ' '.
       WHEN 'H'.
          it_final-pmode = 'HOLD'.
          it_final-zlsch = 'H'.
       WHEN 'D'.
          it_final-pmode = 'DRAFT PAYMENT'.
          it_final-zlsch = 'D'.
       WHEN 'O'.
          it_final-pmode = 'Onsite Payment'.
          it_final-zlsch = 'O'.
       WHEN 'T'.
          it_final-pmode = 'Bank Transfer'.
          it_final-zlsch = 'T'.
      ENDCASE.
    *  LOOP AT ptrt.
    *    CASE ptrt-lgart.
    *      WHEN '/560'.
    *        it_final-pnetmt = ptrt-betrg.
    *      WHEN '/101'.
    *        it_final-pgrsmt = ptrt-betrg.
    *    ENDCASE.
    *  ENDLOOP.
      LOOP AT trt.
        CASE trt-lgart.
    *      WHEN '/560' OR '/559' OR '/557'.
    *       clear:it_final-netmt.
    *        IF p0009-zlsch EQ space AND trt-lgart EQ '/560'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *        IF ( p0009-zlsch EQ 'T' OR p0009-zlsch EQ 'C' ) AND trt-lgart EQ '/559'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *        IF p0009-zlsch EQ 'E' AND trt-lgart EQ '/557'.
    *          it_final-netmt = trt-betrg.
    *        ENDIF.
    *  break abap.
          WHEN '/560'.
            it_final-netmt = trt-betrg.
          WHEN '1001'.
            it_final-w1001 = trt-betrg.
          WHEN '1002'.
            it_final-w1002 = trt-betrg.
          WHEN '1003'.
            it_final-w1003 = trt-betrg.
          WHEN '1004'.
            it_final-w1004 = trt-betrg.
          WHEN '1005'.
            it_final-w1005 = trt-betrg.
          WHEN '1006'.
            it_final-w1006 = trt-betrg.
          WHEN '1007'.
            it_final-w1007 = trt-betrg.
          WHEN '1008'.
            it_final-w1008 = trt-betrg.
          WHEN '1009'.
            it_final-w1009 = trt-betrg.
          WHEN '1010'.
            it_final-w1010 = trt-betrg.
          WHEN '1011'.
            it_final-w1011 = trt-betrg.
          WHEN '1012'.
            it_final-w1012 = trt-betrg.
          WHEN '1013'.
            it_final-w1013 = trt-betrg.
          WHEN '1014'.
            it_final-w1014 = trt-betrg.
          WHEN '1015'.
            it_final-w1015 = trt-betrg.
          WHEN '1016'.
            it_final-w1016 = trt-betrg.
          WHEN '1017'.
            it_final-w1017 = trt-betrg.
          WHEN '1018'.
            it_final-w1018 = trt-betrg.
          WHEN '1019'.
            it_final-w1019 = trt-betrg.
          WHEN '1020'.
            it_final-w1020 = trt-betrg.
          WHEN '1022'.
            it_final-w1022 = trt-betrg.
          WHEN '1023'.
            it_final-w1023 = trt-betrg.
          WHEN '4002'.
            it_final-w4002 = trt-betrg.
          WHEN '/101'.
            it_final-grsmt = trt-betrg.
          WHEN '/3F1'.
            it_final-pfamt = trt-betrg.
          WHEN '/3E1'.
            it_final-esimt = trt-betrg.
          WHEN '/460'.
            it_final-incmt = trt-betrg.
          WHEN '/3P3'.
            it_final-prfmt = trt-betrg.
        ENDCASE.
      ENDLOOP.
      LOOP AT p2001.
        CASE p2001-subty.
          WHEN 'ADVA'.
            it_final-advlv = it_final-advlv + p2001-abwtg.
    *      WHEN 'ANNU'.
    *        it_final-annlv = it_final-annlv + p2001-abwtg.
    *      WHEN 'LWPL'.
    *        it_final-lwplv = it_final-lwplv + p2001-abwtg.
           WHEN 'MATR'.
            it_final-matlv = it_final-matlv + p2001-abwtg.
          WHEN 'OPTL'.
            it_final-optlv = it_final-optlv + p2001-abwtg.
          WHEN 'PROB'.
            it_final-prblv = it_final-prblv + p2001-abwtg.
          WHEN 'PT04' OR 'PT06' OR 'PT08' OR 'PT28' OR 'PT30' OR 'PT35' OR 'PT40' OR 'PT45'.
            it_final-ptnlv = it_final-ptnlv + p2001-abwtg.
          WHEN 'SP30' OR 'SPCL'.
            it_final-spllv = it_final-spllv + p2001-abwtg.
        ENDCASE.
      ENDLOOP.
    PROVIDE * FROM P2001 BETWEEN PN-BEGDA AND PN-ENDDA.
      IF P2001-SUBTY = 'ANNU'.
         it_final-annlv = it_final-annlv + p2001-abwtg.
      ENDIF.
        IF P2001-SUBTY = 'LWPL'.
           it_final-lwplv = it_final-lwplv + p2001-abwtg.
        ENDIF.
    ENDPROVIDE.
      LOOP AT p0014.
         CASE p0014-subty.
         WHEN '2006'.
           it_final-miscded = p0014-BETRG.
         WHEN '2007'.
            it_final-advrec = p0014-BETRG.
    *     WHEN '0588'.
    *        it_final-arier = p0014-lgart.
         ENDCASE.
      ENDLOOP.
    LOOP AT p0015.
         CASE p0015-subty.
         WHEN '2006'.
           it_final-miscded = p0015-BETRG.
         WHEN '2007'.
            it_final-advrec = p0015-BETRG.
    *     WHEN '0588'.
    *        it_final-arier = p0015-lgart.
         ENDCASE.
      ENDLOOP.
      it_final-totlv = it_final-advlv + it_final-annlv + it_final-lwplv + it_final-matlv +
                       it_final-optlv + it_final-prblv + it_final-ptnlv + it_final-spllv.
      it_final-pernr = p0001-pernr.
      it_final-ename = p0001-ename.
      it_final-btrtl = p0001-btrtl.
      it_final-bkplz = p0009-bkplz.
      it_final-bankl = p0009-bankl.
    *  it_final-vargr = it_final-pgrsmt - it_final-grsmt.
    *  it_final-varnt = it_final-pnetmt - it_final-netmt.
    *PROVIDE * FROM P2001 BETWEEN PN-BEGDA AND PN-ENDDA.
      READ TABLE p0027 WITH KEY pernr =  pernr-pernr
                                subty = '01'.
      it_final-kostl = p0027-kst01.
      SELECT SINGLE ktext INTO it_final-ktext
      FROM cskt
      WHERE kostl EQ it_final-kostl
      AND   spras EQ 'E'.
      SELECT SINGLE btext INTO it_final-btext
      FROM t001p
      WHERE werks EQ p0001-werks
      AND   btrtl EQ p0001-btrtl
      AND   molga EQ '40'.
      SELECT SINGLE banka INTO it_final-bname FROM bnka
      WHERE banks EQ 'IN' AND
            bankl EQ p0009-bankl.
      it_final-ac_no = p0009-bankn.
      DATA:month like T009B-BUMON,
           yr  like T009B-BDATJ,
           totday like T009B-BUTAG.
          yr = pn-begda(4).
          month = pn-begda+4(2).
      CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
        EXPORTING
          PAR_MONTH       = month
          PAR_YEAR        = yr
       IMPORTING
         PAR_DAYS        = totday.
    it_final-ondays = totday - it_final-lwplv.
    APPEND it_final.
    *ENDPROVIDE.
    ENDLOOP.
    Edited by: akg.amit on Mar 10, 2011 9:48 AM

Maybe you are looking for

  • Slow System

    For no apparent reason, my Mac desktop has started running slow. Slow response to everything. Of course, I am spoiled and am used to blazing speed. Is there anything I can do to clean things up a little? Nothing has changed on the machine to speak of

  • Cant get link aggregation working on srw2048

    Hello We are trying to setup link aggregation between 2 nodes in our cluster. They are 64 bit nodes running Opensuse 11.1 and are connected by Gigabit Ethernet. We have an srw2048 switch. The problem is we are not able to see any performance improvem

  • Delete Trans requirmts generated for delivery (Shipment done, without PGI )

    HI Friends , I have came across below issue- A Z delivery type is being used to ship Material to vendor for external processing (Goods issue is NOT done against the delivery but is done against a Process order , it is a type of dummy delivery. Requir

  • Change Document Numbering for Contracts

    Experts, I have a client who wants to create a new Document Series for the Contracts and Service Calls in SBO. I do not see these documents available in the Document Numbering screen. Is this possible? Thanks, Marli

  • Min Client configuration required to Work on SAP B1 8.8 (Patch level 10)

    Dear all, In  client PC's, add on not connected  for some pc. this is biggest issue which iam facing. What may be minimum configuration required for SAP b1 8.8 (Patch levek 10). May be my add on creation technique wrong. can any body give some soluti