Table for structure ITSEGDIAE
Hi everyone,
i have a req that i want to access the begin pplan date and actual delivery date from VL02n.
i acess these fields by goto->header->dates and i select events... and i enter begin plan date and actual date.
i see that these fields are stored in structure ITSEGDIAE.
i want to know in which table they are actually stored...
so that i can use them in my report...
can anyone solve this....
Hi,
Use the database table TSEGE to find the values.
you can retrieve the information using FM.
First use the FM 'TSEG_READ' to read the data.
then use TSEG_MODIFY_TST to modify the date.
example.
pa_ls_object = 'WSHDRLIKP'.
CALL FUNCTION 'TSEG_INIT'.
* Define stucture to be read *
CALL FUNCTION 'TSEG_READ'
EXPORTING
if_object = pa_ls_object
is_object_wa = pa_likp
EXCEPTIONS
object_not_found = 0
handle_not_found = 0
customizing_inconsistent = 0
fatal_error = 0
OTHERS = 0.
* Modify the Event *
CLEAR l_sysubrc.
CALL FUNCTION 'TSEG_MODIFY_TST'
EXPORTING
if_handle = pa_handle
if_time = pa_time
if_even_cnt = pa_evncnt
if_even_verty = pa_verty
if_even_vernu = pa_vernu
if_time_tst = pa_time_st
IMPORTING
ef_subrc = l_sysubrc
EXCEPTIONS
fatal_error = 1
OTHERS = 2.
* Update the Event *
CALL FUNCTION 'TSEG_WRITE'
EXPORTING
if_object = pa_ls_object
is_object_wa = pa_likp
* IF_UPDATE_TASK = 'X'
* IF_HANDLE = ' '
* IMPORTING
* EF_UPDATE =
EXCEPTIONS
fatal_error = 0
no_events = 0
OTHERS = 0
Note:
--> pa_handle - Handle
--> pa_time - Begin / End Event name
--> pa_evncnt - Event count
--> pa_verty - Version type
--> pa_vernu - Version number
--> pa_time_st - Time stamp
--> pa_ls_object - Object
--> pa_likp - LIKP values
Edited by: Niyaz Ahamed on Mar 19, 2008 12:07 PM
Similar Messages
-
Hi,
These are 4 fields are from different structure.We are unable to find tables for these structures.
All field and structures are from VA03 transaction in ECC.
*Name :Production Order Status Structure : CAUFVD FieldSTTXT*
*Name:Sales Order header Status Structure VBSTT Field GBSTA_BEZ*
*Name:Material Style (in SO).T(from Sales order) Field ATWRT*
*Name; Sales Order line item Status*
Please anyone can help us
Thanks,
SridharHi
It seems that you want test of the describ fields, for which you need to find relevant test table.
For Production order status use--->
Goto CAUFV
get the field - CAUFV-OBJNR
Pass this in JEST in field = OBJNR, object number and INACT = space
you will get severail entries for field STAT.
pass this field entries STAT to tabel TJ02T and field - ISTAT, language = EN
you will get status in the field TJ02T-TXT04 and text in field - TJ02T-TXT30.
or simply use FM- STATUS_TEXT_EDIT
Thank-You.
Regards,
Vinod -
How to find table for structure field ???
Hi..
i need your expert help on this.
i am working on printing of terms of payment description. here there are explanation fields. it is coming from structure R052. and field name is TXT 02. here as per my understanding structure is coming from multiple tables so how i can find that from which table this field is coming??
thanks
h shahDear,
Well I cant say this is the solution for your issue, but have a look.
http://it.toolbox.com/wiki/index.php/Find_data_in_your_SAP_system_and_know_which_tables_do_what
DD02L - table properties
DD02T - table texts
DD03L - field properties
DD03T - field texts
How to find data related to a structure? With GREAT difficulty, but here are some ways (which will NOT work sometimes) to find specific fields if you know the structure's fieldname.
1) First, goto SE11, and enter your structure name. Goto the field that holds your data, and double-click on the element name. Once inside the element, do a where-used list for that element, searching tables only. Then go into each table, and see if you can find the one holding your data. There may sometimes be a huge number of tables displayed, but a lot of them will be empty.
2) Get the name of the program behind your transaction, goto SE80, and enter the program name. 99% of the time it will be part of a module-pool and bring up the pool. Goto the dictionary structures, and search each table there for the one holding your data.
3) Open a new session with transaction ST05, select SQL Trace, click on the Trace On button, and go back to your transaction (while leaving the session with ST05 open). Submit your transaction, and go back to the ST05 session. Click on the Trace Off button, then select the List Trace button. Continue with standard selections, and a BASIC TRACE LIST will appear. search thru the tables displayed under ObjectName.
and have a look at below.
You do know any transaction in which (related) data is used: 1) start the transaction 2) position the cursor on the field you want to have info about 3) press F1, then F9 4) now you see the technical information of the data element, such as table name and field name. 5) if the table mentioned is what you're looking for, you're done. It is also possible that the data element is in a structure and not in a table. Now you can either analyze the structure via trx SE11, or you can double click on the 'data element' field. In the next screen, use the 'Where used' button to find the tables in which this data element is used.
Additional tip: if you have found the table name, you can use trx SE36 to see the relationships of this table to other tables. You can use these relationships when defining queries, designing custom ABAP programs, etc. If you're lucky, one or more standard SAP logical database exist which contain the table you found in the previous steps. Proceed as follows: 1) start trx SE36 2) use the search help for the logical database name 3) enter the name of the table in the search help 4) press enter and, if you're lucky, you'll see a list of logical databases. Select one, press enter, select the radio button 'Structure' and press the view button. Now you'll see how this table is related to other tables.
And finally, I prefer, the simpliest way to contact the ABAP consultant for help.
Regards,
Syed Hussain. -
Table for structure field AFRUD-LTXA1
I want to know where the contents of field LTXA1 are stored when we use transaction co11...
please reply...Hello
Try table AFRU -
How to create internal table for a structure in BSP
hi ,
I have created a Structure in BSP.I want to create an internal table for that Structure. But in my coding ie.
<% data: begin of itab_1 .
include type zuvendstr.
data:end of itab_1.
data wa_str like line of itab_1.
loop at itab_1 into wa_str. %>
<tr>
<td><%=wa_str-name%> </td>
<%endloop.%>
In this zuvendstr is Structure ,wa_str is workarea and itab_1 is an Internal table.But it is showinng an error that itab_1 is unknown.But we cannot define internal tables for an Structure in Page Attributes.So,please resolve how to create internal table for Structure in BSPSHi,
You can define itab_1 like this (assuming zuvendstr is a structure type):
DATA: itab_1 TYPE TABLE OF zuvendstr.
Regards,
Tanguy -
How to extract data into the set-up table for 2LIS_06_INV LIS structure
We are using ECC 6.0 and SAP BI NW 2004S. I activated the 2LIS_06_INV (Invoice Verification) structure. Interestingly, I don't see any Events under this structure (MC06M_0ITM) - my understanding is the events usually determine what type of data is generated for a given structure.
I see Invoice Verification when I use the Inventory Management -Perform Setup option when doing the set-up tables. However, when I use this option, I get a message saying " No extraction structure active or no BW connected".
Can someone list the pre-requisites and the steps to load the set-up table for the 2LIS_06_INV structure.
Thanks,
Sanjay1: RSA5 Activate Data Source
2: LBWE Activate datasource again
3: SBIW Fill setup table 'Settings for Application-Specific DataSources (PI)'-> 'Initialization'->'Filling in the Setup Table'->'Application-Specific Setup of Statistical Data'->'Invoice Verification - Execute Reconstruction' -
How to find out name of table for a structure.
hello all,
I want to find out name of table for a structure ADDR1_DATA. can anybody pls tell me how to find out it?
Thanks,
AshuHi Ashu,
You write the structure name in se11
after selecting the database table radio button
click on the where used list button in the application tool bar.
You will find the table name if it is used else where.
Check out the website at:
http://sap-idoc2edi-consulting.com/
Read the blog at:
http://blogs.ittoolbox.com/sap/ehadzipetros
Regards,
Jagadish -
Merging the internal table and structure for PO text material download
Hi Experts,
I have a query regarding downloading the PO text from material master.Actually i have successfully downloaded the PO text using TLINE structure along with FM like READ_TEXT and GUI_Download.But when i had to append the PO text for corresponding material,there i got the problem.Let me explain clearly.Below is my coding for PO text download.In that i have used TLINE structure/table for get the POtext via FM READ_TEXT.Also I am using an internal table(It_tab) which consist fields of TDFORMAT,TDLINE and MATNR,So what i need is,i want to merge TLINES structure/table into internal table(it_tab).That is I want to display the PO text along with material No.That is my requirement.But when i append the it_tab using my coding,it was not displaying in the correct order.Attached screen shot is the sample output(excel sheet).column B and C respectively for POtext and material number.I want to get in correct order as it gets the misarrangemnt.(i.e) PO text and material number should come with the same line.So Please help me to complete this task.Kindly point out if i am wrong.
PO TEXT download from material master :
DATA : BEGIN of IT_LINES OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA : END of IT_LINES.
DATA : t_line TYPE STANDARD TABLE OF IT_LINES WITH HEADER LINE.
TYPES: BEGIN OF tp_matnr,
matnr type TDOBNAME,
END OF tp_matnr.
DATA:lv_matnr TYPE matnr,
t_mara TYPE TABLE OF tp_matnr WITH HEADER LINE.
SELECT-OPTIONS : s_matnr FOR lv_matnr.
SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TL1.
PARAMETERS: P_FILE(50) TYPE C.
*PARAMETERS: P_DOWNL as CHECKBOX.
SELECTION-SCREEN END OF BLOCK BL1.
INITIALIZATION.
TL1 = 'PO TEXT DOWNLOAD'.
START-OF-SELECTION.
SELECT matnr FROM mara INTO TABLE t_mara WHERE matnr IN s_matnr.
DATA : BEGIN OF it_tab OCCURS 0,
TDFORMAT type TDFORMAT,
TDLINE type TDLINE,
MATNR type TDOBNAME,
END OF it_tab.
LOOP AT t_mara.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
id = 'BEST'
language = 'E'
name = t_mara-matnr
OBJECT = 'MATERIAL'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
* OLD_LINE_COUNTER =
TABLES
lines = t_line
* EXCEPTIONS
* ID = 1
* LANGUAGE = 2
* NAME = 3
* NOT_FOUND = 4
* OBJECT = 5
* REFERENCE_CHECK = 6
* WRONG_ACCESS_TO_ARCHIVE = 7
* OTHERS = 8
IF sy-subrc = 0.
APPEND LINES OF t_line to it_tab.
it_tab-tdline = t_line-tdline.
it_tab-matnr = t_mara-matnr.
APPEND it_tab.
ENDIF.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'D:\Test.xls'
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
SHOW_TRANSFER_STATUS = 'X'
TABLES
DATA_TAB = it_tabHi Manish,
Thanks for the support.I did simple modify in coding.Now I got the output in the correct order.If i follow the step of it_tab-tdline = t_mara-matnr, it is storing in the column B as you mentioned.But it was displayed in the second line.So i did adjust your below coding.Finally got the solution.Thanks manish
DATA wa_line LIKE LINE OF t_line.
LOOP AT t_line INTO wa_line.
it_tab-tdformat = wa_line-tdformat.
it_tab-tdline = wa_line-tdline.
it_tab-matnr = IT_TAB-matnr.
APPEND it_tab.
ENDLOOP.
Regards,
Kavi -
For output display report is final_internal table or structure in wd ABAP?
Hi all,
for output display report is final_internal table or structure in wd ABAP?
in wd java output display report -.> CALLING rfc and that RFC OUTPUT table
finally in internal table is assigned to STRUCTURE .Same procdure?
Thanks,
RAMADear Madhu,
thanks for guidence!
its showing popup tht this BADI ( ME_CHANGE_OUTTAB_CUS ) is only use for "SAP Internal use".
Regards,
Praphull -
Script for Compare same table 'TAB1' structures in different schemas
Hello, i am having three schema and in all schema i have same table for example TAB1 and i want to Compare TAB1 table structures in all three schema but i don't know the script. the different should content at least DATA_TYPE,DATA_LENGTH,DECODE(DATA_PRECISION,NULL,NULL,DATA_PRECISION||','||DATA_SCALE) columns in query. Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi Thanks..
If you want a generic script use below function to get the difference.. Run the below script and let me know in case of any issues
CREATE OR REPLACE TYPE nt_username IS TABLE OF VARCHAR2(50);
CREATE OR REPLACE TYPE obj_struc IS OBJECT (user_name1 VARCHAR2(30),
user_name2 VARCHAR2(30),
column_name1 VARCHAR2(30),
column_name2 VARCHAR2(30),
data_type1 VARCHAR2(106),
data_type2 VARCHAR2(106),
data_length1 NUMBER(10),
data_length2 NUMBER(10),
data_precision1 VARCHAR2(50),
data_precision2 VARCHAR2(50),
column_id1 NUMBER(10),
column_id2 NUMBER(10)
CREATE OR REPLACE TYPE nt_struc IS TABLE OF obj_struc;
CREATE OR REPLACE FUNCTION tabstruc_script (p_tabnm VARCHAR2,
p_usernm nt_username
RETURN nt_struc
AS
v_nt_struc nt_struc := nt_struc();
v_ntusrnm nt_username := p_usernm;
TYPE rec_stru IS RECORD (column_name all_tab_columns.column_name%TYPE,
data_type all_tab_columns.data_type%TYPE,
data_length all_tab_columns.data_length%TYPE,
data_precision all_tab_columns.data_precision%TYPE,
data_scale all_tab_columns.data_scale%TYPE,
column_id all_tab_columns.column_id%TYPE
TYPE nt_stru IS TABLE OF rec_stru;
v_ntstru nt_stru := nt_stru();
v_columnname all_tab_columns.column_name%TYPE;
v_reccnt NUMBER;
v_cnt NUMBER;
v_precision1 VARCHAR2(50);
v_precision2 VARCHAR2(50);
BEGIN
FOR i IN 1..v_ntusrnm.COUNT
LOOP
SELECT COUNT(*) INTO v_reccnt
FROM all_tables
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm;
IF v_reccnt >= 1 THEN
SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
BULK COLLECT INTO v_ntstru
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm;
FOR j IN i+1..v_ntusrnm.COUNT
LOOP
FOR k IN 1..v_ntstru.COUNT
LOOP
SELECT COUNT(*) INTO v_cnt
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name = v_ntstru(k).column_name;
IF v_cnt >= 1 THEN
FOR l IN (SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name = v_ntstru(k).column_name)
LOOP
IF ((v_ntstru(k).column_id <> l.column_id)
OR (v_ntstru(k).data_type <> l.data_type)
OR (NVL(v_ntstru(k).data_length,0) <> NVL(l.data_length,0))
OR (NVL(v_ntstru(k).data_precision,0) <> NVL(l.data_precision,0))
OR (NVL(v_ntstru(k).data_scale,0) <> NVL(l.data_scale,0))) THEN
v_nt_struc.EXTEND;
SELECT DECODE(v_ntstru(k).data_precision,NULL,NULL,v_ntstru(k).data_precision||','||v_ntstru(k).data_scale),
DECODE(l.data_precision,NULL,NULL,l.data_precision||','||l.data_scale)
INTO v_precision1,
v_precision2
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
v_ntusrnm(j),
v_ntstru(k).column_name,
l.column_name,
v_ntstru(k).data_type,
l.data_type,
v_ntstru(k).data_length,
l.data_length,
v_precision1,
v_precision2,
v_ntstru(k).column_id,
l.column_id);
END IF;
END LOOP;
END IF;
END LOOP;
FOR m IN(SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm
AND column_name NOT IN(SELECT column_name
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm))
LOOP
v_nt_struc.EXTEND;
SELECT DECODE(m.data_precision,NULL,NULL,m.data_precision||','||m.data_scale)
INTO v_precision1
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(i),
v_ntusrnm(j),
m.column_name,
NULL,
m.data_type,
NULL,
m.data_length,
NULL,
v_precision1,
NULL,
m.column_id,
NULL);
END LOOP;
FOR n IN(SELECT column_name,
data_type,
data_length,
data_precision,
data_scale,
column_id
FROM all_tab_columns
WHERE owner = v_ntusrnm(j)
AND table_name = p_tabnm
AND column_name NOT IN(SELECT column_name
FROM all_tab_columns
WHERE owner = v_ntusrnm(i)
AND table_name = p_tabnm))
LOOP
v_nt_struc.EXTEND;
SELECT DECODE(n.data_precision,NULL,NULL,n.data_precision||','||n.data_scale)
INTO v_precision2
FROM DUAL;
v_nt_struc(v_nt_struc.COUNT) := obj_struc(v_ntusrnm(j),
v_ntusrnm(i),
n.column_name,
NULL,
n.data_type,
NULL,
n.data_length,
NULL,
v_precision2,
NULL,
n.column_id,
NULL);
END LOOP;
END LOOP;
END IF;
END LOOP;
RETURN v_nt_struc;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END tabstruc_script;
SELECT * FROM TABLE(tabstruc_script(:tabnm,nt_username(:user1,:user2,:user3)));
You need to pass tablename and username to calling this function. Username is a nested table here so you can pass like nt_username(:user1,:user2,:user3) -
How to trace the database table for a structure
hi
am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
thanx in advanceHi florence,
1) U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
3) the st05 sql trace can help u.....
I hope any one of the three will definetely help uuu
Regards
vamsi
Edited by: vamsi talluri on Jan 22, 2009 1:24 PM -
Find table for a structure field
Hi,
I need to find table for field Q0743-OFFR1. I tried using tcode SE15, but was not able to find any table where the field is used.
Is there any other method of finding a table for a structure field.
Any pointers in this regard would be helpful.
Thanks,
SaherHi,
when u open the structure , u will find the tab " Component " in that you
will find "Data Element" column which hold the data element of the structure
component , now double click on the respective "Data Element " and that will
open up the Data Element Page in which u will find a "Where Used List" icon
, click on that, this will now display you the list, select the TABLE LIST
Check box and execute, which will subsequently display you all the the table
names which has "specified" data element's component as field
Hope this will Help you.
Regards,
Kiran -
Finding base table for a field in a structure !! urgent
i need to find out where is BUDAT field being populated in the 2lis_04_p_arbpl extractor. When i see where this field is coming from it shows MCAFVG which is a structure. i need to use this field in user exit and need to know which table is it coming from. I am actually looking for last confirmation date on an order.
my query is that if a field is shown as a part of a structure then how can we find out where is it being populated from ? like where can we find the base tables for this structure ?
Please help. Points will be assigned to all helpful answers.
thanks
Laura.HI..
well yes... go to ROOSOURCE and find the name of the program for that structure. go to se38 and check out the tables used in that program.
let me know if that helped... what structure are u trying to find the tables for ?
thanks
Laura. -
What is the table name for structure field MUEBS???
Hi...Experts...
How can I know the table for a screen-field if i get structure from it F1 Technical settings....
Ex: Here MUEBS is the screen field (Char. Display) in one of the subscreens of VA41. And it is from
RV45A structure...
Now how can I know the table name for this field MUEBS.
I know some methods but they r not help ful.. please try it and get back to me.
Thanks,
Naveen.INaveen,
Table field Short Description
VBMUE Sales Document: Characteristic Overview
MUEBS Characteristic display
VBMUEZ Sales Document: Characteristic Overview Assignments
MUEBS Characteristic display
VBMUET Sales Document: Characteristic Overview Description
MUEBS Characteristic display
You can find same by SE15>Abap dictonary>fields>table fields.
Amit. -
hello everyone,
Can anyone please let me know what is the Database table for KOMK structure.
I want to get field STCEG(Vat Reg number ) from KOMK structure.
AS i cannot use the select statement on KOMK structure i need Database table.
thanks in advence,
regards,
cheruku.Hi Ashish,
I have one doubt
I want to transfer STCEG field from TKOMK to VBAP table Field(zz_stceg).
so in user exit "userexit_move_field_to_vbap" i coded like below.
VBAP-zz_stceg = TKOMK-stceg.
is this ok or do i need to code anything Extra.
Thanks in advance,
regards,
cheruku.
Maybe you are looking for
-
2 Log-ins with Single User in SAP B1 8.8/8.81
Can we still use 1 User ID to log in at 2 different instances simultaneously in SAP B1 8.8/8,81? If no, has SAP provided any documentation in this regard?
-
Mail adapter = XI = CRM (using Proxy)
Hi All, I have to pull several mailboxes using a sender mail adapter. The mails are automatically generated, containing: mailfrom, mailto, subject, body and 1 attachment. I need to save the data (mailfrom,mailto,subject,body,filename) into a table in
-
Is it Normal to feel static all over or is there a leak?
Without the Magsafe power port there is no static but once it is on, i can feel the static feel all over my laptop. is there a problem with the contact point of my charger?
-
Need help in Fine Tuning this query
Hello Gurus, The below sql's are from Application engine . It runs more than 5 hours to complete . I have fewer knowledge on sql tuning and request to repharse the sql's to perform and complete the program within One hour. PS_GE_GAPS_INV is going thr
-
Hi, In TAXINN there are condition types JMIP : BED % INVENTORY What does Inventory mean ? And its significance. Also JMX2 IN A/P BED inventory ?? When do we use these condition types so far we have been using JMOP, JECS etc. Also TAXINJ is called For