In sm30, when save, how to fill the table with the system data in the table
Hi all, in SM30, we have user name and time fields, when we create record, after we click the SAVE button, it will automatically fill the fields with the system data, how can we realize it?
Hi ,
Do like this.
1. Go to SE11 -> give your table name and press on change button .
2.Go to Menu->Utilities-> Table Maintainance Generator , then it will take you another screen .
3.Assign Functin group if already have one , other wise create function group and assign
4.Go to Menu->Environment->Modification->Events , again it will take you to another screen
5.Click on new entries
->Now press F4 in T column . Select<u> "01" - Before saving the data in the database</u> and in form routinue give any name of the routinue like "SAVE_USER_DATA" and press enter then u can see an editor symbol in next column click on that it will take you ABAP editor there type this code .
ztable-username = sy-uname.
ztable-createtime = sy-uziet.
check and activate the code .
With this your job will be complete . Now while entering data just leave columns blank , they will insert corresponding username and time
Don't forget award points if it helps you.
Regards,
Raghav
Similar Messages
-
SQLLDR: How to fill empty columns with specific default data ?
Hello,
We are in 11G
Here is a complete exemple:
1) The table definition:
create table IMPORT_PRJ_TIMESHEETS
RESSOURCE_CODE VARCHAR2(20),
REFERENCE_DATE VARCHAR2(20),
STATUS VARCHAR2(20),
PROJET_CODE VARCHAR2(50),
TACHE_ID VARCHAR2(100),
TACHE_DESC VARCHAR2(250),
RAF NUMBER,
JOUR1 NUMBER,
JOUR2 NUMBER,
JOUR3 NUMBER,
JOUR4 NUMBER,
JOUR5 NUMBER,
JOUR6 NUMBER,
JOUR7 NUMBER,
IMPORT_DATE DATE
);2) the CTL:
LOAD DATA
CHARACTERSET WE8ISO8859P1
APPEND INTO TABLE IMPORT_PRJ_TIMESHEETS
-- Pour eliminer la ligne d'en-tete
WHEN PROJET_CODE != 'ID projet'
FIELDS TERMINATED BY '*-*' OPTIONALLY ENCLOSED BY '"'
( RESSOURCE_CODE CONSTANT '!RESSOURCE_CODE!'
, REFERENCE_DATE CONSTANT '!REFERENCE_DATE!'
, STATUS CONSTANT '!STATUS!'
, PROJET_CODE CHAR
, TACHE_ID CHAR
, TACHE_DESC CHAR
, RAF CHAR "TO_NUMBER( :RAF, '999G999D99')"
, JOUR1 CHAR
, JOUR2 CHAR
, JOUR3 CHAR
, JOUR4 CHAR
, JOUR5 CHAR
, JOUR6 CHAR
, JOUR7 CHAR
, IMPORT_DATE SYSDATE
{code}
3) the datafile :
{code}
ID projet*-*ID tâche*-*Tâche/Description*-*RàF*-*lun. 13/07*-*mar. 14/07*-*mer. 15/07*-*jeu. 16/07*-*ven. 17/07*-*sam. 18/07*-*dim. 19/07*-*
FR-FR-NT2300135*-* *-*GAMMAWEB - Coordination*-*0,00*-* *-* *-* *-*8,00*-*8,00*-* *-* *-*
*-* *-*Holiday*-* *-* *-*8,00*-* *-* *-* *-* *-* *-*
*-* *-*Special leave*-* *-*8,00*-* *-* *-* *-* *-* *-* *-*
*-* *-*Vacation*-* *-* *-* *-*8,00*-* *-* *-* *-* *-*
{code}
- As you can see, the datafile delimiter is "*-*" .... there's no pb about this.
- Also, there are 5 lines in the datafile. Currently, the _*load status*_ is :
- Line 1 is the header >>> not loaded, and that's fine with me.
- Line 2 is successfully loaded
- Line 3 / Line 4 / Line 5 : are not loaded .. but I need these lines ...
*What I'd like to get is to successfully load lines 3 to 5 with a default values for the first 3 columns (project/task ID/ task desc)*
I hope it's clear enough and that you will be able to provide a good answer ..
Thanks in advance,
OlivierThanks for your reply ... it was helpful..
here is the current CTL I use with the datafile above:
LOAD DATA
CHARACTERSET WE8ISO8859P1
APPEND INTO TABLE IMPORT_PRJ_TIMESHEETS
FIELDS TERMINATED BY '*-*' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
( RESSOURCE_CODE CONSTANT '!RESSOURCE_CODE!'
, REFERENCE_DATE CONSTANT '!REFERENCE_DATE!'
, STATUS CONSTANT '!STATUS!'
, PROJET_CODE CHAR "NVL(:PROJET_CODE, 'INDIRECT')"
, TACHE_ID CHAR
, TACHE_DESC CHAR
, RAF CHAR "TO_NUMBER( :RAF, '999G999D99')"
, JOUR1 CHAR
, JOUR2 CHAR
, JOUR3 CHAR
, JOUR4 CHAR
, JOUR5 CHAR
, JOUR6 CHAR
, JOUR7 CHAR
, IMPORT_DATE SYSDATE
{code}
I have removed line " WHEN PROJET_CODE != 'ID projet' " , because when I use it, because column is NULL .. it doesn't take the NULL into consideration... and as a results, there is only one line loaded, and not the 3 others !
Now, when I remove line " WHEN PROJET_CODE != 'ID projet' " , I get the results that I want (4 lines loaded), BUT a BAD file is created (with the first row, the one that starts with 'ID projet' )
I understand that this is normal behaviour with this CTL.
But would it be possible to not put this 'ID projet' line into the BAD file (so that the directory is not polluted with numerous BAD files)
I was thinking with something like this : " WHEN NVL( PROJET_CODE, 'none') != 'ID projet' "
But this doesn't work..
Do you have any advice to provide ?
Thanks in advance
Olivier -
How to fill the whole screen of my iMac with the photos I included in an iDVD project. (iDVD v. 7.1.2). I mean, during playing the burned dvd.
When I do "Enter Full Screen", the slide show fills the screen but the photo itself remains in the middle with a wide black border filling the rest.
Any cure for this ?Hi
In iDVD Preferences - Turn off - TV-Safe area - and the Photos will fill the full area with just letterboxing or pillars as max.
Then "Save as a DiskImage" and test this and see if this plays better - before burning DVDs that's not as You want them.
Bengt W -
How to fill the values in List Box?
Hi Experts,
Can anyone explain me how to fill the values in the List Box such that the value should be from the table?
For Example : Fill the EmpID from table T1 into the ListBox?
Thanks in Advance,
Regards,
Raghuhi,
and u doing it through report means from se38 than here is code...
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr,
END OF itab.
DATA : ok_code LIKE sy-ucomm.
CALL SCREEN 0200.
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'Z200'.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
CASE ok_code.
WHEN 'BACK' OR 'UP' OR 'CANC'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
*& Module mat_val INPUT
text
MODULE mat_val INPUT.
SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
WHERE matnr BETWEEN '000000000000000101' AND '000000000000000109'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
VALUE_ORG = 'S'
tables
value_tab = itab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " mat_val INPUT
<b>And this is flow logic..</b>
PROCESS BEFORE OUTPUT.
MODULE status_0200.
PROCESS AFTER INPUT.
MODULE user_command_0200.
PROCESS ON VALUE-REQUEST.
FIELD itab-matnr MODULE mat_val. -
How to fill the "budget" in an initiative in SEM BSC
Good Afternoon for all!
We have a Balanced Scorecard implemented in SAP SEM BSC, using SAP BW.
Our Balanced Scorecard actually manages ratios, objectives, perspectives, strategy and scorecard.
Now, we are trying to use "iniatiatives" and we have using the SEM BSC wizard, through the web interface.
When defining the initiative everything goes ok, we define the initiative , and then we assign it to an objective.
We have also installed the infocube "0SEM_C02" which we have the understanding that it stores the information concerned to initiatives.
I have also build a SEM BPS layout and planning area for this infocube (0SEM_C02) in order to fill the infocube with information (manually entered).
But after all these, the information does not appear for the "budget" when displaying the Balanced scorecard.
When displaying an initiative it displays:
-Definition
-Duration
-Priority
-Status and score
-Milestones
-Team members
-Objectives
-Budget (<-----E M P T Y !! )
I do not understand, how to fill the "Budget" data for an initiative. Because we have fill all the information regarded to the initiative included above, but the budget is very important for us, and as i said before, we have installed the infocube 0SEM_C02, we also created a planning area for this infocube in BPS, we have created a planning layout for this infocube, and we have entered some values to this infocube.
Is there any special condition or something special to do, in order to fill the budget for an initiative in SAP SEM BSC??
How can we see in the BSC the budget for an initiative, or fill the value???
We will appreciate any help for this issue.
Thanks in advance for your valuable help.
Carlos Espana
Cementos Progreso
GuatemalaCarlos,
This is the Forum for SAP Strategy Management.
There is another Forum specifically for SEM-BSC questions.
Go to the SAP Community Network Forums > SAP Solutions > SEM-BSC
Please repost your question there for an answer.
Regards,
Bob -
How to fill the gaps in SAP Fico configuration
Hi Guys,
Can anyone please explain me that how to fill the gaps in SAP FICO implementation project
Thanks in advance
VasuHello,
Perhaps you might find some useful info here http://help.sap.com/saphelp_sm70ehp1_sp23/helpdata/en/36/f1a5e16cde4121acc69a91728b9082/frameset.htm
Regards,
Paul -
How to fill the master data in ecc
Hi,
0product_attr having zero records i ecc,how to fill the master data in ecc can you pls provide me the setps?
Regrads,
devi.Hi Devi,
Loading data is ECC is not the part of BI Activities. Contact your functional consultant to load data.
BDC and LSMW both are used for loading data into SAP system.
Or ask even directly they can create in ECC. If it is for your testing purpose, it is better to ask them to create master in source system .
Thanks
BVR -
Revision: 10545
Author: [email protected]
Date: 2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
Log Message:
Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
QE Notes: 2 Mustella tests fail:
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
Doc Notes: None
Bugs: SDK-15241
Reviewer: Darrell
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-15241
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.asHi Matthias,
Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional). We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files). We also use VIPM Enterprise to distribute new VI Packages over the network.
Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
Please feel free to contact JKI if you have any specific questions about these products.
Thanks,
-Jim -
How to fill the details tab in tv shows with description
Can anyone tell how to fill out the details tab metadata in the tv shows section of iPad? The tv shows purchased from the iTunes Store have the details tab beside the episodes tab filled in with helpful description about the show. Isn't there a way to do that manually for personally downloaded tv shows? It's not possible to buy every content from the iTunes Store. Please help if anyone know how to add description to tv show details.
see your duplicate thread : How to fill the details tab in the iPad tv shows with description
-
WHEN or HOW to fix the problem with Thunderbolt/Side screen problems
WHEN or HOW to fix the problem with Thunderbolt/Side screen problems (Cinema screen). Keeps blinking on & off then eventually completely off. Would have thought Apple would have fixed the problem by now as it is apparently to do with the Thunderbolt connector!.
Hello, might it be Video card related?
See if yours is on the recall list...
iMac (27in): AMD Radeon 6970M Video Card Replacement Program (del 'mid 2011')
http://xlr8yourmac.com/
http://support.apple.com/kb/TS5167? -
How to fill a symbol with color
How to fill a symbol with color?
Good day!
What do you mean by »symbol« in this case?
Is this on a Layer of its own or is it part of a photograph?
Could you please post a screenshot with the Layers Panel visible?
Regards,
Pfaffenbichler -
How to Fill Setup tables for MAP (IS- Retail)
Hello,
I am working on MAP scenario, I found the following data sources as a part of it. Can anybody please tell me how to fill the setup tables for these and what are the base tables for it??
2LIS_40_REVAL
2LIS_40_S202
2LIS_40_S207
2LIS_40_S208
Your reply is highly appreciated.
Regards,
NareshHi Naresh,
We cannot fill setup tables for each data source.
ORISBW -- This is the t-code to fill the setup tables for all the data sources which are related to application component 40.
If you want setup tables names of your data sources please check below.
2LIS_40_REVAL --- MC40RP0REVSETUP.
Comes to your second post.
2LIS_40_S202
2LIS_40_S207
2LIS_40_S208 these are LIS data sources, whic are replaced with LO data sources in SAP BI 7.0
If you are using LO data sources then no need to use LIS data sources.
Regards,
Venkatesh -
I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?
I HOW I FILL PDF FORM WITH HEBROW ON CHROME ?
Chrome uses its own (incompatible) PDF viewer.
Download the PDF to your local disk, then fill it from there with Adobe Reader. Or use a browser that uses the Adobe PDF plugin. -
How to fill internal table with selection screen field.
Hi all,
i am new to sap . pls tell me how to fill internal table with selection screen field.Hi,
Please see the example below:-
I have used both select-options and parameter on the selection-screen.
Understand the same.
* type declaration
TYPES: BEGIN OF t_matnr,
matnr TYPE matnr,
END OF t_matnr,
BEGIN OF t_vbeln,
vbeln TYPE vbeln,
END OF t_vbeln.
* internal table declaration
DATA : it_mara TYPE STANDARD TABLE OF t_matnr,
it_vbeln TYPE STANDARD TABLE OF t_vbeln.
* workarea declaration
DATA : wa_mara TYPE t_matnr,
wa_vbeln TYPE t_vbeln.
* selection-screen field
SELECTION-SCREEN: BEGIN OF BLOCK b1.
PARAMETERS : p_matnr TYPE matnr.
SELECT-OPTIONS : s_vbeln FOR wa_vbeln-vbeln.
SELECTION-SCREEN: END OF BLOCK b1.
START-OF-SELECTION.
* I am adding parameter value to my internal table
wa_mara-matnr = p_matnr.
APPEND wa_mara TO it_mara.
* I am adding select-options value to an internal table
LOOP AT s_vbeln.
wa_vbeln-vbeln = s_vbeln-low.
APPEND wa_vbeln TO it_vbeln.
ENDLOOP.
Regards,
Ankur Parab -
How to fill internal table dynamically
Hi All,
how to fill internal table dynamically.
for example:
begin of itab occurs 0,
empid like pa0000-pernr,
empname like pa0001-ename,
grade(5),
end of itab.
now i want to append dynamically field itab-grade along with rest fields.
is this possible?? if yes kindly let me know how to do that.
Regards,
Kiran IHi kiran,
To fill and create and internal table dynamically you can use this code.
TYPE-POOLS: slis.
DATA: it_fcat TYPE slis_t_fieldcat_alv,
is_fcat LIKE LINE OF it_fcat.
DATA: it_fieldcat TYPE lvc_t_fcat,
is_fieldcat LIKE LINE OF it_fieldcat.
DATA: new_table TYPE REF TO data.
DATA: new_line TYPE REF TO data.
FIELD-SYMBOLS: <l_table> TYPE ANY TABLE,
<l_line> TYPE ANY,
<l_field> TYPE ANY.
is_fieldcat-fieldname = 'FIELD1'.
is_fieldcat-ref_field = 'MATNR'.
is_fieldcat-ref_table = 'MARA'.
APPEND is_fieldcat TO it_fieldcat.
is_fieldcat-fieldname = 'FIELD2'.
is_fieldcat-ref_field = 'SPRPS'.
is_fieldcat-ref_table = 'PA0001'.
APPEND is_fieldcat TO it_fieldcat.
is_fieldcat-fieldname = 'FIELD3'.
is_fieldcat-ref_field = 'BEGDA'.
is_fieldcat-ref_table = 'PA0002'.
APPEND is_fieldcat TO it_fieldcat.
Create a new Table
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcat
IMPORTING
ep_table = new_table.
Create a new Line with the same structure of the table.
ASSIGN new_table->* TO <l_table>.
CREATE DATA new_line LIKE LINE OF <l_table>.
ASSIGN new_line->* TO <l_line>.
Test it...
DO 40 times.
ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <l_line> TO <l_field>.
<l_field> = '12345'.
ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <l_line> TO <l_field>.
<l_field> = 'X'.
ASSIGN COMPONENT 'FIELD3' OF STRUCTURE <l_line> TO <l_field>.
<l_field> = '20030101'.
INSERT <l_line> INTO TABLE <l_table>.
ENDDO.
LOOP AT <l_table> ASSIGNING <l_line>.
ASSIGN COMPONENT 'field1' OF STRUCTURE <l_line> TO <l_field>.
WRITE / <l_line>.
ENDLOOP.
regards,
Aashish Garg
Maybe you are looking for
-
Error 1603. Photoshop CS4
Alright, so I recently got Photoshop CS4, for some odd reason when I had to do a system restore, it messed up. Not sure why, but I got the screen to accept or decline the user end license agreement, when I clicked to accept it, it just went away and
-
IPhone 4s Can't Sync to iTunes, Stuck in Backing Up (2of6)
I've an iPhone 4s 64gb iOs 5.0.1 for 3 weeks now, but still can't sync it w/ iTunes at all, I've tried iTunes version 10.5.3.3 and version 10.6.1.7 but both of them stuck on backing up (step 2 of 6). I'm using win7 64bit. Can anyone help ? Reseting t
-
Can I use the new Apple Thunderbolt to Firewire adapter to download video from a video camera by firewire to my Macbook Air ?
-
Logical System for Transaction Launcher??
Dear all, Should we define logical system for Transaction Launcher to call transactions from back end ECC system. If yes, why we do this and where we maintain the logical systems? Can we use existing ECC logical system, whcih mapped with SAP CRM syst
-
OBIEE 11G - BI Publisher in MS Word 2007
Hi, I installed the plug in and the templatebuilder.dot and wordanalyser.dot are in the active list, but I do not see a BI publisher in the ribbon. Please let me know how I can get it or any steps I am missing. Thanks for your time and help.