Entries in table by user
Hi,
is there a way to know which user did certain entries in a table?
Best regards.
Hi calsadillo,
here's an interesting link for you:
Re: Trigger on Z* table
regards Andreas
Similar Messages
-
Enable Multiple entry at table maintanance at a time by more then one user
Hello all,
My requirment is to enable the multple user, can login to the same table for making there entry simultaneosuly . i have created the table and table maintance as well. and i have created the new lock object and added the code accrdingly and i have used the custom fm which is generated in the tablemainta function group.
forex: table xyz user 1 , 2, 3, 4, 5,so on..
table should allow all user tomake there entry at time and the entry edited one user should be disabled to other user. I have gone the forum i didnt found the correct one ..plz guide me
regards
raju>
swathi4 m wrote:
> This is not happening.
What is not happening? If you want to control update access to a database table, you'll need to implement a lock object. Read the SAP help on lock objects or search this forum. -
I have to make Multiple entry at table maintanance at a time
Hello all,
My requirment is to enable the multple user can loginto the same table for making there entry simultaneosuly .
i have created the table and table maintance as well. and i have created the new lock object and added the code accrdingly and i have used the custom fm which is generated in the tablemainta function group.
forex: table xyz
user 1 , 2, 3, 4, 5,so on..
table should allow all user tomake there entry at time and the entry edited one user should be disabled to other user.
I have gone the forum i didnt found the correct one ..plz guide me ..plz find the attached code .i got this code and referredthe samein my prog ..any suggestions on the below.
1. Create table ZTEST_SHUKS3.
2. Create table maintenance generator for the table.
3 Create lock object EYTSS_E433SH in SE11. Give it name as EZTEST_SHUKS3.
4 create a report ZREP_SHUKS3 and transaction code ZTEST_SHUKS3 to call this report. This tcode will call table mainatance generator of table ZTEST_SHUKS3 .
5 create the report as below
6 Now open table maintenance function group(ZTEST_SHUKS3) in SE80.We know for table maintenance SAP automatically creates code in the function group. Now we will make some modification in that existing code to change the behavior. Open the screen you created through table maintenance and add one module.
screen: 0001
double clik on screen and add one module in PBO of the screen
loop at extract with control
tctrl_ZTEST_SHUKS3 CURSOR NEXTLINE.
MODULE LIST SHOW LISTE
ADD HERE
MODULE m_change_locking
Check the code below to be added in the module m_change_locking.
MODULE m_change_locking OUTPUT.
*Call the function module corresponding to the lock object we created
CALL FUNCTION 'ENQUEUE_EZTEST_SHUKS3'
EXPORTING
matnr = ztest_shuks3-matnr
werks = ztest_shuks3-werks
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc NE 0.
row is locked..hence gray..
LOOP AT SCREEN.
screen-input = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDMODULE. " m_change_locking OUTPUT
REPORT zrep_shuks3.
**Selection range for view maintenance
DATA:
BEGIN OF selekttab OCCURS 1. "Selektionsbereich
INCLUDE STRUCTURE vimsellist.
DATA: END OF selekttab,
**Table of inactive CUA functions for view maintenance
BEGIN OF excl_cua_funct OCCURS 1. "inaktive CUA-Fkt bei View-Pflege
INCLUDE STRUCTURE vimexclfun.
DATA: END OF excl_cua_funct.
DATA: lt_enq_del TYPE STANDARD TABLE OF seqg3,
lt_enq_read TYPE STANDARD TABLE OF seqg7,
lw_enq_read TYPE seqg7,
lw_enq_del TYPE seqg3,
lv_subrc TYPE sy-subrc.
*Read all the lock details in system
CALL FUNCTION 'ENQUE_READ2'
EXPORTING
gclient = sy-mandt
gname = ' '
guname = '*'
TABLES
enq = lt_enq_read.
*We will search entry for table level lock for our table
LOOP AT lt_enq_read INTO lw_enq_read
WHERE gname EQ 'RSTABLE'
AND garg CS 'ZTEST_SHUKS3'.
MOVE-CORRESPONDING lw_enq_read TO lw_enq_del.
APPEND lw_enq_del TO lt_enq_del.
ENDLOOP.
*Delete table level lock entry for our table
CALL FUNCTION 'ENQUE_DELETE'
EXPORTING
check_upd_requests = 1
IMPORTING
subrc = lv_subrc
TABLES
enq = lt_enq_del.
*Now call the table maintenace generator.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U'
view_name = 'ZTEST_SHUKS3'
show_selection_popup = 'X'
TABLES
dba_sellist = selekttab
excl_cua_funct = excl_cua_funct.
I followed the same steps but still not getting the multiple user enable .
plz help
regards
Raju
Edited by: abaprthree on Jul 22, 2009 7:54 PMHi,
I think you are looking for the report which will allow only for entries not for change. In this case, at PBO you write the code to make all the rows in display mode which have records using LOOP at SCREEN .....ENDLOOP. When you click on on NEW ENTRY button, add blank rows and put user entries. When you save,check for existing entries in the table because many users are entering the data at the same time, so check for duplicates KEY entries and UPDATE the table on SAVE button. If you will go in this way, I don't think you have to go for LOCK object. It's required only if you are going for EDIT mode. -
Logical system entry for table entry
Hi,
After system copy from one system name to another , I am facing some inconsistenices in various tables.
The table entry can be seen in se16.But when I try to select entries from the same table using SELECT statement, table are not getting populated.
I ran the BDLS also . How do I check the logical system entried for table where I have inconsistent entries?
Thanks,
ChittaHello Chitta,
But when I try to select entries from the same table using SELECT statement, table are not getting populated.
what are you trying to populate?
If your question is, its not showing anything... what error message you're getting? are you trying to run in the DB level?
If you're getting error, that this object doesn't exist in the database then you might not be logging with correct user. its an SAP table, then its owner is the SAP schema user. If you login with the schema user, it should show in a normal select statement. But if you login with <sid>adm then you have to give the correct schema id before tablename.
select * from <SchemaID>.<tablename>
SchemaID may be sapr3, sapsr3, or sap<SID> depending on your release.
Regards,
Debasis. -
Regarding workflow suspension(entry in table SWP_SUSPEN)
Hi Experts,
I have a workflow whose one of the workitem goes into enqueue error during it's processing when user tries to perform some parallel activity , now when user stops the parallel activity & come back to his inbox, it allows him to process the workitem properly. (That is workitem is successfully processed.....status is completed). But after this workitem execution, the workflow hangs / gets suspended. Step histroy of this workitem shows there was an error when processing this workitem (Enqueue error) even though finally user was able to continuue & process the workitem successfully & status is completed too. It creates an entry in table SWP_SUSPEN With workflow Workitem ID & workitem id of the workitem under this workflow & error type as "0001" i.e:- Enqueue error callback to workflow) & status of the workflow as "1" ...i.e: - "In Process " & not in error.
I also analyzed that once the entry in the table SWP_SUSPEN is removed or gets deleted, the workflow continues from the point where it stucked.
So what i wanted to know is, what this entry in SWP_SUSPEN means by indicating "Error type" as 0001 & Status as "1" . & how this entry gets deleted, i thought there is some background JOB RSSWERRE that does this but when i checked i found RSSWERRE only checks for items in SWP_SUSPEN with workflow statuses as "02" i.e:- In error. where as my workflow has status "1" in SWP_SUSPEN under status field (as mentioned above)which means "In Process" I also found that this entry is getting deleted after sometime, so there must be some background job that is doing it, so i wanted to know what is that background Job if not RSSWERRE.
Regards,
Chetan.Hi,
This is what i got from one of the Notes:
ou use parallel processing where you have a fork with 2 branches (1
Branch necessary for completion). In one branch is a dialog activity
step and in the other is a 'Wait for Event' step. While the dialog
step is being executed by a user the Wait for Event step receives its
event and continues along the branch and completes the fork (Remember
only 1 branch needed for completion). Once the end of fork is reached
the dialog work item should be set to status Logically Deleted but
this does not occur due to the lock/enqueue on the work item while the
user is executing it. Since a callback is essential for a workflow to
continue running, this callback is suspended (stored in the SWP_SUSPEN
table). These callbacks are started again via the RSWWERRE report. If
you have not scheduled report RSWWERRE then the work items will remain
in table SWP_SUSPEN and the work items will not receive their callback
and will therefor will not continue.
If there are examples of work items hanging then check table SWP_SUSPEN to
see if the callback work item ID is there. If it is then make sure you have
the RSWWERRE job running in order to redeliver it. If RSWWERRE is running
and the entry is not being delivered then please check for notes using the
search term "RSWWERRE" and "SWP_SUSPEN". If there is no entry in
SWP_SUSPEN, then check the workflow definition to see if the work item is
asynchronous i.e. needs a terminating event as in Example 1 above. Check
the event queue via transaction SWEQADM to see if the terminating event is
being buffered there. If it is then it should automatically be redelivered
so do a notes search in relation to the event queue.
Regards
Gautam
Edited by: gautam maini on Aug 3, 2011 4:16 PM -
How to move the entries of table BNKAIN between systems
Hi,
Is there any way to export the entries of table BNKAIN from one SAP system (development) to another manually? This is the table which is not transported via a transport...even in development system the "transport entries" option is not active. IN SM30 the maintenance view is not created.
Can you advice how to move the entries somehow manually?
Thanks for any assistance!
br,SlawekHi, thanks for reply.
In fact I checked the table BNKA and the entries there are not helpful for me in the target system.
We are using there some user exit which is using the table BNKAIN and the following entries are there:
Client Bank Country Bank Key Internal bank
790 CA IHC6 1
790 DE IHC1 1
790 FI IHC 1
790 FR IHC3 1
790 GB IHC4 1
790 US IHC5 1
I checked the properties of that table in SE11 and it is maintainable only with restrictions..thus I need to ask some other basis expert which will help me to inlcude those entries into a transport.
Anyway thansk for your hints!
Bye -
List of entries made by various users
Can I find a list of entries made by different users per day ? And how?
Hi Vivek
All the marketing document tables contain a UserSign field which you can use for specific transactions, for example OINV for sales invoice. If you are looking for a single source you could look at the ADOC table also using the UserSign field. Just bear in mind that the ADOC table might contain multiple instances of a document if any changes were made as this is the audit trail table for marketing documents.
Kind regards
Peter Juby -
Table for user status field in CJ20n transaction project defination
HI ALL,
what is table for user status field in CJ20n transaction project defination creation. This field is in Basic Data tab.
Thanks.Hi,
Check following tables for Usre status:
TJ30 - User status
TJ30T - Texts for user status
TJ20 - Status profile
JEST - Object status
JSTO- WBS status profile.
Check this code:
REPORT zps_get_userstatus .
PARAMETERS: p_posid LIKE prps-posid.
*-- Constants
CONSTANTS: gc_yes(1) TYPE c VALUE 'X',
gc_no(1) TYPE c VALUE ' '.
*-- Variables
DATA: l_objnr LIKE prps-objnr.
*-- Internal tables
DATA: BEGIN OF lit_jest OCCURS 0,
objnr LIKE jest-objnr,
stat LIKE jest-stat,
END OF lit_jest.
DATA: BEGIN OF lit_jsto OCCURS 0,
objnr LIKE jsto-objnr,
stsma LIKE jsto-stsma,
END OF lit_jsto.
DATA: BEGIN OF lit_status OCCURS 0, "Combination of JEST & JSTO
objnr LIKE jest-objnr,
stsma LIKE jsto-stsma,
stat LIKE jest-stat,
END OF lit_status.
DATA: BEGIN OF lit_usrsta OCCURS 0, "Uer status for all wbs
objnr LIKE jest-objnr,
stsma LIKE jsto-stsma,
stat LIKE tj30t-estat,
txt04 LIKE tj30t-txt04,
END OF lit_usrsta.
DATA: BEGIN OF lit_usrtxt OCCURS 0, "User Status text - TJ30T
stsma LIKE tj30t-stsma,
stat LIKE tj30t-estat,
txt04 LIKE tj30t-txt04,
END OF lit_usrtxt.
* get WBS object number
SELECT SINGLE
objnr FROM prps
INTO l_objnr
WHERE posid = p_posid.
* get WBS active status from table JEST
SELECT
objnr
stat
FROM jest INTO TABLE lit_jest
WHERE objnr = l_objnr AND
inact <> gc_yes.
* get WBS status profile from table JSTO
SELECT
objnr
stsma FROM jsto
INTO TABLE lit_jsto
WHERE objnr = l_objnr.
* combine JEST and JSTO table for user status
LOOP AT lit_jest.
IF lit_jest-stat CP 'E++++'.
READ TABLE lit_jsto WITH KEY
objnr = l_objnr.
IF sy-subrc = 0.
lit_status-objnr = lit_jest-objnr.
lit_status-stsma = lit_jsto-stsma.
lit_status-stat = lit_jest-stat.
APPEND lit_status.
ENDIF.
ENDIF.
CLEAR: lit_jsto, lit_status.
ENDLOOP.
* get text for user status
SELECT DISTINCT
stsma
estat
txt04 FROM tj30t
INTO TABLE lit_usrtxt
FOR ALL ENTRIES IN lit_status
WHERE stsma = lit_status-stsma AND
estat = lit_status-stat AND
spras = sy-langu.
Let me know if you have any question.
Regards,
RS -
USER_SDO_GEOM_METADATA for tables the user does not own
Hi
We have a corporate GIS database that holds all our spatial data in one schema. I have created another user that has readonly (RO) access to those tables.
I am trying to create a Mapviewer datasource that will connect my RO user and query the spatial data in the other schema. However when I run the map defintion tools it tells me that 'there is no accessible table that have one or more sdo_gemotery columns in user_sdo_geom_metadata'.
Does this mean I have to insert entries for my RO user into USER_SDO_GEOM_METADATA even though it does not own those tables?
Any advise appriciated.
ChrisYes this is necessary in order to work around a bug in MapViewer (which will be fixed in a future release).
For instance, this is the entry in SCOTT's user_sdo_geom_metadata for the table CITIES owned by MVDEMO:
table_name column_name diminfo srid
MVDEMO.CITIES LOCATION ... 8265
when creating a theme in SCOTT's user_sdo_themes, simply use 'MVDEMO.CITIES' as the table name and you should be all set. -
Lock entries increase by single user
Dear Friends,
Please tell me how lock entries increase by single user. if table is lock by perticular user then why for same user id lock enries are increase.
Thanks,locks are created at R3 level by enque process with the help of message server is any user inserting or updating the data the table will be locked under aurgument which you can find in SM12 (select the user and press enter) since it is locked under table argument not under user name is te same user try again he will get popup saying table is locked.
samrat -
How can i add entry in table BSP_DL_XMLSTRX2 for creating a copy of a view
hi
i want to copy in a CRM_UI component view the configuration of the view and want to save the copy with a
different object type. But F4 value help only provides ( in crm_ui component workbench) me the value <DEFAULT> as for that view there is only one entry in table
BSP_DL_XMLSTRX2 and for object type = <DEFAULT> and when i enter something different i get the error that this object type does not exist.
(call method CL_BSP_DLC_XML_STORAGE2=>GET_EXISTENCE_FOR_VIEW
exporting
IV_COMPONENT = ME->CURRENT_CONFIG_KEY-COMPONENT
IV_VIEWNAME = ME->CURRENT_CONFIG_KEY-VIEWNAME
importing
ET_CONTEXT_SEM_KEY = LT_CONTEXT
ET_CONFIG_INFO = LT_CONF_INFO.
---> result in only one line but i want to add another
*so my questioin:
where can i enter a new object type for a existing crm_ui view configurationHello Britta,
Its useful program to copy a view configuration.
Best Regards,
zafer,
Edited by: Zafer Kuru on Dec 5, 2011 3:51 PM
REPORT z_copy.
TABLES bsp_dcls_conf_semantic_key.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS fr_comp TYPE bsp_wd_component_name OBLIGATORY.
PARAMETERS fr_view TYPE o2pageext OBLIGATORY.
PARAMETERS fr_role TYPE bsp_dlc_role_key OBLIGATORY.
PARAMETERS fr_couse TYPE bsp_dlc_component_usage OBLIGATORY.
PARAMETERS fr_obty TYPE bsp_dlc_object_type OBLIGATORY.
PARAMETERS fr_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS to_comp TYPE bsp_wd_component_name OBLIGATORY.
PARAMETERS to_view TYPE o2pageext OBLIGATORY.
PARAMETERS to_role TYPE bsp_dlc_role_key OBLIGATORY.
PARAMETERS to_couse TYPE bsp_dlc_component_usage OBLIGATORY.
PARAMETERS to_obty TYPE bsp_dlc_object_type OBLIGATORY.
PARAMETERS to_obsty TYPE bsp_dlc_object_sub_type OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS request TYPE trkorr OBLIGATORY.
PARAMETERS d_mode TYPE flag.
SELECTION-SCREEN END OF BLOCK b3.
DATA : iv_from_component TYPE bsp_wd_component_name,
iv_from_viewname TYPE o2pageext,
iv_from_role_key TYPE bsp_dlc_role_key,
iv_from_component_usage TYPE bsp_dlc_component_usage,
iv_from_object_type TYPE bsp_dlc_object_type,
iv_from_object_sub_type TYPE bsp_dlc_object_sub_type,
iv_to_component TYPE bsp_wd_component_name,
iv_to_viewname TYPE o2pageext,
iv_to_role_key TYPE bsp_dlc_role_key,
iv_to_component_usage TYPE bsp_dlc_component_usage,
iv_to_object_type TYPE bsp_dlc_object_type,
iv_to_object_sub_type TYPE bsp_dlc_object_sub_type,
is_transport_data TYPE bsp_dlc_config_transport_data.
DATA:
ls_from_config_data TYPE bsp_dlcs_conf_data,
lr_from_text_rep TYPE REF TO cl_bsp_dlc_stext_repository2,
lr_to_text_rep TYPE REF TO cl_bsp_dlc_stext_repository2,
lt_from_text TYPE bsp_dlt_stxtrep2,
ls_from_text TYPE bsp_dl_stxtrep2,
lv_to_context_id TYPE bsp_dlc_context_id,
lv_config_data_origin TYPE bsp_dlc_config_data_origin.
DATA lt_xmlconf TYPE TABLE OF bspc_dl_xmlstrx2.
DATA ls_xmlconf TYPE bspc_dl_xmlstrx2.
DATA ls_xmlconf_check TYPE bspc_dl_xmlstrx2.
is_transport_data-request = request.
is_transport_data-display_mode = d_mode.
SELECT SINGLE * FROM bspc_dl_xmlstrx2 INTO ls_xmlconf_check
WHERE component = fr_comp
AND viewname = fr_view
AND role_key = fr_role
AND component_usage = fr_couse
AND object_type = fr_obty
AND object_sub_type = fr_obsty.
CHECK sy-subrc EQ 0.
TRY.
CALL METHOD cl_bsp_dlc_xml_storage2=>get_config_data
EXPORTING
iv_component = fr_comp
iv_viewname = fr_view
iv_role_key = fr_role
iv_component_usage = fr_couse
iv_object_type = fr_obty
iv_object_sub_type = fr_obsty
iv_only_spec_parameter = abap_true
IMPORTING
es_config_data = ls_from_config_data
ev_config_data_origin = lv_config_data_origin.
CATCH cx_bsp_dlc_config_not_found.
RAISE config_not_found.
ENDTRY.
lr_from_text_rep = cl_bsp_dlc_stext_repository2=>get_instance(
iv_component = fr_comp
iv_viewname = fr_view
iv_role_key = fr_role
iv_component_usage = fr_couse
iv_object_type = fr_obty
iv_object_sub_type = fr_obsty
CASE lv_config_data_origin.
WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_c.
CALL METHOD lr_from_text_rep->get_texts_c_for_context_id
EXPORTING
iv_all_langu = 'X'
IMPORTING
et_text = lt_from_text.
WHEN cl_bsp_dlc_xml_storage2=>config_data_origin_s.
CALL METHOD lr_from_text_rep->get_texts_s_for_context_id
EXPORTING
iv_all_langu = 'X'
IMPORTING
et_text = lt_from_text.
ENDCASE.
Edited by: Zafer Kuru on Dec 5, 2011 3:54 PM -
To delete multiple entries in table control in module pool
Hi,
Please help me out to know , <b>how to delete multiple entries from table control</b> when multiple lines in table control are selected.
Regards,
Irfan Hussainhai,
you can do it inthis way.
in the PAI event.
loop at <table control name>
module del_itab.
endloop.
in the nodule,write the folowing code.
if <tablecontrol>-fieldname = 'X'.
delete <tablecontrol-itab>
endif.
cheers -
SRM-EBP: How to delete multiple entries in table BBP_DOCUMENT_TAB easier?
We are running SRM 4.0 EBP on classic scenario. I want to delete entries in table BBP_DOCUMENT_TAB easier and faster using FM BBP_DELETE_FROM_DOCUMENT_TAB. Is there a standard program that calls this FM so that inputting the entries will be faster? I see only CLEAN_REQREQ_UP but does not serve the purpose. If none, how can I develop a program to achieve this? Please help SRM Consultants.
Hi,
Please check note 535765, in it there is a special report that deletes entries from this table.
I hope this helps,
Kind Regards,
Lisa -
How to bind the data from user table into user report
Hi All,
Please assist me to bind the data from user table into user report. I did create an user table with data and create a user report template (using Query Print Layout). How can I display my data into report format which I created before? Any sample program or document I can refer?
Platform: SAPB1 2005A
Add On Language: VB.Net 2003
Thanks.
rgds
ERICHi Ibai,
Thanks for your feed back. I give you an example.
Let say now i wanna print employee list, so i will go
1. Main Menu -> Reports -> HR -> Employee List
2. Choose the Selection Criteria -> OK
3. Matrix will display (Employee List)
4. I can print the report click on print button
5. Printing report
My target
1. Main Menu -> Eric_SubMenu -> Employee List
2. Matrix will display (Employee List)
3. Print button
4. Print report
My problem
Now I would like to use my own report format. My own report format means I wanna add on my logo or do some customization within the employee report. So how I am going to do? I only able to display the employee list in matrix. How do I create a new report format and display it.
Thanks.
rgds
ERIC -
I am receiveing error while creating Z table: Entry in table TAORA missing
Hi Experts,
I am receiving "Entry in table TAORA missing" while creating Z table.
Please help
Edited by: N_niki on Jun 11, 2011 9:22 AMHi
1) Check for the DB System. The Table name in "Entry in table TAORA missing", meant to save the "DATA CLASS of the ORACLE application"., OR
2) check for the Data Class you Selected, on Creation of the Z Table, for which an Entry exists in the TAORA or the Available DATA CLASS in the TAORA Table to fix it.
Regards
Gopu
Maybe you are looking for
-
Can you transfer music and audio books between computers via home sharing?
I just reformatted my iMac and would like to restore some music and an audio book from my MacBook Pro. Somehow, I got the audio book onto my MacBook Pro, which was originally downloaded to my iMac, but now I can't seem to transfer it back. Thanks, Pa
-
FRM-41211 SSL Error Integrating with another product
Hi All Getting the following dreaded error. Seached this and forms forum and tried all things setting REPORTS_TMP directory removing the SSO option in reports Still same error. I tried running reports directly by using the reports url and it works fi
-
How to connect to a network that has blocked Mac addresses?
My school has blocked Mac addresses how do I get around this?
-
How do I download a bought song which did not download completely?
I recently purchased an album and one of the songs has not downloaded completely but if i look at purchased items on iTunes it is there as downloaded but not available to download again to complete the purchase. Any advice?
-
What is the major advantage of Repair full request?
Hi gurus What is the major advantage of Repair full request? Thanks in advance Raj