External tables with user defined fuction help
Can any one help me
I have problem with using user defined function while creating the External table.
The user defined function Just takes an input empno and returns one number.
CREATE TABLE EMPXT_1(empno NUMBER(4)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY TEST_DIR
ACCESS PARAMETERS(
RECORDS FIXED 4
STRING SIZES ARE IN BYTES
NOBADFILE
NODISCARDFILE
LOGFILE '211205.KNU.LOG'
FIELDS
NOTRIM
(empno POSITION(1) integer external(4) p_1(:empno)
LOCATION
('empxt_1.dat')
REJECT LIMIT UNLIMITED
NOPARALLEL
content of expxt_1.dat
7849
SELECT * from EMPXT_1;
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "double-quoted-string": expecting one of:
"comma, defaultif, nullif, optionally, ), terminated"
KUP-01007: at line 8 column 49
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
hi,
may be u have do these
for ORA-29913 error
1. you have to grant read and write to a directory.
for other errors do check this document
http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a96525/kupus.htm
hope this may help u
Trinath Somanchi
Similar Messages
-
Want to proceed with User defined fuction in Mapping i dont know java
Hi all ,
i dont know Java , i want to proceed with user defined fuction , i have worked with ABAP but not with java , i do want abt some knowledge about it ,
thanks
sridharHi,
Please see the below links ,
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
Difference in using java,xslt,message mapping
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
/people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
/people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings
XSLT Mapping
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
Regards
Chilla.. -
User defined F4 help on a table control field
hi
i m calling table maintenance view on click of a button on module pool screen . i have 1 column internal table which has the contents of help to be displayed on 1 of the fields in table control . how to code and where?
i m using CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
for user defined F4 help . but where exactly to code i dont knw.please help.
thank you.
Ajantha.Hi,
Inthe Module Pool Program, By Default the PROCESS BEFORE OUTPUT and PROCESS AFTER INPUT, at the same way we need to write the POV ...
As same as we need to write the POV enent manuvally, what you writen the Event will be work in the Report but that does not work in the Module pool Program you need to write PROCESS ON VALUE REQUEST
write as PROCESS ON VALUE REQUEST then under this write the Function module to call the F4 for that field
The Code should be like
PROCESS ON VALUE-REQUEST.
FIELD <f> MODULE <mod>. --> " Double click it and write the Function module for this then the F4 help will come for this Field
Look at the below link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Regards
Sudheer -
How to add user defined F4 help for s LDB field?
Hi,
I am using PNPCE Logical Database for a program using the standard HR report category. But I want to have my own restricted F4 help for a particular field.Is it possible to override the standard LDB search help? I tried doing it , but I am getting a syntax error .
MaheshHi Mahesh,
I don't think so that you can attach a User defined F4 help in a standard LDB.
What I would suggest is that you copy the standard LDB into Z LDB from SE80.
Then go to the selection screen of the LDB and either try and attach a F4 help by writing the code in it OR
Hide the field where you want to attach the F4 help with the keyword Exclude(you will have to check on the exact keyword).
And add the same field in the selection screen of the report and define the F4 help.
Do not forget to attach the Z LDB to your report by going to the Attributes.
Please refer to the code below for attaching a generic F4 help to a select options:
report zrich_0001 .
data: begin of ihelp occurs 0,
field type char10,
ftext type char50,
end of ihelp.
data: a_field(20) type c.
select-options s_field for a_field.
initialization.
ihelp-field = 'A'.
ihelp-ftext = 'Description A'.
append ihelp.
ihelp-field = 'B'.
ihelp-ftext = 'Description B'.
append ihelp.
ihelp-field = 'C'.
ihelp-ftext = 'Description C'.
append ihelp.
at selection-screen on value-request for s_field-low.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FIELD'
dynprofield = 'S_FIELD'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = ihelp.
start-of-selection.
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari. -
Error erase Queries in Query Manager- The query is used with user-define...
Hello Experts
I have deleted a User Field that had a Formatted Search and now I can not remove it because it is linked according to a UF, the error message is as follows:
"The query is used with user-defined values [Message 952-23]"
There will be a way to resolve this issue???
Thanks in advanceHi Juan,
I have tried this very limited, but the formid, is this a number in your case?
SELECT * from cshs t0 inner join ouqr t1 on t0.queryid = t1.intrnalkey
where t1.qname = '[%0]'
Running this query I can get the form id that I need to recreate, but I have a feeling you already know the form id, is this correct?
- Is there an error when you try to recreate the form id?
- Will it not let you recreate the same form id because the id is given by the system?
If it is not possible to recreate the form id, please prepare a backup and log a message. Support should be able to correct the entry in table cshs.
Hope it helps.
Jesper -
Can we bind a single external table with multiple files in OWB 11g?
Hi,
I wanted to ask if it is possible to bind an external table with multiple source files at same or different locations? Or an external table has to be bound to a single source file and a single location.
Thanks in advance,
Ann.
Edited by: Ann on Oct 8, 2010 9:38 AMHi Ann,
Can you please help me out by telling me the steps to accomplish this. Right click on the external table in project tree, from the menu choose Configure,
then in opened Configuration Properties dialog window right clock on Data Files node and choose from menu Create -
you will get new record for file - specify Data File Name property
Also link from OWB user guide
http://download.oracle.com/docs/cd/B28359_01/owb.111/b31278/ref_def_flatfiles.htm#i1126304
Regards,
Oleg -
Any example for user-defined fuction
Hi all,
i need to write user defined fuction , i am very much confused with container and ll this stuffs , pleasse send me example with coding explanation
thanking you
sridharHi,
How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Re: Advanced User Defined Functions - Handling Contexts
Posted: Aug 31, 2006 7:45 AM in response to: Kausik M Reply E-mail this post
Hi,
This blog talks about context handling
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
This is will give you a clear idea and will be hwlpful for sure
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
Advanced User Defined Functions - Handling Contexts
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
Regards
Chilla
<i>reward points ..</i> -
Deploying c# procedure with user-defined type
Hi
I've written a c# procedure which makes use of some Oracle user-defined types (c# classes generated using the wizard).
I will be calling the procedure from an Oracle package and one of the out parameters needs to be one of my user defined Oracle objects (basically a record object). My problem is when I come to deploy the package, it tells me "... does not contain any .NET stored procedures that can be deployed to Oracle"
If I change the user defined type (out param) to something like an Int32 or string, it works fine. AFAIK the latest version of ODT/ODAC supports user defined types. For Info I've 11g Client , .Net v4 & VS2010
quick example of procedure entry point.
works:
public static void GetOrderCost(int OrderNr, out Int32 orderCost )
Not work:
public static void GetOrderCost(int OrderNr, out ORDER_RECORD orderCost ) - Note: ORDER_RECORD is the class created using the class generation wizard.
I've spent 2 days now trying to get this to work, perhaps its not possible or perhaps my setup is not quite right but any help gratefully received.
Ianthink I have found some small print which scuppers my plan. Good if some one could confirm and nicer if someone could suggest a workaround (without resorting to writing the UDT to a Oracle table)
Oracle User-Defined Type (UDT) Support
UDTs are not supported within a context connection but they are supported with a client connection. UDTs are not supported as parameters to .NET stored procedures.
Source:
http://docs.oracle.com/cd/E14435_01/win.111/e10927/extenRest.htm#CJAHJBJI
So you can use UDT's within the body of the procedure (and can read them off the DB) but as yet its not possible to use them as parameters. -
Display of document line items with user defined fields
Hi all,
I have created two user defined fields in CI_COBL structure and they are available on OBC4 screen. I maintained optinal for entry in the screen layout. I posted one document with user defined fields and saved.
Now the document is updated in BSEG table. I then display the document, and it display the doucment
But when i double click on the one of the line items system gives an error that there is some problem in customising and entries missing in Table COBM.
I checked OXK3 and see that in field information for user fields, it says entries maintained in table COBM.
But still i couldnt display my line items in detail.
Any solutions
Thanks in advance
RamYes your are looking at the correct sap note.
Things look pretty straight forward in the notes documentation.
1)Extend the VBKRED structure with the fields you want.
2)Populate thse values in the user exit in program DBKMVF02 in FORM routine USER_EXIT_FUELLEN_XVBKRED.
For extending a standard structure you need to create a zstructuree in se11 first and then append it to the standard structure.
In your case you need to extend VBKRED_EX1 structure rather than VBKRED.
Regards,
ravi -
Personalization Publication with user defined / multiple / discrete values
Hello,
I try to personalize a main report ( with Enterprise XI 12.1.0, Crystal Report XI )
( parameter p_company_code ( as string ), with user defined / multiple / discree and range values )
with dynamic recipients ( Crystal Report ).
For a single value it works.
But I did not find a solution how to set up the values for my parameter p_company_code so that I can start the main report
with the following company codes ( 4711, 4712, 0815-0890 ) for one recipients ( only one report for all this company codes )
Thans for your help
H. BlumHi Fabio,
It works as follows.
let's say you have 3 multiple single lines for your cost center variable.
once you are in the folder, select any single value & the layout is ready for planning with the corresponding cost center.
now, select the "Cost center variable row" in the header of the folder within section "Name of Variable" & click on "Trash Can" icon to "Delete Selection" of variable.
this basically deletes all the entered selections (3 entries) & displays for all.
It works this way, because we don't have "resriction of values required by user".
if am not wrong & correct me if am wrong,
overall, this is nothing but equal to "planning level not restricted with any variable".
I just tested this & the flaw in this is that, it is not only displaying for all the initially entered 3 lines but it displays for each & every cost center irrespective of the variable selections.
hope it is clear. -
User-defined value help and dispatcher configuration
HI all.
This is adrian. I gots my hands in PCUI. Facing a prob. Hope someone can help.
The User-defined value help and dispatcher iViews in CRM-PCUI are no longer displayed after I installed CRM 4.0 Support Package 03. I also get a portal error when I execute the link.
Did some one work with such a prob.
Acosta.Adrian,
I did work with a lil of PCUI some time back.
Well the upfront easy solution is upgrade your pack level to one less than the latest.
Julius -
Retain standard SAP order type after copying with user defined order type
Hello SAP Gurus,
We have a requirement of retaining the standard SAP order types after copying with User defined order types. But the issue is we don't want to see the standard SAP order type such as PM01, PM02 in production system while using transaction like IW31 etc.
Is there anybody who has answer to retain these stanadard SAP order types without deleting from system configuration?
Thanks in advance.
Cheers,
VaibhavVaibhav,
When you F4 on the order type field in IW31 you will get the popup showing the order type list. At the top of this list is a button with a green "+" sign (Insert in personal list).
You can use this button to select your favourite list.
This function is available in most F4 drop-down lists.
However, you cannot set this setting for all users. You will need to write an ABAP program to do this.
PeteA -
Problem with user-defined functions in XQuery String
hello
i've a problem with user-defined functions in XQuery String
details are here (the code is not Human-readable via forum's embedded editor ?? strange)
http://docs.google.com/Doc?id=ddqwddsr_21c96d9x
thanks !!See
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
return {$inputtype}
local:test_function("1","2")' returning content) o from dual
Error at line 5
ORA-19114: error during parsing the XQuery expression:
LPX-00801: XQuery syntax error at '{'
3 return {$inputtype}
- ^
michaels> select xmlquery('declare function local:test_function($namecmp as xs:string?, $inputtype as xs:string?) as xs:string?
$inputtype
local:test_function("1","2")' returning content) o from dual
O
2
1 row selected. -
ALV with user-defined buttons on toolbar in wd abap
Hi All,
I have to create an alv with user defined buttons in wd abap on its toolbar.Could any one tell me in detail about it or provide me with any tutorial based on it.
Thanking you all in advance.DATA: LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
DATA: LR_INTF_ALV TYPE REF TO IWCI_SALV_WD_TABLE.
LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) EQ ABAP_FALSE.
LR_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
LR_INTF_ALV = WD_THIS->WD_CPIFC_ALV( ).
WD_THIS->M_MODEL = LR_INTF_ALV->GET_MODEL( ).
DATA: LR_FUNCTION TYPE REF TO CL_SALV_WD_FUNCTION.
LR_FUNCTION =
WD_THIS->M_MODEL->IF_SALV_WD_FUNCTION_SETTINGS~CREATE_FUNCTION(
ID = 'ISSUE' ).
DATA: LR_BUTTON TYPE REF TO CL_SALV_WD_FE_BUTTON.
CREATE OBJECT LR_BUTTON.
LR_BUTTON->SET_TEXT( 'Issue/Receive' ).
LR_FUNCTION->SET_EDITOR( LR_BUTTON ).
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110
Abhi -
It would be very nice and convenient to be able to tag and filter "My Music" (playlists, songs, albums and artists) with user-defined tags. I'm sure quite a few users would like to classify their music by genre. Myself, I would like to tag my albums, assigning them to different virtual collections.
Updated: 2015-07-23Hello and thanks for the feedback!
A similar idea has also been suggested here:
https://community.spotify.com/t5/Live-Ideas/Your-Music-Grouping-or-Sorting-by-Tags/idi-p/744947
Add your kudos and comments there please! ;)
Maybe you are looking for
-
How do I put all my iPod songs into my iTunes library?
I got my iPod in October, and at the time I didn't own a computer. I used my dad's computer to put songs from my CDs onto my iPod. Today I finally bought my own laptop, a Mac iBook. I'm trying to load all my iPod songs into my iTunes, but I can't fig
-
How to suppress hierarchy levels on query visualization
Hello Gurus, Does anybody know how to suppress from a level down on a query visualization? I mean, if I have the following structure... Level 1 Level 2 Level 2 Level 3 Level 3 Level 1 Level 2 Level 3 ...I want users to be a
-
How do I get a strings width w/o getFontMetrics()?
Now that getFontMetrics() is deprecated - how am I supposed to get the width of a string? The FontMetrics class had a stringWidth() method.
-
How to represent an association "many to many" with an association class?
I work with JPA (and TopLink essentials). Class Person Class Project Association M:N between these 2 classes. A person has a function in each project she participates in. My relational schema: table PERSON, primary key person_id, person_name,... tabl
-
Chinese characeter set can not be displayed correctly
I'm using Portal 3.0.9.8.0,but Chinese character set on Label and Button can not be displayed correctly. what is the reason? How to resolve the problem? Thinks Frank