How to find currently editing transaction code details using ABAP code
Hi,
if some user is using VA02 tcode.i want to know for which sales order(i.e Sales order number)he is making changes.
i want ABAP code sample for this scenario.
Cheers,
Jag
Hi,
For this you need to create Lock Object from se11 .It will automatically crate Two Function modules for enque and deque.
In you case If you want to see the Details for Va02 use.
CALL FUNCTION 'ENQUEUE_EVVBAKE'
EXPORTING
VBELN = VBELN
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2.
CASE SY-SUBRC.
WHEN 1.
MESSAGE E042(V1) WITH vbeln RAISING ERROR_IN_COPY.
ENDCASE.
Regds,
Similar Messages
-
How to find out obsolete transaction codes?
Hi,
Is there any way we can find the obsolete transaction codes in a system.
Thank you.
Regards,
SoumyaYou can try using these tables.
PRGN_CORR2
RODIR. -
How to find BAPI for Transaction Code
Hi everyone!
I'm just wondering how to get the name of the corresponding BAPI for a given transaction code - is there a way to search from within SAP?
When I open transaction "BAPI", I can create a list of BAPIs. But how can I find information about transactions - let's say XD03?If you mean that you need to know what BAPI's a particular transaction uses, follow the below said example.
Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
1. Start va01 go to system-->status
2. Double click transaction VA01
3. Double click on package
4. Read the application component. (this is SD-SLS Sales)
5. Then open the transaction BAPI
6. Sales and distribution>Sales>sales order
createfromdat2
Hope this helps you to find a BAPI for a particular transaction.
Regards,
D.Veeralakshmi -
How to find current database name i am using
what is the command to find current database name i am using
Dear user!
SELECT name
FROM v$database;Yours sincerely
Florian W. -
How to find tables in transaction codes.
hi guru,
suppose i want to findout tables for mm01,xk01,t-codes.
then how can we find tables from above t-codes.
subhasis.HI,
From the TCODE Use the menu option System-Status.
There you can see the relevent program. Double click to navigate to the program.
Then Goto the package of the program. The relevent table most probably will be there in this package.
Also if you know the table name then goto SE11 and check the where used list by restricting the search to the package.
Regards,
Sesh -
OIM11gr2 - How to get currently logged in user details using oim api
Hi All,
I have a requirement to retrieve currently logged in users profile in the process adapter.
I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
DOes any one has idea how to achieve this.
PS. - i am using platform to retrieve API's.
Thanks & Regards
Swati PandeyYou can get the logged in user name using the below java code:
ADFContext adfCtx = ADFContext.getCurrent();
SecurityContext secCntx = adfCtx.getSecurityContext();
String user = secCntx.getUserPrincipal().getName();
HTH -
How to find out the Transactions used per month & the USER who used that
Hi,
1)How to find out the Transactions used per month & the USER who used that?
2)and can i get the above same for minimum 20 month?
System : SAP- Enterprise Core Component.You can use my program...
*& Report Z_ABAP_TCODE_MONITOR
*****& Program Type : Report *
*****& Title : Z_ABAP_TCODE_MONITOR *
*****& Transaction code : ZTCODE_USAGE *
*****& Developer name : Shailendra Kolakaluri *
*****& Deveopment start date : 26 th Dec 2011 *
*****& Development Package : ZDEV *
*****& Transport No : DEVK906086 *
*****& Program Description : This program is to display
*List all tcodes executed during previous day.
*& Show the number of users executing tcodes
*& Modification history
REPORT Z_ABAP_TCODE_MONITOR.
*& List all tcodes executed during previous day.
*& Show the number of users executing tcodes
TYPE-POOLS : slis.
DATA: ind TYPE i,
fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
layout TYPE slis_layout_alv,
variant TYPE disvariant,
events TYPE slis_t_event WITH HEADER LINE,
heading TYPE slis_t_listheader WITH HEADER LINE.
*REPORT z_report_usage.
TYPES: BEGIN OF zusertcode,
date TYPE swncdatum,
user TYPE swncuname,
mandt TYPE swncmandt,
tcode TYPE swnctcode,
report TYPE swncreportname,
count TYPE swncshcnt,
END OF zusertcode.
*data : date type n.
DATA: t_usertcode TYPE swnc_t_aggusertcode,
wa_usertcode TYPE swncaggusertcode,
wa TYPE zusertcode,
t_ut TYPE STANDARD TABLE OF zusertcode,
wa_result TYPE zusertcode,
t_result TYPE STANDARD TABLE OF zusertcode.
PARAMETER: month TYPE dats DEFAULT sy-datum.
*PARAMETER: date TYPE dats.
*select-options : username for wa_usertcode-account.
START-OF-SELECTION.
PERFORM get_data.
PERFORM get_fieldcatalog.
PERFORM set_layout.
PERFORM get_event.
PERFORM get_comment.
PERFORM display_data.
FORM get_data .
*date = sy-datum - 2 .
After start-of-selection add this line (parameter Month required 01 as day).
concatenate month+0(6) '01' into month.
CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
EXPORTING
component = 'TOTAL'
ASSIGNDSYS = 'DEV'
periodtype = 'M'
periodstrt = month
TABLES
usertcode = t_usertcode
EXCEPTIONS
no_data_found = 1
OTHERS = 2.
wa-date = month.
*wa-date = date.
wa-mandt = sy-mandt.
wa_usertcode-account = username.
LOOP AT t_usertcode INTO wa_usertcode.
wa-user = wa_usertcode-account.
IF wa_usertcode-entry_id+72 = 'T'.
wa-tcode = wa_usertcode-entry_id.
wa-report = space.
ELSE.
wa-tcode = space.
wa-report = wa_usertcode-entry_id.
ENDIF.
COLLECT wa INTO t_ut.
ENDLOOP.
SORT t_ut BY report ASCENDING.
CLEAR: wa, wa_result.
endform.
FORM get_fieldcatalog .
fcat-tabname = 't_ut'.
fcat-fieldname = 'DATE'.
fcat-seltext_l = 'Date'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'MANDT'.
fcat-seltext_l = 'Client'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'USER'.
fcat-seltext_l = 'User Name'.
fcat-key = 'X'.
APPEND fcat.
CLEAR fcat.
fcat-tabname = 't_ut'.
fcat-fieldname = 'TCODE'.
fcat-seltext_l = 'Transaction Code'.
fcat-key = 'X'.
APPEND fcat.
ENDFORM.
*& Form SET_LAYOUT
text
--> p1 text
<-- p2 text
FORM set_layout .
layout-colwidth_optimize = 'X'.
ENDFORM. " SET_LAYOUT
*& Form GET_EVENT
text
--> p1 text
<-- p2 text
*FORM get_event .
events-name = slis_ev_top_of_page.
events-form = 'TOP_OF_PAGE'.
APPEND events.
*ENDFORM. " GET_EVENT
**& Form GET_COMMENT
text
--> p1 text
<-- p2 text
*FORM get_comment .
DATA: text(30).
text = 'Billing Report'.
heading-typ = 'H'.
heading-info = text.
APPEND heading.
*ENDFORM. " GET_COMMENT
**& Form top_of_page
text
--> p1 text
<-- p2 text
*FORM top_of_page .
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = heading[]
I_LOGO =
I_END_OF_LIST_GRID =
*ENDFORM. " top_of_page
*& Form DISPLAY_DATA
text
--> p1 text
<-- p2 text
FORM display_data .
sort t_ut[].
DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
is_layout = layout
it_fieldcat = fcat[]
i_save = 'A'
is_variant = variant
it_events = events[]
TABLES
t_outtab = t_ut
EXCEPTIONS
program_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.
ENDFORM. " DISPLAY_DATA -
How to find current user name on a LAN machine....
how to find current user name in a remote machine in LAN .
how to find current user name on a local machine in LAN .how to find current user name in a remote machine in
LAN .Many users may be logged on concurrently on the remote machine.
how to find current user name on a local machine in
LAN .The user who is running the code in the process would be obtainable via:
System.getProperty("some property goes here");
I leave it to you to look at the API documentation for System.getProperties() to see what property name you would retrieve. -
How to find out Last T-Codes by a Users in Last 24 Hurs?
Dear experts
how to find out Last T-Codes by a Users in Last 24 Hurs?
Please Help
Regrads
Is STAD is only solution (or) any other easy way?
Regards
PRHi,
Maybe it's easier with this path :
ST03N --> Expert Mode --> Day --> choose your day
Under analysis view double click on "Memory Use Statistics"
You will get the list of transactions run that day.
If you double click on a transaction you will get the list of users who used this transaction.
If you select the User view, when you double click on a user, you will get the list of transctions this user launched this day.
Many ways to use this ST03N transaction...
Regards,
Olivier -
How to find Error Reference Number Additional details in HFM
<font color="Blue">
Hi All
How to find Error Reference Number additional details in HFM ?
Example:
Error Reference Number:{01977FBD-DB42-4655-99B5-4ABF38D3E082}
Where to Find above id additional details??
I mean HSVErrorLogViewer ? OR RegistrySettings ? OR Dcomcnfg ? OR any other way to find the detailed information?
Any ideas? Appreciate your help in advance.
Regards
Taruni
</font>Hi,
try menu - EDIT - LUW debug
and see if you can get the idoc number in this way
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to find current ocfs verison in wondows 2003
Hi
how to find current ocfs verison in wondows 2003Hello,
See the Metalink note 749006.1
You can use ocfscollect
The output file will show u the information like Volume was formatted with OCFS 9.2.0.6 format
Cheers,
Rodrigo Mufalani
http://mufalani.blogspot.com -
How to find out your PUK code for a iPhone 5c
Ask your Carrier who gave you the SIM.
-
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc -
How to make cell editable alv in WebDynpro for ABAP?
I make Column editable ALV.(See under source code)
But I can't make Cell editable ALV.
How to make Cell editable ALV in WebDynpro for ABAP?
and..how to get changed data?
DATA: l_value TYPE REF TO cl_salv_wd_config_table.
l_value = l_ref_interfacecontroller->get_model( ).
* { EDITABLE
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_input_field TYPE REF TO cl_salv_wd_uie_input_field,
lr_column TYPE REF TO cl_salv_wd_column.
lr_column_settings ?= l_value.
lr_column = lr_column_settings->get_column( 'TOTAL_COUNT' ).
CREATE OBJECT lr_input_field
EXPORTING
value_fieldname = 'TOTAL_COUNT'.
lr_column->set_cell_editor( lr_input_field ).
DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= l_value.
lr_table_settings->set_read_only( abap_false ).the code seems to be correct....but where are you writing it?
put the code in the wddoinit method and it should work.
have a look at this article..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1 -
How to find out that particular structure is used in which tables
Hello Friends,
Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
Thanking you guys in advance.
Regards,
JitendraDear,
When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
Thanks & Regards,
Vijaya Bhaskar A
Maybe you are looking for
-
Query to select values greater than, where AS clause is used
Oracle 10g Requesting your help in writing the query correctly. I have the following 2 tables. The AddProjectPhase and AddProject tables. It is many to many relationship. Each project can have a predefined set of 4 different phases under it. Each pha
-
Why does every version of Firefox seem less stable of the version before?
Firefox used to be the best and most stable browser around, but the last few years I've been noticing major memory leaks that get worse with every update. Simply submitting a crash report from one browser won't make any difference here because I'm no
-
iTunes still does not work properly. It will let me play the music, but it still won't let me connect to the iTunes store. I did all of the updates, including the "repair missing files" and did a flush and everything comes back as just fine. I've tho
-
Dear Experts, I created a free item in the PO but the problem is i want to add value conditions to it .. the condition tab in the item details doe not exist .. but i used the condition tab in the header .. and i did a GR against this PO .. but no FI
-
How do I install to JBuilder 2008 R2 using update manager.
I am trying to install OEPE 11g to JBuilder 2008 R2 using the update manager. JBuilder is now Eclipse based. I add the install site, select OEPE to install and get the following error. Cannot complete the request. See the details. Cannot find a solut