ABAP lowercase entries in tables
When we make entries for tables through se11 or se16 in lowercase but DB is taking in uppercase how is it?
Is there any option(menu) available in standard sap?
Moderator message - Welcome to SCN.
Unfortunately, this forum is not a place to learn ABAP. I suggest that you get one of the good ABAP books that are out there and maybe join an internet forum that caters to beginners - post locked
Also, Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob
Similar Messages
-
Hi all,
Iam unable to make entries in table T095, if i use through se11->utilitis then create entry option is disabled. if i use sm30 then it saying " The maintenance dialog for T095 is incomplete or not defined" please give me procedure to maintain the table t095.
Thanks&Regards,
RPHi,
T095 is a standard SAP table and you wont be allowed to insert or update entries in this table directly.
If you have authorization for SPRO, you can update this table via Financial Accounting. Otherwise, you can ask your FI functional consultant to provide you with values in the table so that you are able to use these in your program.
The last option would be to write a few lines of codes in an ABAP program and use "INSERT" or "UPDATE" ABAP statements to update this table. But avoid this option as inconsistencies may occur because of this.
Hope it helps. -
How to insert multiple entries in table control
Hi All,
I want to insert multiple entries in table control in BDC program.Can any body help in this regard.
Thanks,
Satish.Hi,
Go through the following 2 example programs:
THis is example to upload the Bank details of the Vendor which has the TC.
REPORT zprataptable2
NO STANDARD PAGE HEADING LINE-SIZE 255.
DATA : BEGIN OF itab OCCURS 0,
i1 TYPE i,
lifnr LIKE rf02k-lifnr,
bukrs LIKE rf02k-bukrs,
ekorg LIKE rf02k-ekorg,
ktokk LIKE rf02k-ktokk,
anred LIKE lfa1-anred,
name1 LIKE lfa1-name1,
sortl LIKE lfa1-sortl,
land1 LIKE lfa1-land1,
akont LIKE lfb1-akont,
fdgrv LIKE lfb1-fdgrv,
waers LIKE lfm1-waers,
END OF itab.
DATA : BEGIN OF jtab OCCURS 0,
j1 TYPE i,
banks LIKE lfbk-banks,
bankl LIKE lfbk-bankl,
bankn LIKE lfbk-bankn,
END OF jtab.
DATA : cnt(4) TYPE n.
DATA : fdt(20) TYPE c.
DATA : c TYPE i.
INCLUDE bdcrecx1.
START-OF-SELECTION.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\first1.txt'
filetype = 'DAT'
TABLES
data_tab = itab.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = 'C:\second.txt'
filetype = 'DAT'
TABLES
data_tab = jtab.
LOOP AT itab.
PERFORM bdc_dynpro USING 'SAPMF02K' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-KTOKK'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RF02K-LIFNR'
itab-lifnr.
PERFORM bdc_field USING 'RF02K-BUKRS'
itab-bukrs.
PERFORM bdc_field USING 'RF02K-EKORG'
itab-ekorg.
PERFORM bdc_field USING 'RF02K-KTOKK'
itab-ktokk.
PERFORM bdc_dynpro USING 'SAPMF02K' '0110'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-LAND1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFA1-ANRED'
itab-anred.
PERFORM bdc_field USING 'LFA1-NAME1'
itab-name1.
PERFORM bdc_field USING 'LFA1-SORTL'
itab-sortl.
PERFORM bdc_field USING 'LFA1-LAND1'
itab-land1.
PERFORM bdc_dynpro USING 'SAPMF02K' '0120'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFA1-KUNNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
cnt = 0.
LOOP AT jtab WHERE j1 = itab-i1.
cnt = cnt + 1.
CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-banks.
CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankl.
CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
PERFORM bdc_field USING fdt jtab-bankn.
IF cnt = 5.
cnt = 0.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=P+'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKN(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
ENDIF.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMF02K' '0130'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFBK-BANKS(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0210'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-FDGRV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFB1-AKONT'
itab-akont.
PERFORM bdc_field USING 'LFB1-FDGRV'
itab-fdgrv.
PERFORM bdc_dynpro USING 'SAPMF02K' '0215'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB1-ZTERM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0220'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFB5-MAHNA'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPMF02K' '0310'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LFM1-WAERS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LFM1-WAERS'
itab-waers.
PERFORM bdc_dynpro USING 'SAPMF02K' '0320'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RF02K-LIFNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'XK01'.
ENDLOOP.
PERFORM close_group.
ABAP Name : ZMM_PR_UPLOAD_MAT
Description : PR Upload BDC Program(With Material)
Created by : Anji Reddy V
Created on : 04/11/2004
Description : This Program is used to Upload the Purchase
Requisition data Using the Transaction ME51N.
Modification Log:
Date Programmer Correction Description
04/11/2004 Anji Reddy Initial
REPORT zmm_pr_upload_mat
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Standard Include for Selection Screen
INCLUDE bdcrecx1.
Internal Table for Upload Data
DATA: BEGIN OF i_pr OCCURS 0,
Header Screen
sno(3), " SNo
bsart(004), " PR Type
epstp(001), " Item Category
knttp(001), " Account Assignment
eeind(010), " Delivery Date
lpein(001), " Category of Del Date
werks(004), " Plant
lgort(004), " Storage Location
ekgrp(003), " Purchasing Group
matkl(009), " Material Group
bednr(010), " Tracking No
afnam(012), " Requisitioner
Item Details
matnr(018), " Material No
menge(017), " Quantity
badat(010),
frgdt(010),
preis(014), " Valuation Price
waers(005), " Currency
peinh(005),
wepos(001),
repos(001),
sakto(010), " GL Account
kostl(010), " Cost Center
bnfpo(005),
END OF i_pr.
Internal Table for header Data
DATA: BEGIN OF it_header OCCURS 0,
sno(3), " SNo
bsart(004), " PR Type
epstp(001), " Item Category
knttp(001), " Account Assignment
eeind(010), " Delivery Date
werks(004), " Plant
lgort(004), " Storage Location
ekgrp(003), " Purchasing Group
matkl(009), " Material Group
bednr(010), " Tracking No
afnam(012), " Requisitioner
END OF it_header.
Internal Table for Item Data
DATA: BEGIN OF it_item OCCURS 0,
sno(3), " SNo
matnr(018), " Material No
menge(017), " Quantity
preis(014), " Valuation Price
sakto(010), " GL Account
kostl(010), " Cost Center
END OF it_item.
Data Variables & Constants
CONSTANTS : c_x VALUE 'X'. " Flag
DATA : v_l(2), " Counter
v_rowno(5), " Row No
v_2(2), " Counter
v_rows LIKE sy-srows, " Rows in TC
v_field(45). " String
Parameters
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start of Selection
START-OF-SELECTION.
Open the BDC Session
PERFORM open_group.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_pr
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT i_pr BY sno.
LOOP AT i_pr.
MOVE-CORRESPONDING i_pr TO it_item.
APPEND it_item.
CLEAR it_item.
AT END OF sno.
READ TABLE i_pr INDEX sy-tabix.
MOVE-CORRESPONDING i_pr TO it_header.
APPEND it_header.
CLEAR it_header.
ENDAT.
ENDLOOP.
SORT it_header BY sno.
SORT it_item BY sno.
v_rows = sy-srows - 6.
Upload the Data from Internal Table
LOOP AT it_header.
Header Data
PERFORM bdc_dynpro USING 'SAPMM06B' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBAN-BEDNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'EBAN-BSART'
it_header-bsart.
PERFORM bdc_field USING 'RM06B-EPSTP'
it_header-epstp.
PERFORM bdc_field USING 'EBAN-KNTTP'
it_header-knttp.
PERFORM bdc_field USING 'RM06B-EEIND'
it_header-eeind.
PERFORM bdc_field USING 'RM06B-LPEIN'
it_header-lpein.
PERFORM bdc_field USING 'EBAN-WERKS'
it_header-werks.
PERFORM bdc_field USING 'EBAN-LGORT'
it_header-lgort.
PERFORM bdc_field USING 'EBAN-EKGRP'
it_header-ekgrp.
PERFORM bdc_field USING 'EBAN-MATKL'
it_header-matkl.
PERFORM bdc_field USING 'EBAN-BEDNR'
it_header-bednr.
PERFORM bdc_field USING 'EBAN-AFNAM'
it_header-afnam.
Item Details
v_l = 0.
To add no. of rows
v_2 = 0 .
As the screen is showing 13 rows defaulted to 130
v_rowno = 130 .
LOOP AT it_item WHERE sno = it_header-sno.
v_l = v_l + 1.
IF v_l = 14 .
IF v_2 = 12 .
v_2 = 12 .
v_l = 2 .
From second time onwards it is displaying 12 rows only
v_rowno = v_rowno + 120 .
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'RM06B-BNFPO'
v_rowno.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
ELSE.
V_2 initialized to 12 for second screen purpose
v_2 = 12 .
v_l = 2 .
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'RM06B-BNFPO'
v_rowno .
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
ENDIF.
ENDIF.
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
CLEAR v_field.
CONCATENATE 'EBAN-MATNR(' v_l ')' INTO v_field.
PERFORM bdc_field USING v_field it_item-matnr.
CLEAR v_field.
CONCATENATE 'EBAN-MENGE(' v_l ')' INTO v_field.
PERFORM bdc_field USING v_field it_item-menge.
PERFORM bdc_dynpro USING 'SAPMM06B' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBAN-PREIS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'EBAN-PREIS'
it_item-preis.
PERFORM bdc_dynpro USING 'SAPMM06B' '0505'.
PERFORM bdc_field USING 'BDC_CURSOR'
'EBKN-SAKTO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'EBKN-SAKTO'
it_item-sakto.
Cost Center
PERFORM bdc_dynpro USING 'SAPLKACB' '0002'.
PERFORM bdc_field USING 'BDC_CURSOR'
'COBL-KOSTL'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
PERFORM bdc_field USING 'COBL-KOSTL'
it_item-kostl.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTE'.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMM06B' '0106'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RM06B-BNFPO'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
Call The Transaction
PERFORM bdc_transaction USING 'ME51'.
ENDLOOP.
Close the BDC Session
PERFORM close_group.
reward for useful answers.
Regards,
Anji -
HI,
How to change the multiple entries of table in debug mode using transaction code se16n ?Hello Santosh,
Follow the steps as given below:
1. Display the table entries using SE16.
2. Select the entries that you want to change by clicking the checkboxes & then pressing the "Display button" (F7).
3. In the next screen type "/H" (in the TCode box) & click the "Green Button" to the left.
4. In the ABAP code that you see then,
if code = 'SHOW'.
set titlebar 'TAB' with name 'anzeigen'(100)
elseif code = 'EDIT'.
set titlebar 'TAB' with name 'ändern'(101).
elseif code = 'INSR'.
set titlebar 'TAB' with name 'einfügen'(102)
Change the value of variable CODE to 'EDIT' (in CAPS) & lo !!!!
You can change the multiple entries.
BR,
Suhas -
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 -
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. -
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 -
Error "No entry in table T589A for P" while creating new Infotype
HI,
I've created a new infotype (9605). All the tables, structures, screens etc. have been created using transaction PM01 successfully. But upon execution of Infotype from PA30, the infotype screen is displayed with the following error:
"No entry in table T589A for P"
Any input will be highly appreciated.
Thank you,
Farooq.Hi Farooq,
Untill and unless the the field PSYST-IOPER is cleared explicitly in the program MP960500 (in PBO modules), this error should not occur.
Also is this error is coming only for 9605 infotype ? Also is any other info availaible in the error message such as entry in table t589a is not available for which value of OPERA (INS, MOD, DEL, LIS etc) ?
Regards,
Shrinivas -
Error "No entry in table T551A" while creating set work schedule rule.
Dear Team,
I am getting following error while creating set work schedule rule.
Error "No entry in table T551A" for key 22 BBB [ here BBBB is my period work schedule]
The actual prob is i configured all the necessary steps but when i tried to create work schedule rule im getting this error. Also, in the same screen there is one field DWS grouping initially value in this is 00 and gread mode. But after giving ES grp, holiday calander ID etc etc when i try to save that screen that value is chainging to 22 from 00.
My ES grop=2 and PS grop=2 . Is that value is my ES and PS grouping..?? or some other thing.
Request you to please help me out.
Regards
Shab.HI, there are 8 steps you need to do below:
1. Group Personnel Subareas for the Daily Work Schedule
2. Group Personnel Subareas for the Work Schedule
3. Define Break Schedules
4. Define Daily Work Schedules
5. Define Period Work Schedules
6. Define Employee Subgroup Groupings
7. Define Groupings for the Public Holiday Calendar
8. Set Work Schedule Rules and Work Schedules
All of them belong to TIME MANAGEMENT. I think you miss some steps above.
Please check it again.
Regards!
Minh -
ZSD_TABLE is not defined in the ABAP dictionary as a table"
Hello,
I created zsd_table and inserted few records
When i use this table in program system is giving error message "ZSD_TABLE is not defined in the ABAP dictionary as a table"
How can we define this table in ABAP dictionary?
ThanksHi,
Go to Transaction SE11
Give the table name 'ZSD_TABLE'
and click on create and enter the fileds
after entering fields give 'techinical setting' for a table by clicking on technical setting button on tool bar
save check and activate
Regards
Krishna -
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. -
How to create Infotype entry in table T777D
Hi All,
We have undergone Upgrade from 4.6C to ECC 6.0.
Now we get an error while maintaining certain data infotype 0122 does not exists.
I looked at the entries in table T777D in both the system. In older system the entry is there but not in the new system.
When i tried creating the entry in this table the error comes 'Module pool program MP012200 is not present'. This program was there in 4.6C but is not there in ECC 6.0.
How do we genrate this program or how do we create the entry for this infotype to correct the error.
Is there any customizing settings that is required?
Please advice.
Regards,
Vidya.Look at OSS [Note 546167 - Termination in PA10: Infotype 0122 does not exist|https://service.sap.com/sap/support/notes/546167]
>Symptom
>
>When you edit the master data (transaction PA10) after you upgrade Release 4.6C to Release 4.70 or higher, a termination occurs and an error message is issued informing you that infotype 0122 does not exist.
>
>Other terms
>
>No entry in table T777D
>
>Solution
>
>In the 'Infotype attributes (Customizing)' view (extended table maintenance for view V_T582A), delete the entry for infotype 0122.
>In the 'Infotypes - country-specific settings' view (extended table maintenance for view V_T582L), delete the entry for infotype 0122.
Regards -
Unable to create new entry in table that has no primary key
Hi
I have a table which is required to have no primary key (except mandt). After i generate table maintanance, when I go to create new entries, the table control to enter the new values does not appear. When I click on edit->new entries, it goes back to the fields tab of the table. Same when i check through SM30.
If i maintain atleast one primary key, I am able to get the table control in new entries screen. However the requirement permits no primary keys except mandt. How can this be resolved?
Thanks
NMHi,
THE PROBLEM WITH UR TABLE IS
YOU HAD DECLARED MANDT AS THE PRIMARY KEY AND THERE IS NO OTHER KEY IN UR TABLE
iT'S NOT ALLOWING YOU TO ADD NEW ENTRIES BECAUSE MANDT IS THE ONLY PRIMARY KEY IN YOUR TABLE AND IT WILL HAVE A DEFAULT VALUE BASED ON THE CLIENT. SO IT'S NOT SHOWING YOU THE CREATE NEW ENTRIES OPTION.
SO TRY TO PUT ONE MORE FIELD AS THE PRIMARY KEY SO THAT YOUR PROBLEM WILL SOLVE VERY EASILY ALSO MAKE SURE THAT TABLE IS ACTIVATED.
REVERT IF U NEED SOME MORE HELP
Thanks &Regards.
Pavan.
Maybe you are looking for
-
Itunes 12.0.1 home sharing issues
Hi, Just wondering if anyone else was having problems with home sharing and iTunes 12.0.1? My whole house pivots around home sharing, so this was a bit annoying when I couldn't get it to work after installing Yosemite and itunes 12.0.1. I have apple
-
Exchange and Office Web Apps Integration - Wrong Url to Outlook Web App port 444
Hi, I'm trying to setup Office Web Apps integration with Exchange 2013. Office Web Apps are working fine with SharePoint 2013 and the WAC servers are listed as in a healthy state. When trying to open an office document from OWA I get the usual "Sorr
-
I am storing my documentID etc into setter methods and vector in my database class. DocumentID field is an auto number field in access database. e.g there are 7 records in the database and by right the documentID should be from 1 to 7. When i retriev
-
Nano frozen, reset + sw restore doesn't helps
hi, my nano 4GB is frozen, click wheel doesn't work, when i use the hold button twice nano restarts but is still frozen, reset (start + menue butten 6sec) and software restore (updater 23.09.05) doesn't help
-
Information About Session , Steps , Task
Hi , After execution of any scenario - I want to Insert / Update the session ID in target table for each record. Let's say 100 records are updated and 50 are inserted today as result of execution of any IKM. now I want to update session ID on all the