I need to display date field as ..
hi
i need to display a field in format yyyy-mm-dd as ( char 10)
i am able to display as yyyymmdd by declaring as char but how to include - in between
display is needed both in ALv output and also in text file geneartion on server.
Hi
- File
U can use WRITE statament for the file:
PARAMETERS: P_DATE(8) DEFAULT SY-DATUM.
DATA: DATE_OUT(10).
START-OF-SELECTION.
WRITE P_DATE USING EDIT MASK '____-__-__' TO DATE_OUT.
- ALV:
The catalog table should have a field to indicate the mask, you can insert a musk like above.
Max
Similar Messages
-
Need to display date result but has to exclude sat & sun day
Hi all,
I need to display date (A), from the plan date (B) for qty more than 10, but the result of A, should be B -10 and should not include sat & sunday.
I managed to do in excel but I have problem in oracle sql here.
My quote in excel, =IF(qty<=10, WORKDAY(plan_date,-5), WORKDAY(plan_date,-10))
If qty=12, plan_date is 30/05/11, the result is 16/05/11
qty=2, plan_date is 30/05/11, the result is 23/05/11
Anyone can help me to quote in SQL ?
Thanks.
LimCREATE OR REPLACE FUNCTION GOKHAN.business_date (start_date DATE, days NUMBER)
RETURN DATE
IS
counter number := 0;
curdate DATE:= start_date;
BEGIN
WHILE counter < days
LOOP
curdate := curdate - 1;
IF TO_CHAR (curdate, 'D') BETWEEN 1 AND 5
THEN
dbms_output.put_line( curdate || ' ' || TO_CHAR (curdate, 'D'));
counter := counter + 1;
END IF;
END LOOP;
RETURN curdate;
END;
with t as (
select to_date('30/05/11','DD/MM/YY' ) plan_date, 12 qty from dual
union all
select to_date('30/05/11','DD/MM/YY' ) , 2 from dual
select qty, case when qty <= 10 then business_date( plan_date, 5 ) else business_date( plan_date, 10 ) end plan_date from t;
QTY PLAN_DATE
12 16/05/2011
2 23/05/2011Best Regards,
Gokhan Atil
If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks -
Need to display data from one group while in another repeating group
I have a repeating group in my .rft file which displays line level data that has a quote number in it.
At the end of this repeating group I need to display the total for the quote number but these values are in another group that's within a differnt group higher up in the XML tree. Both of the groups have quote number so there is a link between the two. How do I do this? When I add the "higher up" repeating group within the current group I can't get any data to show. Any help would be appreciated.
Kind RegardsHere's the data, I do know how to to move up the tree like a file system but I think my problem is I need to move up the tree and repeat based on the value (quote number) of the lower node.
For instance for each quote number in repeating group G_FORX_OPS_QTE_ORDER_LINES loop through the occurances of same quote number in G_OPPCAT_BREAKDOWN so I can get a total of the fields by quote number
This is overly simplified but it would be like this
<?for-each-group:G_FORX_OPS_QTE_ORDER_LINES;QUOTE_NUMBER?>
quote number 1428
various line level data....
various line level data....
etc....
-- Open loop to get data from other group (Only get data for quote 1428!!)
<?for-each-group:/FORX_AS_OPPOR/LIST_G_OPPORTUNITY_SHEET/G_OPPORTUNITY_ID/LIST_G_OPPCAT_BREAKDOWN/G_OPPCAT_BREAKDOWN;./QUOTE_NUMBER1?>
Total For Quote 1428
Billing Class
BILLABLE: Billable total in dollars
INTERNAL: Internal total in dollars
<?end for-each-group?>
<!-- Generated by Oracle Reports version 6.0.8.26.0
-->
- <FORX_AS_OPPOR>
- <LIST_G_OPPORTUNITY_SHEET>
- <G_OPPORTUNITY_ID>
<COMMENTS1>Opportunity Includes Quote Number(s): 1428-2 1443-1 1444-1 Order Number(s): 159038-10 159044-3</COMMENTS1>
<CUSTOMER_ID>1183</CUSTOMER_ID>
<UPDATED_BY>CTYNER</UPDATED_BY>
<DEPOSITS>5704.68</DEPOSITS>
<OPPORTUNITY_ID>1000216</OPPORTUNITY_ID>
<OPPORTUNITY_NAME>1000216:UAT DEMO</OPPORTUNITY_NAME>
<CUSTOMER_NUMBER>103736</CUSTOMER_NUMBER>
<ENTITY>FSG</ENTITY>
<SOLD_TO>ALLSTATE INSURANCE COMPANY</SOLD_TO>
<CONTRACT_ID>S620_N</CONTRACT_ID>
<SALESREP_ID>2239</SALESREP_ID>
<SALES_REP_NAME>Conley, Michael</SALES_REP_NAME>
<ORDER_ACCEPTANCE>Skokie</ORDER_ACCEPTANCE>
<BOOKED_COUNT>2</BOOKED_COUNT>
<TERRITORY_NAME>Enterprise - Enterprise</TERRITORY_NAME>
- <LIST_G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1428</QUOTE_NUMBER1> First Occurence of 1428
<INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
<SUM_ITM_COUNT>5</SUM_ITM_COUNT>
<SUM_ITM_PRICE>151500.4</SUM_ITM_PRICE>
<SUM_ITM_COST>1688</SUM_ITM_COST>
<SUM_ITM_GPM>149812.4</SUM_ITM_GPM>
<SUM_ITM_MARKUP>88.7514218009478672985781990521327014218</SUM_ITM_MARKUP>
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1428</QUOTE_NUMBER1> Second Occurence of 1428
<INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
<SUM_ITM_COUNT>4</SUM_ITM_COUNT>
<SUM_ITM_PRICE>29.72</SUM_ITM_PRICE>
<SUM_ITM_COST>0</SUM_ITM_COST>
<SUM_ITM_GPM>29.72</SUM_ITM_GPM>
<SUM_ITM_MARKUP />
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1443</QUOTE_NUMBER1>
<INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
<SUM_ITM_COUNT>5</SUM_ITM_COUNT>
<SUM_ITM_PRICE>2084</SUM_ITM_PRICE>
<SUM_ITM_COST>1748</SUM_ITM_COST>
<SUM_ITM_GPM>336</SUM_ITM_GPM>
<SUM_ITM_MARKUP>.192219679633867276887871853546910755149</SUM_ITM_MARKUP>
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
<INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
<SUM_ITM_COUNT>4</SUM_ITM_COUNT>
<SUM_ITM_PRICE>1500.4</SUM_ITM_PRICE>
<SUM_ITM_COST>1364</SUM_ITM_COST>
<SUM_ITM_GPM>136.4</SUM_ITM_GPM>
<SUM_ITM_MARKUP>.1</SUM_ITM_MARKUP>
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
<INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
<SUM_ITM_COUNT>4</SUM_ITM_COUNT>
<SUM_ITM_PRICE>66.28</SUM_ITM_PRICE>
<SUM_ITM_COST>0</SUM_ITM_COST>
<SUM_ITM_GPM>66.28</SUM_ITM_GPM>
<SUM_ITM_MARKUP />
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
<INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
<SUM_ITM_COUNT>1</SUM_ITM_COUNT>
<SUM_ITM_PRICE>0</SUM_ITM_PRICE>
<SUM_ITM_COST>22.98</SUM_ITM_COST>
<SUM_ITM_GPM />
<SUM_ITM_MARKUP />
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
<INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
<SUM_ITM_COUNT>1</SUM_ITM_COUNT>
<SUM_ITM_PRICE>0</SUM_ITM_PRICE>
<SUM_ITM_COST>22.98</SUM_ITM_COST>
<SUM_ITM_GPM />
<SUM_ITM_MARKUP />
</G_OPPCAT_BREAKDOWN>
- <G_OPPCAT_BREAKDOWN>
<QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
<INT_ITM_TYPES>REVENUE_ADJUSTMENT</INT_ITM_TYPES>
<OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
<INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
<SUM_ITM_COUNT>1</SUM_ITM_COUNT>
<SUM_ITM_PRICE>20</SUM_ITM_PRICE>
<SUM_ITM_COST>101</SUM_ITM_COST>
<SUM_ITM_GPM />
<SUM_ITM_MARKUP />
</G_OPPCAT_BREAKDOWN>
</LIST_G_OPPCAT_BREAKDOWN>
- <LIST_G_FORX_OPS_QTE_ORDER_LINES>
- <G_FORX_OPS_QTE_ORDER_LINES>
<ORDER_ACCEPTANCE1>SKOKIE</ORDER_ACCEPTANCE1>
<COMMITMENT />
<COMMITMENT_APPLIED_AMOUNT />
<PARTIAL_COMMENTS />
<COMMENT_FOR_INVOICE />
<QUOTE_DATE>07/13/2009 02:00:10PM</QUOTE_DATE>
<LINE_NUMBER>1</LINE_NUMBER>
<EXTD_SELLING_PRICE>880</EXTD_SELLING_PRICE>
<ORDER_PAY_TERM>Automated Term Due in 44 Days</ORDER_PAY_TERM>
<QUOTE_PAY_TERM />
<ITEM_CATEGORIES>HARDWARE.MACHINE.SERVER.</ITEM_CATEGORIES>
<QUOTE_STATUS>Order Submitted</QUOTE_STATUS>
<QUOTE_USER>Tyner, Chris</QUOTE_USER>
<OPPORTUNITY_ID1>1000216</OPPORTUNITY_ID1>
<DATASOURCE>1</DATASOURCE>
<HEADER_ID>398631</HEADER_ID>
<LINE_ID>900897</LINE_ID>
<LINE_TYPE_ID>1181</LINE_TYPE_ID>
<ORDER_NUMBER>159038</ORDER_NUMBER>
<ORDER_VERSION>10</ORDER_VERSION>
<TEAM>IBM</TEAM>
<OPPORTUNITY_NAME1 />
<QUOTE_NAME>1000216:IBM:UAT DEMO</QUOTE_NAME>
<QUOTE_NUMBER>1428</QUOTE_NUMBER>
<QUOTE_VERSION>2</QUOTE_VERSION>
<NEW_PARTIAL>0</NEW_PARTIAL>
<COMMIT_DEL_DATE>13-JUL-09</COMMIT_DEL_DATE>
<ORDERED_QUANTITY>1</ORDERED_QUANTITY>
<PO_NUMBER>098534089</PO_NUMBER>
<GROUP_NUM>1</GROUP_NUM>
<INVENTORY_ITEM_ID>845256</INVENTORY_ITEM_ID>
<ORDERED_ITEM>7978BDU</ORDERED_ITEM>
<PRODUCT>7978BDU</PRODUCT>
<ITEM_DESCRIPTION>X3550, XEON QUAD CORE E5430 80W 2.66GHZ/1333MHZ/12MB L2, 2X1GB CHK, O/BAY 2.5IN HS SAS, SR 8K-I, PCI-E RISER CARD, ULTRABAY ENHANCED DVD-ROM/CD-RW COMBO DRIVE, 670W P/S, RACK</ITEM_DESCRIPTION>
<MANUFACTURER_DESCRIPTION>IBM</MANUFACTURER_DESCRIPTION>
<TYPE />
<EQUIPMENT_CODE>B</EQUIPMENT_CODE>
<TAX_CLASS_CODE>HW</TAX_CLASS_CODE>
<CLS />
<SUBINVENTORY />
<UNIT_LIST_PRICE>0</UNIT_LIST_PRICE>
<ITEM_UNIT_COST>800</ITEM_UNIT_COST>
<VENDOR_INVENTORY_RETURN />
<SHIPPING_TYPE />
<SHIPPING_ORG>DSP</SHIPPING_ORG>
<SOLD_TO1>ALLSTATE INSURANCE COMPANY</SOLD_TO1>
<SOLD_TO_ACCOUNT_NUMBER>103736</SOLD_TO_ACCOUNT_NUMBER>
<INVOICE_TO_LOCATION>10110384</INVOICE_TO_LOCATION>
<INVOICE_TO>ALLSTATE INSURANCE COMPANY</INVOICE_TO>
<INVOICE_TO_ACCOUNT_NUMBER>103736</INVOICE_TO_ACCOUNT_NUMBER>
<INVOICE_TO_ADDRESS1>2775 SANDERS RD</INVOICE_TO_ADDRESS1>
<INVOICE_TO_ADDRESS2 />
<INVOICE_TO_ADDRESS3 />
<INVOICE_TO_ADDRESS4 />
<INVOICE_TO_EMAIL />
<INVOICE_TO_PHONE_NUMBER>847-402-0223</INVOICE_TO_PHONE_NUMBER>
<INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</INVOICE_TO_ADDRESS5>
<INVOICE_TO_CONTACT>CRAIG SOCKEL</INVOICE_TO_CONTACT>
<L_INVOICE_TO_LOCATION>10110384</L_INVOICE_TO_LOCATION>
<L_INVOICE_TO_ACCOUNT_NUMBER>103736</L_INVOICE_TO_ACCOUNT_NUMBER>
<L_INVOICE_TO>ALLSTATE INSURANCE COMPANY</L_INVOICE_TO>
<L_INVOICE_TO_ADDRESS1>2775 SANDERS RD</L_INVOICE_TO_ADDRESS1>
<L_INVOICE_TO_ADDRESS2 />
<L_INVOICE_TO_ADDRESS3 />
<L_INVOICE_TO_ADDRESS4 />
<L_INVOICE_TO_EMAIL />
<L_INVOICE_TO_PHONE_NUMBER>847-402-0223</L_INVOICE_TO_PHONE_NUMBER>
<L_INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</L_INVOICE_TO_ADDRESS5>
<L_INVOICE_TO_CONTACT>CRAIG SOCKEL</L_INVOICE_TO_CONTACT>
<SHIP_TO_ACCOUNT_NUMBER>103736</SHIP_TO_ACCOUNT_NUMBER>
<SHIP_TO>ALLSTATE INSURANCE COMPANY</SHIP_TO>
<SHIP_TO_LOCATION>10271260</SHIP_TO_LOCATION>
<SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</SHIP_TO_ADDRESS1>
<SHIP_TO_ADDRESS2 />
<SHIP_TO_ADDRESS3 />
<SHIP_TO_ADDRESS4 />
<SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</SHIP_TO_ADDRESS>
<SHIP_EMAIL>[email protected]</SHIP_EMAIL>
<SHIP_TO_PHONE_NUMBER>847-402-0223</SHIP_TO_PHONE_NUMBER>
<SHIP_TO_CONTACT>ORLANDO LOPEZ</SHIP_TO_CONTACT>
<L_SHIP_TO_ACCOUNT_NUMBER>103736</L_SHIP_TO_ACCOUNT_NUMBER>
<L_SHIP_TO>ALLSTATE INSURANCE COMPANY</L_SHIP_TO>
<L_SHIP_TO_LOCATION>10271260</L_SHIP_TO_LOCATION>
<L_SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</L_SHIP_TO_ADDRESS1>
<L_SHIP_TO_ADDRESS2 />
<L_SHIP_TO_ADDRESS3 />
<L_SHIP_TO_ADDRESS4 />
<L_SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</L_SHIP_TO_ADDRESS>
<L_SHIP_EMAIL>[email protected]</L_SHIP_EMAIL>
<L_SHIP_TO_PHONE_NUMBER>847-402-0223</L_SHIP_TO_PHONE_NUMBER>
<L_SHIP_TO_CONTACT>ORLANDO LOPEZ</L_SHIP_TO_CONTACT>
<DEL_TO_ACCOUNT_NUMBER>103736</DEL_TO_ACCOUNT_NUMBER>
<DEL_TO>ALLSTATE INSURANCE COMPANY</DEL_TO>
<DEL_TO_LOCATION>10110327</DEL_TO_LOCATION>
<DEL_TO_ADDRESS1>3075 SANDERS RD</DEL_TO_ADDRESS1>
<DEL_TO_ADDRESS2 />
<DEL_TO_ADDRESS3 />
<DEL_TO_ADDRESS4 />
<DEL_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</DEL_TO_ADDRESS>
<DEL_TO_EMAIL />
<DEL_TO_PHONE_NUMBER>847-402-0223</DEL_TO_PHONE_NUMBER>
<DEL_TO_CONTACT />
<UNIT_SELLING_PRICE>880</UNIT_SELLING_PRICE>
<BILL_TO_LAST_UPDATE>21/04/2009 02:25:18PM</BILL_TO_LAST_UPDATE>
<SHIP_TO_LAST_UPDATE>13/07/2009 01:31:45PM</SHIP_TO_LAST_UPDATE>
<BILL_TO_UPDATED_BY>SLUMPP</BILL_TO_UPDATED_BY>
<SHIP_TO_UPDATED_BY>CTYNER</SHIP_TO_UPDATED_BY>
<ORDER_QUOTE_USER>CTYNER</ORDER_QUOTE_USER>
<PARTICIPANTS>Conley, Michael Order:159044 100% and Conley, Michael Order:159038 100% and Conley, Michael Quote:1443 50% and Jones, Maureen Quote:1443 50%</PARTICIPANTS>
<ORDERED_DATE>07/13/2009 02:23:23PM</ORDERED_DATE>
<BOOKED_DATE>07/13/2009 02:31:15PM</BOOKED_DATE>
<ORDER_QUOTE_STATUS>BOOKED</ORDER_QUOTE_STATUS>
<ORDER_USER_STATUS>RE-BOOK REQD</ORDER_USER_STATUS>
<BUYER>Tyner, Chris</BUYER>
<SERIAL_NUM>45784687</SERIAL_NUM>
<INVOICE_HANDLING_FORMAT_VALUE />
<INVOICE_HANDLING_FORMAT />
<PRINT_TRADE_NAME_VALUE>No</PRINT_TRADE_NAME_VALUE>
<ITEM_EXTD_COST>800</ITEM_EXTD_COST>
<QUOTE_APPROVERS>Tyner, Chris</QUOTE_APPROVERS>
</G_FORX_OPS_QTE_ORDER_LINES> -
Need to display a field for every page
Hi All.
I am trying to display a field <?job_no?> for every page of that job.
I mean if I select job no from 1 to 10. for Job number 1 the data can be printed in one page or several pages.
But i need to show this Job number( which we show with BARCODE font) in every page of that job.
This job is under G_JOB group. In general I used like below
<?for-each:G_JOB?>
<?job_no?>
<?...?>
<?...?>
<?...?>
<?...?>
<?...?>
<?end for-each?>
This is getting printed in first page only. If I put it in header, of RTF file, it is ok if I selected only one job number. But if I select for n number of jobs it is not geting displayed.
Please help.
Thanks Vasa.Vasa,
Try this:
<?for-each@section:g_job?>
<?job_no?>
<?start:body?>
<?data?>
<?end for-each?>The "start:body" makes everything before that a page header.
Kurz
Edited by: Kurzweil4 on Feb 7, 2011 1:15 PM
Added @section. This will reset the header region for each job. -
Displaying date field in menu using HTML DB
How do I display a date field in HTML DB as drop down. I have the below HTML code which needs to be represented in HTML DB.
The display on the page should be like
Enter Start Date : "Month" "Day of the Month" "Year".
The above values in quotes should be displayed as enterable fields with LOVs.
Any help would be greately appreciated.
<td colspan="3">Select a Date Range for the Report</td>
</tr>
<tr>
<td nowrap="nowrap">
<label>
<input type="radio" name="selectDateType" value="mdy">
(Month Day, Year)</label></td>
<td nowrap="nowrap"><label for="startDateStringMonth">Start date:</label></td>
<td nowrap="nowrap" width="100%">
<select name="startDateStringMonth" id="startDateStringMonth" tabindex="3" >
<option value="">Month</option>
<option value="0">January</option>
<option value="1">February</option>
<option value="2">March</option>
<option value="3">April</option>
<option value="4">May</option>
<option value="5">June</option>
<option value="6">July</option>
<option value="7">August</option>
<option value="8">September</option>
<option value="9">October</option>
<option value="10">November</option>
<option value="11">December</option>
</select>
<select name="startDateStringDay" id="startDateStringDay" tabindex="4">
<option value="">Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="startDateStringYear" id="startDateStringYear" tabindex="5">
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option selected="true" value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select> </td>
</tr>
<tr>
<td nowrap="nowrap"> </td>
<td nowrap="nowrap"><label for="endDateStringMonth">End date:</label></td>
<td nowrap="nowrap">
<select name="endDateStringMonth" id="endDateStringMonth" tabindex="6">
<option value="">Month</option>
<option value="0">January</option>
<option value="1">February</option>
<option value="2">March</option>
<option value="3">April</option>
<option value="4">May</option>
<option value="5">June</option>
<option value="6">July</option>
<option value="7">August</option>
<option value="8">September</option>
<option value="9">October</option>
<option value="10">November</option>
<option value="11">December</option>
</select>I'm not sure why you would do it the way you have it implemented in 3 select lists.
Why not use a Item Type of Date Picker, and let the user use the pop-up Date Picker to select the date.
You code has some fatal flaws:
1) You can't see any data before 2000
2) You can't see any data past 2010 (probably not an issue now)
3) It's possible to specify February 31 as a date
Using the built-in Date Item type will eliminate these issues and at the same time, make your UI more streamlined.
Thanks,
- Scott - -
How to display date field in ALV in format 'YYYY-MM-DD'?
Hi experts,
I am not getting displayed the date field in ALV in the format 'YYYY-MM-DD' if it is different than my user setting's format (DD.MM.YYYY).
Tried with the edit mask
LVC_S_FCAT-EDIT_MASK = '____-__-__' but it does not work.
I could not find the conversion routine for this. Is it possible to write customer conversion routine?
I have to use DATE field, otherwise if I display this format in CHAR10 field , sorting in ALV does not work for this field.
PLEASE ANY HELP!
Kind regards,
DanijelaHi,
Use FM FORMAT_DATE_4_OUTPUT.
TYPE-POOLS : slis, KKBLO.
TYPES: BEGIN OF t_data,
sel TYPE char1,
matnr TYPE matnr,
bldat type char10,
END OF t_data.
DATA: it_tab TYPE STANDARD TABLE OF t_data,
it_fcat TYPE slis_t_fieldcat_alv.
DATA: wa_tab TYPE t_data,
wa_fcat TYPE slis_fieldcat_alv,
wa_layout type SLIS_LAYOUT_ALV.
data: lv_repid TYPE syrepid.
data : lv_date type NLEI-IBGDT,
lv_outdate type RN1DATUM-DATEX,
lv_format type RN1DATUM-FORMAT value 'YYYY-MM-DD'.
lv_repid = sy-repid.
lv_date = sy-datum.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000001'.
APPEND wa_tab TO it_tab.
lv_date = sy-datum + 1.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000002'.
APPEND wa_tab TO it_tab.
lv_date = sy-datum + 2.
CALL FUNCTION 'FORMAT_DATE_4_OUTPUT'
EXPORTING
datin = lv_date
format = lv_format
IMPORTING
DATEX = lv_outdate.
move lv_outdate to wa_tab-bldat.
wa_tab-matnr = '0000003'.
APPEND wa_tab TO it_tab.
wa_fcat-fieldname = 'SEL'.
wa_fcat-ref_fieldname = 'XCHPF'.
wa_fcat-ref_tabname = 'MARA'.
wa_fcat-edit = 'X'.
wa_fcat-checkbox = 'X'.
APPEND wa_fcat TO it_fcat.
CLEAR : wa_fcat.
wa_fcat-fieldname = 'MATNR'.
wa_fcat-ref_fieldname = 'MATNR'.
wa_fcat-ref_tabname = 'MARA'.
APPEND wa_fcat TO it_fcat.
CLEAR : wa_fcat.
wa_fcat-fieldname = 'BLDAT'.
wa_fcat-ref_fieldname = 'BLDAT'.
wa_fcat-ref_tabname = 'BKPF'.
APPEND wa_fcat TO it_fcat.
call 'REUSE_ALV_GRID_DISPLAY'' after this
Edited by: Ankur Parab on Oct 1, 2009 2:50 PM
Edited by: Ankur Parab on Oct 1, 2009 2:51 PM -
Issue in displaying DATE field in Excel sheet
Hi All,
Kindly help me with the below issue:
A report program when exexuted fetches the data's from database tables and populates in to an itab and the same is then moved to a itab which is declared like this:
DATA: BEGIN OF t_downd OCCURS 0,
line(4096) TYPE c,
END OF t_downd.
This T_DOWND will have all the obtained records and the same is used to pass the entries to GUI_DOWNLOAD function module inorder to save the excel sheet in '.csv' format to the desktop.
The issue is the user wants the 'DATE' field to be displayed in 'DD-MM-YYYY' format in the excel sheet. So I have fetched the date based on the position(fdpos) and used the concatenate statement separated by '-'. Now when I run the program, some dates are not getting displayed in 'DD-MM-YYYY' format and some dates are getting displayed correctly as per the requirement.
While debugging also, I could find the date value in T_DOWND in the 'DD-MM-YYYY' format only. Not sure where it is actually getting changed and why.
Can some one please provide a soultion for this.
Thanks,
DeepaHi Soumya,
Thanks for the reply!
I declared a constant in the below format for the quotes:
constants : c_quotes type c value ''''. (i have put 4 quotes)
Now i have concatenated the above quotes to my date value.
But the output in the excel sheet is now getting displayed like this '30-02-2011
All the dates are getting displayed in the correct expected format, but the only issue is we are getting an extra quotes in front of the date.
Can you please suggest why this is happening.
Thanks,
Deepa
Edited by: Deeparani.D on Jan 9, 2012 11:53 AM
Edited by: Deeparani.D on Jan 9, 2012 11:54 AM -
Problem with displaying Date field in the table.
Hi All,
I am trying to display data into a table UI Element.
In that data, i have one DATE type field. While displaying data in DATE field, it will display like this "01.02.2009".
Now my requirement is if i want to modify that DATE field, it will allow to modify "01.02.2009" to "26.02.2009".
But while modifying DATE field , I want to show the Calender of that month, in that i have to select the another date.
(Like normal Date UI Element will show that calender).
Can anyone please help me.
Thanks in Advance!
Regards,
Sreelakshmi.Hi,
Go to the context attribute that was mapped to the DATE field of the table and change the perperty INPUT HELP MODE to AUTOMATIC and it works.
Regards,
Manne. -
Need to change Date field Zone from IST to UST
Guys,
I have to develop a application in which there is a Date field. This date is coming from Application Server i.e. R3 and is in India, terefore it's IST. Now when this application is run from US, it should give the UST.
Means Actually I want to change the Date from IST to UST.
Can somebody please reply with the coding that needs to be done.
Thanks,
Nikesh ShahHi,
Refer the following link
Date format
Java Webdynpro Date Format
I hope it helps.
Regards,
Rohit -
hai,
in selection screen, i am having the date field as select-options.
if i give low value, it should automatically display the high value, how to do this.
thanks.Hi,
U can use AT SELECTION-SCREEN event as follows :
AT SELECTION-SCREEN on S_DATE
if not S_DATE-LOW is initial.
S_DATE-OPTION = 'BT'.
S_DATE-HIGH = SY-DATUM.
MODIFY S_DATE.
Endif.
This shud help u.
Regards,
Himanshu
Message was edited by:
Himanshu Aggarwal
Message was edited by:
Himanshu Aggarwal -
Report displays date field on server as timestamp, despite format
I formatted a date field in my report as 01/03/2009.
This looks ok when testing in Crystal Reports.
On the server the date displays as 01/03/2009 12:00:00 AM.
I really want to get rid of the time, as it doesn't fit in the report.
I noticed that in an older report the field of the same date is typed as timestamp. In this case the server display correctly.
The problem is, I cannot figure out how/why the date is typed differently in the 2 reports, e.g. date vs timestamp.
Help!?Ah, that explains it. Some JDBC drivers handle date field types differently.
Be sure you are using the latest JDBC jars from Oracle and make sure you have the correct Java path in the PATH statement.
Other than that it is likely a limitation of the driver itself.
Try using the native Oracle driver in the database wizard and see if you get the same results.
And as suggested go into the Report Options and see if any of the those switches help. Also right click on the field and select Format and see if those option also help you.
Thank you
Don -
Need to Display Data for Cummulated to Current Day of Current Fiscal Year
We use fiscal variant V3 (April-March). My need is to display data automatically from first of fiscal period (April 1 2006) to today.
I tried using 0CYTCD on Calendar Day but this works only for the current calendar year that the system is in i.e 2007.
Is there a standard variable I can use on 0CALDAY so I always get data from day one of current fiscal year/period to today? e.g. April 1, 2006 to January 3, 2007
If not, can someone please help with the exact customer exit code that I would need to write in CMOD in BW?
Thanks a ton!I thought of using 0FYTCD variable, but I cannot find it in the business content.
Has anyone used 0FYTCD (Fiscal year to current day) in BW 3.1 SP25?
Again, I am looking for a variable that would get me the beginning of fiscal year to today.
Thanks. -
Need to display data on the right side in the header area of alv report.
hi experts,
I want to display data in the header area of alv report on the right side . I have already used function for events on the header side data is getting displayed on the left side .but i want data to be displayed on the right side.
regards,
andrews.Hi,
Hope this below code helps you.
Take care,
Çağatay.
* build header for alv
FORM top_of_page_split USING r_top TYPE REF TO cl_dd_document.
DATA: s_tab TYPE sdydo_text_table,
c_area TYPE REF TO cl_dd_area,
text TYPE sdydo_text_element.
TYPES: BEGIN OF tab_text,
text TYPE sdydo_text_element,
END OF tab_text.
DATA: i_text TYPE TABLE OF tab_text.
DATA: w_text TYPE tab_text.
CALL METHOD r_top->initialize_document.
CALL METHOD r_top->vertical_split
EXPORTING
split_area = r_top
split_width = '70%'
IMPORTING
right_area = c_area.
CONCATENATE sy-datum+4(2)
sy-datum+6(2)
sy-datum(4)
INTO date1.
CONCATENATE 'DATE' date1
INTO w_text-text
SEPARATED BY ':'.
APPEND w_text TO i_text.
CONCATENATE 'time:' sy-uzeit INTO w_text .
APPEND w_text TO i_text.
CONCATENATE 'uesr:' sy-uname INTO w_text .
APPEND w_text TO i_text.
CONCATENATE 'local date:' sy-datlo INTO w_text .
APPEND w_text TO i_text.
CONCATENATE 'time zone:' sy-zonlo INTO w_text .
APPEND w_text TO i_text.
s_tab[] = i_text[].
CALL METHOD c_area->add_text
EXPORTING
text_table = s_tab
fix_lines = 'X'
sap_fontsize = cl_dd_document=>medium
sap_emphasis = cl_dd_document=>strong.
CALL METHOD r_top->add_gap
EXPORTING
width = 60.
text = 'THIS IS REPORT HEADING'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'STRONG'.
CALL METHOD r_top->new_line.
CALL METHOD r_top->add_gap
EXPORTING
width = 70.
text = 'THIS IS REPORT HEADING1'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'STRONG'.
CALL METHOD r_top->new_line.
CALL METHOD r_top->add_gap
EXPORTING
width = 80.
text = 'THIS IS REPORT HEADING2'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'STRONG'.
CALL METHOD r_top->new_line.
text = 'Report Subheading1'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'NORMAL'.
CALL METHOD r_top->new_line.
text = 'Report Subheading2'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'NORMAL'.
CALL METHOD r_top->new_line.
text = 'Report Subheading3'.
CALL METHOD r_top->add_text
EXPORTING
text = text
sap_emphasis = 'NORMAL'.
CALL METHOD r_top->new_line.
ENDFORM. "TOP_OF_PAGE_SPLIT -
Need help displaying data in text field... Help?
i have this code:
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import com.adobe.serialization.json.JSON;
var loader:URLLoader = new URLLoader(new URLRequest("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=ScottMitchell"));
loader.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(e:Event):void {
processData(e.target.data);
function processData(data:String):void {
var tweets:Array = JSON.decode(data) as Array;
trace(tweets[0].text);
It works, in the output it tells me the tweets.
but i need it to be displyed on the app, i need to no how to do this, someone pointed me in the direction of using a item renderer extended from sprite?
But really all i need to do is display it in a text field, all i want to do is display the data.
Can anyone help???
I know this is probably simple and i did try to figure this out on my own, but had no luck.
All help is appreciated.
Many thanks in advance.you can always use an array if there's no pattern to your positions:
var positionA:Array=[ [100,20], [2,222], [55,2], [201,111], [78,23] ];
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import com.adobe.serialization.json.JSON;
var loader:URLLoader = new URLLoader(new URLRequest("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=ScottMitchell"));
loader.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(e:Event):void {
processData(e.target.data);
function processData(data:String):void {
var tweets:Array = JSON.decode(data) as Array;
for(var i:int=0;i<5;i++){
var tf:TextField=new TextField();
addChild(tf);
tf.multiline=true;
tf.width=300;
tf.text = tweets[i].text;
tf.autoSize="left";
tf.x=positionA[i][0];
tf.y=positionA[i][1];
nextY+=tf.height; -
Need to add date field on select screen of report RM06INP0.
Hi All,
I have to create a new report ZRM06INP0 as a copy from RM06INP0 and add a field in the selection.
When the selection "Price Determination w/o PO" is not picked then we need a maintainable field from the info record. The default for the date is 9999.12.31 and should manually maintained. This date shoulde be written in the info record.
How to achieve this?
Please see OSS Note 392 988 Solution to 2 for more info.Hi Akash
What kind of date is you wanted? You can try to find it in dynamic selections.
regards,
Archer
Maybe you are looking for
-
Connecting A Dreamweaver site to a database using localhost
I have created a number of websites that connect to a databasde on localhost using the Windows\database utility built into Dreamweaver with no problems. Recently my version of Dreamweaver started crashing and DW Support did some work to rer4solve tha
-
Hi, How to create windows native menu in Flex for Adobe Air? Is there any ready made sample of native menu script example? Is the native menu support on Mac, and linux such as ubuntu? Thanks.
-
WRT320N & IBM T42 laptop keeps dropping wireless connection at key times
I have an IBM T42 laptop whihc keeps dropping the wireless connection at what seems to be the same time windows each day. I have my cable modem connected to my WRT320N. My wireless it set up as follows : Manual configuration Wireless Band = 2.4Ghz (T
-
Just deleted an important file from backup. How do I retrieve it?
Just deleted an important file from 'Backup' in 'Finder'. How do I retrieve it?
-
Safari calls history doesn't show up in phone history
When making a call from a link on safari on the iphone the call doesn't show up in the phone history as if it was never made.