How to put data in tables in SAP LogOn
For example,i'm doing company benefits,branching this aspect is Medical leave,taxi fees claims and company insurance,how do i put it inside the tables in SAP LogOn?please help me,thanks=)
Hi,
Go to SE16 and enter your table name and click on icon in toolbar to create new entries, there you can add more table contents in your table.
Regards,
Deepti
Similar Messages
-
How to populate data in table control .
hi all,
i put matnr no. in screen no. 103
validation is done at that screen only.
now when i want to modify dat record
when i put matnr no. at screen 103
so how i will get all data of dat number to table control screen.Hi Darshan,
Here is a detailed description of how to update data in table controll.
Updating data in table control
The ABAP language provides two mechanisms for loading the table control with data from the internal table and then storing the altered rows of the table control back to the internal table.
Method 1: Read the internal table into the Table Control in the screenu2019s flow logic. Used when the names of the Table Control fields are based on fields of the internal table.
Method 2: Read the internal table into the Table Control in the module pool code. Used when the names of the Table Control fields are based on fields of the database table.
Method 1 (table control fields = itab fields)
In the flow logic we can read an internal table using the LOOP statement. Define the reference to the relevant able control by specifying WITH CONTROL <ctrl>
Determine which table entry is to be read by specifying CURSOR <ctrl>-CURRENT_LINE.
After the read operation the field contents are placed in the header line of the internal table. If the fields in the table control have the same name as the internal they will be filled automatically. Otherwise we need to write a module to transfer the internal table fields to the screen fields.
We must reflect any changes the user makes to the fields of the table control in the internal table otherwise they will not appear when the screen is redisplayed after PBO processing, (eg, after the user presses Enter or scrolls) However, this processing should be performed only if changes have actually been made to the screen fields of the table control (hence the use of the ON REQUEST)
PROCESS BEFORE OUTPUT.
LOOP AT ITAB_REG WITH CONTROL TCREG
CURSOR TCREG-CURRENT_LINE.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT ITAB_REG.
MODULE MODIFY_ITAB_REG.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Method 2 (table control fields = dict. fields)
If using a LOOP statement without an internal table in the flow logic, we must read the data in a PBO module which is called each time the loop is processed.
Since, in this case, the system cannot determine the number of internal table entries itself, we must use the EXIT FROM STEP-LOOP statement to ensure that no blank lines are displayed in the table control if there are no more corresponding entries in the internal table.
PROCESS BEFORE OUTPUT.
LOOP WITH CONTROL TCREG.
MODULE READ_ITAB_REG.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL TCREG.
CHAIN.
FIELD: ITAB_REG-REG,
ITAB_REG-DESC.
MODULE MODIFY_ITAB_REG
ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE READ_ITAB_REG OUTPUT.
READ TABLE ITAB_REG INDEX TCREG-CURRENT_LINE.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING ITAB_REREG TO TCREG.
ELSE.
EXIT FROM STEP-LOOP.
ENDIF.
ENDMODULE.
MODULE MODIFY_ITAB_REG INPUT.
MOVE-CORRESPONDING TCREG TO ITAB_REG.
MODIFY ITAB_REG INDEX
TCREG-CURRENT_LINE.
ENDMODULE.
Updating the internal table
Method 1
PROCESS AFTER INPUT.
LOOP AT ITAB_REG.
CHAIN.
FIELD: ITAB_REG-REG,
ITAB_REG-DESC.
MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
ITAB_REG-MARK = u2018Xu2019.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Method 2
PROCESS AFTER INPUT.
LOOP WITH CONTROL TCREG.
CHAIN.
FIELD: TCREG-REG,
TCREG-DESC.
MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
MOVE-CORRESPONDING TCREG TO ITAB_REG.
ITAB_REG-MARK = u2018Xu2019.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Updating the database
MODULE USER_COMMAND_100.
CASE OK_CODE.
WHEN u2018SAVEu2019.
LOOP AT ITAB-REG.
CHECK ITAB_REG-MARK = u2018Xu2019.
MOVE-CORRESPONDING ITAB_REG TO TCREG.
UPDATE TCREG.
ENDLOOP.
WHEN u2026
u2026
ENDCASE.
ENDMODULE.
Hope this will solve your problem.
Regards,
Pavan.
Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 3, 2009 12:48 PM -
How to upload data from excel to SAP and options to be used
How to upload data from excel to SAP and options to be used
thank you,
Regards,
Jagrut Bharatkumar shuklaHi Jagrut,
You can use gui_upload.
chk the sample program mentioned below.
REPORT ZFTP .
DATA: BEGIN OF I_FILE OCCURS 0,
DATA(2000) TYPE C,
END OF I_FILE.
DATA: BEGIN OF I_FILE2 OCCURS 0,
DATA(2000) TYPE C,
END OF I_FILE2.
DATA: W_COUNT TYPE I.
PARAMETERS: P_FILEN TYPE STRING,
P_FILE2 TYPE STRING,
P_NUM(4) TYPE N..
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILEN.
PERFORM F_FILE_GET USING P_FILEN TEXT-G01.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
PERFORM F_FILE_GET USING P_FILE2 TEXT-G01.
START-OF-SELECTION.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = P_FILEN
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = I_FILE
IF SY-SUBRC <> 0.
MESSAGE E024(Z1).
ENDIF.
LOOP AT I_FILE.
W_COUNT = W_COUNT + 1.
IF NOT W_COUNT > P_NUM.
MOVE I_FILE TO I_FILE2.
APPEND I_FILE2.
ENDIF.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = P_FILE2
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
IMPORTING
FILELENGTH =
tables
data_tab = I_FILE2
FIELDNAMES =
*& Form F_FILE_GET
text
-->P_P_FILEN text
-->P_TEXT_G01 text
FORM F_FILE_GET USING L_FILENA L_TEXT.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = ' '
MASK = ',.,*.TXT.'
MODE = 'O'
TITLE = L_TEXT
IMPORTING
FILENAME = L_FILENA
rc =
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward if helpful.
Regards,
Harini.S -
How to put data into a RFC import parameter structure from portal
Hi, All,
I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
MyTABStr.setString("FIELD1", value1);
MyTABStr.setString("FIELD2", value2);
importParams.put("MYTABSTR",MyTABStr);
But it works for table not structure. Is there anybody know how to do that?
Thanks in advance!
MeiyingHi,
You can try the following code -
IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
structure.setString("FIELD1", value1);
structure.setString("FIELD2", value2);
importParams.put("MYTABSTR",structure);
Regards,
Sudip -
How to transfer data in table control in bdc
hi
how to transfer data in table control in bdc . I need the theory regarding this
byeHi,
just check in the forum , there is many threads available to ur questions.
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
You can even refer to these related threads
bdc table control
Re: table control in bdc
table control in BDC
Reward if helpful.
Thanks
Naveen khan -
How to retrieve data from table(BOM_ITEM)
Hi All,
I wrote webservices using axis1.4 to get BOM information from SAP.. funtional module is CAD_DISPLAY_BOM_WITH_SUB_ITEMS
webservices works fine..I'am able to retrieve data from Export Parameter..But not able to retrieve data from table
How to retrieve data from table(BOM_ITEM)..?
Cheers, all help would be greatly appreciated
VijayHi,
1. Create Page Process.
2. Select Data Manipulation
3. In category select "Automated Row Fetch"
4. Specify process name, sequence, select "On Load - Before Header" in point.
5. Specify owner, table, primary key, and the primary key column(Item name contains primary key).
6. Create a process.
7. In each item select "Database Column" in "Source Type".
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to insert data into table control
hi experts,,
i have inserted data into data base table through table control .
now i want to insert data into table control through database table.
how to delete data from table control for selected rowHi
go through this link.
http://www.****************/Tutorials/ABAP/TableControl/Demo.htm -
How to insert data in table UI elements
Hi Guys,
Here is my questions. How to insert data in table UI elements.
Here i try to insert data by using Add button
data:
Node_Item type ref to If_Wd_Context_Node.
Node_Item = wd_comp_controller->get_data_node( ).
data:
lr_table_line type ref to ITEM.
lr_table_line = Node_Item->create_element( ).
field-symbols:
<ls_table> type any.
assign lr_table_line->* to <ls_table>.
Node_Item->bind_element(
new_item = <ls_table>
set_initial_elements = abap_false
index = 1 ).
But i got syntax error the result type of the function method cannot not be converted in to the type of lr_table_line.
And i set cardinality and selection as 0.n.
Pls, let me know for the soulutions
Chandru
Message was edited by:
chandrasekar muthuvelrajChadru, another option is for you to bind the table UI field to an internal table and to populate the internal table. Then, automatically, your Table UI field will be populated with the data from the internal table. Here is the code that does that and works for me. Good luck!
method FILL_DATA .
DATA: node_level1 type ref to if_wd_context_node,
node_level2 type ref to if_wd_context_node,
node_items type ref to if_wd_context_node,
stru_ResItems type BAPI2093_RES_ITEM,
tab_ResItems TYPE TABLE OF BAPI2093_RES_ITEM,
n type i.
node_level1 = wd_context->get_child_node( name = 'BAPI_RESERVATION_CRE' ).
node_level2 = node_level1->get_child_node( name = 'CHANGING' ).
node_items = node_level2->get_child_node( name = 'RESERVATIONITEMS' ).
n = 2.
do n times.
insert stru_ResItems into table tab_ResItems.
enddo.
node_items->bind_table( tab_ResItems ).
endmethod. -
How to put datas from database in html�s forms?
Does anyone have any idea how to put datas from the database using JSP???
One option: put your data into a JavaBean and then put that into the session. You can then access it from your JSP. You can access the properties of the bean using the basic JSP scripting elements, or if you want to get fancy, both JSTL and Struts have a bunch of custom tags for working with JavaBeans.
-
How to view data in tables by selecting the synonym from the database objec
I could not figure out how to view data in tables by selecting the synonym from the database objects navigation tree. I had to first choose the synonym, view the details of the synonym to determine the table name, and then select the table from the database objects tree. Is this the only way available?
This functionality currently does not exist. I don't see it on the 1.1 statement of direction either, so perhaps someone from Oracle can give some insight as to when this could be expected.
Eric -
How to back up a table in SAP?Is there tcode to use?
How to back up a table in SAP?Is there tcode to use?
Please suggest me.
Sai.Hello Sai
I do not think there is a specific "backup" transaction available.
For the purpose of backing up a couple of customer tables I used the following approach:
(1) Create a workbench request with all required tables (object entries: R3TR TABU <name of table>; key: '' for client-independent or '<client>' for client-dependent tables.
Export the request.
(2) Write a report which creates a new workbench request and copies the object list of (1) to this new request. Finally the request is released.
(3) Schedule the report as daily batch job. Thus, your latest backup is less than 24 hours old.
The nice thing about this approach is that if you need to backup additional tables: just add the object entries and keys to the request in (1). No changes are required in (2) or (3).
Regards
Uwe -
How to retrieve data through table by passing date
hi
i hv made one table which stores email id & cureent date when entered,
can anybody tell me how to retrieve data through table by passing today's date to last week date,so it can retrieve all email ids which are entersd in last week.
thankshttp://www.google.com/search?&q=sql+tutorial
-
How to translate the text according the SAP logon
Hi Friends,
I have a report, in the selection screen have 4 radio buttons which characters are displaying in German language , if logon in DE. But not populating in other language (English, French , Italian etc ).
Whenever SAP login in u201CENu201D , is displaying an Information message u201CUntranslated texts from master language DE wi also be displayedu201D.
Please guide me how to translate the text according the SAP logon.
in GOTO-> Translation -> Original language "DE" and traget language is empty.
Regards,
SubashDid you try transaction SE63?
Translation -> ABAP Objects -> Short texts, select object type S3 and either REPT or SCRT, probably REPT since it's a selection screen. -
How to see all the data base tables in sap
hi all,
i wanted to see the table ALBTCMON but i cannot and i want to know how to activate a table?
thanks for your time
chanduHai,
Why do you want to create a Table?
More over the table ALBTCMON you have mentioned should not be created because SAP allows only Tables with names starting with 'Y' or 'Z'.
Also you should know the fields, Developement class, etc., before creating the Table in SAP.
Please check the below link to create Table in SAP.
http://abaplovers.blogspot.com/2008/02/creating-table-in-sap.html
Use Tcode SE11 to activate your table.
Regards,
Yoganand.V
Edited by: Yoganand Vedagiri on Dec 29, 2008 12:15 PM -
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
Maybe you are looking for
-
Updation of condition type in conditions tab while creation of sales order
Hi folks I have added one field called price key in Sales B screen of VA01 in item level. When user will input price key here and then put enter. Then the Price should be updated in Conditions tab i.e the condition type will be updated in conditions
-
Get Electric Shock While I Touch My PowerBook
I always get electric shock while I touched my powerbook. Although it is a minor shocks, but it happens frequently. I go crazy about that. My parents touch me while I am using it, they can feel that there is current flow into my body. They tell me th
-
Retrieving the Web Browser keystore
Hello everyone, My question is in the subject : How can I retrieve the Web Browser (IE for example) keystore from my signed Applet ? Is it possible at least ? Thanks for your wisdom. S�bastien
-
Un-mounting network volumes with command line
Does anyone know how to unmount a network volume from the command line in OSX. Using umount deletes the mount but not the mount point. I can't get diskutil or disktool to do it.
-
Compatability issues with adobe acrobat?
I installed the latest version of Adobe Reader but it says that my machine has compatability issues with the acrobat portion. I have windows 8 on an HP pavilion AMD A8.......can anyone help?