‎2012 Nov 05 1:13 PM
Hi,
I'm writing a custom report similar to IW38. According to the requriment I need to provide the following filters and then select data (these are also used in TCODE - IW38)
Order Type
Period
Main Work Center
Can anybody tell me table name which contains the above fields from TCODE(IW38).
Many thanks in advance.
‎2012 Nov 05 2:57 PM
Hi,
Check Order master data table AUFK. Fields AUFNR, AUART, VAPLZ.
Thanks,
Anubhav
‎2012 Nov 05 2:57 PM
Hi,
Check Order master data table AUFK. Fields AUFNR, AUART, VAPLZ.
Thanks,
Anubhav
‎2012 Nov 05 3:14 PM
Hi Anybhav,
Many thanks for your input. In AUFK I only found Order Type AUFK-AUART but not Period and Main Work Center fields. Any clue where they might be?
‎2012 Nov 05 3:44 PM
Hi,
Didnt you get VAPLZ in AUFK??
Append Structure - AD02AUFK has two fields one being VAPLZ.
Thanks,
Anubhav
‎2012 Nov 05 3:51 PM
Yes I just got it but still not sure what are Period dates (From and To) because there is many dates available in tables.
‎2012 Nov 05 4:31 PM
Hi,
I dont think you'll get these dates directly in SAP. Period specifies a range (to be given in the selection screen) based on which you have to filter data. For example, if your report shows all the orders which were created in a range 01.01.2012 to 31.01.2012 (Period) then use field AUFK-ERDAT in the where condition of the Select statement as below -
Select <fields>
from AUFK
into table <internal table>
where ERDAT >= Period-low (which is 01.01.2012)
and ERDAT <= Period-high (which is 31.01.2012).
See the F1 help on Period in IW38 -
In the case of notifications and orders, the reference date must fall in the selection period.
The respective reference dates are as follows:
Get in touch with your functional that for what type of records you need to filter data based on Period dates. Accordingly use AUFK-ERDAT or AUFK-AEDAT or AUFK-IDAT3 etc.
Hope this brings some clarity now.
Thanks,
Anubhav
Thanks,
Anubhav
‎2012 Nov 05 5:30 PM
Anybhav, many thanks for all your input. I must say it's a big help Sir.
‎2012 Nov 05 6:17 PM
‎2012 Nov 05 3:15 PM
Check following tables
Look at definition of fields like AFIH-ADDAT and AUFK-VAPLZ.
For more fields, press F1 on parameter of IW38, display "technical information", note screen field name and perform a where-used in source of RIAUFK20.
Regards,
Raymond