Problem in finding table fields to enhance 0CRM_SRV_CONFIRM_H for 'Code'
Hi,
My source system for BW is CRM. This development is related 'Service Order and Confirmations'. The relevant data source in CRM system is 0CRM_SRV_CONFIRM_H. This data source does not have any information for 'Catalog/Code Group/ Classification Codes' for a Service ticket. So, I have to enhance the data source with it.
'Catalog/Code Group/ Classification Codes' is present in the table CRMD_SRV_SUBJECT but there is no common joining fields for the table with datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table. CRMD_SRV_SUBJECT has a field called GUID, but transaction data stored in that is not matching with any GUID column of datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table.
Data source can be joined with CRMD_ORDERADM_H [ DS-GUID = CRMD_ORDERADM_H-GUID ] and with CRMD_ORDERADM_I [ DS-GUID = CRMD_ORDERADM_I -HEADER ].
Thus, I think, the transaction data is stored in some other table which can be joined with the data source. Please help me giving the relevant table/field name to enhance the data source.
Thanks in advance,
Dibyendu
Hi Dibyendu ,
Please checkout Database view
<b>CRMV_REPORT_SUBJ</b>
==============
Join between below 4 tables
CRMD_ORDERADM_H
CRMD_LINK
CRMD_SRV_OSSET
CRMD_SRV_SUBJECT
==================
CRMD_ORDERADM_H CLIENT = CRMD_LINK CLIENT
CRMD_ORDERADM_H GUID = CRMD_LINK GUID_HI
CRMD_LINK CLIENT = CRMD_SRV_OSSET CLIENT
CRMD_LINK GUID_SET = CRMD_SRV_OSSET GUID_SET
CRMD_SRV_OSSET CLIENT = CRMD_SRV_SUBJECT CLIENT
CRMD_SRV_OSSET GUID = CRMD_SRV_SUBJECT GUID_REF
Thanks,
Aby Jacob
Similar Messages
-
Problem in updating table fields while enhancing screen fields using BDT
Hi all,
I have added some fields in REBE object using BDT. and also appended those fields in standard table(VIBDPR). But Data entered on those fields are not getting updated in table fileld..Can anyone Know the reson....?
Regards,
VijayHi,
I had the same problem. Here is an example code to resolve it:
REPORT ytestfg.
DATA: i_bsid LIKE bsid OCCURS 0,
i_bsid2 LIKE bsid OCCURS 0.
TABLES: bsid.
DATA: doc LIKE vbak-vbeln,
pos(6) TYPE n.
DATA e_fpla LIKE fpla.
DATA e_fplt LIKE fpltvb OCCURS 0 .
DATA: zfpla LIKE fplavb OCCURS 0,
zfplt LIKE fpltvb OCCURS 0.
DATA zfplt2 LIKE fpltvb OCCURS 0 WITH HEADER LINE.
doc = 'G03060619'.
pos = '000010'.
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
I_VFKDAT =
I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt
Upddate the ZFPLT2 table with the new values
MOVE zfplt[] TO zfplt2[].
READ TABLE zfplt2 INDEX 1.
zfplt2-afdat = '20080927'.
Very important to set field updkz = 'U' ***
zfplt2-updkz = 'U'. "--> UPDATE!!
MODIFY zfplt2 INDEX 1.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla
fpla_old = zfpla
fplt_new = zfplt2 " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Edited by: PHO_BA on Mar 9, 2009 5:28 PM -
How to find table & fields of standard InfoObject?
Hi
How to find table & fields of standard InfoObject for creating generic DataSource?
e.g. I want to know the table & field of 0MAINTPOS infoObject.You can get the list of tables involved in a particular DS by using the below method ( this another approach)
--> RSA3 -- enter your DS ( execute later)
--> Goto Tcode ST05 --> switch on the SQL Trace
--> now execute the extract checker in RSA3.once done switch off(deactivate) the SQL trace.
--> in st05 screen you can find the button "Display Trace" -- execute (here make sure SQL trace button is enabled.
--> from the menu bar -->Trace list--> select "combined table accesses".
--> it will display the tables involved in it -- check for TABLE names section.... select that row Table names -- click on filter button --press F4 -- here we go it will display the list of entire tables involved in the extraction activity... here you need to sort the tables which are related to your DS. -
How to find table that store real data for field 'BETRG' ?
1) datasource 0HR_PY_1 include field 'BETRG' in R/3 source system; extract structure HRMS_BIW_PY1 for datasource 0HR_PY_1, however structure is not used for stroing data. Question: how can we find table which store real data for the field 'BETRG'?
2) If I want to add one type call department leader type which already defined in one enhanced HR table, to calculate the total amount using field 'BETRG' according to department leader type. Should I enhance datasource 0HR_PY_1 by adding department leader type or create new view based on enhanced HR table and another table that include 'BETRG' data, also create new datasource based on this view later on?
Thanks!Hi,
Check this for Payroll Data (Transaction Data) 0HR_PY_1
http://help.sap.com/saphelp_nw70/helpdata/EN/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
The extractor for payroll results reads data from payroll cluster PCL2, not from standard tables.
thanks,
JituK -
Need to find this field UsDefTxt2 in the Transcation code DGP3
Hello,
Very Good Afternoon,
Can anybody let me know where I can find this field UsDefTxt2
in the Transaction code DGP3 also from which table data is extracted into this field.
Any suggestions are Appreciated.
Regards,
KittuHi chandra,
Is there any way that I can confirm that this is the same field.
When we go to Tcode : DGP3 -> Enter the Material Number and press Enter
-> Press Enter and then double click on any Materails listed
-> It will display that particlular Materail in detail.
-> Now click on the Printed Texts Tab
-> Here you can find the UsDefTxt2 field.
Any suggestions would be apprecaiated.....
Regards,
Kittu -
Dear Experts,
From MARA table field STAWN (Comm./imp. code EU ) is not updating in MARC table field STAWN (Comm./imp. code EU ) by MM02 Transaction
Is there any SAP standard functionality to over come above issue or needed ABAP coding for the same ????
Regards
HanumantDear All,
Thanks for your reply
I tried to update the the field after adding plant and other detail actually that field will be gray mode (display) and cannot update
my question i want to update MARC_STAWN field (Forign trade import) for my existing all material , those material MARA_STAWN (basic data 3 ) is also blank but system is allowing me to update in MARA_STAWN (basic data 3) but system will not update to MARC_STAWN (Forign trade import) field.
What is the best method to Coppy all MARA Stawn fields to the MARC Stawn field.
Regards
Hanumant. -
Find Table Field for Q0045-OPELO in HR Payroll
Dear All,
I have a requirement to find the Loan Balance as on date from Infotype 0045.
In the screen field it show that data is linked to this table field... Q0045-OPELO .
Now My Problem is how To find the Database table Name where exactlly the amount value store and i can use that fro my report to calculate the Loan Balance for required Employee.
Its urgent..........
Regards
LakhanHi Lakhan,
The loan balance amount is not stored in the database table. It is instead stored against WT /LLB in the payroll cluster table PCL2. If you want to retrieve this amount, then you have to use a macro to select the payroll results for the period you are running the report and then select the RT table.
The /LLB entry (if exists) in the RT table will hold the loan balance amount.
Hope this helps.
-Akshay
Edited by: Akshay Patil on Dec 26, 2007 3:51 PM -
How to find table / field where condition records are saved?
Hi,
We want Sales Order Rate ( Condition type ZR00 calculated with backward pricing ), as a column in a Z report.
I am not able to find out the table / field where system saves condition records for this condition type. I can only see structure.
Please help to trace down the field where this data is stored.
Regards
TruptiHi Vishal,
KNUM is the internal number under which system saves the conditions that apply to a Sales Order.
So first to derive this KNUM from sales order we use Table VBAK
AFter this we use this KNUM and the condition type in table KONV to get the value for that perticular condition type.
Please check following.
SE16> VBAK> enter any sales order in field VBELN and note down number in field KNUM.
SE16 --> KONV --> enter this KNUM and the condition type --> you would receive condition record value for this condition type, for that sales order.
KNUMH is a similar field in the table A503( in our case), but we also wanted link of the sales order to this record.
Thanks for your help anyways!!
points provided. -
Problem with fetching table field
Hi all, im explaining the problem, please provide me the query.
i am having the follong tables
1)location table contains one PK(loc_id)and authorization field, etc.
2)accont table contain one FK(loc_id) and hrid , attuid fields etc
3)LINE table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
4)TRUNK table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
5)NODAL_TSG table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
6)REMOTE_CALL_FWD table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
7)Order2misc table contains FK(SER_LOC_ID) of Location table
PIC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
PLOC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
i need to send an authorization field value to another interface.
condition
===========
if(LOCATION.AUTHORIZATION using Account.loc_id is not null and LINE.INTERLATA_PIC_FREEZE not equal to 'F' and LINE.INTRALATA_PIC_FREEZE not equal to 'F' and similaraly for TRUNK, NODAL_TSG and REMOTE_CALL_FWD table fields)
else
fetch the authorization field from
LOCATION.AUTHORIZATION using Order2misc.ser_loc_id
=======
please provide me the query.
thanks in advanceHI thanks for ur reply
i tried lmy best.
im able to put that into 2 queries, but i need to join both of them in single query
query-1
======
Select l.authorization
from location l JOIN ACCOUNT a on a.loc_id = l.loc_id
and l.authorization is not null
where not exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
query--2
=======
Select l.authorization
from location l JOIN order2misc o on o.ser_loc_id = l.loc_id
and l.authorization is null
where exists
select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
union all
select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
================
i need a single query. and correct me if the above query's are wrong -
Problem with modifying table field with SQL
In a particular table, there are some values that end with a null character (ascii(0)) and we don't want them null-terminated. I've been trying to use the following SQL statement to find those fields and then remove the null character from the end (each record has a 'field_id' field and the 'value' field which holds the actual value of that field_id):
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id = 'FIELD1'
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
All it does is execute for several minutes before I just have to interrupt it, and no changes are made.I see I messed up; the query should have been:
update num_data
set value = substr(value,1,instr(value,ascii(0))-1)
where field_id in
select field_id
from num_data
where ascii(substr(value,length(value),1)) = 0
But since I wrote this note, I ran that query again, and it worked as I wanted it to; maybe our DB was running slow at that time, though I waited a few minutes for results.
I appreciate you two taking the time to respond. -
Problem in finding table for check no.
Hi Experts,
I need to print the check number in my form, but the functional person gave the table name as REGUD, but it is a structure. Can any one let me what would be the table for check number(REGUD-CHECT) and bank name(REGUD-UBNKA).
Thanks & Regards,
RamanaHi,
Go to Tcode SE84-> ABAP Dictionary -> Fields -> Table Fields --> field name = <your field name>Execute.
You will get many tables, take one one of these to meet your requirements.
But i dint get any table for UBNKA field. So just check this field name whether it is right.
Again you can search for this field table name by putting "bank name" in short description field.
Thanks
Nitesh
Edited by: Nitesh Kumar on Dec 9, 2008 5:15 PM -
How to know the corresponding Table-fields in R/3 for fields in BW
Hi,
We need to enhance the extractor for 0CUSTOMER_ATTR. We have added some new attributes in 0CUSTOMER in BW and we want to know the corresponding Table-Fields in R/3 from where we can populate the values.
The list of fields in BW is as follws. All are 0CUSTOMER attributes.
I am searching on the internet. If you know any link/place where I can find the corresponding fields, please let me know.
0AF_CUSTDC
0AF_CUSTID
0CITY_2
0DB87SIC1
0DBANSALES
0DBAREACOD
0DBCTRYCOD
0DBCTYNAM
0DBCUSTAT
0DBDISTRCOD
0DBEMPBND
0DBEMPTOT
0DBGUDUNS
0DBHQDUNS
0DBBLGLSTAT
0DBLOCACOD
0DBREGCOD
0DBSALBND
0DBSECTCOD
0DBYRSBND
0DBYRSTD
0DB_MAKTCOD
0DB_MATCDS
0FAX_NUM
0ID_TXNUMB3
0ID_XCPD
0LANGU
0POBOX_LOC
0SORTL
0TAX_NUMB2
0DBTRDSTYL
0DBADDRES1
0DBADDRES2
0DBCTRYNA
0DBSTPRCOD
0DBPOSTCOD
0DBNATID
0DBNATIDCO
0DBTELPHON
0DBCEONAME
0DBLNOFBUS
0DBANSLUS
0DBCURNCCO
0DBEMPHERE
0DBSUBCODE
0DBHQNAME
0DBHQCTYNM
0DBHQSTPR
0DBHQCTRYN
0DBULDUNS
0DBULNAME
0DBULCTYNM
0DBGUCTRYN
0DBGUCTRYC
0DBGUNAME
0DBNUMFAM
0DBHIERCO
0DBFAMUPDT
0DBBUSNAME
0DB_MATCH
Thanks,
Naveen ChoudharyNaveen,
Check http://help.sap.com/search/highlightContent.jsp
Also see Re: 0customer_attr enhancement
If the source fields in R/3 are standard, you should be able to find the mapping in the help documentation. If its extension field, then you got to see which extractor (based on the base table extension) suits the best and extend it accordingly else create a new generic extractor.
Hope it helps -
How to find table name which provide data for the DataSource
Hi friends,
How to find the Table name which providing data for the Business content DataSources (Master Data). Is there any table or Transation which give datasource and Table name at once.
Thanks&Regards
RevathiHi Revathi...........
1)If the datasource is extracting data from any table.................open the datasource using RSO2..........there u will get the table name......
2) If the datasource is extracting data from any view.............go to RSA2..........copy the view name..........go to SE11 >> give the view name >> and check..........
3) If Datasource is Function module based............then u hav to check in RSA2 >> give the datasource name >> execute >> there u will find the Extract structure name......Copy the Extract Structure name >> Go to SE11 >> in the Data Element field give the Extract structure name >> Display >> From the Entry Help/Check tab u can get the Table name............
If u double click on the Extractor..............u will get the Function Module..............from there also u can check that the FM extracting data from which tables............
For Other datasources also...........u can get the structure name from here........
4) If the Datasources r LO datasources............then u can get the table name in LBWE.............LO extractor - goto transaction LBWE.................... Select the maintenance link for your datasource............
here in the right hand pane.........in the drop down box, you can see the structures associated with this extractor ........ just remove the MC for the structure names to get the base table names. e.g. EKKO for MCEKKO.
5) There is a pattern for the Extract structure name for LO datasources.............for an example..........
DataSource 2LIS_11_VAITM ......Extract structure name is MC11VA0ITM
2LIS_11_VAHDR >> MC11VA0HDR
Hope this helps.........
Regards,
Debjani....... -
Problem with accesing table field in subroutine
Hello All,
I am calling a subroutine multiple times and everytine passing 2 different tables (with different structures) int he subroutine.
PERFORM fill_itabs TABLES t_adnat_bus_in
gt_adnat_bus_in_dummy
USING p_filename..
PERFORM fill_itabs TABLES t_adcust_ban_in
gt_adcust_ban_in_dummy
USING p_filename.
The following is the subroutine definition.
FORM fill_itabs TABLES p_t_table
p_t_table_dummy
USING p_filename .
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
ENDFORM.
I am getting a syntax error which states -
<u><b>"The specified type has no structure and therefore no component called "cust_id"."</b></u>
The problem is the structure of the table passed to subroutine is different in the
different times when it is called and so in subroutine defintion I cannot mention an explicit structure for the table.
Could anyone please suggest how to avoid this?
Regards,
Indrajit.Hi Indrajit,
you can add one more formal parameter to the subroutine, which will act as a flag.
while calling the subroutine, you can set the flag if cust_id field is there in the structure of the table, else dont set the flag.
And in the the subroutine, put check on the flag status before writing
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
Ex:
FORM fill_itabs TABLES p_t_table
p_t_table_dummy
USING p_filename
p_flag.
if p_flag eq 'X'.
p_t_table_dummy[] = p_t_table[].
SORT p_t_table_dummy BY cust_id.
endif.
ENDFORM. -
Need to find table/field behind "Item long text" field in Notes tab in FB70
Hello,
To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
Thanks again,
Pedro
Maybe you are looking for
-
Why is Times New Roman not displaying correctly in Illustrator CS5?
Alright, so I'm running Windows 7 64-bit and Illustrator CS5. Times New Roman Regular does not display correctly on my machine when using Illustrator CS5, but Bold, Italic, Italic Bold display just fine. Times New Roman does display correctly in eve
-
Correct Drivers For Ethernet MacBook Pro Late 2008 Windows XP on BootCamp
Hi; I have a late 2008 unibody MacBook Pro running OSC 10.5.8. When I first got it I setup a dual boot with Win XP using Bootcamp. The problem I have is that the Ethernet NIC port has stopped working and has a yellow exclamation in SYSTEM (its fine i
-
I updated my itunes on the computer last night to the latest version and it wouldn't recognize my phone so I figured I needed to update my phone to ios7 but that didn't help. Should I have updated the phone through the computer first? And do I now ne
-
Hi All, I have a scenario to insert/update/create product details into oracle backend from SAP. If the product is not available, the product should be created along with update of different details into Oracle DB tables. Does anyone worked on this ty
-
THE Upgrade??? to IOS 8 on my iPad 2
Since 'up'grading to IOS 8 on my iPad 2, I can no longer upload photos to Facebook unless using the Facebook app. Still limited because I can't upload a photo to a post nor direct photos to my art page. The 'up'grade has me jumping through hoops to