How to capture First Statement
Hi All
I want to search some key words like Search and condense used in programs, all programs i am reading in internal table one by one (itab).
example
loop at itab.
itab-text CS 'SEARCH '.
i am looking for the text which starts with Search means
Search a in b.
.......... search a in b.
..................... search a in b.
cosider dots as a spaces (blanks, take it like it is written after some offset)
any format in particular line where it should starts with search.
and i want to avoid text like
loop at itab " for search a in b.
or any thing which is not satrts with search key word as well when its present after some letters also i want to avoid.
i mean to say that in particular line of program which should starts with Search first character should be search may be it is after some spaces.
pls suggest how to achieve this
thanks in advance.
hi,
Use
SCAN ABAP SOURCE OBJECT KEYWORDS INTO T_KEYWORDS..
.etc.
Using the above statement you can have all the keywords in a program into the internal table t_keywords. Try with F1 for more information.
Using SCAN you can even check for INCLUDES and also any Z Function modules using the SEARCH key word in your custom program.
Regards
Sharath
Similar Messages
-
How to capture first two digit in a number
Hi,
I have numbers with differeent lenth in a variable How to capture first two digit??
Thanks.Hi,
We can achieve that using the following methods:
DATA : loc_1 type string,
loc_2(2) type c.
loc_1 = '123423428340923990'.
loc_2 = loc_1+0(2).
Here you will get only the first two digits.
You can use move statement also.
MOVE LOC_1(2) TO loc_2.
If you are having mixed string with characters and digits mixed together i.e. like this 'test01test03sample01'.
You can so that using this method.
data : lv_length type I.
loc_1 = 'test01test03sample0'.
LV_LENGTH = STRLEN( loc_1 ).
DO LV_LENGTH TIMES.
*&-- Read from first string validing the numeric fields and move your first two digits to the required variable --&*
ENDDO.
Hope it will be useful.
Regards,
Sakthi
Edited by: Sakthi Saravanan C on Oct 8, 2010 6:45 PM -
we have 1 server oracle and many clients.
when client sends sql statement to server.How to Capture sql statement to analysis berfore it sent to server and execution.
Edited by: 955185 on Aug 27, 2012 4:22 AM955185 wrote:
yes. how to do this?Check these link all of them talking about Already executed sql in database by Users , but i don't know if what you ask is possible since they already connect to database
If you attending to analysis sql read the below links and start your analysis,
Last executed sql
http://www.databasejournal.com/features/oracle/article.php/3373701/Watching-SQL-Execute-on-Oracle---Part-I.htm
http://stackoverflow.com/questions/55899/how-to-see-the-actual-oracle-sql-statement-that-is-being-executed -
How to capture the first execution of a report
Hi,
I am executing a report in background. The first time the report is executed I have to do a different processing. After the 1st execution I have to different processing.
Someone please tell me how to capture the 1st execution of a report. Is there a system variable ?
Appreciate your <removed by moderator> response.
Thanks,
Dikshitha G
Edited by: Thomas Zloch on May 12, 2011 11:36 AMKeshav.T wrote:
Are you going to create a Z table for this ???? ... Is there nobody to advice you in your firm ???
Hello Keshav,
A couple of years ago i would have recommended using the INDX table, but it has got it's demerits.
Maintenance of Z-table is easier than the INDX table. Say there is some error in the program & you want to override the flag. Will it be easier to do so in the INDX table or via SM30 for the Z-Table?
As a matter-of-fact i will recommend using the solution provided by Florian the TVARVC technique.
1. Create a parameter(specific to your program) & transport it.(See the trxn STVARV)
2. In your program check the value of this param & set it accordingly.
Using TVARVC you will 2 birds with one stone:
1. You don't have to create a custom table.
2. Easy maintenance via STVARV trxn.
Hope you get the point!
Cheers,
Suhas
PS: In our system we have a Z-table designed specifically for this particular purpose. All the programs having this kind of requirement refer to this table. -
How to keep first form window state maximize when you called the second for
HI,
how to keep first form window state maximize when you called the second form ?
ThanksHere is sample of doing this.
Chris -
How to capture a parameter value in SQL QUERY of scale marker using GO URL
Hi,
Can any one please tell me how to capture the parameter value from go url inside Where clause of Scale Marker.
I am trying to sift the position of scale marker based on SQL Query.
Thanks-Bhaskar Gouda.
Edited by: 961171 on Sep 25, 2012 12:33 AMSince this is a synchronous interface, where source is a soap(proxy) call and target is JDBC in the first mapping both of them are request scenarios.
Source Structure:
RootNode
Request 1...unbounded
No_of_Days 1.1 String
Target Structure:
RootNode
Statement
TableName
Action mapped to SQL_QUERY
Access - SELECT DISTINCT AL.EC_NO,DP.DATE_TO_FORMAL FROM T_APPLICATION_LIST AL,(SELECT DE.EC_NO AS "EC_NO", DE.PACKAGE_NO AS "PACKAGE_NO",PC.DATE_TO_FORMAL AS "DATE_TO_FORMAL" FROM DAICYO_ECNO DE,PACKAGECTL PC WHERE DE.PACKAGE_NO = PC.PACKAGE_NO AND PC.DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$'))) DP WHERE AL.EC_NO IN (SELECT EC_NO FROM DAICYO_ECNO WHERE PACKAGE_NO IN (SELECT PACKAGE_NO FROM PACKAGECTL WHERE DATE_TO_FORMAL > (TRUNC(SYSDATE) - to_number('$No_Of_DAYS$')))) AND (AL.FAMILY = '' or '' is null and AL.FAMILY is not null ) and DP.EC_NO = AL.EC_NO ORDER BY DATE_TO_FORMAL
Key
No_Of_Days 1..1 String
In Return I am expecting a JDBC response from the Oracle Database as:
Source Structure:
RootNode
STATEMENT_response 1...unbounded
row 0...undbounded
EC_NO 1..1 String
Target Structure:
RootNode
RESPONSE
row
EC_NO 1..1 String -
Hi,
I would like to capture the following stats from HFM:
- Consolidation time
- Database Growth
- Active Users which use the application
(we may have more users which have access to the application compred to the actual number of user who use the application)
Can anyone help on how to capture the above stats. If the information exists in any table in the HFM application,
what table and how to query them?
Thanks.The easiest way I always used is to look to transaction sm50 and display the CPU usage of each process (click on one of the little toolbar icons). The dispatcher always tries to send user requests to the first process. If that process is busy, it tries the second process ... and so on. For that reason the first dialog process has always the highest CPU usage and the last one (or multiple ones) the lowest usage or zero CPU usage. The highest ranking dialog process with some CPU usage indicates the peak process use since system start-up. The same holds for any other process type. Hope this helps.
- Joerg -
How to capture show layer and hide layer event in photoshop through a plugin???
How to capture show layer and hide layer event in photoshop through a plugin???for mac
Use the Listener plug-in found in the SDK to see how you can monitor the show/hide layer event. You can also use the Getter plug-in to show what information you can find out about the current state of Photoshop.
-
How to use perform statements in sap scripts
how to use perform statements in sap scripts . and pls send me one progam for this
thnaks
rajaHi Raja,
<b>PERFORM</b> key work is used to include subroutine in sapscript form...
But the processing is lttle bit different form the one we use in ABAP.
Here the paramters passed to form is stored in internal table of name-value table. there are two table one for inbound parameter and other for outbound parameters.
Check out the example below to see how this is used..
<b>Definition in the SAPscript form:</b>
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/ &BARCODE&
<b>Coding of the calling ABAP program:</b>
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Hope this is clear to understand...
Enjoy SAP.
Pankaj Singh. -
How to capture the event in ALV grid display?
Hi experts,
How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
regards,
Arul Jothi.Hi Arul,
Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni -
How to capture the row value in Advanced Table on OAF ?
Hi:
I was wondering, if anyone has any idea as to how to capture a row value on an advanced table on a OAF Page.
I am currently trying to capture the Expense Report Number ( first column) on the Track Expenses Reports table on the page /oracle/apps/ap/oie/webui/HomePG.
Any idea would be helpful ?
Thank YouHi,
856070 wrote:
This is what I am looking for :
Default Functionality
On the expenses home page there is a table for the Submitted expenses Table ( advanced table) with multiple Expense Number rows , which has a link associated with every expense number. When the user clicks the expense number link , EBS takes you to a more detail information page. ---As per default functionality :::whene ever user clicks on link it will takes u to details info page based expense no right.
---Check the property of the Destination URL of the ExpensionNumber column.
---In this property u can find the page path and paramam ex:pexpencenumber.
Customized functionality
I would like to capture the Expense number on the detailed page to call another application based on the expense number. The expense number on the
detailed page is not available on the request-parameter or on the VO.
I was thinking of capturing the ExpenseNumber when the user clicks it and save the expense number on a >transientvalue to retrieve it on the detaile dpage..but unable to do so.---Here get the paramereter pexpencenumber and pass it to another appilcation.
Regards
Meher Irk -
How to maintain a state in webdynpro?
HI Experts,
I have one node and some value attributes(dynamic attributes) in this node.
I am using these dynamic attributes in wdDoModifyView() to customize my table.I am setting the customisation properties in the Customization view and when I click "OK",the table is getting changed in the Table view.Everything is working fine.But when I again try to customize the table ,I open the Customization view ,the previously modified changes are not there in the Customization view .Customization view is not holding the state.Its getting reset.
Please suggest me how to retain the state.
Regards
-SandipHI Ayyaparaj,
I did it in the same way.I created the node in the component controller and maped it with the the two views (Table View and Customization View).The first time when I customize,its working.But next time when I open the Customize view,Customize view not holding the previous state.
Do i need to do any setting in the Node property?
Please suggest me.
Regards
-Sandip -
How to capture values dynamically from output screen
Hi all,
I have a new requirement.
i developed a report which is showing output correctly. Here i have to take a check box for every record in output screen. if i check some of the check boxs then it should allow for further processing.
i succeeded upto put checkboxes on output screen.
but i don't know how to capture the values of checkboxes of every record into an internal table. it is necessary to capture into an internal table
will it be work by using LOOP AT SCREEN statement.
could you please explain with examples. it is normal report program only.
i would appreciate an early reply
Regards
PrabhakarSample code for usage:
Internal table for Region and its Description
data: begin of t_t005u occurs 0,
LAND1 like t005u-land1,
BLAND like t005u-bland,
Bezei like t005u-bezei,
end of t_t005u.
Ranges for Country
ranges: r_land1 for t005u-land1.
Get the country codes and their descriptions
refresh r_land1.
clear r_land1.
refresh t_dynpfields.
move 'V_LAND1' to t_dynpfields-fieldname.
append t_dynpfields.
clear t_dynpfields.
Read the value in the Country field on the screen
call function 'DYNP_VALUES_READ'
EXPORTING
dyname = 'SAPLZ_VENDOR_MASTER'
dynumb = '0004'
translate_to_upper = 'X'
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
read table t_dynpfields with key fieldname = 'V_LAND1'.
if not t_dynpfields-FIELDVALUE is initial.
r_land1-low = t_dynpfields-FIELDVALUE.
r_land1-sign = 'I'.
r_land1-option = 'EQ'.
append r_land1.
clear r_land1.
endif.
Get the Regions to be displayed as F4 Help
select land1
bland
bezei
from t005u
into table t_t005u
where spras = 'EN'
and land1 in r_land1.
if not t_t005u[] is initial..
Popup to display Valid Regions for the selected country
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 60
ENDPOS_ROW = 40
STARTPOS_COL = 40
STARTPOS_ROW = 20
TITLETEXT = 'Region'
IMPORTING
CHOISE = v_choice
TABLES
VALUETAB = t_t005u
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
if sy-subrc = 0.
if v_activity = 'V'.
read table t_t005u index v_choice.
if sy-subrc = 0.
v_regio = t_t005u-bland.
move 'V_BEZEI' to t_dynpfields-fieldname.
move t_t005u-bezei to t_dynpfields-fieldvalue.
append t_dynpfields.
Update the Region description on the screen.
call function 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZ_VENDOR_MASTER'
dynumb = '0004'
TABLES
dynpfields = t_dynpfields
EXCEPTIONS
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
endif.
endif.
endif.
endif. -
How to capture the data if i am using two Fiscal year variant
Hi
My client is required need two type financial statement one is as per company act and calender year. Other one is company act and fiscal year.
regarding we have maintain two fiscal year variant one is assigned to company code as per calender yr other one is assigned to Spl.Pr G/L. but how to capture the financial data from company code in case we are using two fiscal yr variant.
RekhaHi
U cannot maintain two two fiscal year varaint for a company code in GL. As said by u maintain one fiscal year varaint for GL and the other one for FI SL. When u post FI document in GL automatically the same will flow into FI SL for the corressponding period.
For example ur Fiscal year varant is April to March in GL
and Callendar year in FI SL and u do a posting in April 1 (period 1) in GL then it post it to 4th period in FI SL automatically since April is the 4th period in FI SL since it uses K4 as the fiscal year variant. -
How to capture the error messages from incorrect session?
Hi SDNs.,
i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail. Can i capture the unprocessed records???
i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
or Is there any other way to Do it???
Thankning you.,
RamHi Ramakrishna,
Once you create the session, Process the session using
the report RSBDCSUB using submit statement.
It would list out the erroneous records.
Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
Regards,
Ravi
Maybe you are looking for
-
Calling web service via utl_dbws with unbounded return values
Hello, everyone. I'm trying to use utl_dbws to call web service from Oracle DB 10 g. WS has unbounded return value: <xs:element maxOccurs='unbounded' minOccurs='0' name='return' type='xs:string'/> I'm setting return paramter in web service call handl
-
Enhancements / Modifications in Web Dynpro Java
Hi, all! I' ve a more general question: Are there any enhancement concepts for Web Dynpro Java available or at least planned that would give developers the same comfort and possibilities ABAP programmers have? I mean, will there ever be an Enhancemen
-
Sync key format changed in FF4
I started using the Firefox Sync add-on when it was just an add-on. I was allow to make my password in the form of "xxxxxxxxxxxx" (letters and numbers were mandatory). Now, since the last few FF4 Betas, when I try to set up sync so I can get all my d
-
We are having issues with the planned count date in MICN. We have the float & interval set as 4 days in the configuration. we have posted a physical inventory document on 04/09 and when i try to create a new inventory document for 04/16 in MICN, syst
-
How can I creating hyperlinks that work for iOS reader?
In a pervious thread the notion that hyperlinks withiin a PDF document deployed on an iPad do not work. Is there a work around? Perhaps <www.mysite.com> ? The Word document is a summary prepared by an author with embeded hyperlinks. Works on the desk