Add an entry in table
hi,
can any one please help me how to add an entry in transp.table.
in the table TVARV table i need to add an entry .
please any one help me how to add and what are neccessary steps to be followed while adding an entry.
for eg
NAME TYPE NUMB LOW HIGH
ZSAMPLE P 001 /FILE/
ZSAMPLE P 002 /EXTRACT/
NOW I NEED TO ADD AN ENTRY LIKE
ZSAMPLE P 003 /TEST/
please help me its urgent.
thanks in advance.
Hi ,
Pls fellow this Steps :
1 ) Go to se 11 u type the table name then press the display .
2) in that screen u click utilities , here u click the table contents .
3) In that table contents u click the create entires ..
4) now u enter the values in that screen .
5) then press save .
now this entires are stored in TVARV table .
<REMOVED BY MODERATOR>
Regards ,
Shankar GJ
Edited by: Alvaro Tejada Galindo on Apr 11, 2008 5:44 PM
Similar Messages
-
How to add new entry, in table on button click.
i have 2 input ,witch i am taking from numeric controls. this 2 input are use to calculat my output.
on button click i want these 4 things should go in the table.
now my problem is when i click the button previous entry in the table get lost...
plz help me to slove this problem.When you want to preserve the existing values in a table or array, you need to use "Array -> Build Array". Wire the local variable of the table or array to top entry, and wire your new entry to the bottom. Depends on the dimension of the array and the postion you want to add. You might need to some array manupilations. Try out some of the array VIs to see how they work.
Joe -
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 -
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 -
How to add the entries and how to delete the entries from custom Z-table?
Hi Experts,
My requirement is I need to add the entries from program to three custom z-tables . Assume as zabc1,zabc2,zabc3.
Here how to add the entries from program to Z-table.???
And one more requirement is I want to provide a deletion checkbox in selection screen . Initial it was unchecked. If I am giving tick mark then the entries should be deleted from above custom Z-tables. this all will done in backgroung job?
Could you please guide me the logic how to crack this???
Let me know if you need more Info
Thanks
SanjuHi Sanjana,
What you can do is to use the ABAP keyword INSERT or MODIFY to add or modify records to a given database table. Here are the syntax taken from SAP documentation:
*Insert Statement
INSERT dbtab
Syntax
INSERT { {INTO target VALUES source }
| { target FROM source } }.
Effect
The INSERT statement inserts one or more rows specified in source in the database table specified in target. The two variants with INTO and VALUES or without INTO with FROM behave identically, with the exception that you cannot specify any internal tables in source after VALUES.
System Fields
The INSERT statement sets the values of the system fields sy-subrc and sy-dbcnt.
sy-subrc Meaning
0 At least one row was inserted.
4 At least one row could not be inserted, because the database table already contains a row with the same primary key or a unique secondary index.
The INSERT statement sets sy-dbcnt to the number of rows inserted.
Note
The inserted rows are finally included in the table in the next database commit. Up until this point, they can still be removed by a database rollback.
*Modify Statement
MODIFY dbtab
Syntax
MODIFY target FROM source.
Effect
The MODIFY statement inserts one or several lines specified in source in the database table specified in target, or overwrites existing lines.
System fields
The MODIFY statement sets the values of the sy-subrc and sy-dbcnt system fields.
sy-subrc Meaning
0 At least one line is inserted or changed.
4 At least one line could not be processed since there is already a line with the same unique name secondary index in the database table.
The MODIFY statement sets sy-dbcnt to the number of processed lines.
Note
The changes are transferred finally to the database table with the next database commit. Up to that point, they can be reversed using a database rollback.
Hope it helps...
P.S. Please award points if it helps... -
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. -
A function module to add an entry to the change log of the ODS needed
Hi all,
I want to add an entry to the change log table of the ODS .
Is there a Function module available for this or a work around for this.
Regards
AkshayHi Kiran,
You can directly add days to the date.
Eg:
DATA date LIKE sy-datum.
DATA days TYPE i.
date = sy-datum.
days = 100.
date = date + days.
WRITE date.
Regards
Wenceslaus -
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. -
Problem with No entry in table T591B for 0015 08 E101
Hi all,
This is our first year using SAP and we're approaching our first Year End and so want to make the E Wage Types available for us in IT0015, E121 is already OK and I can enter data in IT0015 for that WT no problem. I've added WT E101 to the 0015 Additional Payments in the IMG and it shows as being allowed for IT0015, this has created entries in the Permissability, etc. in the IMG and I've updated permisability for the ESG to allow for all ESG / PS, etc. - so all looks fine when I work through the steps for Additional Payments in the IMG, but when I try to save E101 in IT0015 I get a message about 'No entry in table T591B for 0015 08 E101' .
When I look at this table it's called 'WT dependent retroactive accounting trigger' and I've not seen it before despite setting up many Wage Types and I can see E121 is in this table but E101 isn't - but I can't see how I can add or copy anything in this table - there are no options. So I'm assuming this is usually auto updated by creating an entry in another table but I have no idea how to find where and can't find any documentation or other forum messages for this table.
Has anyone else come accross this before or know anything about this table - has anyone else had trouble when wanting to allow E Wage Types to be used for Year End adjustments?
Thanks in advance for any advice anyone can give me
NyreeOlnly wt configured to be permissibled on a few infotypes (e.g. 0014, 0015, 0267) would need to be configured in V_T591B. The purpose of this is to control whether these wt are allowed to be changed after payroll is already run for the ee.
All you need to do is maintain this entry through view V_T591B - add entry for wt 'E101' for infotype 0015 / country '08'. The indicator (V5591B-ABWRU) can be '' (allow change to wt after proll is run), 'X' (warning if change after proll is run), 'E' (hard-error if change after payroll is run) .
Rgds. -
Entries in table BWOM_SETTINGS for PARAM_NAME = 'OBJSELSIZE '
Hello All,
The entries in table BWOM_SETTINGS for PARAM_NAME = 'OBJSELSIZE ' in our ECC system were as follows originally:
OLTPSOURCE = ''
PARAM_NAME = 'OBJSELSIZE '
PARAM_VALUE = 'X'
At that point we started using delta extarctor 0PM_OM_OPA_2 and it had a very poor performance.
SAP asked us to implement note 1040072.
As a result of applying that note, the BWOM_SETTINGS table has 2 entries for PARAM_NAME = OBJSELSIZE.
1. OLTPSOURCE = ''
PARAM_NAME = 'OBJSELSIZE '
PARAM_VALUE = 'X'
2. OLTPSOURCE = '0PM_OM_OPA_2'
PARAM_NAME = 'OBJSELSIZE '
PARAM_VALUE = 'X'
Things were fine until we added more init selections to another CO extractor, 0CO_OM_OPA_6.
0CO_OM_OPA_6 deltas were taking around 2 hours for original init selections:
Fiscal year / period 2007001 2007012
Fiscal year / period 2008001 2020012
Controlling Area 3000
Recently we added more init selections and now selections are :
Fiscal year / period 2007001 2007012
Fiscal year / period 2007001 2020012
Fiscal year / period 2008001 2020012
Controlling Area 3000
Controlling Area 4000
Controlling Area 5000
The extraction is now taking unacceptably long time, about 15 hours.
I am not sure if it is because adding more inits.
I have a feeling the entries in BWOM_SETTINGS for OBJSELSIZE are incorrect.
According to note 836740 should they be as below?
OLTPSOURCE = '0CO_OM_OPA_6'
PARAM_NAME = 'OBJSELSIZE '
PARAM_VALUE = 'X'
OLTPSOURCE = '0PM_OM_OPA_2'
PARAM_NAME = 'OBJSELSIZE'
PARAM_VALUE= 'X'"
One more question. If we change the BWOM_SETTINGS entries to as above, will that affect other CO extractors?
For instance, we use 0CO_OM_CCA_9 very widely and it runs very fast currently. I just want to make sure we dont mess up its performance by modifying the entries in BWOM_SETTINGS. May be add one more entry in BWOM_SETTINGS for 0CO_OM_CCA_9 too?
Sorry about the lengthy post.
Any help is greatly appreciated.
Thank you.As stated in [OSS Note 836740 - Delta extractors CO: OBJSELSIZE DataSource specific|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=836740], there should be parameter OBJSELSIZE entries, with a value of X for the following CO DataSources:
0CO_OM_CCA_9
0CO_OM_OPA_6
0CO_OM_ABC_7
0CO_OM_WBS_6
0CO_OM_NAE_2
0CO_OM_NTW_2
0OC_OM_NWA_2
The independent entry, where the DataSource is blank, should also be prsent for the OBJSELSIZE parameter with a value of X. [OSS Note 1040072 - 0PM_OM_OPA_2: Poor performance|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1040072] shows that it's also needed for the 0PM_OM_OPA_2 DataSource.
Your entries for 0CO_OM_OPA6 and 0PM_OM_OPA_2 are correct. You should add 0CO_OM_CCA_9 and any other DataSource in the list above. If they're not listed, they are supposed to be taken care of by the independent entry (DataSource is blank). -
Impact of new entries in Table T005
Hi All,
Can anyone please guide me that adding new entries in table T005 will have critical impact at which all places?
I understand that this is the master table for countries, but I am not too sure that where all it can impact critically.
Thanks.Hi,
Please use the following SPRO node to add new country codes:
SAP Netweaver - General Settings - Set countries.
Here after you add the new country code using "Define countries", you should check rest of the steps to make sure that all the relevant places in the system are configured for the newly added country code.
One more point: Make sure that you are using ISO standard .
Regards,
Dilek -
Hello,
We want to add an entry in the table V_156B.
I tried doing it by SM30 --> it didnt allow me
I have checked OMJJ settings, but not sure which is the right one to make this movement type appear in the table.
I have searched the configuration for the table and it points me to OMJJ.
Can anyone help me on this ???
ThanksHi,
What exactly your requirement is means are you changing the Screen layout.For which movement type you are doing screen layout changes.Instead of doing in Table V_156B do it in customizing activities.
If it is related to Goods Issue/transfer postings do the screen changes in OMBW
If it is related to Goods Receipt Mvt type do the settings in OMCJ
Some mvt types are automatic types you can do the settings in OMJA
If you check these transactions you will find maximum mvt types screen layout.
hope you got it.
rgds
Chidanand -
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 -
How to make entry in table EDSDC?
Hi,
Can somebody tell me how to make entry in table EDSDC?
I need an urgent answer.
Waiting to give good points.
Thanks,
MaxHi ,
Go to SE16 , Enter View Name -> V_EDSDC and Click on Display / Change Button to maintain entries .
Please note that you must have authorization to do maintainance for this table ; failing which you can only view the table .
If you are unable to add entries , I can tell you an alternative for doing so , through debugging . -
Managing entries in table TWRF1
Hello,
I am working in the is-retail environment. I wish to add a new entry in table TWRF1 that contains allowed tables per copy rule. Those copy control are part of the site profile.
Best regards,
Sarah Tal
Edited by: SARAH TAL on Apr 21, 2009 9:32 AMHi,
First add all the entries to USR40 table in devolopment system.
Then export that table from devolopment systems.
SE03->Include objects in a transport request->on the next screen click on selected objects> select the R3TR TABL Table/Structure option>enter table name -->click on execute.
Once you include the object in transport request...relaese that transport request.
After that move that transport to production.
Thanks & Regards,
nagarjun.
Maybe you are looking for
-
Printing blank lines in IE 8, 9, 10 and 11 differs
We have Credit Reports that are put in Iframe (and hidden fields) and when the users checks which ones they want to print, we take the hidden fields an populate one Iframe to print them all from. Problem is, IE 8 prints fine, IE 9 removes many of the
-
IPOD NO LONGER MOUNTS/ CAN BE SEEN
Hi, I'm sure there's a simple answer to this (hope so anyhow). I recently formatted my (third gen) mac formatted i-pod. I did this using a pc, though I did not use itunes to do this (I know, I know...). However, I obviously did something pretty serio
-
RF Pick and Pack delivery sequence going by material rather than bin locati
Hi All, During picking and packing through RF we are entering the TO number and after that packaging barcode. Everything is working fine but transaction has some kind of logic where its taking the warehouse picker around different aisles based upon m
-
Where can I get a Mac CS2 or 3 that works on an Intel computer?
Where can I get a Mac CS2 or 3 that works on an Intel computer? My CS2 on a G4 doesn't work. Björn
-
Conditional branching after page submit
Hi all I have a page where I need to submit and process the page and items(insert and update database) then branch to a certain page depending on which button was pressed. I have 4 buttons and each button should go to a different page, each button al