ABAP Query - Table for Batch, Char values & desc.

Hi Gurus,
Looking for a Table join for requirement to fetch Characteristic description, char values & Batch no  in ABAP query.
Thanks.

dear,
it depends on which table you selected first (Table join using basis table) and how do you insert next tables.
i am talking about the info-set creation step.
let's do a simple query.
run SQ02. type new infoset name and hit Create.
type name and type MARA for "Table join using basis table" radio button. Hit Continue.
now insert (add) tables: MARC, MCHA, CABN, CAWN
think about Inner Join or Left Outer Join !!'
say, if you need to display all materials (even if not exist on plant) set Left Outer Join. if you're after materials existing on plant keep default Inner Join.
friend, my example above is only the example.
make sure you undertsand how to build a sap query in general.
never set many tables at once. insert 2-3 tables, return to your query (SQ01) or create it, adjust it and test. step by step - table by table. add the new table in infoset, add the fields, generate it and come back to your query. adjust it and test.
good luck!

Similar Messages

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Function modules for converting Char value to hexadecimal value

    Hi All,
    Function modules for converting Char value to hexadecimal value.
    Thanks in advance

    Hi,
    use this function module:
    <b>RSS_UNIQUE_CONVERT_TO_HEX</b>
    regards
    Debjani
    Rewards point for helpful answer

  • Table for po effective value

    Hi,
    I need to develop a purchase order report, so I need the following
    gross price  : 100
    fright        : 10
    insurance : 10
    my net value is : 100 rs
    Effective value : 120 rs
    Where can I find ( table) for this effective value
    fright and insurance I can find from KONV table, But I need effective value or total value
    Thanks
    Srinivas

    PO Header: EKKO
               field: EKKO-KNUMV (number of condition document)
    PO Item: EKPO
               field: EKPO-NETWR (net value in PO currency)
    Conditions: KONV
               field: KONV-KNUMV = EKKO-KNUMV
               for PO item conditions, item number of condition document = item number of PO
               for PO header conditions, item number of condition document = 0000
    Subtotals in the pricing procedure are calculated and not stored in any KONV.
    PO header Net Price = sum of all EKPO-NETWR for all the items.
    Hope this helps.

  • Table for batch detail

    Hello
    plz suggest Table for batch detail for sale & purchase in SAP 8.81 pl 07

    hi Jayakumar
    In Sap b1 8.8 the batch tables have been changed
    Category                                     Old Tables                    New Tables
    Batch Number                          OIBT, IBT1, OSRD             OBTN, OBTQ, OBTW, OITL, ITL1
    i think this will solve
    Regards
    Jenny

  • Query to search in all schema tables for a 'filed value'

    Hi,
    Can u help me out on this ?.
    I want a sql query to search for one field value in all the schema table.
    or do we have something in toad to check for this

    Please follow this thread.
    How to select all records from all tables where SCORE = 99
    -aijaz

  • Filtering a Query result for a specific value of a key figure

    Hi folks,
    I want to filter a query for a specific value of a key figure. The report should display all customer who has an account balance greater than EUR 500'000.
    Can I only implement this kind of filter via a condition in Query-Designer? If I run that query on an InfoCube with non-cumulative key figures over all our customers (> 400'000) I have problems with the consumption of the memory. If I restrict the amount of the customers to 50'000 - 60'000 then it works. It seems that the query reads all customer records in an internal table before applying the condition.
    Is there another way to deal with? Any help appreciated.
    Kind regards
    Hansjörg Luzi
    Graubündner Kantonalbank
    CH-7002 Chur

    You could try to implement an alternative solution: define a new Characteristc with discrete values (in the following example I suppose to have intervals of 10)
    KF -> CHAR
    115 -> 110 (110 <= KF < 120)
      5 ->   0 (  0 <= KF <  10)
    83 ->  80 ( 80 <= KF <  90)
    Then you can use these dicrete values to filter ...
    I know that it's not so "flexible" (discetization must be predefined), but query response time is quicker and you can use Aggregates ...
    Hope it helps
    GFV

  • ABAP Query Code for Count Function

    Hi,
    I have an ABAP Query and just created a new field which requires ABAP Code to do the following :-
    The report is for Purchase Orders and Purchase Requisitions. 2 Purchase Orders may have the same requisition, so what I want to do is count the number of the same requisitions in the report
    e.g.
    PO                Req             Count
    45000001     10015              2
    45000020     10015              2
    Can some one please provide with the full code? Points will be awarded
    Thanks

    Hi,
    No errors in the below code but it is bringing a value 0 even though there are duplicates in the table which is suggesting to me that the code is not working.
    Any help would be appreciated. Thanks
    DATA : BEGIN OF itab OCCURS 0,
            aufnr LIKE ekkn-aufnr,
           END OF itab.
    DATA : count(2) TYPE p.
    DATA : no_of_records(3) TYPE p.
    Clear no_of_records.
    select aufnr from ekkn into itab.
    endselect.
    SORT itab BY aufnr.
    LOOP AT itab.
      ADD 1 TO count.
      AT END OF aufnr.
        IF count GE 2.
          ADD count TO no_of_records.
        ENDIF.
        CLEAR count.
      ENDAT.
    ENDLOOP.
    *WRITE :/ 'Good Bye'.
    DUPLICATES = NO_of_records.

  • Abap query table link

    Experts Im doing an abap query then I just link the tables adr2 , adr3 , adr6 and lfa1 and lfb1 in infosets "join button"..then show the fields that I need in sq01.But I was wondering why my data becomes times 4..it repeatedly display my data in FOUR times..
    What do you think is the cause of that?

    dear,
    it depends on which table you selected first (Table join using basis table) and how do you insert next tables.
    i am talking about the info-set creation step.
    let's do a simple query.
    run SQ02. type new infoset name and hit Create.
    type name and type MARA for "Table join using basis table" radio button. Hit Continue.
    now insert (add) tables: MARC, MCHA, CABN, CAWN
    think about Inner Join or Left Outer Join !!'
    say, if you need to display all materials (even if not exist on plant) set Left Outer Join. if you're after materials existing on plant keep default Inner Join.
    friend, my example above is only the example.
    make sure you undertsand how to build a sap query in general.
    never set many tables at once. insert 2-3 tables, return to your query (SQ01) or create it, adjust it and test. step by step - table by table. add the new table in infoset, add the fields, generate it and come back to your query. adjust it and test.
    good luck!

  • Table for BAtches With ref to Last GI date --URGENT ****

    Hello Experts,
    I'm working on a query, SQ01 for Credit dept.  I'm trying to capture the data that the user wants, which includes last goods issue date.  I've joined MBEW with MAKT, but the user also wants batch number which comes from MSEG and last goods issue date
    CAN YOU TELL ME HOW TO PULL BATCH AS PER LAST GOODS ISSUE DATE >>>WHICH TABLE TO LOOK ..Very Urgent
    Justin

    Hi,
    If your batch mangement is "cross plant" you can read the table MCH1, if not you are using MCHA. Field: LWEDT
    Rgds,
    JP

  • How to find data dictionary and oracle schema tables for UTF8 char conversi

    I am doing UTF8 char conversition, i got lot of convertable objects,as per document we don't need to worry about data dictionary objects and how to find data dictionary and oracle schema objects for UTF8 char conversition.
    USER.TABLE Convertible Truncation Lossy
    MDSYS.OPENLS_NODES 17 0 0
    MDSYS.SDO_COORD_OP_PARAM_VALS 200 0 0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE 1 0 0
    MDSYS.SDO_STYLES_TABLE 78 0 0
    MDSYS.SDO_XML_SCHEMAS 3 0 0
    ORDDATA.ORDDCM_CT_PRED_OPRD 51 0 0
    ORDDATA.ORDDCM_DOCS 9 0 0
    ORDDATA.ORDDCM_MAPPING_DOCS 1 0 0
    SYS.METASTYLESHEET 178 0 0
    SYS.REGISTRY$ERROR 2 0 0
    SYS.RULE$ 21 0 0
    SYS.SCHEDULER$_EVENT_LOG 182 0 0
    SYS.WRH$_SQLTEXT 2,099 0 0
    SYS.WRH$_SQL_PLAN 1,736 0 0
    SYS.WRI$_ADV_ACTIONS 5,452 0 0
    SYS.WRI$_ADV_DIRECTIVE_META 5 0 0
    SYS.WRI$_ADV_OBJECTS 2,278 0 0
    SYS.WRI$_ADV_RATIONALE 9,594 0 0
    SYS.WRI$_ADV_SQLT_PLANS 455 0 0
    SYS.WRI$_ADV_SQLT_PLAN_STATS 288 0 0
    SYS.WRI$_DBU_FEATURE_METADATA 188 0 0
    SYS.WRI$_DBU_FEATURE_USAGE 16 0 0
    SYS.WRI$_DBU_HWM_METADATA 20 0 0
    SYS.WRI$_REPT_FILES 27 0 0
    XDB.XDB$DXPTAB 2 0 0
    XML CSX Dictionary Tables:
    USER.TABLE Convertible Truncation Lossy
    Application Data:
    USER.TABLE Convertible Truncation Lossy
    APPLSYS.BISM_OBJECTS 4 0 0
    APPLSYS.DR$FND_LOBS_CTX$I 0 103 1,260,883
    APPLSYS.FND_CONC_PROG_ANNOTATIONS 272 0 0
    APPLSYS.FND_OAM_CONTEXT_FILES 15 0 0
    APPLSYS.FND_OAM_DOC_LINK 1 0 0
    APPS.FND_OAM_CONTEXT_FILES_1 6 0 0
    AZ.AZ_APIS 11 0 0
    AZ.AZ_SELECTION_SET_ENTITIES_B 48 0 0
    ECX.ECX_DTDS 205 0 0
    ECX.ECX_FILES 91 0 0
    IBC.IBC_ATTRIBUTE_BUNDLES 41 0 0
    JTF.JTF_HEADER_DTD 1 0 0
    JTF.JTF_MESSAGE_OBJECTS 82 0 0
    JTF.JTY_TRANS_USG_PGM_SQL 29 0 0
    ODM.ODM_PMML_DTD 1 0 0
    OKC.OKC_REPORT_SQL_B 3 0 0
    OKC.OKC_REPORT_SQL_TL 2 0 0
    OKC.OKC_REPORT_XSL_TL 5 0 0
    XDP.XDP_PROC_BODY 10 0 0
    [Distribution of Convertible, Truncated and Lossy Data by Column]
    Data Dictionary Tables:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    MDSYS.OPENLS_NODES|SYS_NC00004$ 17 0 0
    MDSYS.SDO_COORD_OP_PARAM_VALS|PARAM_VALUE_FILE 200 0 0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE|XMLSCHEMA 1 0 0
    MDSYS.SDO_STYLES_TABLE|DEFINITION 78 0 0
    MDSYS.SDO_XML_SCHEMAS|XMLSCHEMA 3 0 0
    ORDDATA.ORDDCM_CT_PRED_OPRD|SYS_NC00004$ 51 0 0
    ORDDATA.ORDDCM_DOCS|SYS_NC00005$ 9 0 0
    ORDDATA.ORDDCM_MAPPING_DOCS|SYS_NC00007$ 1 0 0
    SYS.METASTYLESHEET|STYLESHEET 178 0 0
    SYS.REGISTRY$ERROR|MESSAGE 1 0 0
    SYS.REGISTRY$ERROR|STATEMENT 1 0 0
    SYS.RULE$|CONDITION 21 0 0
    SYS.SCHEDULER$_EVENT_LOG|ADDITIONAL_INFO 182 0 0
    SYS.WRH$_SQLTEXT|SQL_TEXT 2,099 0 0
    SYS.WRH$_SQL_PLAN|OTHER_XML 1,736 0 0
    SYS.WRI$_ADV_ACTIONS|ATTR5 2,726 0 0
    SYS.WRI$_ADV_ACTIONS|ATTR6 2,726 0 0
    SYS.WRI$_ADV_DIRECTIVE_META|DATA 5 0 0
    SYS.WRI$_ADV_OBJECTS|ATTR4 2,278 0 0
    SYS.WRI$_ADV_RATIONALE|ATTR5 9,594 0 0
    SYS.WRI$_ADV_SQLT_PLANS|OTHER_XML 455 0 0
    SYS.WRI$_ADV_SQLT_PLAN_STATS|OTHER 288 0 0
    SYS.WRI$_DBU_FEATURE_METADATA|INST_CHK_LOGIC 21 0 0
    SYS.WRI$_DBU_FEATURE_METADATA|USG_DET_LOGIC 167 0 0
    SYS.WRI$_DBU_FEATURE_USAGE|FEATURE_INFO 16 0 0
    SYS.WRI$_DBU_HWM_METADATA|LOGIC 20 0 0
    SYS.WRI$_REPT_FILES|SYS_NC00005$ 27 0 0
    XDB.XDB$DXPTAB|SYS_NC00006$ 2 0 0
    XML CSX Dictionary Tables:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    Application Data:
    USER.TABLE|COLUMN Convertible Truncation Lossy
    APPLSYS.BISM_OBJECTS|SYS_NC00023$ 4 0 0
    APPLSYS.DR$FND_LOBS_CTX$I|TOKEN_TEXT 0 103 1,260,883
    APPLSYS.FND_CONC_PROG_ANNOTATIONS|PROGRAM_ANNOTAT 272 0 0
    APPLSYS.FND_OAM_CONTEXT_FILES|TEXT 15 0 0
    APPLSYS.FND_OAM_DOC_LINK|DOC_LINK_INFO 1 0 0
    APPS.FND_OAM_CONTEXT_FILES_1|TEXT 6 0 0
    AZ.AZ_APIS|FILTERING_PARAMETERS 11 0 0
    AZ.AZ_SELECTION_SET_ENTITIES_B|FILTERING_PARAMETE 48 0 0
    ECX.ECX_DTDS|PAYLOAD 205 0 0
    ECX.ECX_FILES|PAYLOAD 91 0 0
    IBC.IBC_ATTRIBUTE_BUNDLES|ATTRIBUTE_BUNDLE_DATA 41 0 0
    JTF.JTF_HEADER_DTD|HEADER_DTD 1 0 0
    JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_DTD 41 0 0
    JTF.JTF_MESSAGE_OBJECTS|BUS_OBJ_SQL 41 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_DEA_SQL 1 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_INCR_SQL 5 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|BATCH_TOTAL_SQL 6 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|INCR_REASSIGN_SQL 5 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_INSERT 6 0 0
    JTF.JTY_TRANS_USG_PGM_SQL|REAL_TIME_SQL 6 0 0
    ODM.ODM_PMML_DTD|DTD 1 0 0
    OKC.OKC_REPORT_SQL_B|SQL_TEXT 3 0 0
    OKC.OKC_REPORT_SQL_TL|HELP_TEXT 2 0 0
    OKC.OKC_REPORT_XSL_TL|HELP_TEXT 2 0 0
    OKC.OKC_REPORT_XSL_TL|XSL_TEXT 3 0 0
    XDP.XDP_PROC_BODY|PROC_BODY 10 0 0
    -------------------------------------------------- ---------------- ---------------- ----------------

    Hi;
    Please run below query which could be helpful for your issue:
    select * from dictionary where TABLE_NAME LIKE '%NLS%'
    select * from dictionary where TABLE_NAME LIKE '%GLOBAL%'
    Regard
    Helios

  • Database table for Workflow Container values

    hi,
    I am on SAP ECC 6.0
    I am trying to find workflow id number starting from document number
    I try to find database table which has containe values of the workflow instances so that I can get workflow/workitem instance numbers for the document
    this is custom workflow and it is not based on business object type. so checking container values is the onlyway I can get the workflows
    but I am not able to find any table for it
    I have checked following
    SWW_CONT
    SWW_CONTOB
    SWWVCONTWI
    SWXML_CONT
    SWJ_CONT
    SWJPCONT
    SWJSCONT
    SWPCMPCONT
    SWU_CONT1
    SWUOCONT1
    almost all the SWCONT tables
    Morever I put St05 trace to see all the tables in database operations while triggering the workflow
    but the only tables seen here are
    SWWHRINDEX
    SWD_CONT  
    SWWWIHEAD
    SWWCNTP0  
    SWWLOGHIST
    SWWWIRET  
    SWWCNTP0  is Workflow Container: XML Database (P0)
    but it is XML structure data. so its of new use to query container fields.
    is this reason because of any workflow design or system config ?
    how to read container values from database tables in such case?
    thanks
    bhakti

    Hi,
    >i need to display an ALV list with list of invoices and whether the workflow is awaiting / approved / rejected for review / approval. and who did the approval / rejection action
    This you should be able to read from container now, if you have FIPP instance.
    >the workflow has two steps - review and approve and so i would query table swwwihead for the parent id of workflow and then based on task number see which is ready status task and find if its awaiting approval or rejection
    Don't do any selects to SWWWIHEAD unless you have some really specific reason. Just use SAP_WAPI* functions. You should be able to get each depended work item etc. easily with the standard functions.
    >apart from this, several data like amount values, reference document, creation date and whole lot of invoice item and header level data is required which needs to be taken from workflow container
    Why would you read this data from container? This data is in the SAP tables VBKPF, etc. There should be even functions to get all data related to an invoice - try to search for example with READPRELIMINARY* (read preliminary invoice).
    In general:
    1) if you have invoice number, get all related work items with a SAP_WAPI* function
    2) if you have only the top WI ID, use SAP_WAPIDEPEND function to get the depended work items
    3) with above function you probably will get also the status of the tasks / work items, so you don't need select in SWWWIHEAD
    4) Now you have the "status" and the workflow data for the invoice
    5) read the invoice data from standard FI tables (unless there is some specific reason to get it from WF container, and if there is, then I think that you might be having some fundamental problems in your design)
    Regards,
    Karri

  • Table for batch determination date

    hi,
    im printing the Dispensing slip...they want the output based on the batch determination date..
    can any one tel me in which table i willl get batch determination date?
    Regards
    Smitha

    Are you using a separate batch selection class versus the batch class?
    There are characteristics that must be in the selection class, but cannot be in the batch class.
    See OSS note 33396.
    1.  If you want to search for batches on the basis of a remaining shelf
             life in batch determination, the system has to calculate a requested
             shelf life expiration date dynamically from the information you
             give.
         2.  Add characteristic LOBM_VFDAT to the batch classes.
             For the revaluation of reference characteristics, refer to Note
             78235.
             Characteristics LOBM_RLZ and LOBM_LFDAT must not be included in the
             batch classes!
         3.  Add characteristics LOBM_VFDAT, LOBM_LFDAT, and LOBM_RLZ to the
             selection classes.
             Maintain a remaining shelf life in the strategy records for batch
             determination. Relational operators (> , < , <= , >=) are considered
             in the dynamic calculation of the shelf life expiration date in
             batch determination.
    From your note you have placed LOBM_RLZ  and LOBM_LFDAT in your batch class.  You cannot do that.
    FF

  • Table for CO-PA-Value Field Texts

    Hi together,
    does anybody know the table where the texts for the CO-PA-Value-fields are stored?
    Kind regards
    Udo

    Hello,
    both tables do not match my expectations.
    Table V_TKEVG3 is for assignment of value field groups, table TKCTK is for key figures.
    Kind regards
    Udo

  • Number of entries in the internal table for perticular field value

    hi All,
    Is this possible to get the count of records from the internal table for a perticular field value.
    currently my requirement is to get the entries from the internal table which does not have two records for perticular field value (say a = 123) whose status is active (say b = 'X').
    also suggets should use LOOP or DELETE or DESCRIBE for a internal table to ful fill this requirement.
    Thanks in advance.
    Pradeep

    Try like this..
    Create another table itab2 with same structure as itab1 & move the contents of itab1 to itab2
    ITAB2[] = ITAB1[].
    Then delete entries from itab2
    Delete itab2 whete a = '123' and b = 'X'
    Then use Describe statement to get the no of entries
    Describe table itab2 lines v_lines.
    Hope this helps...

Maybe you are looking for

  • Oracle8i Personal Edition hangs with ora-12637

    I have tried to install Oracle8i for Windows 98 using the installation wizard. However, the database cannot be created because the configuration assistant cannot complete the job. When run as a batch file, each call to server manager receives a ora-1

  • Maintain sales text View through BAPI_MATERIAL_SAVEDATA

    Hi, in BAPI_MATERIAL_SAVEDATA, can we maintain the Sales Text view in mm02 through this BAPI. Regards, Masoom Ali

  • Iphoto has disappeared

    Hello I removed the iphoto icon from the dock, and it went up in a "puff of smoke", and I thought i would be able to find it again in Applications. It's gone. The photos can be found in the desktop.....but no iphoto.

  • Freehand and converting to pdf problem

    for some reason when i try to convert a freehand document to pdf ready for printing im losing an "inline" effect around some of the text. i've put an example to illustrate http://simonboard.com/photos/pdf.html can anyone on these forums help?

  • Service PR qty reduced than the PO qty

    Hi, For material PR, if the qty is reduced than the PO qty we can activate 06 648-Requisition quantity already ordered in full (see follow-on docs.) but what is the message no for service PR line item control.(if the service PR qty is reduced than th