Identify chr(49824) in function
Hi,
I am trying to identify reocrds where i have chr(49824) value. Worked when tried in sql but failed when tried within procedure in plsql?
Works in sql
select *
from temp
where instr(name,chr(49824) )>0
--when trying in small procedure written in plsql, it does not work, please anyone can guide how can i achieve this task in plsql
if instr(V_name,chr(49824)) >0 then
v_name:=replace(v_name, chr('49824'),'') ;
dbms_output.put_line('after removing chr(49824)'||v_name);
end if;Best Regards,
Worked when tried in sql but failed when tried within procedure in plsql?You need to define the term FAILED exactly!!
Your code works for me.
create table temp
as
select 'karthick' || chr(49824) as name
from dual;
select *
from temp
where instr(name,chr(49824) ) > 0;
set serveroutput on
declare
v_name temp.name%type;
begin
select name into v_name from temp;
if instr(V_name,chr(49824)) >0 then
v_name:=replace(v_name, chr('49824'),'') ;
dbms_output.put_line('after removing chr(49824)'||v_name);
end if;
end;
/ Output
table TEMP created.
NAME
karthick�
anonymous block completed
after removing chr(49824)karthick
Similar Messages
-
How to identify update mode in function module for generic extractor
Hi All,
I have created generic extractor using function module which supports delta load.
Delta logic is handeled in coding...by using ROOSGENDLM table.
Now problem is we need to identify the update mode, requested from infopackage in our function module in order to apply logic for Repair full.
I would like to know table or parameter in source system, which contain the update mode (Init , Delta , Full).
Thanks,
NirajHi Niraj
You can use the FM import parameter "i_updmode" (This is of type "SBIWA_S_INTERFACE-UPDMODE") to determine if infopackage triggerred in full or delta mode.
I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR
I_ISOURCE TYPE SBIWA_S_INTERFACE-ISOURCE InfoSource Name
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE Data Packet size
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG Initial Flag
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE Update Mode
I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID Datapacket Id
I_PRIVATE_MODE
I_CALLMODE TYPE ROARCHD200-CALLMODE Single-Character Flag
I_REMOTE_CALL TYPE SBIWA_FLAG
Cheers
Vasu Sattenapalli -
BADI /BAPI /Function Module in PP
PP Experts,
I need help to identify the BADI /BAPI /Function Module in PP for
BOM Explosion multilevel (TXn CS11)
Planned Order Create and Change (Txn MD11/MD12)
Production Order Create and Change (CO01/CO02)
Simulation Order (Co01S/Co02S)
Appreciate your valuable inputs.
Thanks and Regards,
PradeepHi,
Following Enhancements available for the said T-Codes
Transaction Code - CS11 Display BOM Level by Level
Enhancement
PCSD0014 Wissensbasierte AuftragsStl:Status setzen beim fixieren
PCSD0013 Customer-specific processing of an explosion for BOM browse
PCSD0012 Customer - Mat. number/mat. number during material exchange
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0009 Order/WBS BOM, determine URL page
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
Business Add-in
BOM_EXIT BOM User Exit
BOM_IPPE iPPE Checks Within BOM Maintenance
BOM_UPDATE Maintain BOMS
CEWB_BOM_CUS_FIELDS EWB: Customer Fields with BOM Header (Screen Enhancement)
CEWB_BOM_UPDATE Check Bill of Material on Saving
CEWB_ITM_CUS_FIELDS EWB: Customer Fields with BOM Item (Screen Enhancement)
Transaction Code - MD11/MD12 Create Planned Order
Enhancement
LMDR2001 User exits restr. profiles of opt. pur.ord.-based load bldg
LMDZU001 User exits in additional planning
Transaction Code - CO01/CO02/CO01S/CO02s Create production order
Enhancement
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
PPCO0009 Enhancement in goods movements for prod. process order
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
Business Add-in
SIDAT_UPDATE Change date of price simulation
CAUFVD_CHANGE BAdI: Overall Network Scheduling with Selection Option
AFABD_CHANGE Change Relationship
PPPI_SEL_ORD_EXT_REL
Regards
Ahsan -
997 Functional Acknowledgment update to SAP IDOC
When a 997 returns to my BizTalk system I want to update the status code on the IDOC that was sent to the trading partner. First question is which BAPI would I use to update the status code on the IDOC in SAP. Second question is what is the unique identifier in the 997 Functional Acknowledgment that is returned to me to know which IDOC status code to update.
Thanks,
TomHi Tom !
Try this BAPIs:
IDOC_STATUS_CONVERT
IDOC_STATUS_WRITE_TO_DATABASE
Regards,
Matias.
PD: please award points if helpful -
Need a function module to create a Vendor
Hi Experts,
I am wondering if there is a RFC enabled function module to create vendor in background?
My current situation is that I need to create a function module or Identify one standard SAP function module. I have gone through some of the threads on BAPI_VENDOR_CREATE and VENDOR_INSERT or VENDOR_UPDATE, as well as the batch program ( RFBIKR00 ).
BAPI_VENDOR_CREATE - <b>RFC enabled but it is an online creation that requires user interaction</b>
VENDOR_INSERT & VENDOR_UPDATE - <b>Not RFC enabled FM</b>
RFBIKR00 - <b>is a batch program and could not be called using RFC</b>
I need to be able to trigger a function module from the HR system. Has anyone done something similar?
Please help. Points will be awarded.
Thanks and best regards,
Yap Thung Yuen
Message was edited by:
Thung Yuen YapHi,
If there is no option then you can copy the FM VENDOR_INSERT & VENDOR_UPDATE into Z FM's and make the RFC enable.
Hope this helps.
Regards,
Shahu -
IF functions working with T functions
I'm working on a Numbers form where I want two sheets to talk to each other. I started with creating a pop-up menu in one cell, and a completely separate sheet with text information. What I want to happen is when I choose one pop-up selection, the cells in the main sheet will talk to specific cells in the other sheet to create information.
Example: When I choose Bob Jones from my drop down in the Info Sheet document, the cells in the sheet will pull information from Bob Jones' Data Sheet.
I know it should use an =If() function and a =T() function, but it keeps giving me errors! Help!melika0904 wrote:
=IF(B1="Smith, Joe (TEST)",=T(TEST Billing :: C6,"))
Hi melika,
Yvan has provided a pair of corrected formulas. What follows should be considered a tutorial example on trouble-shooting these kinds of errors.
There are at least three visible errors in this formula. At least one of them is one of the finicky little things that catches us all at one time or another.
The = sign serves two purposes in formulas.
Placed at the beginning of the formula it indicates to Numbers that everything following is a formula.
Placed within the formula (as 'B1="Smith, Joe (TEST)" it is a comparison operator that compares the contents of B1 to the text string Smith, Joe (TEST). If they are the same the operator returns TRUE, if they are not identical, it returns FALSE.
The third = sign, placed within the formula, is also interpreted as a comparison operator, and, as there's noting on its left side to compare, will return an error. It is not needed to identify T() as a function. remove the = sign.
The pair of double quotes containing "Smith, Joe (TEST)" identify their contents as a text string.
Near the end of the formula there is a single double quote character ( " ). My assumption is that this is intended to make IF return 'nothing' if the IF condition is not met. The format for that is the empty string—a pair of double quotes with nothing between them ( "" ).
Commas serve as separators between the arguments of functions that have more than a single argument. There are two functions in your formula, IF(), which accepts either two or three arguments, and T() which requires (and accepts) only one argument.
Placed where it is (inside the brackets for T(), the final comma is interpreted as a separator between two arguments for T(). Place one of the two right parentheses immediately after C6 and before the comma. That makes the material following the comma (corrected to "" ) the third argument for the IF function.
As Yvan notes, you could also remove the T() function itself, leaving only the cell address as IF's second argument.
That would make your (edited) formula:
=IF(B1="Smith, Joe (TEST)",TEST Billing :: C6),"")
which returns the contents of cell C6 on the table TEST Billing if B1 contains Smith, John (TEST), or the empty string (which displays as an empty cell) if B1 is empty or contains anything else.
Regards,
Barry -
Hi Friends,
Is there any transaction to see all the RFC Function Modules.
How can we identify all the RFC Function Modules in SAP System.
Any Transaction / Report or any Customizing Path
Regards:
SridharhI,
You can get it from TFDIR table and specify mode as 'R'.
Regards,
Nagaraj -
Email functionality for delivery release via VKM3
Dear All,
My question is -
When a delivery is being released by the credit department by transaction VKM4 a message should be automatically send to the responsible person in the sales office with the confirmation that the delivery has been released.
The message will be send to the @ mail (Lotus Notes) address.
The correct person will be identified via the partner function VW Customer Service which is defined at header level and should be available in the sales order.
I found the user exit Include RVKREFZ2 to be used for this.
Can anyone guide how to use this email functionality and from where the relevant data can be picked up from?
If any further clarifications are needed pls let me know.
Would greatly appreciate your useful feedback.
Thanks.
Regards,
Saurabh.hello Saurabh,
You can use the following code to send an email.
DATA : l_message(100) TYPE c.
DATA : l_subject(50) TYPE c.
DATA : g_email(50) type c value '[email protected]'.
DATA : objheader LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA object_id LIKE soodk.
DATA : docdata LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
DATA : objcontents LIKE solisti1 OCCURS 0 WITH HEADER LINE.
DATA : receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
receivers-receiver = g_email.
MOVE : 'X' TO receivers-express,
'U' TO receivers-rec_type.
APPEND receivers.
CONCATENATE 'Please note that your cheque numbered' p_cheque ' has been dishonoured' INTO l_message SEPARATED BY space.
CONCATENATE 'Cheque numbered' p_cheque 'dishonoured' INTO l_subject SEPARATED BY space.
objheader-line = 'Cheque Dishonoured!'.
APPEND objheader.
mail contents
objcontents-line = l_message.
APPEND objcontents.
objcontents-line = 'You are requested to contact the nearest Regional Office immediately'.
APPEND objcontents.
mail subject
docdata-obj_descr = l_subject.
APPEND docdata.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = docdata
DOCUMENT_TYPE = 'RAW'
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
SENT_TO_ALL =
new_object_id = object_id
TABLES
object_header = objheader
object_content = objcontents
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8
Moreover the email address can be found from the ADR6 table by giving the address number from KNA1 - the customer master.
Happy Programming
Zankruti -
Relation between Enterprise Business Functions and ES Bundles
Hello
Is there a way to identify the Enterprise Business Function corresponding to an Enterprise Service Bundle. I need to get some services activated from an ES Bundle, but not able to locate the corresponding Enterprise Business Functionlaity in SFW5 transaction in the backend ECC. (Is this the right approach?)The Enterprise Business Functionality details of an ESB can be found in the corresponding EhP documentation.
-
Missing TAB constant identifier
Hello all,
I think there needs to be an additional #define in the .h file associated to
a .uir.
I have a panel called PNL, which contains a tab control called TAB, which
contains several tabs called T1, T2...
Then I load the panel into the variable hPnl and I want to access the tabs
as panels with
GetPanelHandleFromTabPage (hPnl, PNL_TAB, 0, &pT1)
I must put 0 to specify that I want the 1st panel. This is error prone if
the tab are reodered.
Why isn't there a set of #define
#define T1 0
#define T2 1
Guillaume Dargaud
http://www.gdargaud.net/The only use for panel constant identifiers is to load the panel with LoadPanel. Once the panel is loaded, you have a panel handle and you never use the panel constant again. This is different than control constants, which you use to identify the control for functions such as SetCtrlVal, etc.
Since all the tab panels are loaded automatically when the panel containing the tab control is loaded, there is no reason to provide constant identifiers for tab panels. You still need a way to get the panel handle for the tab panels, which is why GetPanelHandleFromTabPage is provided.
If you are worried about tabs being reordered, you could retrieve all the tab panel handles immediately after loading the panel containing the tab control, when you are assured that they are in the same order as saved in the .UIR. If the tabs are subsequently reordered, the panel handles are not changed.
Hope this helps,
- jared -
I connect to oracle via R successfully but it has error when I execute functions. like this functions are
ore.connect(conn_string = "ore_wallet", all = TRUE)
Error in .oci.Connect(...) :
ORA-12154: TNS:could not resolve the connect identifier specified
or regression function or ...
but the function of ore.connection is successfully executed.
what do I do?Based on the error message that you posted ore.connect failed so you won't be able to use any ORE functions. Do you need to use Oracle Wallet in this context? If not try something simpler first. If you can connect to a database with sqlplus as user/pass@db then ore.connect(user = "user", password = "pass", conn_string = "db") should also work. If the DB is running locally you can use conn_string = "" (in this case sqlplus user/pass should work as well).
-
Trouble with inserting a string containing a single quote
Using php with Oracle
If I do the following two lines before sending my $Query string through the parse function
$name = "Dominick's";
$Query = "INSERT INTO customers (name) values ('$name')";
it gives me the following error:
Warning: Ora_Parse failed (ORA-00917: missing comma -- while processing OCI function OPARSE)
If I try and force the single quote to be surrounded by double quotes and therefore not be confused:
$name = "Dominick's";
Query = "INSERT INTO customers (name) values (\"$name\")";
Trying that yields the following error:
Warning: Ora_Parse failed (ORA-01741: illegal zero-length identifier -- while processing OCI function OPARSE)
Help
JeffIf it is possible (and here it is) you should use str_replace instead of ereg_replaceThanks for the reminder about str_replace().
$Query = "INSERT INTO customers (name) values ('".addSlashes($name)."')";This gives an invalid Oracle SQL statement, which will generally fail with
ORA-01756: quoted string not properly terminatedFor Oracle, single quotes must be doubled, not escaped with backslash.
Of the solutions to insert the data, I'd prefer using bind variables
since no escaping or quote doubling is needed.
-- CJ -
Calendar popup for a date field in ITS service
Hi
I am working with SRM EBP module we want to add date help(with calendar function) to existing date fields in Shopping cart and PO screens . I found some HTML and scripts in SYSTEM and BBPGLOBAL(assuming in regular ITS this service might be GLOBAL) services but not sure which ones to use if anyone used date functionality or even have access to Standard SAP ITS screens that already have date field with calendar functionality can you help???????????????
Scenario what we are trying to do
1) On the shopping cart details there is a require on field
2) we are trying to add a f4 icon(which we did successfully)
3) when a click happens on the icon a calendar popup should appear(for this we are trying to identify what standard SAP function we can use if not i got a JavaScript on the web trying to see how to integrate that script)
Thanks in AdvanceHi
I browsed thru other services i found PZLE_06 and there is a date field with popup but difference between ESS and SRM is ESS i saw uses webgui concept and SRM has different approach if you can point me to the html template in one of the service where the calendar function is called that will be helpful i tried no luck i got the funciton issue is integrating it with existing code in HTML i mean calling the javascript from HTML i am not able to .
Thank You
Vineela -
Uploading a file in bsp application
i want to upload a file in abap.
i am using gui_upload function.
DATA: BEGIN OF pic_tab OCCURS 10,
data TYPE sdokcntbin,
END OF pic_tab.
DATA: aux_string TYPE string.
DATA: aux_length TYPE i.
TABLES: zpro_pa,
zbsp_pkgklg.
PARAMETERS: p_packid LIKE zpro_pa-package_id,
p_file(256) DEFAULT 'c:\test.jpg'.
START-OF-SELECTION.
aux_string = p_file.
DELETE FROM zbsp_pkgklg WHERE type = 'PACKAGE'
AND identifier = p_packid.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = aux_string
filetype = 'BIN'
IMPORTING
filelength = aux_length
TABLES
data_tab = pic_tab
separator_not_allowed = 10
zbsp_pkgklg-type = 'PACKAGE'.
zbsp_pkgklg-identifier = p_packid.
LOOP AT pic_tab.
IF aux_length > 1022.
zbsp_pkgklg-length = 1022.
aux_length = aux_length - 1022.
ELSE.
zbsp_pkgklg-length = aux_length.
ENDIF.
zbsp_pkgklg-line = sy-tabix.
zbsp_pkgklg-data = pic_tab-data." here not able tocopy
INSERT zbsp_pkgklg.
IF sy-subrc <> 0.
MESSAGE a001.
ENDIF.
ENDLOOP.
am not able to copyfrom pic_tb field data into zbsp_pkgklgfield data.
can anyone tell whats the problem?.You'll find about a million things in this forum alone on this topic.
<a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>
I would suggest you do a search not only in this forum for "file upload" but also take a look at the weblogs from Brian McKellar and Thomas Jung. Both have many examples of this topic. -
Changing of Sales Employee in Sales order
Dear Experts,
We wish to disable the changing of Sales employee in a sales order in VA02 mode. However, in VA01 we need to keep it open for editing.
We have also tried through the customising in partner determination procedure but could not achieve the desired scenario as it disables ALL changes to the partner, both in VA01 & VA02.
Moreover, we have tried through the Function module MV45AFZZ, as one of the messages in the forum suggested, for a similar case, but unfortunately could not call up the particular field in there for the sales employee. At best it responds to KUAGV-KUNNR, where as the sales employee is much below that.
The soonest help is pleaded for.
Thanks and Regards,
TariqHi Smile,
Thanks for the prompt response, but we did try as sugested for the user exitbut unfortunately we are unable to call up the screen field : GVS_TC_DATA-REC-PARTNER for the purpose.
You would recall that the said field is identified by the partner function VE (Sales employee) and we intend to identify and attack THIS field for our purpose.
Any further pointers please?
Thanks once again.
Regards,
Tariq
Maybe you are looking for
-
I can't burn a disc from iTunes download....error 2131
error message 2131 stops me from burning a disc from my recent iTunes download. How can I get around this or fix this ......Windows XP.
-
I want to set up WEP 128 security
I am trying to set up WEP 128 security on an Airport Extreme base station because of one older computer that is not able to handle WPA. The box says that this is supported, but the drop down menu for security settings does not show WEP as an option.
-
UK Iphone4 with US itunes account
Hi - please can anyone advise on whether there will be any issues with me syncing my (UK) iphone 4 with my US itunes account?
-
Can you tell me how to know who deleted the user?
Hi In my system, one user ID was deleted, Can I know who deleted this User ID? Is there any table or Function Module to know it ? Regards,
-
Resizable, draggable, snap-to-each-other panels
Hello! I seem to remember a sample file available for Flex that consisted of a button to add panels to the stage. Once a panel was on the stage, you could resize it, drag it around, or snap it to the panels already on the stage. I thought I linked to