Method to upload 13000 entries in table
Hi Experts,
Please let me know the best method to upload data in a Z table with with three fields for 13000 entries.
Thanks in Advance,
Harkamal
Modify ZTABLE FROM TABLE IT_TAB. " < IT_TAB has 13K records
IT_TAB must be the same as ZTABLE.
IT_tab-mandt must be filled also.
Regards,
Naimesh Patel
Similar Messages
-
Hi All
Here is what I am trying to do.
I am configuring a new company - US02 (have one set up in my system already - US01). I want to work on Payroll and see how the taxes work per my config. I have done most of the config but I am stuck at a point where I have to copy several Tax authorities already existing in table T5UTI. There are around 9134 Authorities with different SEINs.
I have downloaded the data (uploaded for the US01 company) from the table, so that I can tweak it a bit and upload it for my company settings.
Can some one let me know the best way to upload this to the table T5UTI?
Thanks and regards
RSRanjani
Tthen we have the option of LSMW or BDC but better go for BDC as you have more than 5000 entries to be made or run the recording twice by changing the file name.
BR
Upen -
Tcode to upload data into CATSDB table
Hi All,
Could anyone let me know what is the TCODE that we will record and upload data into CATSDB table in HR ABAP.
Regards,
Srinivas.Hi,
I also need the same information...i.e i want to record overtime of Employees...Where to do this?
I tried creating it in PA61. I am able to create it with attendance type. But its triggering the CREATED method of ATTENDANCE Bus. Object. But i have been asked to use CREATED method CATS Bus. Object.
Can anyone help me in this??? Also tell me how make entries in CAT2 ....
Thanks,
Sivagami.R -
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 -
Uploading Excel to Internal Table
Hi,
Can anyone please look into the code and suggest me the changes in uploading Excel to Internal Table. Code is as below in OnInputProcessing.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event =
CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
DATA: fileUpload TYPE REF TO CL_HTMLB_FILEUPLOAD,
fcontent type xstring,
fstring type string,
len TYPE I.
fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'fileUpload'
id = 'myFileUpload1').
len = fileUpload->file_length.
IF event->id = 'submitButton' AND
event->event_type = 'click'.
fileUpload ?=
CL_HTMLB_MANAGER=>GET_DATA( request = request
id = 'myFileUpload1'
name = 'fileUpload' ).
IF ( fileUpload->file_name NE '' ) AND
( fileUpload->file_length GT 0 ).
IF fileUpload->file_content_type
= 'application/vnd.ms-excel'.
DATA: content TYPE ZTABLE,
conv TYPE REF TO CL_ABAP_CONV_IN_CE,
viewoff TYPE REF TO CL_ABAP_VIEW_OFFLEN,
it_off TYPE ABAPOFFLENTAB,
wa_off TYPE ABAPOFFLEN,
dd_fields TYPE DDFIELDS,
wa_fields TYPE DFIES.
data: codepage type CPCODEPAGE.
CALL FUNCTION 'SCP_CODEPAGE_BY_EXTERNAL_NAME'
EXPORTING
external_name = 'utf-16le'
KIND = 'H'
IMPORTING
SAP_CODEPAGE = codepage.
conv = CL_ABAP_CONV_IN_CE=>CREATE( encoding = '4103'
endian = 'L'
input = fileUpload->file_content
ignore_cerr = 'X').
CALL FUNCTION 'TR_NAMETAB_GET'
EXPORTING
IV_TABNAME = 'ZTABLE'
IV_GET_LENGTHS_IN_CHARMODE = 'X'
IV_GET_TEXTS = ' '
IMPORTING
ET_DFIES = dd_fields.
LOOP AT dd_fields INTO wa_fields.
MOVE wa_fields-offset TO wa_off-ioff.
MOVE wa_fields-intlen TO wa_off-ilen.
APPEND wa_off TO it_off.
ENDLOOP.
viewoff = CL_ABAP_VIEW_OFFLEN=>CREATE( tab = it_off ).
call method conv->read( importing data = fstring ).
fcontent = conv->get_buffer( ).
call function 'HR_KR_XSTRING_TO_STRING'
exporting
from_codepage = '4103'
in_xstring = fcontent
importing
out_string = fstring.
data: input_string type string.
data: fields type string_table.
data: s_table type string_table.
split fstring at cl_abap_char_utilities=>cr_lf into table s_table.
field-symbols: <wa_table> like line of s_table.
loop at s_table assigning <wa_table>.
split <wa_table> at cl_abap_char_utilities=>HORIZONTAL_TAB into table
fields.
endloop.
endif.
endif.
endif.
thanks in advance,
anjani.Hi anjani,
it doesn't help much if you just post some code and request changes, if you don't state the kind of problem you are having ... in order to receice helpful replies, you have to give detailed information, what you want to do, what is not working as expected ... so please post more details.
Meanwhile I recommend doing a search for your excel problem in the forum and also read the excel weblogs from <a href="https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/1918">Thomas Jung</a>.
Regards,
Max -
How to upload sap r/3 table data to ms-sql 2000?
Dear Friends
any one can help me out step by step to upload sap r/3 table data to ms-sql 2000.
Thanks in advancehi
good
go through this link
http://www.itcserver.com/blog/2006/06/29/data-transfer-methods/
thanks
mrutyun^ -
No entry in table T71ADM10 for key 'X'
Hello,
While uploading data from R/3, I get this error message:
'No entry in table T71ADM10 for key "X"'
But when I look in the R/3 table T71ADM10, then I am able to find entries for the key 'X'.
Additionaly in the BI DataSource Monitor, if I click the 'Maintain PSA' button, all records are shown as updated successfully. No erronous records are returned.
Under the 'Details' tab, 'Extraction' shows error; but 'Transfer' and 'Processing' Steps are shown successful.
Please advice.
Thanks & Regards,
Labanya.Hello Labanya,
As you telling data is available in PSA . So there is need to do update from fro PSA. So Just select that request number goto RSA1--> PSA. Then find your Request number. Check whether it has with red mark. Then right click on mouse and select "start the update immediately". And check whether you are getting same error or not.
Thanks,
Abha -
Adding new entry in table J_1INEXCGRP
Hi,
I am MM functional, due to some system error , for the excsie group I required to manitain the entry in table J_1INEXCGRP, as that customization part is not included in request, now I want to confirm which methode to be use
SE12->Utilities -> Table content -> create entry or with SE16N
can you please give the stpes for adding a new entry in this table it has only two fileds
MANDT
J_1IEXCGRP
regards,
zafar
Moderator Message: Spoon-feeding is not entertained here.
Edited by: kishan P on Jan 25, 2011 4:58 PMHi Alok,
Hope this steps - code will help you to resolve this issue.
1. Create A Group for your table control. In Screen Painter.
2. Write Screen modification routine for the same
it can be like this..
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
LOOP AT SCREEN.
IF screen-group1 = 'MOD'.
IF flag = ' '.
screen-input = '0'.
ELSEIF flag = 'X'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE.
3. This will disable the display of the Fields in TABLE Control.
4. in the PBO loop of the table control. Identify the lines which u want to keep active.
Hope this will help
<i><b>** Reward points to helpful answer</b></i> -
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 -
Table entry for table T710A and T710
Friends - Can anyone help me to understand what could be possible problem if i maintain PAY GRADE & PAY GRADE LEVEL entries through table. I have 57000 thousand entries for different countries so i am using BDC recroding to upload these values.
Please help me find out dependent tables on PAY GRADE & PAY GRADE LEVEL.
Kind regards,
Amit JainHi:
T710:
MOLGA - > T500L
SLTYP - > T510A
SLREG - > T510G
SLGRP - > T710A
T710A:
MOLGA - > T500L
SLTYP - > T510A
SLREG - > T510G
FREQU - > T710F
WAERS - > TCURC
WGTYP - > T52D7
Hope it helps,
Regards. -
Hi
Pls.let me know what are all the methods available to add new entries to table T503.hi murugan,
T503 table is to create employee subgroup grouping for pcr and CAP .this table is to be filled to do any action .Here we have options like 1,2,3...which should be used depending on the required employees like 3 -salaried employees.You can go through path or go to sm30 and directly u can give these values in this table.
path is SPRO-pm-pa-payroll data-emp sub group grouping for pcr and cap
By giving these values to emp groups the system will considers CAP 's and PCR's to that emp group ,and does differt caluculations and operations required to do pay roll run to thatPerticular employee group.
If you require further information you give a reply.
If my reply is useful to you pls award me points.
regards,
hemalatha -
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
Maybe you are looking for
-
Daily BSOD windows 7 64 bit NEED HELP!!
I keep getting this error daily but can't seem to find a solution to it Please Help!!! Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7601.2.1.0.256.1 Locale ID:
-
Reading (and searching, use of TOC and index) Acrobat files offline
OK - I have tried several things in effort to read PDFs offline. The 'tools' that allow me to access these files PDFReader Pro and GoDocs are incapable of doing searches, use TOC, and index.. It is basically a picture of a PDF. They also present it i
-
this just started today. i've followed every single step on the support with no change. -i've updated to firefox 10 -i've cleared both caches 10 times, also used third party programs and manually after that did not work. no change. -i've tested the f
-
Does anyone know what the following error message refers to? C:\>javac HelloWorld.java error: cannot read: HelloWorld.java 1 error Thanks!
-
Epson R2400 some icc profiles vanished
Win XP Today I noticed that the glossy icc paper profiles have vanished from Epson printing properites paper type in the Epson printer driver, but only if I try to access the properties from Lightroom or Photoshop CS3. I uninstalled the printer drive