Replace functionality at specified position
Hi all,
My oracle db version is 11g Enterprise Edition Release 11.1.0.6.0
i am trying to find out how to perform replace operation on a varchar2 data value which has a format delimited by '-'.
fior instance my dataset can be like
a-b-c
x-y-z-d-f-g-h
ab-dvs-p-qMy replace operation should be able to replace the delimited value at specified delimited position: something like
FUNC_REPLACE('a-b-c',2,'x') => results in 'a-x-c'
FUNC_REPLACE('ab-dvs-p-q',1,'Z') => results in 'Z-dvs-p-q'I have been trying to figure this out but no real luck yet.. please help
Edited by: Chaitanya on Dec 7, 2011 12:42 AM
Hi,
version without reqexp, a bit faster
with tst
as (select 'a-b-c' str, 2 pos, 'x' replace_char from dual union all
select 'ab-dvs-p-q' str, 1 pos, 'Z' replace_char from dual
select replace( str
,substr( '-'||str||'-'
,instr('-'||str||'-', '-', 1, pos)+1
,instr('-'||str||'-', '-', 1, pos+1)-instr('-'||str||'-', '-', 1, pos)-1
,replace_char
from tst
Similar Messages
-
How to make customize Replace function with Positions not pattern ?
Hi
Due to Repalce with patterns in flex, i am facing issue.
I want to make cutomize replace function with parameters
1 Parameter - String to replace
2 Parameter - Start Posion.
3 Parameter - Last position
which return string value.
For Example
replaceInWholeString(str:String, sPos:Number, lPos:Number ):String
values like
1st paramter - "asked"
2nd Paramter - 11
3rd Paramter - 15
Original String :: I want to reply
Output string : I want to asked
Please Reply ,if someone having solution
Thanks
Sunil RanaYou can use any number of the String methods to acomplish this.
I would proabably go with something like: slice(...) + input + substr(...); -
Replace function for HTML tags
Hie Guys,
I would like to get rid of the HTML tags from a column/object in my report using the "Replace" function. Basically, I want to replace whatever the content is between "<" & ">" i.e. the opening and closing tags. I know I can use the "Pos" function to identify the position of "<" & ">", but I am not sure exactly how to achieve this in Webi. FYI - "Read content as HTML" & "Read content as Hyperlink" did not resolve the issue. Can anyone please help? Thanks.Hi Jeewan,
It will be very tedious to do this at Webi level.
I have tried below example. It might help you to work around your issue; however, not completely:
1. Created an Excel and inserted single value in first column as:
<html><b>this is yuvraj</b></html>
2. Used it as source and created a Webi report in Rich client.
3. Applied SubStr recursively using Pos function and created below variables:
test : =Substr([column_1]; Pos([column_1];">")+1;Length([column_1]))
test1: =Substr([test]; Pos([test];">")+1;Length([test]))
test2 : =Substr([test1]; 0;Pos([test1];"<")-1)
The output has been attached. -
Replace function and '-' character
Hello,
How can I use '-' character in a REPLACE function?
create or replace procedure zd authid current_user as
begin
execute immediate ' create table select ZDK
Replace(SO_HEADER.ZDNUMBER,'' - '','' '') from so_header';
end zd;
Thanks a lot,Hm. I don't see that you want to replace the minus "-". If you truely ment the underscore "_" then you are right. Sometimes it must be escaped since it has the special meaning of "any single character" (same as the ? wildcard for microsoft users). However this is only true for the LIKE operator. Not for the REPLACE function.
examples (non dynamic)
select SUBSTR(Replace('123\456\789\', '\'),7,7) from dual;
789
select SUBSTR(Replace('123_456_789_', '_'),7,7) from dual;
789The escape keyword in not allowed anywhere inside the replace function.
What was your intended input and output?
Just a recommendation. You don't need to specify the third paramater if you just want to remove the search string.
And your insert statement is not dynamic. If you don't create the table dynamically then you can simply write the insert statement inside pl/sql without the need to make it dynamic. This would make testing and debugging much easier!
Edited by: Sven W. on Jul 27, 2011 7:56 PM -
Create Or Replace Function Error
Hello,
I'm doing text mining using Oracle SQL Developer: ODMiner.. I imported the data "WEBLOG" into a table.. This weblog data consist of users activity, date, time, url, etc. The first step I took was to use a function to transform date and time that I have in the data table, into a number representing the 40 mins since 01-01-1990. I did this by dividing it by 2400 (seconds in 40 mins). The main purpose is to have a time frame for the sessions.
I used the following code,
CREATE OR REPLACE FUNCTION ssnDate(
DATE IN VARCHAR2 DEFAULT 03-01-18,
TIME IN VARCHAR2
) RETURN NUMBER
AS
BEGIN
RETURN TRUNC((to_date(DATE||' '||TIME, 'DD-MM-YY HH:MM:SS')- to_date('01-JAN-1990','DD-MON-YYYY')) * (86400/2400);
END ssnDate;
This was what appeared in the log after running the statement,
FUNCTION ssnDate compiled
Warning: execution completed with warning
After this, I tried to create a VIEW to transform the DATE and TIME with the ssnDate that was created earlier on, and concatenate the CS_URI_STEM (which is the resource accessed), and CS_URI_QUERY (which is the the query, if any, the client was trying to perform)into a new field called WEB_LINK.
This is the code used,
CREATE OR REPLACE VIEW WEBLOG_VIEWS("C_IP", "WEB_LINK", "CS_USER_AGENT", "SESSION")
AS
SELECT ssnDate(LOG_DATE, LOG_TIME) AS 'SESSION',
C_IP,
CS_USER_AGENT,
(CS_URI_STEM||'?'||CS_URI_QUERY) AS WEB_LINK
FROM WEBLOG;
Now from this I got the following error..
Error starting at line 1 in command:
CREATE OR REPLACE VIEW WEBLOG_VIEWS("C_IP", "WEB_LINK", "CS_USER_AGENT", "SESSION")
AS
SELECT ssnDate(LOG_DATE, LOG_TIME) AS 'SESSION',
C_IP,
CS_USER_AGENT,
(CS_URI_STEM||'?'||CS_URI_QUERY) AS WEB_LINK
FROM WEBLOG
Error at Command Line:3 Column:38
Error report:
SQL Error: ORA-00923: FROM keyword not found where expected
00923. 00000 - "FROM keyword not found where expected"
*Cause:
*Action:
I don't get where I'm going wrong with this.. This is the data preparation stage which requires me to prep the data before applying modeling techniques or algorithms.. The next step would be grouping the data, based on the session time, ip and the user agent of each session along with the web_links fields visited by the user in that session.
I would really be grateful for any inputs on where I'm going wrong and any solutions for that!Ok, not sure I really understand, but I posted the query and this is the output I got..
ORA-31603: object "WEBLOG" of type TABLE not found in schema "WEBLOG_TABLE_OWNER_NAME"
ORA-06512: at "SYS.DBMS_METADATA", line 2625
ORA-06512: at "SYS.DBMS_METADATA", line 2668
ORA-06512: at "SYS.DBMS_METADATA", line 2983
ORA-06512: at "SYS.DBMS_METADATA", line 3897
ORA-06512: at "SYS.DBMS_METADATA", line 5678
ORA-06512: at line 1
31603. 00000 - "object \"%s\" of type %s not found in schema \"%s\""
*Cause: The specified object was not found in the database.
*Action: Correct the object specification and try the call again. -
Can I use Replace function in a decode??
Hello,
I am trying to use replace function inside a Decode Function,
Here is how I am doing it:
select
SUBSTR (
DECODE (
IH.DRVD_ALT_MAIL_ADDR_PRIM_FLAG,
'N',
REPLACE (
ih.subs_addr_1
|| ' '
|| ih.subs_addr_2
|| ' '
|| ih.subs_city
|| ','
|| ih.subs_state_code
|| ' '
|| ih.subs_zip_code,
'Y',
REPLACE (
IH.PRINT_ALT_MAIL_ADDR_LINE_1
|| ' '
|| IH.PRINT_ALT_MAIL_ADDR_LINE_2
|| ' '
|| IH.PRINT_ALT_MAIL_ADDR_LINE_3
|| ' '
|| IH.PRINT_ALT_MAIL_ADDR_LINE_4
|| ' '
|| IH.PRINT_ALT_MAIL_ADDR_LINE_5
|| ' '
|| IH.PRINT_ALT_MAIL_ADDR_LINE_6,
) 1,
50
address from x
Can anyone please tell me what am I doing wrong here, It always gives me an error about missing a right parenthesis.
Thanks in advance.Hi Jimmy,
Looks like you are missing the first comma in the SUBSTR function
SELECT SUBSTR (
DECODE (
ih.drvd_alt_mail_addr_prim_flag,
'N', REPLACE (
ih.subs_addr_1
|| ' '
|| ih.subs_addr_2
|| ' '
|| ih.subs_city
|| ','
|| ih.subs_state_code
|| ' '
|| ih.subs_zip_code,
'Y', REPLACE (
ih.print_alt_mail_addr_line_1
|| ' '
|| ih.print_alt_mail_addr_line_2
|| ' '
|| ih.print_alt_mail_addr_line_3
|| ' '
|| ih.print_alt_mail_addr_line_4
|| ' '
|| ih.print_alt_mail_addr_line_5
|| ' '
|| ih.print_alt_mail_addr_line_6,
), -- HERE
1,
50
address
FROM xRegards
Peter -
Replace() function doesn't work in Application Designer?
I'm using PeopleSoft Application Designer 8.51. I'm trying to do a simple Replace function so I can escape single quotes rather than allow them to blow up the sql query.
&deptid = Replace(&deptid, "'", "''");
App Designer chokes when I hit Save: "Invalid function parameter type. (2,19)"
According to the docs I'm using this correctly: http://docs.oracle.com/cd/E26239_01/pt851h3/eng/psbooks/tace/book.htm?File=tace/htm/tace14.htm#H4095
Even if I try to execute the example right out of the documentation, I get the same error: REPLACE("StringFun", "Fun", "Number");
Is this a bug in app designer? REPLACE is a super common thing, it's not something obscure. How can this not work?
Thanks in advance.I figured this out. “Replace” is a strange duck function that relies on offsets. “Substitute” is the magic I needed, works just like I was expecting Replace to work. The documentation I was reading on Replace was for “ PeopleSoft Analytic Calculation Engine” rather than peoplecode. I’ll pay closer attention to that next time. Maybe this will help someone else...
-
Tab canvas does not put the items in their specified positions
Hi all,
I have created a form with a tab canvas with three tab pages, each page has it's own text items.
I saved this form without any problems.
When i open this form again, i found that, some of the items in the first tab page are not put in their positions in this page, although the x position and y position is still correct in the property pallette.
i overcome this by moving these items with the mouse to any direction and returning it back, but the problem comes after saving and trying to open the form again.
Not : this occures only in the first tab page, i tried to swap the second tab page(page7) with the first tab page (page6), now the problem occures with page7(which became the first after swap) .
Please helpYes, the items are in a frame.
Both automatically and locked for the frame upate layout property causes the problem.
I want to tell that the form in run time is ok, but in the forms builder the text items are not in their specified positions.
Then when changing any property for the items even if it was not related to the item position, the item is then displayed in the correct position. -
Replace function not working for XML CLOB data
Hi all,
I am generating XML using DBMS_XMLGEN in oracle 10g. After generating the XML, I am replacing the ROW tags with appropriate tag name using REPLACE function. Sometimes the tag name is not replaced correctly.
Eg.I am replacing </Cargo_ROW> with </CargoDetail>. But sometimes in one xml, this tag is coming as </CargoDetROW> or </CargoDetaiW>. The XML size is always huge and the same tag is repeated so many time in the loop and in the same XML, only one tag will be replaced incorrectly. This also not happening for all XMLs.
If any one knows the cause about this problem or solution, please share the same.
thanks,Yes Anton, you are right..
It was typecasting problem
replace supports clob
Check this out
SQL> declare
2 xmldata clob;
3 Begin
4 xmldata:='<Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM" versio
5 <Transaction>
6 <TransactionType>ORIGINAL</TransactionType>
7 <ControlNumber>60022449779</ControlNumber>
8 <BookingHeader>
9 <PortCodeOriginal>GBSOU</PortCodeOriginal>
10 <Contact>.</Contact>
11 <PhoneContact>.</PhoneContact>
12 </BookingHeader>
13 <PartyInformation>
14 <PartyDetails>
15 <PartyId>10002866</PartyId>
16 <Type>SHIP</Type>
17 <Name1>L LTD.</Name1>
18 </PartyDetails>
19 </PartyInformation>
20 <Cargo>
21 <CargoDetROW>
22 <CargoHeader>
23 <CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
24 <CargoId>RW9330P013948</CargoId>
25 </CargoHeader>
26 <CargoDimensions>
27 <Length>1</Length>
28 <Width>2</Width>
29 </CargoDimensions>
30 </CargoDetail>
31 <CargoDetROW>
32 <CargoHeader>
33 <CargoReceivedSeqNo>600015391791</CargoReceivedSeqNo>
34 <CargoId>RW9330P01394AA</CargoId>
35 </CargoHeader>
36 <CargoDimensions>
37 <Length>2</Length>
38 <Width>2</Width>
39 </CargoDimensions>
40 </CargoDetail>
41 <Cargo_ROW>
42 <CargoHeader>
43 <CargoReceivedSeqNo>600015391792</CargoReceivedSeqNo>
44 <CargoId>RW9330P01322</CargoId>
45 </CargoDetaiW>
46 <CargoDimensions>
47 <Length>1</Length>
48 <Width>2</Width>
49 </CargoDimensions>
50 </Cargo_ROW>
51 </Cargo>
52 </Transaction>
53 </Message>';
54 xmldata:=to_clob(regexp_replac(xmldata,'</Cargo_ROW>|</CargoDetaiW>|</CargoDetROW>','</CargoDetail'));
55 xmldata:=to_clob(regexp_replace(xmldata,'<Cargo_ROW>|<CargoDetaiW>|<CargoDetROW>','<CargoDetail>'));
56 dbms_output.put_line(xmldata);
57 end;
58 /
<Message transaction_log_id="" extraction_date="25/11/09 09:52:03 AM"
version="1.0">
<Transaction>
<TransactionType>ORIGINAL</TransactionType>
<Contro
lNumber>60022449779</ControlNumber>
<BookingHeader>
<PortCodeOriginal>GBSOU</Por
tCodeOriginal>
<Contact>.</Contact>
<PhoneContact>.</PhoneContact>
</BookingHead
er>
<PartyInformation>
<PartyDetails>
<PartyId>10002866</PartyId>
<Type>SHIP</Ty
pe>
<Name1>L
LTD.</Name1>
</PartyDetails>
</PartyInformation>
<Cargo>
<CargoDetail>
<CargoHea
der>
<CargoReceivedSeqNo>600015391790</CargoReceivedSeqNo>
<CargoId>RW9330P01394
8</CargoId>
</CargoHeader>
<CargoDimensions>
<Length>1</Length>
<Width>2</Width>
</CargoDimensions>
</CargoDetail>
<CargoDetail>
<CargoHeader>
<CargoReceivedSeq
No>600015391791</CargoReceivedSeqNo>
<CargoId>RW9330P01394AA</CargoId>
</CargoHe
ader>
<CargoDimensions>
<Length>2</Length>
<Width>2</Width>
</CargoDimensions>
<
/CargoDetail>
<CargoDetail>
<CargoHeader>
<CargoReceivedSeqNo>600015391792</Carg
oReceivedSeqNo>
<CargoId>RW9330P01322</CargoId>
</CargoDetail>
<CargoDimensions>
<Length>1</Length>
<Width>2</Width>
</CargoDimensions>
</CargoDetail>
</Cargo>
</Transaction>
</Message>
PL/SQL procedure successfully completed.
SQL> Twinkle
Edited by: Twinkle on Nov 26, 2009 6:05 PM -
Hello SAP Gurus,
I am getting this error while trying to close a material in Material Ledger Cockpit
Internal error in FORM/FUNCTION CKMC_REVALUATE_ENDING_STOCK in position 1 with RC
Message no. C+099
Procedure
Please inform your system administrator.
CKMC reports no inconsistency.
Does anyone have any suggestion?
Cheers,
TDShipa,
Thanks for your suggestions. Thanks for taking the time to help.
I was able to resolve these issues using the following steps in our sandbox/test environments. I have also included other problems I faced in material ledger month end closing steps for the benefit of readers.
**** Caution: Do not do the following steps in production environment. You will destroy your production data irretrievably. Material Ledger is unforgiving!!! ***
1. For the materials with "Internal Error in Form/Function etc issue, I performed a CKMM in the respective plants changing for 3S to 2S and then did the same in reverse (2S to 3S). Then ran the ML close. This seems to have temporarily solved the problem.
2. I was also getting a short dump -- either during MMPV or during period close in the cockpit. The message at both times was "Error in MLCCS ...". I realized it related to Cost Component Split. I identified the company codes of the materials that caused the errors, then got all the plants within each of these company codes. I ran MLCCS_RESET and then MLCCS_Startup in SE38. Then ran MMPV/ML Close. This seems to have resolved the issues at least temporarily.
3. Occasionally I noticed some "material valuation is inconsistent in valuation area xxxx" error. I executed steps 1 and 2 above in succession. This seems to have resolved the issue temporarily.
4. There was also the issue of "duplicate entry in CKMLKEV" while performing Single/Multi-Level steps in the closing cockpit. This pointed to MLCCS. So I ran step 2 above. Again this seems to have fixed the issue temporarily.
I was able to accomplish all of these using the steps above because these were in our test environments. The reasons as to why these happened are manifold:
MMPV was not carried out for a long, long, long time in certain plants within a company code. When ML is active, it is necessary to close previous period. In cases where MMPV was not carried out for a long time, I ran CKMHELP program to set the material status to 70 for the immediately preceding posting period. This helped run the ML cockpit for the current/previous periods.
Users were processing too many transactions with unrealistically large quantities and prices resulting in overflow errors. I carried out reversal of movements for each process category to reduce the inventory balances to reasonable quantities, and ran MR21 to set the prices correctly. This helped resolve the overflow issue.
Reckless, repeated running of CKMM and MLCCS_Reset/MLCCS_Startup also contributed to these problems. Every time a standard had to be released, but the material status in ML is "30-Quantities and Values entered", would prevent users from doing that. So they resort to CKMM and then reset status using CKMHELP program to set the status to 10 and then release the new cost. It works, but wreaks havoc on ML as a whole eventually.
Hope my comments are useful for some!!!
Cheers,
TD -
Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 4
Hi,
Whenever I am trying to post a GR against PO I am receiving the following error message:
Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 4
I am not able to understand what this message is telling.
How to resolve. Pl suggest.
Regds
Amitavaerror is because of a program bug,
fix can be found in OSS note 1015263 -
Internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC
Hi All,
when I try to do MFBF with reporting points I'm getting error "internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC4" can anybody give me some idea to how to comeout of this error.
Thanks and Regards
Ramanawe have contacted SAP and they have resolved the issue.
Regards
Ramana -
Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4
The order settlement terminates with the error Message no. MLCCS 099 "Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4".
The material ledger is active. The actual cost component split is active. I want to carry out the order settlement for one plants.
With the same production material no.in the plant. There are many other productin order are settled in thid period. But, only one production order got the error message, why?
I knew that I could change the Price determ. (in material master) from 3 Single-/multi-level to 2 Activity-related, then I can continute settlement transaction in CO88. But , I want to know what's wrong this the order. What should I check about the order. Why other orders are settled without error with the same material no, and plant.
I had check about SAP note 711416 & 729901 & 523100 & 623701 & 653523, those can't slove my problem in CO88.Thanks for your answer.
But, I have two production orders product the same material in the same plant and will be settled in this period. Both of those two orders were consumed material in 3 months ago. But, only one of them were terminated with error message in CO88. Why? How can I find out the difference between those two orders? They seems the same.
For SAP note 623701 & 871926 & 867755, I think we already implemented those. I had found program "MLCCS_KO88_TREATMENT " in SE38. And, I can find the message 013 & 015 in message class MLCCS. So, do you have other commendations?
Do you know how could I check about "Display order history" that mentioned in note 86775. Which T-code should I go to?
Thanks a lot. -
Prolem in CLOB replace function
Hi,
I am working on Oracle 10g (release 2).
Currently facing problem in replace function
My given patterns are
Replace(+string+, varchar2, clob)
Replace(+String+, clob, clob)
In both casese, I'm getting ORA-22828 error.
Can anyone please suggest the solution.
Thanks.Please see
http://asktom.oracle.com/pls/asktom/f?p=100:11:3388795154384573::::P11_QUESTION_ID:1533006062995 -
Replacement function modules/method for obsolete Funtion Modules in ECC 6.0
We are working on Upgrade Project and need your help in finding the replacement Function module/ Methods for following obsolete Function Modules:
1. GET_FIELDTAB
2. WS_EXCEL
3. HR_DISPLAY_BASIC_LIST
4. LOG_SYSTEM_GET_RFC_DESTINATION
5. HELPSCREEN_NA_CREATE
6. TR_RELEASE_COMM
Thank in Advance.
Sarita.
Edited by: Sarita Yalamati on Mar 28, 2008 1:23 PMHi sarita,
for GET_FIELDTAB use 'DDIF_NAMETAB_GET'..here is sample code
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
LANGU = SY-LANGU
TABNAME = C_STRUCTURE_NAME
WITHTEXT = ' '
TABLES
FIELDTAB = IDFIES
EXCEPTIONS
INTERNAL_ERROR = 01
NO_TEXTS_FOUND = 02
TABLE_HAS_NO_FIELDS = 03
TABLE_NOT_ACTIV = 04.
Replacement :
CALL FUNCTION 'DDIF_NAMETAB_GET'
EXPORTING
TABNAME = C_STRUCTURE_NAME
ALL_TYPES = ' '
LFIELDNAME = ' '
GROUP_NAMES = ' '
UCLEN =
IMPORTING
X030L_WA =
DTELINFO_WA =
TTYPINFO_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
X031L_TAB =
DFIES_TAB = IDFIES
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
For WS_EXCEL use GUI_DOWNLOAD.. here is sample code
CALL FUNCTION 'WS_EXCEL'
EXPORTING
FILENAME = 'D:\FILE1.xls'
SYNCHRON = ' '
TABLES
DATA = itab
EXCEPTIONS
UNKNOWN_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Repalcement :
data : l_filename type string.
l_filename = 'D:\FILE1.xls'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = l_filename
FILETYPE = 'ASC'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'D:\FILE1.xls'
APPLICATION =
PARAMETER =
DEFAULT_DIRECTORY =
MAXIMIZED =
MINIMIZED =
SYNCHRONOUS =
OPERATION = 'OPEN'
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
BAD_PARAMETER = 3
FILE_NOT_FOUND = 4
PATH_NOT_FOUND = 5
FILE_EXTENSION_UNKNOWN = 6
ERROR_EXECUTE_FAILED = 7
SYNCHRONOUS_FAILED = 8
NOT_SUPPORTED_BY_GUI = 9
others = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Maybe you are looking for
-
I deleted by mistake iMessage! restore
I deleted by mistake iMessage! How to restore-? TY
-
P67A-GD65 (B3 ) & Windows 7 64Bit Boot Issue
Hi, I feel the need to revisit this old forum post as I do not believe it has been fully resolved: https://forum-en.msi.com/index.php?topic=156082.0 In summary the issue is "Most times the machine boots and performs flawlessly for hours, but often it
-
Understanding how mobility between a 3850 MA and 5760 MC should work
We just recently purchased some 3850s and are considering leveraging their wireless capabilities. We have one building that utilizes HREAP and have discovered the WLC 5760 no longer supports that so they are stuck on our old 5508s for now. One though
-
Any idea when the new compressed Olympus raw format for the E3 will be available for Photoshop CS2 and Lightroom 1.2?
-
Could someone please help with this Using BW 3.5 We have recently applied Support Packs moving from SP14 to SP20 When excuting queries in succession we have noticed that the when executing next query it retains values of the parameters from the previ