How to put entries in the table
Hy,
i have a table in which i have to enter the enteries, it's a user created Z table. How can i upload the enteries in that table from a excel file.
thanks in advance.
regards,
kartikey rawat.
Hi,
Look at this sample code....
tables zfbillplanitm.
data: begin of itab occurs 0,
bukrs like zfbillplanitm-bukrs,
fplnr like zfbillplanitm-fplnr,
fpltr like zfbillplanitm-fpltr,
fpltr(6) type c,
vbeln like zfbillplanitm-vbeln,
overwrite,
end of itab.
data bplan_it like standard table of zfbillplanitm with header line.
data: w_cref1 type ref to zcl_standard_report_interfaces.
data: w_foot1 type string,
w_foot2 type string,
w_foot3 type string,
w_flag type c.
data: begin of error_it occurs 0,
bukrs like zfbillplanitm-bukrs,
fplnr like zfbillplanitm-fplnr,
fpltr like zfbillplanitm-fpltr,
fpltr(6) type c,
vbeln like zfbillplanitm-vbeln,
error(40) type c,
end of error_it.
data inv like vbrk-vbeln.
constants: a value '|'.
selection-screen: begin of block sel with frame title text-001.
parameters: p_file type rlgrap-filename.
parameters: test as checkbox default 'X'.
selection-screen: end of block sel.
clear itab.
call function 'WS_UPLOAD'
exporting
codepage = ' '
filename = p_file
filetype = 'DAT'
tables
data_tab = itab
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
if sy-subrc ne 0.
message e000 with text-e01.
stop.
endif.
sort itab by bukrs fplnr.
****here you do what ever manipulation you want in ITAB.
Later ITAB data was processed into bplan_it.
loop at bplan_it.
update zfbillplanitm from bplan_it.
if sy-subrc eq 0.
commit work.
else.
rollback work.
endif.
clear bplan_it.
endloop.
I hope this will helps u if not revert back.
Thanks.
If this helps u reward with points.
Similar Messages
-
How to put pictures inside the table in Pages for IPad?
How can I put pictures inside the table in Pages for IPad? I can do that in Pages in my macbook, but I can't in IPad.
It would appear that unless you are working from a document that already had section breaks (or the equivilent) ,you can't. I have some files in pages that began as MS Word documents with multiple sections that allow that by tapping on the footer (or header) and making the change. Files created in Pages (or from other sources but without section beaks) do not.
-
How to put Hyperlink in the table column.
HI,
I want to put hyperlink(with underline) for the columns(column headers) of the table .I have created IWDAction for the column
I want to put a underline for this hyperlink.
I tried with IWDLinktoAction.But I am not getting the hyperlink with underline.
Please suggest how to get the hyperlink with underline.Hi,
U cant place a link to acction in headers.
If you really need it you have to do it with some compromises by making use of either toolbar or a transparent container above your table.
Regards
Ayyapparaj -
How to put data in the table for Absence Quotas.
Hello Gurus,
How to configure in the table (V_556A_B)Absence Quota for increase in SicK Leave and Priviledge Leave.
Kindly provide me with steps.hi.
please specify whether you are using time evaluation or time management quota generation based on which information can be provided. please do eloberate the query.
madhu -
How to find latest entry in the table according to time
how to find latest entry in the table according to the time
is there any function module to do so
\[removed by moderator\]
Regards
Shashi
Edited by: Jan Stallkamp on Aug 25, 2008 4:39 PMHi,
If you want to read the entry from an internal table,
sort the internal table in the descending order by the time and
delete adjacent duplicates by comparing the fields other than time and the internal table will have the latest record.
Suggestion: instead of only time try to have one more field called date with the time combination
Regards,
Ramesh -
Multiple entries in the table cabn
Hello,
Can Anyone tell me how is it possible to have multiple entries of the same "atnam" field in the table CABN.
It has something to do with changing number.
Because I used a wrong select-instruction e.g.
select atnam in charact where .... IN ....
So, I shoud used
select DISTINCT atnam in charact where .... IN ....
So, I'm gone need to try to put multiple entries in the table to check, if it's working well.
Thanks a lot.
Best Regards,
KaisIf I understand your Q - you mean there are two ATINN for the same ATNAM in your CABN table?
I dont think that's possible. If you check CT04 and try to create a new characteristic with same name as an existing one - it will give you a warning and prevent creation.
Since you say it's a standard characteristic - please mention the characteristic name (ATNAM)? -
How to put scrol bar in table viw control in module pool programming
how to put scrool bar in table-view control in module pool programming
Hi Rani,
You need not insert Scrollbar in the table control, it appears automcatically once the amount of data vertical or horizontal limit of table control.
Regards,
Sathish
Note : Reward useful Answers -
How to put distinct in the query
Hi all,
How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
any idea , please help...In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
==================================================
RqList distinct
VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
OrderBy: c4 desc
=================================================
-------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
select T353.BATCH_ID as c1,
case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
T353.TOT_TRXN_CT as c3,
T353.TOT_TRXN_AM as c4,
T353.BREAK_ID as c5,
T117.SCNRO_NM as c6
from
KDD_SCNRO T117,
KDD_TA_DATA T130,
KDD_TSHLD_SET T171,
VW_SCNR_114000074_TA_DATA T353
where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID ) -
CUA: Wrong entries in the table USZBVSYS
Hi All,
While searching a particular user access to the child systems via SUIM - > Users by system, the report given output that the user have access to so and so system. Whereas that user already deleted and there is no user account in CUA and the respective child system.
When i search in the table USZBVSYS, that user having a entry to that child system with status S.
May be due to some old IDOC get processed and made an entry in this table but physical the changes were not made either in CUA or in child system.
Now my concern is how to delete such type of entries in the table USZBVSYS?
SAP recommended not to use the report RSUSR_CUA_CLEANUP_USZBVSYS and i think it can be resolve only by manually method to create and delete.
Kindly let me know you opinion pls.Hi,
RSUSR_CUA_CLEANUP_USZBVSYS cannot work in this case, as you have 'S'-entries for the user section in uszbvsys. The report will clean up only entries with D,A or X entry for the user entry.
So there seems to be no automated standard report for your query.
I suggest to collect the user-IDs you need to remove, copy them into SU10, recreate them for the required systems and delete them
afterwards again.
Make sure, that nobody processes cua-idocs manually in any of your systems of the cua. Only use scul.
b.rgds, Bernhard -
Delete any entry in the table before adding an entry?
Hello ABAP Experts,
I have the data in the work area. I can modify / update / insert to the table.
How to write the ABAP code for this situation.
1) to delete any entries in the table
2) update this entry
so finally always there would be only one entry.
Suggestions appreciated.
Thanks,
BWerHi,
Delete the entries of table by this stmt.
DELETE FROM (dbtabname).
Then insert the values from workarea
INSERT INTO dbtab VALUES <work_area>.
And u can upadte the entry with values of workarea by this stmr.
UPDATE (dbtabname) FROM wa.
Dont use MODIFY. It will add a new record if its a new entry.
Rgds,
Prakash -
How to put name in the application toolbar
how to put name on the button in the application tool bar while it is created with selection screen
I've never seen this done this way. Learn something new everyday. Anyway, here is a sample program that will show you what you need to do to add text to your function button, this also adds an icon.
report zrich_0002.
Tables: sscrfields.
selection-screen function key 1.
select-options: s_datum for sy-datum.
INITIALIZATION.
MOVE '@49@ Export' TO SSCRFIELDS-FUNCTXT_01. "ICON_EXPORT
If this has solved your problem, please award points accordingly and mark this post as solved. Thanks.
Regards,
Rich Heilman -
Problem with the XI-Audit log entries in the table "XI_AF_MSG_AUDIT"
Hi,
I have an async-szenarios for PO:
We send Idoc's from SAP ERP to a WebService via SOAP. And we take Ack's. We use Integrationsprocess with deadline block to catche the errors after the retrying (three times) and to send they via e-mail.
Our problem is, the number of the audit logs in the table "XI_AF_MSG_AUDIT":
In the RTW only we see one audit log (with three retries) in an error case. But in the table XI_AF_MSG_AUDIT there are about 76 entries for the same audit log in the error case and about 20 entries in the case of the succuessfull processing.
This number of the entries in the table causes problem with the size of the redo log file and delete job of cours the large size of the table and therefore problem on the data base. The table can not be controlled. The delete job can not run and cancels every time due this redo log problems
What can cause that?
How can it be prevented, that so much entries are not be made in the table "XI_AF_MSG_AUDIT".
Best regards
GueltekinHi Gueltekin,
I am only aware of the general property auditLogEnabled of J2EE Engine Service SAP XI AF Core, which controls in general (default = true) that entries in the AF Message Audit log are written at all.
(see [http://help.sap.com/saphelp_nw70/helpdata/en/5c/22ee41c334c717e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/5c/22ee41c334c717e10000000a155106/frameset.htm])
I assume that your scenarios in the error case is sending up to three messages and for each message the number of audit log infos are created. You might want to check the detailed entries in the log and see from where they are comming, you might use customer modules etc. as well.
Best regards,
Silvia -
Hi,
I need to delete entries in the table ,those may be anywhere between 1 to several thousand. If I want to delete for every hundred records how could it be coded.
Thanks,
Kranthi.Here is a sample program which shows how to delete from a database table 100 records at a time.
report zrich_0001.
data: itest type table of ztest with header line.
data: itest2 type table of ztest with header line.
data: index type i.
* Get all the records that you want to delete
clear itest. refresh itest.
select * from ztest
into corresponding fields of table itest
where mtart = 'ZNBW'.
* Loop untill the first itab is empty, move 100 records * at a time into the second itab, then delete from that
* second itab.
while not itest[] is initial.
clear index.
loop at itest.
index = index + 1.
check index <= 100.
move-corresponding itest to itest2.
append itest2.
delete itest.
endloop.
delete ztest from table itest2.
endwhile.
Regards,
Rich Heilman -
How to make records to the table TRFCQIN
hi all,
anyone can tell me
how to make records to the table TRFCQIN
regardsHi Wanna,
Write a module pool program to enter record into table TRFCQIN.
Take fields to which u want to make entries in module pool.
Use insert command to append data in table TRFCQIN.
Refer this code :
CASE OK_CODE_101.
WHEN 'SAV1'.
TRFCQIN-QNAME = 'XYZ'.
TRFCQIN-QCOUNT = "Screen field name at which user will enter value
INSERT TRFCQIN.
if sy-subrc <> 0.
message e007.
else.
clear TRFCQIN.
clear ok_code_101.
endif.
endcase.
Reward points if helpful.
Regards,
Heamnt -
How do i find out the tables (data)effected in a schema after a particular time stamp
how do i find out the tables (data not structure)effected in a schema after a particular time stamp?
pls email in [email protected]You can't do that. That would be a real security risc.
/KAj
Maybe you are looking for
-
How do I add my Airport Express to extend my airport extreme base station network
How do I extend my wireless net work using my new airport express. My base station is an airport extreme. I can get both the extreme and the express to show up in the wireless set up system, but it wants to set up one or the other. I want them both
-
I need a factory reset to my laptop
HP Pavilion dv6t-6100 CTO Quad Edition Entertainment Notebook PC LM336AAR win 7 home premium genuine MY PROblem is regarding recovery. I created a recovery in my usb with the help of hp recovery manager. Now how to recover to factory reset using this
-
Connecting MacBook Pro to external display
Hi, I have an external display which has dvi & displayport outputs. I currently connect it to my desktop using the displayport however my MacBook Pro (late 13) only has the thunderbolt / mini displayport & HDMI. Bearing in mind that my monitor is 256
-
Full screen mode in Mountain Lion
Hello everybody! I am experiencing certain problems with full screen mode in mountain lion 10.8.2 freshly installed (not upgraded over Lion or ML 10.8.x) on Macbook Pro 13 mid 2010 model. Whenever i open an application which supports full screen mode
-
Application won`t start - starts when logged in as another user
An application created by Unity doesn`t start. When I double click (or right mouse click and choose `open`) nothing happens. However, when I log in as another user, or when I try to run the same program from a flash drive, it works. I tried a lot, in