About conversion function
Hi All,
I am new in oracle.
I have to dates in format
1.09/12/2005
2.Thu Dec 15 10:59:52 GMT+05:30 2005
My table coulmn is Date data type.
I want to insert this data in DD-MON-YYYY format.
What can I do.
Any body help me.
Thanks in advance.
Prathamesh.
You need to supply the correct format mask
select to_date('09/12/2005','DD/MM/YYYY') from dualFor a list of valid format masks see the documentation here
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/sql_elements4a.htm#34926
Similar Messages
-
I would like to know about conversion exits.
i would like to know about conversion exits.
Hi,
Under Domain of a data element of a field, Output Characterestics field 'Convers. routine' is used to create conversion routines, system will do the data changes with in these routines while storing the data into table and retriving the data from table.
Ex: if coversion routine is defined as 'ALPHA' for a standard domain , with this value system will create two function modules.
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
you can also create your own conversion routines by defining the value in this field. i have defined conversion routine to convert NUMC type data to DEC type data with 'ZCNV'.system will generate two FM's. you need to write the code in those FM's according to your logic.
see the code for this :
CONVERSION_EXIT_ZCNV_INPUT
FUNCTION CONVERSION_EXIT_ZCNV_INPUT.
""Local interface:
*" IMPORTING
*" VALUE(INPUT)
*" EXPORTING
*" VALUE(OUTPUT)
DATA : ws_output type numc10.
ws_output = input.
output = ws_output.
ENDFUNCTION.
CONVERSION_EXIT_ZCNV_OUTPUT
FUNCTION CONVERSION_EXIT_ZCNV_OUTPUT.
""Local interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
data : ws_value type dec12.
ws_value = input.
WRITE: ws_value TO output DECIMALS 0.
ENDFUNCTION.
Thanks & Regards,
Sunil -
Oracle course to learn more about BI functions
Hi,
Do you know if there is any Oracle course specific about BI functions?
Aggregate Functions
Running Aggregate Functions
String Functions
Math Functions
Calendar Date/Time Functions
Conversion Functions
System Functions
Operators
Expressions
Literals
I know how to build simple reports, but when it comes to use the above functions, I find it difficult.
Maybe somebody can suggest a good book too?
Thanks and Regards
G.http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31770.pdf
Page No 366 about Aggregated functions
Running Aggregate Functions - 374
String Functions - 378
Math Functions - 384
Calendar Date/Time Functions - 390
Conversion Functions - 398
System Functions - 402
I Hope this works for you.. -
Need help for Conversion Function in Oracle
Hi, Can Any One help me Please.
I need a Oracle conversion script for converting from decimal to hex. and decimal to datetime.
Thanks In Advance.Hi,
for the Hex-Number-conversion see:
[url http://psoug.org/snippet/Convert-Hex-to-Decimal-Decimal-to-Hex_78.htm] self-defined Conversion-Functions
What number format do you have? YYYMMDD
Or is there a Date corresponding to 1 and a number n represent the date n-1 days after day 1?
Please describe further.
Bye
stratmo -
Documentation about this function module
ineed Documentation about this function module RP_ANSAL_FROM_PERNR
Hi Avinash,
Have a look at the function group program documentation.It gives an idea of what the function module does.
Short text
Annual Salary Functionality (ANSAL)
Description
This function group contains different functionality for calculating the annual salary, and calculating a period salary from the annual salary.
The function group evaluates different tables and features:
Tables
T503 defines whether an employee is paid on an
hourly basis or per period
T510W defines the time unit
T511 determines the relevant module from the annual
salary wage type, rounding, etc.
T539J defines the valid wage types for calculating
the annual salary
Features
ANSAL defines the annual salary wage type
PFREQ number of periods per year
Old U510F -> use T510F ?
Thanks
Lakshman -
Hello Friends,
When ever i down load into excel file the filed 'WERKS' is becoming from '0780' to 780 and when i try to upload i am getting as 780 which is creating some problems. Is there any conversion function module to convert the the field WERKS from 780 to 0780.
Thanks in advance.
Siva Kumar.Hi
When you are using FM 'GUI_DOWNLOAD' to download to excel file, you need to populate the parameter FILE TYPE with DBF.
call function 'GUI_DOWNLOAD'
exporting
filename = p_file
<b>filetype = 'DBF'</b>
Thanks
Vijay
PLZ reward points if helpful -
NEED INFORMATION ABOUT "MAX_TEST" FUNCTION MODULE
HI ABAPERS,
I need information about "MAX_TEST" function module . this function module is used in 4.6 version , now system have been shifted to 6.0.....here in 6.0 version this function module is not prasent.can any one tell me which new function module we can use in place of this function module, without changing the functionality........
Thanks in advance
regards,
SUNILThe module is not very sophisticated. Profficiency in Java or ABAP will be a great bonus here. There are plenty of good materials regarding XI on SDN. I suggest to start with step-by-step guides and master all basic integration scenarios
http://wiki.sdn.sap.com/wiki/display/XI/Step-by-Step+Guides
Opportunities in industry are not bad also, cause PI is rather popular among customers. The best thing is that it fits any type of customer's business. Integration is demanded almost everywhere. -
About CallByteMethodA Function
Hi you all:
I have some problem about CallByteMethodA function.
This is what my java code looks like:
public void setDS_INFO_mac(byte[] mac) {
for( int i = 0; i < mac.length; ++i ) {
this.ds_info.mac[i] = mac;
This is what my c code looks like:
jobject objref;
jclass cls = NULL;
jfieldID fid = NULL;
jmethodID mid = NULL;
jbyte dsMac[6];
jbyteArray returnArray = 0;
/* code not pertaining to this question snipped. */
mid = env->GetMethodID(cls, "setDS_INFO_mac", "([B)V" );
for( int j = 0; j < 6; ++j ) {
dsMac[j] = search_Info[i].ds_info.mac[j];
returnArray = env->NewByteArray(6);
if( returnArray != NULL ) {
env->SetByteArrayRegion(returnArray, 0, 6, (jbyte*)dsMac);
env->CallByteMethodA(objref, mid, (jvalue*)returnArray);
env->DeleteLocalRef(returnArray);
This is not working.
and, some about run time exception as follows:
Exception in thread "main" java.lang.NullPointerException
at CFGINFO.setDS_INFO_mac(DSCIStructure.java:97)
at DSCIJNInterface.dsc_EnumSearch(Native Method)
at MainApp.searching(MainApp.java:105)
at MainApp.main(MainApp.java:46)
Any idea what I'm doing wrong?You are missing error checking code. Many calls to the JNI interface require that you check the method return value. Many calls also require that java exceptions must be checked for after the call.
-
When using the numeric conversion functions, such as to I16, what determines whether a number greater than the upper limit is coerced to the upper limit or is wrapped around from the lower limit?
> When using the numeric conversion functions, such as to I16, what
> determines whether a number greater than the upper limit is coerced to
> the upper limit or is wrapped around from the lower limit?
>
In general, LV will coerce the way that the CPU does. Integers to
integer will take the lower portion, performing a modulo operation.
Float to integer will pin, typically to the correctly signed maxInt.
If it is important to your algorithm, build a quick test VI.
Greg McKaskle -
Description about a function module O2_LANGUAGE_EXIT_FUNCTION
Hi All,
i want to know the description about the function module 'O2_LANGUAGE_EXIT_FUNCTION'. Please explain what is the functionality of this function module clearly.
Thanks & Regards,
Nagarjuna.hi,
send me ur mail id ,
i will send the pay roll related function moduls.
and document relataed to pay roll.
ramesh -
Can anyone suggest a reading on conversion functions in Oracle 9i?
how to convert a varchar to a number?look into doc
http://download-east.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90125/functions142.htm#1003400
SQL> select to_number('12'), to_char(12) from dual;
TO_NUMBER('12') TO
12 12added query
Message was edited by:
devmiral -
System table that stores info about any function module
Hi All,
I know that table TFDIR stores primary information about any function module.
Could anyone tell me where the code of that function module gets stored in?
Also.. If I want to write an ABAP code to read the function module code then what is the best possible solution?
I want to read a function module code if that contains specific string.
Can anyone help me with that?
Thanks in advace and any answer will be appreciated.
Regards
Jignesh
Edited by: Jignesh Patel on Jun 12, 2008 12:22 PMHi Jignseh,
The codes are not stored in any table, they are stored as cluster.
To read the code, you can use READ REPORT.
But there you must provide the Include Name
For Example , If you want to read the code of READ_TEXT,
READ REPORT 'LSTXDU01'.
You can get this include name inside include LSTXDUXX
Use "GET_INCLUDES" to get all include names
Edited by: Swastik Bharati on Jun 12, 2008 12:28 PM -
Can anybody tell me about SD Functionality and the main tables used in SD
Hi,
Can anybody tell me about SD Functionality and the main tables used in SD.
Thanks,
bsv.Hi
SD FLOW
SD Flow Cycle:
INQUIRY ( VA11)
|
QUOTATION (VA21)
|
PURCHASE ORDER (ME21)
|
ORDER CONFIRMATION (VA01)
|
PICKING LIST (VL36)
|
PACKING LIST - (VL02, VL01)
|
SHIPPING (VT01)
|
INVOICE (VF21, VF01)
|
AR
Enquiry - Customer enquires about the Products services that were sold by a company - VA11
Quotation - Company Gives a Quotation for the products and Services to a Customer
Sales Order - Customer gives a Purchase order to the company agaionst which a Sales order will be raised to Customer in SAP.
VBAK: Sales Document(Header Data) (VBELN)
VBAP: Sales Document(Item Data) (VBELN,POSNR,MATNR,ARKTX,CHARG)
Enquiry, Quotation, Sales Order are differentiated based on Doc.
Type(VBTYP field) in VBAK,VBAP Tables( for Enquiry VBTYP = A,
for Quotation 'B' & for Order it is 'C'.)
Delivery(Picking, Packing, Post Goods Issue and Shipment)->
Company sends the material after picking it from Godown and Packing it in a Handling Unit(box) and Issues the goods
LIKP: Delivery Table (Header Data)(VBELN,LFART,KUNNR,WADAT,INCO1)
LIPS: Delivery Table (Item Data)(VBELN,POSNR,WERKS,LGORT,MATNR,VGBEL)
(LIPS-VGBEL = VBAK-VBELN, LIPS-VGPOS = VBAP-POSNR)
Billing - Also company bills to the customer for those deliveries
And in FI against this billing Accounting doc is created.
VBRK: Billing Table(Header Data)(VBELN,FKART,BELNR)
VBRP: Billing Table(Item Data)(VBELN,POSNR,FKIMG,NETWR,VGBEL,VGPOS)
(VBRP-AUBEL = VBAK-VBELN, VBRP-VGBEL = LIKP-VBELN)
Apart from these tables there are lot of other tables which starts with
V, but we use the following tables frequently.
other tables and imp fields
VBUK: All Sales Documents status & Admn. Data(Header)(VBELN,VBTYP)
VBTYP= C(Sales Order) VBTYP=J(Delivery) VBTYP=M(Invoice)
VBUP: Sales Documents status & Admn. Data(Item)(VBELN,POSNR)
VBEP: Sales Doc. Schedule Lines Data(VBELN,POSNR,EDATU,WMENG)
VBKD: To get sales related Business data like Payment terms etc.(VBELN,ZTERM)
VBFA: sales document flow data(VBELV,VBELN,POSNV,VBTYP)
VBPA: Partner functions Data(VBELN,PARVW,KUNNR,LIFNR)
VEDA: Contract Data(VBELN,VPOSN)
VEDAPO: Contract Data(VBELN,VPOSN)
KONA: Rebate Agreements (KNUMA,VKORG,VTWEG,SPART)
VBRL: SD Document: Invoice List(VBELN,POSNR,VBELN_VF,NETWR,KUNAG)
VKDFS: SD Index: Billing Indicator(FKTYP,VBELN,FKART,VKORG)
VBSK: Collective Processing for a Sales Document Header(SAMMG,SMART)
VBSS: Collective Processing: Sales Documents(SAMMG,VBELN,SORTF)
VRKPA: Sales Index: Bills by Partner Functions(VBELN,BELNR,KUNDE,PARVW)
VRPMA: SD Index: Billing Items per Material(MATNR,VBELN,BELNR,KUNNR)
TVLKT: Delivery Type: Texts(LFART,VTEXT)
KNA1: Customer Master-General(KUNNR,NAME1,LAND1)
KNB1: Customer Master(Company Code)(KUNNR,BUKRS,PERNR)
KNC1: Customer Master Data (Transaction Figures)(KUNNR,BUKRS,GJAHR)
KNVK: Customer Master Contact Partner(PARNR,KUNNR,NAME1)
KNVV: Customer Master sales data(KUNNR,VKORG,VTWEG,KDGRP)
KNBK: Customer Bank Details(KUNNR,BANKS,BANKL,BANKN)
KNVH: Customer Hierarchy (HITYP,KUNNR,VKORG,VTWEG,SPART)
KNVP: Customer Master Partner Functions(KUNNR,PARVW,KUNN2)
KNVS: Customer Shipment data(KUNNR,VSTEL,TRANS)
KNVI: Customer Tax data(KUNNR,ALAND,TATYP)
LFA1: Vendor Master-General (LIFNR,NAME1,ORT01)
LFB1: Vendor Master(Company Code)(LIFNR,BUKRS,PERNR)
LFC1: Vendor Master (Transaction Figures)(LIFNR,BUKRS,GJAHR)
MARA: Material Master-General (MATNR,MTART,MATKL)
MARC: Material Master-Plant data(MATNR,WERKS,EKGRP)
MARD: Material Master- St.Location Data(MATNR,WERKS,LGORT,LABST)
EBEW: Sales Order Stock Valuation(MATNR,VBELN,BWKEY,BWTAR)
TVKO: Sales Organizations(VKORG)
TVTW: Distribution Channel(VTWEG)
TSPA: Divisions(SPART)
TVKOV: Distribution Channels for S.Orgn(VKORG,VTWEG)
TVKOS: Divisions for S.Orgn(VKORG,SPART)
TVTA: Sales Areas(VKORG,VTWEG,SPART)
TVBUR: Sales Offices(VKBUR,ADRNR)
TVKBT: Sales Office Texts(VKBUR,SPRAS,BEZEI)
TVKBZ: Sales Office Assign.to Sales Area(VKORG,VTWEG,VKBUR)
TVKGR: Sales Group(VKGRP)
TVGRT: Sales Group Texts(VKGRP,SPRAS,BEZEI)
TVBVK: Sales Group to Sales office(VKBUR,VKGRP)
TVKWZ: Plants Assign.to S.Orgn(WERKS,VKORG)
T171T: Sales District Texts(BZIRK,BZTXT,SPRAS)
TVLA: Loading Points(LSTEL)
TVST: Shipping Points (VSTEL)
TVSWZ: Shipping Point to Plant(VSTEL,WERKS)
TVPT: Item Categories (PSTYV)
TINC: Customer Incoterms(INCO1)
T077D: Customer Account Group (KTOKD)
T001W: Plants (WERKS)
T001L: Storage Locations (LGORT)
T499S: Locations(WERKS,STAND,KTEXT)
TWLAD: To get address of Storage Location and Plant(LGORT,ADRNR)
TVAK: Sales Document (Order) Types (AUART)
TVAU: Sales Documents: Order Reasons (AUGRU)
TVFK: Billing Document Types (FKART)
TVLK: Delivery Types(LFART)
TVSB: Shipping Conditions (VSBED)
TTDS: Transportation Points(TPLST)
TVKT: Account Assignment Groups (KTGRD)
KONV: Condition Types pricing)(KNUMV,KSCHL,KWETR)
ADRC: To get Addresses of Partners(ADDRNUMBER,NAME1)
VBBE: Sales Requirements: Individual records(VBELN,POSNR,MATNR)
VBBS: Sales Requirement totals Record(MATNR,WERKS,LGORT,CHARG)
VBKA: Sales Activities Data(VBELN,KTAAR)
VBPV: Sales Document Product Proposal(VTWEG,MATNR,KUNNR,CHARG)
T682: Access Sequences (KOZGF)
T682T: Access Sequence Texts (KOZGF,VTXTM)
T683: Pricing Procedures (KALSM)
T683T: Pricing Procedures Texts(KALSM,KAPPL,SPRAS,VTEXT)
T685: Pricing Condition Types (KSCHL)
T685T: Condition Type Texts(KSCHL,SPRAS,KAPPL,VTEXT)
KONH: Conditions (Header)(KNUMH,KAPPL,KSCHL)
KONP: Conditions (Item)(KNUMH,KOPOS,KAPPL,KSCHL)
KONV: Conditions (Transaction Data)(KNUMV,KSCHL,KBERT,KWERT)
KOND: Conditions (KNUMD,ZUSKO,KSCHL)
for sd go through the links
http://www.sapgenie.com/abap/tables_sd.htm
Please check this SD online documents.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCSD/CAARCSD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_SD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSD/BCBMTWFMSD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLISPLN/LOLISPLN.pdf
Also please check this SD links as well.
http://help.sap.com/saphelp_47x200/helpdata/en/92/df293581dc1f79e10000009b38f889/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/dd/55f33e545a11d1a7020000e829fd11/frameset.htm
http://www.sap-basis-abap.com/sapsd.htm
http://www.sap-img.com/sap-sd.htm
http://www.sapgenie.com/abap/tables_sd.htm
http://searchsap.techtarget.com/featuredTopic/0,290042,sid21_gci961718,00.html
http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/SD_tutorial.html
All help ebooks are in PDF format here
http://www.easymarketplace.de/online-pdfs.php
Reward points if useful
Regards
Anji -
Question about the function module (RFC_READ_TABLE)
Dear everyone
Could I ask you a question about the function module (RFC_READ_TABLE)?
I was asked if it's possible to create a report which compares the data between different SAP systems (both production systems).
Now, the easiest way would be to use the function module (RFC_READ_TABLE) within a SAP infoset query (SQ01 type query).
But I heard the rumor that using the function module (RFC_READ_TABLE) is not advisable due to the security reason.
However, I am not exactly sure what sort of security problems this function module can possibly have...
Would you help me on this?
I also would like to know if using "remote enabled module" type function module can always overcome this possible security issue.
Or, are there any points that I need to be careful about even when I use "remote enabled module" function module?
Thank you very much in advance.
TakashiDear Fred-san
Thank you very much for your support on this.
But, may I double check about what you mentioned above?
So, what you were mentioning was that if some user executes the query with
the function module (RFC_READ_TABLE), under the following conditions, he can access to
the HR data even when he does not have the authorizations for HR transactions?
<Conditions>
1. the user has the authorization for HR database tables themselves
2. RFC_READ_TABLE is called to retrieve the data from HR database
<example>
Data: LF_HR_TABLE like DD02L-TABNAME value 'PA0000'.
CALL FUNCTION 'RFC_READ_TABLE'
EXPORTING
query_table = LF_HR_TABLE
TABLES
OPTIONS =
fields =
data = .
But then, as long as we call this function module for a non-critical tables such as
VBAP (sales order) or EKKO (purchase order) within our query, it wouldn't seem to be
so security risk to use RFC_READ_TABLE...
Besides, each query (infoset query) has got the concept of user groups, which limits
the access to the queries within the user group.
※If someone does not belong to the user group, he cannot execute the queries within that
user group, etc
So, my feeling is that even infoset queries does have authorization concept...
Would you give me your thought on this?
I also thank you for your information for SCU0.
That is an interesting transaction
Kind regards,
Takashi -
I want to know about Node functions
can anyone explain with example about node functions in PI with an example as i am knew to PI
Hi Chandra,
Using google or SCN search you will find a lot of examples...
https://www.google.es/search?q=SAP+PI+node+functions&ie=utf-8&oe=utf-8&rls=org.mozilla:es-ES:official&client=firefox-a&c…
Redirecting...
Try to read the SAP documentation and later ask to the forum if you have any doubt with a specif function and/or example. You would consider to research a bit before to ask because the question is so generic.
Regards,
Maybe you are looking for
-
Hi Experts, I am in SAP HR module for the past 2 years.I am preparing for the certification for the same.If anyone has the idea regarding the same please send me the thorough details.I have the hardcopy of THR10 and THR12.Apart from these materials h
-
How to enable "Debug Option" in submit request
how to enable "Debug Option" in submit request
-
Is it possible to enter more than 333 items in a physical inventory Doc.?
Hi Gurus I want to enter more than 10000 line items in a physical inventory document. how can I achieve this please help. We are using SAP IS Retail. Regards Muneer . V.K
-
Desktop images disappeared after upgrade to 10.4.7
I upgraded from 10.4.4 to 10.4.7 using the Combo download available on apple.com. (Every time I tried to download the upgrade through Sofware Update, it kept timing out.) The upgrade fixed the Mac Help app, which was not working. After installing the
-
Can Grid Control on Windows monitor databases on UNIX?
If I install Grid Control on a Windows pc can I use it to monitor databases on UNIX?