Missing Date fields in table maintenance generation
I have some non-key date fields in my custom table and have noticed that they do not get generated on the overview screen of my two-step table maintenance dialog. They are present on the detail screen.
If I change the domain of the fields to CHAR they appear.
If I change the maintenance type to one-step they appear.
It seems it is standard behaviour for date fields to be omitted from the overview screen.
Can anyone confirm that this is standard behaviour or give an explanation for date fields being treated in this manner?...or come up with a way of including the fields on the header screen.
I already know that I can:
1. customize the screen to include the fields
2. create a non-date domain for the fields which uses date-type calendar dropdown
Thanks,
Neil
Thankyou Jonathan, I would have been too lazy to go into debug if I didn't have the form name you supplied! It wasn't the reason you suspected but it was failing the following check in that routine:
maintenance in list screen required?
CHECK p_tvdir-type = one_step_maint OR
( <w_dfies>-keyflag NE space "force only keyfields
OR ( 'CHARNUMC' CS <w_dfies>-datatype "and view char-fields
AND p_skip_fields = space )
OR ( 'CHARNUMC' CS <w_dfies>-datatype "and view char-fields
AND <w_dfies>-intlen GE 20 ) "int 3263961/2000
OR <w_dfies>-rollname = 'BEGDA' "time dependence
OR <w_dfies>-rollname = 'ENDDA' "time dependence
OR <w_dfies>-tabname NE p_gencb-viewname ). "or text table field
Because the datatype was DATS.......looks like it will only include key fields and CHAR, NUMC non-key fields or those with a rollname of BEGDA/ENDDA or texttable fields. In debug I changed the datatype to CHAR and it generated with my field included. I think there might be an OSS note to fix this but haven't found it yet.
Similar Messages
-
How to hide a field from table maintenance view?
Hi,
How to hide a field from table maintenance view?
The field is used for data created date. I need to hide it from display.
ThanksChk this link.
http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
Maintenance Attributes
You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be H (hidden)
H (hidden)
A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
The system writes R and H fields to the database like all other fields when a new data record is saved. -
Disabling fields in table Maintenance generator
Hi Experts,
I would like to restrict some fields in table maintenance generator dynamically/ statically.
Here is the situation.
I have generated table maintenance for the table ZMARA and I have created three transactions for the above single table maintenance generator.
i.e .. Transaction --- Table
ZT1 --- ZMARA
ZT2 --- ZMARA
ZT3 --- ZMARA
I am using above three transactions in my module pool program. Based on the certain conditions I am calling different transactions i.e ZT1, ZT2, etc
Here is my requirement:
Suppose if I call ZT1 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZPRODH.
or remaining fields should disable. User should not allow to change the content, even if it is new entries/existing entries. only ZMATNR, ZMTART, ZPRODH.
Suppose if I call ZT2 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZHTSCODE
How can we restrict dynamically when you call table maintenance generator table through transaction
or
How can we generate table maintenance for few fields?
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:28 PMHi ,
go to Se11->Table maintenace generation. Double click on screen to edit and assign the field you want to display/hide to groups. In PBO , after the following lines..
LOOP AT EXTRACT WITH CONTROL
TCTRL_ZMARA CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
Write a new module in PBO and edit the SCREEN as per the Tcode, you are calling,,'
Hope this helps you
Rj -
Search Help for field on table maintenance generator ECC 6.0
Hi All.
To maintain search help for a custom field on table maintenance generator.
Only through coding.
Cannot use domain or data element or table field search helps.
Have to code only.
Is there any way?
Can I do modifications/additions to screen code and achieve this?
Regards,
Veeranji Reddy P.Scenarion:
1. table with 2 fields.
2. table maintenance generator.
3. Function group with one screen(0001-mentioned in table maintenance) created.
4. For one field on table maintenance generator...where we add new entries to table, i want a search help.
Conditions : only coding has to be done..no search helps I can use.
Coding where and what?
one option is to code on the screen 0001- either in PBO/PAI.
Is it a rite place...? or any other option? But no search helps as mentiond in my first message can be used.
Thanks and Regards,
Veeranji Reddy P. -
Insert old missing data from one table to another(databaase trigger)
Hello,
i want to do two things
1)I want to insert old missing data from one table to another through a database trigger but it can't be executed that way i don't know what should i do in case of replacing old data in table_1 into table_2
2)what should i use :NEW. OR :OLD. instead.
3) what should i do if i have records exising between the two dates
i want to surpress the existing records.
the following code is what i have but no effect occured.
CREATE OR REPLACE TRIGGER ATTENDANCEE_FOLLOWS
AFTER INSERT ON ACCESSLOG
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
V_COUNT NUMBER(2);
V_TIME_OUT DATE;
V_DATE_IN DATE;
V_DATE_OUT DATE;
V_TIME_IN DATE;
V_ATT_FLAG VARCHAR2(3);
V_EMP_ID NUMBER(11);
CURSOR EMP_FOLLOWS IS
SELECT EMPLOYEEID , LOGDATE , LOGTIME , INOUT
FROM ACCESSLOG
WHERE LOGDATE
BETWEEN TO_DATE('18/12/2008','dd/mm/rrrr')
AND TO_DATE('19/12/2008','dd/mm/rrrr');
BEGIN
FOR EMP IN EMP_FOLLOWS LOOP
SELECT COUNT(*)
INTO V_COUNT
FROM EMP_ATTENDANCEE
WHERE EMP_ID = EMP.EMPLOYEEID
AND DATE_IN = EMP.LOGDATE
AND ATT_FLAG = 'I';
IF V_COUNT = 0 THEN
INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT
,TIME_IN ,TIME_OUT,ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
NULL,
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
NULL ,'I');
ELSIF V_COUNT > 0 THEN
UPDATE EMP_ATTENDANCEE
SET DATE_OUT = TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
TIME_OUT = TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_OUT
ATT_FLAG = 'O'
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_IN <= (SELECT MAX (DATE_IN )
FROM EMP_ATTENDANCEE
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL )
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL ;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN RAISE;
END ATTENDANCEE_FOLLOWS ;
Regards,
Abdetu..INSERT INTO SALES_MASTER
( NO
, Name
, PINCODE )
SELECT SALESMANNO
, SALESMANNAME
, PINCODE
FROM SALESMAN_MASTER;Regards,
Christian Balz -
Purchase Order released date field and table name
Hi,
Please tell me the Purchase Order released date field and table name.
Regards
DeepakHi,
Table : EKKO.
Fields : FRGKE,FRGZU.
You can get release date of PO from CDHDR table.
give object value as your po number and check.dont forget to give leading zeros.
The udate will be date field and transaction will be me29n for relaesed po. -
How to disable some of the table fields in Table Maintenance Generator
HI,
I am creating one table which contains 10 fields.
But i wanted to disable some 2 fields in Table maintenance generator.
So can any one plz tell me how to disable those 2 fields.Generate a maintenance view for the table,
Goto- Table/Join Conditin Tab-- Put the name of your table
Goto-viewfield tab--- Put the fields whatever you required.
Then generate table maintenance for the view created.
pls chk
Thanks
Anurag -
How to hide fields in table maintenance generator dynamically.
Hello Experts,
I have one requirement and that needs to do dynamically display the fields in table maintenance generator based on the selected radio button.I have written the code in pbo but it is not working properly,can anyone figure me out in this.
Thanks,
Vinod Bhaskar.Hi vinod
when you are creating tmg , you will specific a function group name and sap generate a func group which contains that tmg . you can view in se80 , specifying function group name. In that , screen contains single screen 100 or two screen 100,200 .
screen you can create module in pbo .u can find all field name in that screen.
loop at screen.
if screen-name = ''.
screen-visible = 0.
endif.
modify screen.
endloop.
regards,
vijay. -
Need Report based on "CUSTOM DATA field @ Shop Order Maintenance"
Need the REPORT based on CUSTOM DATA field.
Requirement - I am having the CUSTOM data at Shop Order Maintenance that is called as XXX, I need some report in SAP ME which can display the SFC related to particular Shop order based on XXX Number.Hi!
As far as I remember there is no such base report. So, you may try to create it using SDK or request it as custom enhancement from SAP.
If you want to create it using SDK, you can find the required data for report in CUSTOM_FIELDS table.
Regards,
Alex. -
Currency field in Table maintenance generator
Hi,
I have created a table with fields amont and currency..When I create generate the table maintenance for this table I am not able to see currency and amounts field on the generated screen. Please do help me whats missing from my end.
raghumake the foriegn key for the currency TCURC
This was for those whose currency keys are not maintained
Resaon might be the Currency is not maintained in the table TCURC
they can be maintained in SPRO
SAP Netweaver - > General Setting - > Currencies - > Check Currency Codes
Regards
- Gopi -
In disable fields in table maintenance
Hi,
In table maintenace I have done with save user id and last changed date. Now I need to make this fields disable(in gray), means no it should not be edited manually in table maintenance. It should only pick up the system.
if any one have code for this and also in which maintain event i need to do this, please post me.
Thanks in Advance,
Ravihi,
in SE80
goto Function Group
then click on Screen
then click on Element List Tab
below u can see list of ur fields strting with ZTT-......
and against that u can have to uncheck the checkbox in INPUT column ......
so that the input for the field will be disabled..... when u go in edit mode......
if any query revert back........
reward points if useful.......:-)
and mark the post answered once ur problem is solved .... -
Open T-code on double click of field in table maintenance
Hi Gurus,
I have one scenario, I have to show a transaction on double click event on a field of Table Maintence.
Please guide me in this .
Is there is any event in Table Maintenance Events to capture double_click of a field.
Regards,
Sowmen1. In the field attributes of the particular field there is a chechbox in display tab which says respond to double click, check that.
2. Assign the fuction code "PICK" for function code F2 in GUI status.
3.Now whenver you double click the field function code "PICK" gettes triggeed.
Now you can wrie yyou code based on this function code.
CASE sy-comm.
WHEN 'PICK'.
*If you want the name of the field and the value in that field use the below code.
GET CURSOR FIELD gv_field VALUE gv_cursor_value.
*DO your operation based on the field and the value.
ENDCASE.
Regards,
Smithesh -
Upload excel data in a table maintenance view
Hi,
I have a requirement to add a button in the application toolbar of the table maintenance screen of a custom table. This button should upload the excel sheet data into the maintenance screen online.
I have created the button in the table maintenance generator. Also, uploaded the data into the internal table from the excel sheet.
The problem is I am unable to populate the data from the internal table to the maintenance screen online.
Any pointers in this regards will be appreciated.
Thanks,
Best regards,
AjithHi,
I think you have to use BDC call transaction (SM30) and use that table control to upload the data. Try and see..
Cheers,
Phani. -
Problem with the date field in Table Control
I have created a table control in my module programming. One of the column in the table control is a date field which is I/O field.
Now if I enter a value in date field column and hit enter the date field is reset. I dont want the field to get reset and accept valid date field.
I have set type of the column as DATS and I havent used any dictionary fields. The column is from the internal table in the program.
Please suggestIn your PAI, in the LOOP AT <itab> did you
- check date validity
- update internal table
* Sample
LOOP AT itab.
FIELD itab-field MODULE checkfield.
MODULE updateitab.
ENDLOOP.
Look also at SAP documentation like [Table Controls|http://help.sap.com/abapdocu/en/ABENTABLE_CONTROL1_ABEXA.htm] or [Table Controls in ABAP Programs|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbac9f35c111d1829f0000e829fbfe/frameset.htm]
Regards,
Raymond -
Error in Table maintenance generation
Hi all,
I have z-table containing 112 fields. When I try to create a maintenance view using the table maintenance generator I get the following error :
"Memory for screen LOAD is used up. bytes) is not available."
The view is not created.
Can you please help?
Thanks and regards,
PrasadHello Sravan,
Thanks for the reply. Yes it works ok for the 2-step process. But we would want to have it as a single step. I observed that if I give any screen number in the 1-step process, it results in the above error.
Thanks and regards,
Prasad
Maybe you are looking for
-
Problem with a pf-status in alv?
Hi guys, I am displaying a alv grid report(not using OO).I added my own button 'download' in the tool bar.I used my own status.when the user clicks this button,the report is downloaded into a excel file.he will make some changes in the excel file and
-
Payment terms Payables - Can a discount period be longer than the Due Date
My client regularly pays their supplier invoices beyond the due date but yet deducts the early payment discounts anyway I have tried unsuccessfully to create payment terms that would have the correct due date ex Net 30 But would nevertheless calculat
-
Rush order :-Even though stock available Sytem is not ablet to confirm
Hi all, In case of Rush order- insipite of stock available in the system its not able to confirm the quantities . Immediate delivery is not happening because of this Please let me what might be the reason? Regards Anil
-
Let applet out without the frame of a html page?
Hi, I want to run a java applet like this: when someone logs into a web page, the applet contained in this web page will come out just like a standalone application, rather than run in the frame of this web page, how could i get it? I appreciate any
-
Scheduling Agreement (LPA) Release
Hi everybody, Can anyone give me some tips / material about configuring the message determination for scheduling agreements releases? Thanks in advance, Pedro