Purcahse Order - MM Table Relations.

Hi Friends,
I am Working on Purchase Order. I got some doubts in the MM Tables,
1. I have fetched a record which is of structure KOMVD, now i need a direct relations for this structure to
   either EKKO or EKPO.
2. Also Please Provide me the relation between EKKO and Structure MDPM.
Expecting your Answers.
Thanks & Regards,
Mohanraj.N

KOMK-MANDT = EKKO-MANDT.
      IF EKKO-KALSM NE SPACE.
        KOMK-KALSM = EKKO-KALSM.
      ELSE.
        KOMK-KALSM = 'RM0000'.
      ENDIF.
      KOMK-KAPPL = 'M'.
      KOMK-WAERK = EKKO-WAERS.
      KOMK-KNUMV = EKKO-KNUMV.
      KOMK-BUKRS = EKKO-BUKRS.
      CALL FUNCTION 'RV_PRICE_PRINT_HEAD'
           EXPORTING
                COMM_HEAD_I = KOMK
                LANGUAGE    = EKKO-SPRAS
           IMPORTING
                COMM_HEAD_E = KOMK
           TABLES
                TKOMV       = TKOMV
                TKOMVD      = TKOMVD.
check this function module  RV_PRICE_PRINT_HEAD, you will get the logic.

Similar Messages

  • Tables related to PM order for actual and commitment items

    Hello Experts,
    I need help in finding the tables related to PM order for actual and commitment items.
    I need develop a report which can show the actual and commitment items for each order and Operation/component under that each ITEM wise and its related documents.
    For the component we can find the table RESB.
    But i am getting the difficult to find the data related to Operation (services)
    In my client we can able to see PM orders with activity types and SKF
    How can build the logic to find the values for each operation item and its commitments (PO, PR) and actual that is FI documents
    Please guide me the   TABLES and fields or else give me the hints, how can find the tables
    Thanks and Regards,
    Narendra

    Hi,
    The tables are COEP (actuals) and COOI (commitments); that is if you mean the financial figures.
    Regards,
    Eli

  • Table relating equipment and settlement order

    Hi,
    I need table relation to fetch the Internal order number using equipment number.

    I'm assuming you mean the settlement order within an equipment master (organisation tab). If so, then it is stored in table ILOA (EQUZ-ILOAN = ILOA-ILAON).
    But the easiest way to find this data is via view table V_EQUI where DATBi = 99991231 (or >= TODAY).
    PeteA

  • Tables related to Maintenace order

    Dear
    I need to get the table relation for maintenance order as shown below
    Order number u2013 Operation 1(0010) u2013 Material Number 1 u2013 Pr number u2013 PR Item Number 10
    Order number u2013 Operation 1(0010) u2013 Material Number 2u2013 Pr number u2013 PR Item Number 20
    Order number u2013 Operation 2(0020 u2013 External Service) u2013 Service Number u2013 PR number u2013 PR Item number 30
    Is the above relation is possible through table?
    Senthil

    Senthil,
      it is not possible to establish the relationship as you had indicated for the materials, you will have to re-jig the same and use reservation table(RESB).
      For operations yes, you can establish the same through AFKO-AFVC. AFVC has both the service package number and Purchase requisition item number.
    Regards
    Narasimhan

  • What are the tables related to SD in PP relation tables if any

    what are the tables related to SD in PP relation tables if any

    SAP Production Planning Table
    Demand Management
    PBED Independent Requirements Data
    PBIM Independent Requirements by Material
    Repetitive Manufacturing
    SAFK RS Header Master Data
    S025 LIS -- Run Schedule Quantities
    S026 LIS -- Material Usage
    S028 LIS -- Reporting Point Statistics
    CEZP Reporting Point Document Logs
    CPZP Reporting Points - Periodic Totals
    MRP Records
    MDKP MRP Document Header Data
    MDTB MRP Table Structure (no data)
    PLSC Planning Scenario (Long-term Planning)
    MDFD MRP Firming Dates
    MDVM Planning File Entries
    S094 LIS -- Stock/Requirements Analysis
    Reservations
    RESB Reservations/Dependent Requirements
    Planned Orders
    PLAF Planned Orders
    Discrete Production
    AFKO Order Header
    AFPO Order Item Detail
    AFVC Order Operations Detail
    AFFL Order Sequence Details
    AFFH Order PRT Assignment
    AFBP Order Batch Print Requests
    AFRU Order Completion Confirmations
    AFFW Confirmations -- Goods Movements with Errors
    AFRC Confirmations -- Incorrect Cost Calculations
    AFRD Confirmations -- Defaults for Collective Confirmation
    AFRH Confirmations -- Header Info for Confirmation Pool
    AFRV Confirmation Pool
    AFWI Confirmations -- Subsequently Posted Goods Movements
    Classification
    KLAH Class Detail
    CABN Characteristic Detail
    AUSP Characteristic Values
    CAWN Characteristic Values
    CAWNT Characteristic Value Texts
    KSML Characteristic Allocation to Class
    KSSK Material Allocation to Class

  • Table relating fields Equipment number and grouping2.

    hi all,
    i m making a report for T-code 'IE03' and i have to display grouping2(FGRU2) and its description in output with respect to Equipment number(EQUNR), but problem is that i m not getting the table relating to both fields. can anyone please help me as soon as possible plz.?
    i have these fields in ITAB, so if i get any relation from grouping2 then our problem will be solved.
    DATA : BEGIN OF itab OCCURS 0 ,
           equnr TYPE itob-equnr ,                  "Equipment No.
           shtxt TYPE itob-shtxt ,                  "Description
           answt TYPE itob-answt ,                  "Acquistn Value
           inbdt TYPE itob-inbdt ,                  "DATE
           anlnr TYPE itob-anlnr ,                  "ASSET
           aufnr TYPE itob-aufnr ,                  "ORDER NO.
    *******New Addition
           HERST type ITOB-HERST ,                  "Manufacturer
           mapar TYPE itob-mapar ,                  "Manufacturer Part Number
           serge TYPE itob-serge ,                  "Manufacturer Serial Number
           brgew TYPE itob-brgew ,                  "WEIGHT
           groes TYPE itob-groes ,                  "DIMENSION
           fgru2 TYPE efhm-fgru2 ,                              "Grouping2
           fgrtxt TYPE tcf13-fgrtxt,                "GROUPING2 DESCRIPTION
           END OF itab .
    regards saurabh.

    Hi.
    itob is database view.
    tcf13 is tras.Table.
    efhm is Structure.
    You cannot select data from a structure.
    A structure / work area contains data only at the run-time.
    You can select data from views and tables.
    The data you need to select will be in Database tables. All you need to do
    is to find those table and select from there.

  • Table Relation with Payment and Invoice of Vendor

    Hi all,
         I have one question about Table Relation with Payment and Invoice of Vendor.
         the scenario is.
         2 Purchase Order number : 100000001/100000002
         1 Invoice document number : 200000001 which include  2 Purchase Order.
         1 Payment document number : 300000001
         How should I found out table relation from Payment document number - Invoice document number - Purchase Order number. ?
          I try to link the following table, but it does not work.
          RBKP     *     Invoice Receipt
          RSEG     *     Invoice Receipt document line item
          BKPF     *     Accounting Document Header
    BSEG     *     Accounting Document Segment
    PAYR          Payment Medium File
    BSIK          Accounting: Secondary Index for Vendors
    BSAK          Accounting: Secondary Index for Vendors (Cleared Items)
    BSIS          Accounting: Secondary Index for G/L Accounts (Open Items)
    Does any one know about it ?
    Regards
    KY Chuang

    Hi Venkatesh,
    Thnx a lot for the reply. This has almost solved my problem, however there's one thing left. when I'm trying to take a print out after exporting the info into an excel sheet, the information really looks scattered, i.e.,  is there a way where we can go ahead and get the info in a rather unscattered manner.
    I've tried to take a print directly without actually transferring the info into an excel sheet, then each of the vendor is printed in a separate page, which again they feel is a problem.
    So, if you have an idea pls suggest.
    Thnx again for the information.
    regards
    sandhya

  • How to create index on XMLTYPE ordered collection table?

    I am using Oracle 11.2.0.2.
    Essentially, my XML documents have a 3-level hierarchy:
    event
      +---action  [1:n]
             +---- param   [1:n]
    I am trying to create indexes on ordered collection tables, but can not get the syntax right...
    I have created a table with an object-relational XMLType column:
    CREATE TABLE T_C_RMP_MNTRNG_XML_FULL_IL4 (
      MESSAGE_ID NUMBER(22,0) NOT NULL ENABLE,
      XML_EVAL_ID NUMBER(22,0),
      VIN7 VARCHAR2(7 BYTE),
      FLEET_ID VARCHAR2(50 BYTE),
      CSC_SW_VERSION VARCHAR2(100 BYTE),
      RECEIVED DATE,
      XML_CONTENT SYS.XMLTYPE ,
      DWH_LM_TS_UTC DATE NOT NULL ENABLE,
      CONSTRAINT PK_C_RMP_MNTRNG_XML_FULL_IL4 PRIMARY KEY (MESSAGE_ID)
    ) NOLOGGING TABLESPACE CATALOG
    VARRAY "XML_CONTENT"."XMLDATA"."action" STORE AS TABLE "T_OR_MON_ACTION" (
      NOLOGGING TABLESPACE "CATALOG"
      VARRAY "param" STORE AS TABLE "T_OR_MON_ACTION_PARAM" (
      NOLOGGING TABLESPACE "CATALOG"
      ) RETURN AS LOCATOR
    ) RETURN AS LOCATOR
    XMLTYPE XML_CONTENT STORE AS OBJECT RELATIONAL XMLSCHEMA "http://mydomain.com/cs.xsd" ELEMENT "monitoring";
    I am running the following SELECT:
    SELECT EVENT_ID, ACTION_SUB_ID, MESSAGE_ID, ACTION_TYPE, UNIXTS_TO_DATE(ACTION_TIMESTAMP) ACTION_TIMESTAMP
    FROM T_C_RMP_MNTRNG_XML_FULL_IL4,
    XMLTABLE(
      'for $i1 in /monitoring ,
      $i2 in $i1/action           
      return element r {             
      $i1/eventId,             
      $i2           
      PASSING XML_CONTENT COLUMNS
      EVENT_ID VARCHAR(40) PATH 'eventId',
      ACTION_SUB_ID INTEGER PATH 'action/actionSubId',
      ACTION_TYPE VARCHAR2(100) PATH 'action/type',
      ACTION_TIMESTAMP NUMBER(13,0) PATH 'action/time'
    ) T2
    WHERE (
      EVENT_ID IS NOT NULL AND ACTION_SUB_ID IS NOT NULL
    The explain plan looks like this (sorry, don't know how to get this formatted any "eye-friendlier"):
    | Id  | Operation          | Name                        | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |                             |  1609K|  6316M|       |  6110K  (1)| 20:22:11 |
    |*  1 |  HASH JOIN         |                             |  1609K|  6316M|   111M|  6110K  (1)| 20:22:11 |
    |   2 |   TABLE ACCESS FULL| T_C_RMP_MNTRNG_XML_FULL_IL4 |   582K|   104M|       |  5241   (1)| 00:01:03 |
    |*  3 |   TABLE ACCESS FULL| T_OR_MON_ACTION             |    32M|   117G|       |   105K  (2)| 00:21:08 |
    Predicate Information (identified by operation id):
       1 - access("NESTED_TABLE_ID"="T_C_RMP_MNTRNG_XML_FULL_IL4"."SYS_NC0001300014$")
           filter(CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(XMLCONCAT(SYS_XMLGEN("T_C_RMP_MNTRN
                  G_XML_FULL_IL4"."SYS_NC00017$",NULL,SYS_XMLCONV("T_C_RMP_MNTRNG_XML_FULL_IL4"."SYS_NC00012$",0,32,
                  'EC1EEF23FD023A27E04032A06D930A8D',3,3783,1)),SYS_MAKEXML('EC1EEF23FD023A27E04032A06D930A8D',3780,
                  "T_C_RMP_MNTRNG_XML_FULL_IL4"."SYS_NC00008$","SYS_ALIAS_0"."SYS_NC_ROWINFO$")),'/eventId',NULL),0,
                  0,20971520,0),50,1,2) AS VARCHAR(40) ) IS NOT NULL)
       3 - filter(CAST(TO_NUMBER(TO_CHAR("SYS_ALIAS_0"."actionSubId")) AS INTEGER ) IS NOT NULL)
    Note
       - dynamic sampling used for this statement (level=2)
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
    The XML schema looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:storeVarrayAsTable="true" oraxdb:flags="2105639" oraxdb:schemaURL="http://mydomain.com/cs.xsd" oraxdb:schemaOwner="MYUSER" oraxdb:numProps="23">
      <xs:element name="monitoring" oraxdb:propNumber="3785" oraxdb:global="true" oraxdb:SQLName="monitoring" oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="monitoring757_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="monitoring755_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element maxOccurs="unbounded" ref="action" oraxdb:propNumber="3780" oraxdb:global="false" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="action756_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="reservationType" oraxdb:propNumber="3781" oraxdb:global="false" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="softwareVersion" oraxdb:propNumber="3782" oraxdb:global="false" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="eventId" oraxdb:propNumber="3783" oraxdb:global="false" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="vin" oraxdb:propNumber="3784" oraxdb:global="false" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="action" oraxdb:propNumber="3790" oraxdb:global="true" oraxdb:SQLName="action" oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="action754_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="action752_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element ref="type" oraxdb:propNumber="3786" oraxdb:global="false" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element maxOccurs="unbounded" ref="param" oraxdb:propNumber="3787" oraxdb:global="false" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false" oraxdb:SQLCollType="param753_COLL" oraxdb:SQLCollSchema="MYUSER"/>
            <xs:element ref="actionSubId" oraxdb:propNumber="3788" oraxdb:global="false" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="time" oraxdb:propNumber="3789" oraxdb:global="false" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="type" type="xs:string" oraxdb:propNumber="3791" oraxdb:global="true" oraxdb:SQLName="type" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="type751_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="param" oraxdb:propNumber="3794" oraxdb:global="true" oraxdb:SQLName="param" oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER" oraxdb:memType="258" oraxdb:defaultTable="param750_TAB" oraxdb:defaultTableSchema="MYUSER">
        <xs:complexType oraxdb:SQLType="param749_T" oraxdb:SQLSchema="MYUSER">
          <xs:sequence>
            <xs:element minOccurs="0" ref="value" oraxdb:propNumber="3792" oraxdb:global="false" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
            <xs:element ref="key" oraxdb:propNumber="3793" oraxdb:global="false" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:MemInline="false" oraxdb:SQLInline="true" oraxdb:JavaInline="false"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="value" type="xs:string" oraxdb:propNumber="3795" oraxdb:global="true" oraxdb:SQLName="value" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="value748_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="key" type="xs:string" oraxdb:propNumber="3796" oraxdb:global="true" oraxdb:SQLName="key" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="key747_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="actionSubId" type="xs:integer" oraxdb:propNumber="3797" oraxdb:global="true" oraxdb:SQLName="actionSubId" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="actionSubId746_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="time" type="xs:integer" oraxdb:propNumber="3798" oraxdb:global="true" oraxdb:SQLName="time" oraxdb:SQLType="NUMBER" oraxdb:memType="2" oraxdb:defaultTable="time745_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="reservationType" type="xs:string" oraxdb:propNumber="3799" oraxdb:global="true" oraxdb:SQLName="reservationType" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="reservationType744_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="softwareVersion" type="xs:string" oraxdb:propNumber="3800" oraxdb:global="true" oraxdb:SQLName="softwareVersion" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="softwareVersion743_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="eventId" type="xs:string" oraxdb:propNumber="3801" oraxdb:global="true" oraxdb:SQLName="eventId" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="eventId742_TAB" oraxdb:defaultTableSchema="MYUSER"/>
      <xs:element name="vin" type="xs:string" oraxdb:propNumber="3802" oraxdb:global="true" oraxdb:SQLName="vin" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1" oraxdb:defaultTable="vin741_TAB" oraxdb:defaultTableSchema="MYUSER"/>
    </xs:schema>
    How can I create an index on these ordered collection tables in order to improve performance?
    I found the example at http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_rewrite.htm#ADXDB5859 but am not able to apply it to this particular case...
    Thank you in advance...

    If the schema is not annotated then xs:integer and xs:string are mapped to NUMBER and VARCHAR2(4000) datatypes, so you have to use those in your query in order to avoid unnecessary typecasting operations.
    You should also use chained XMLTABLEs when accessing a parent/child relationship instead of a FLWOR expression, otherwise the CBO may not rewrite the XQuery correctly (maybe it's fixed in the latest release).
    If you make those changes, the plan should show cleaner predicates :
    SQL> SELECT EVENT_ID, ACTION_SUB_ID, MESSAGE_ID, ACTION_TYPE, ACTION_TIMESTAMP
      2  FROM test_table,
      3  XMLTABLE('/monitoring'
      4    PASSING XML_CONTENT COLUMNS
      5      EVENT_ID         VARCHAR2(4000) PATH 'eventId',
      6      actions          XMLTYPE        PATH 'action'
      7    ) T1,
      8  XMLTABLE('/action'
      9    PASSING actions COLUMNS
    10      ACTION_SUB_ID    NUMBER PATH 'actionSubId',
    11      ACTION_TYPE      VARCHAR2(4000) PATH 'type',
    12      ACTION_TIMESTAMP NUMBER PATH 'time'
    13  ) T2
    14  WHERE EVENT_ID IS NOT NULL
    15  AND ACTION_SUB_ID IS NOT NULL
    16  ;
    Execution Plan
    Plan hash value: 1763884463
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT             |                 |   109 |   220K|     6  (17)| 00:00:01 |
    |   1 |  MERGE JOIN                  |                 |   109 |   220K|     6  (17)| 00:00:01 |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| TEST_TABLE      |    11 |   352 |     2   (0)| 00:00:01 |
    |   3 |    INDEX FULL SCAN           | SYS_C007567     |    11 |       |     1   (0)| 00:00:01 |
    |*  4 |   SORT JOIN                  |                 |   109 |   216K|     4  (25)| 00:00:01 |
    |*  5 |    TABLE ACCESS FULL         | T_OR_MON_ACTION |   109 |   216K|     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter("TEST_TABLE"."SYS_NC00012$" IS NOT NULL)
       4 - access("SYS_ALIAS_0"."NESTED_TABLE_ID"="TEST_TABLE"."SYS_NC0000800009$")
           filter("SYS_ALIAS_0"."NESTED_TABLE_ID"="TEST_TABLE"."SYS_NC0000800009$")
       5 - filter("SYS_ALIAS_0"."actionSubId" IS NOT NULL)
    Note
       - dynamic sampling used for this statement (level=2)
    Now, if still necessary, it all boils down to choosing a technique to index NULL values :
    - composite index with a not null or constant column
    - FBI
    - bitmap
    Pick one that best fits your data, selectivity and activity on the tables.

  • Table relation between Sales Organization and Profit centre

    Hi everybody,
    I hava a question:
    How do I know wich Sales organitzation (VKORG) belongs to a Profit centre(PRCTR), which table relation do I need to do to find it, or from wich table do I get this relation because I haven't found anything.
    I've been asked to get the Profit Centre given a Sales Organization.
    Thanks a lot!

    Hi Moises,
    Firstly get the Sales Order Number (VBELN) and Sales Organization(VKORG) from VBAK.
    Now based on the the Sales Order Number (VBELN) get the Profit Center(PRCTR) from VBAP.
    Now you can relate Sales Organization and Profit Center.
    Regards,
    Chandra Sekhar

  • FS CD Table Relation Ships Required

    Hi
    I am looking for the SAP table Relation ships in FS-CD (Financial Services - Collections & Disbursements).
    Earlier answers will be rewarded.
    Regards.
    Nikhil.B

    Below are the list of tables in FICA
    DFKKOP Items in contract account document
    DFKKOPK Items in contract account document
    DFKKKO Header Data in Open Item Accounting Document
    DFKKREP05 Payment History: Reversals and Write-Offs
    DFKKREP06 Tax Report Data (Invoicing Time or Triggered)
    DPAYCHKH Header: Accounting Using Creation of Payment Media
    DPAYCHKH1 Supplemental Assignments with Creation of Payment Media
    Table fields Short descriptn
    DPAYC Payment program - administrative records
    DPAYCHKH Header: Accounting Using Creation of Payment Media
    DPAYCHKH1 Supplemental Assignments with Creation of Payment Media
    DPAYCHKP Header: Accounting Using Creation of Payment Media
    DPAYG Payment program - payment group
    DPAYH Payment program - data for payment
    DPAYP Payment program - data on paid item
    DPAYV Payment program: Variants for payment medium and list
    TFK042Q Payment Medium: Note of First Direct Debit
    TFK042U Payment Medium: Internal Note to Payee
    TFK042X Payment Program: Company Codes blocked by Payt Run
    YZFKKMAKO Dunning History Header
    FKCRPO Clarification Worklist Credit
    DFKKCFPAYRUN Clarif. Worklist: Payt Program
    DFKKCIBW FICA: Extraction of Cleared Items
    DFKKCOLFILE_H_W Subm. of Receivable for Collection: Header Data Buffer
    DFKKCOLFILE_P_W Subm. of Receivable for Collection: Item Buffer
    DFKKCOLFILE_T_W Subm. of Receivable for Collection: Trailer Data Buffer
    DFKKCOLLHBW_ST Collection Agency Extraction - Status Table
    DFKKCOLLHBW_TMP Collection Agency Extraction - Blocked Interval
    DFKKCOLLH_I_W Buffer: Collection Agency Information File (Header Data)
    DFKKCOLLP_IM_W Buffer: Coll. Agency Info File (Item Master Data Change)
    DFKKCOLLP_IP_W Buffer: Collection Agency Info File (Item for Payments)
    DFKKCOLLP_IR_W Buffer: Collection Agency Info File (Item for Callback)
    LAUFD Date ID
    DFKKCOLLT_I_W Buffer: Collection Agency Information File (Footer)
    DFKKCOMA Correspondence Dunning
    DFKKCOMAKT Correspondence Dunning Activities
    DFKKCRP Creditworthiness Record: Generating Actions
    DFKKDDA Debit Memo Notification (England)
    DFKKENQ Temporary Lock Entries for Mass Activities
    DFKKLOCKS FI-CA: Business Locks
    DFKKMACFCSMK FICA Dunning - Blocked Accounts
    DFKKOPCOLL Collection: Log of Receivables Submitted
    LAUFD Date ID
    DFKKOPKC Card Data Appendix for FICA Document
    DFKKORDERHIST Requests: Document History
    DFKKORDOPHIST Standing Requests: Document History
    DFKKPNBKC Prenotification file creation run: administration data
    DFKKPOH Payment Order: Header Data
    DFKKRDI Revenue Distribution
    DFKKRPL Link from Mass Run Interval for Application Log
    DFKKSTAT Table for Temporary Statistics Data, for Mass Activities
    LAUFD Date ID
    DFKKTAXEX Table of FI-CA Tax Exemptions
    DFKKTAX_EXEMPT Table of FI-CA Tax Exemptions
    DFKKUR Update Run: Run Data
    DFKKURE Update Run: Defective Data Records
    DFKKWOH Write-Off History
    DFKKZW2 Doubtful/Indiv. Val. Adjustments for Receivables - Tfr Pstg
    DFKKZWPT Log Table for Mass Activ. for Tfr Posting of Dbt Rec/IVAs
    DFK_JC_CNTR Container for Related Jobs
    DFKKCFRLS Clarification Cases: Returns Lots
    DFKKCFZST Clarification Cases from Payment Lot
    Reward points..

  • To read batch characteristics on Purcahse order

    Hi Helpful,
    My client wants to capture details when ever chages are done to  drawing no ,revision level which are currenly maintained as bath characteristics in calssification view of material master to be updated automatically on purcahse order wheen ever Po is raised for this material.
    For Eg: If we do changes  to purcahse order text in material master that automatically gets captured on Purcase order text field when we raise a PO for that material.
    pls replt ASAP.
    Thank you,
    sairam

    Hi
    The problem is you can't use the KNUMV, because u make sure to get the princing active in the document at run time.
    If you want to know the old data you can read the table KONV using field KNUMV, but here you can't know if some modification is done.
    U can try to know the field-symbols:
    DATA: XKOMV LIKE KOMV.
    DATA: FIELDNAME(30) VALUE '(SAPMV45A)XKOMV[]'.
    FIELD-SYMBOLS: <TKOMV> TYPE TABLE.
    ASSIGN (FIELDNAME) TO <TKOMV>.
    LOOP <TKOMV> INTO XKOMV.
    ENDLOOP.
    Max

  • Planned order detail Table

    Hi,
    With a Combination of WORK CENTER and PLANT i need to extract all the respective PLANNED ORDERS, which is the corresponding table to query. Please help.
    Points Assured
    Regards,
    Prabu

    Hi....
    PLAF - Planned order table
    Tables related to work center:
    CHRD: Work center header.
    CRCO: Assign ment table
    TC24: Person respoancible for WC
    Others:
    PBIM: Independent Requirements for Materials
    MDTB:MRP Table
    RESB:Material Reservations
    Thanks,
    Naveen Inuganti.

  • Order of Tables to load

    Hi,
    I have around 300 tables in a database, and I need to load these tables with data. For this I need to know the order of tables to be loaded. Please help me if you have any script or solution that would tell me the order of tables be loaded.
    Thanks in advance

    It's doable. The complexity is mainly in how much or little you know ahead of time about what you are loading. The referential integrity relations between tables is within Oracle so you can know what tables are dependent on table A, and what tables are dependent on those tables, etc., etc. Once you've got that then you can load the data in the proper order (and you might want to put the whole thing in a transaction so other users don't see partial updates). So if you load table A and associated tables once per week or something then you've got the script and can keep re-using it, just changing the data files.
    If you are going to have random tables to load then you'll have to do the same thing for every new table to load. Sure, you can probably create a script to do it all totally driven off of the table to load, but it all depends on how flexible you need to be.

  • Tables related to KKBC_PKO

    Hi Gurus,
    Can I know the Tables related to Tcode KKBC_PKO ??
    Madhu.

    Hi
    AFPO Order item
    AUFK Order master data
    AUFKV Generated Table for View AUFKV
    CBART Type of business process
    CBDTT Allocation type for business processes text table
    CBRKT Text table of sequence of value added for business processes
    CKIPCMC Transfer Structure for Mat. Master to Costing Mat. Check
    CKRCO Anchor Entry of Summarized CO Object (Summarization Object)
    CSKS Cost Center Master Data
    HELP_INFO Transfer Values for the Help Processor
    INDX System table INDX
    KEKO Product Costing - Header Data
    KKB0 Reporting Screen Fields for Costing
    KKBGL Global value of a report group
    KKBJB Data for a Report Group
    KKB_AUFLOESUNG Quantity Structure Control Itemization
    KKB_ML Procurement Alternative from Information System Perspective
    KKRDYN00 General Screen Fields for Summarization (Costing)
    KKRVDCOOBJ Internal Structure for CKRCO + CKRCT (Summarized CO Object)
    MACK3 Material Master View: Costing
    MAKT Material Descriptions
    MTCOM Material Master Communication
    PROJ Project definition
    PRPS WBS (Work Breakdown Structure) Element Master Data
    RGSBS Data Description of a Set (Without Values)
    SAFK Run Schedule Master Data
    T001W Plants/Branches
    T009 Fiscal Year Variants
    T009B Fiscal year variant periods
    TCK01 Costing Types
    TCKH8 Cost Component Views in Display
    TCKH9 Texts for Cost Component Views in Display
    TKA01 Controlling Areas
    TKA09 Basic Settings for Versions
    TKKAP Results Analysis Versions for Results Analysis
    TKKAT Text Table for Results Analysis Versions
    TKKB1 R/3 System Costing Reports
    TKKB3 KKB: General Reports
    TKKBT Reporting Control Parameters
    TKKBU Application-Dependent Report Parameters
    TKKBX User Groups for Costing Reports
    TKKR0 Hierarchy Summarization (Header)
    TKKR3 Hierarchy Summarization (Header Texts)
    TKT09 Texts for versions in master table
    TKV09 Target Cost Versions
    TKV10 Texts for Target Cost Versions
    VBAP Sales Document: Item Data
    SKS

  • Tables related to User Exits & Enhancements

    Hi,
    Could you please let me know about the database tables related to enhancements & user exits?
    Actually I need to documnet the information about all the enhancements & also find a way to retrieve the related code. Could you please help on this?
    Thanks..

    u can find all enahnacements using the below code...
    *& Report  ZUSEREXIT_FIND                                              *
    report  zuserexit_find no standard page heading.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exits.
    *& Tables
    tables : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    *& Selection Screen Parameters
    selection-screen begin of block a01 with frame title text-001.
    selection-screen skip.
    parameters : p_tcode like tstc-tcode obligatory.
    selection-screen skip.
    selection-screen end of block a01.
    *& Start of main program
    start-of-selection.
    Validate Transaction Code
      select single * from tstc
        where tcode eq p_tcode.
    Find Repository Objects for transaction code
      if sy-subrc eq 0.
        select single * from tadir
           where pgmid    = 'R3TR'
            and object   = 'PROG'
             and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
        if sy-subrc ne 0.
          select single * from trdir
             where name = tstc-pgmna.
          if trdir-subc eq 'F'.
            select single * from tfdir
              where pname = tstc-pgmna.
            select single * from enlfdir
              where funcname = tfdir-funcname.
            select single * from tadir
              where pgmid    = 'R3TR'
                and object   = 'FUGR'
                and obj_name = enlfdir-area.
            move : tadir-devclass to v_devclass.
          endif.
        endif.
    Find SAP Modifactions
        select * from tadir
          into table jtab
          where pgmid    = 'R3TR'
            and object   = 'SMOD'
            and devclass = v_devclass.
        select single * from tstct
          where sprsl eq sy-langu
            and tcode eq p_tcode.
        format color col_positive intensified off.
        write:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        skip.
        if not jtab[] is initial.
          write:/(95) sy-uline.
          format color col_heading intensified on.
          write:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          write:/(95) sy-uline.
          loop at jtab.
            select single * from modsapt
            where sprsl = sy-langu and
            name = jtab-obj_name.
            format color col_normal intensified off.
            write:/1 sy-vline,
            2 jtab-obj_name hotspot on,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          endloop.
          write:/(95) sy-uline.
          describe table jtab.
          skip.
          format color col_total intensified on.
          write:/ 'No of Exits:' , sy-tfill.
        else.
          format color col_negative intensified on.
          write:/(95) 'No User Exit exists'.
        endif.
      else.
        format color col_negative intensified on.
        write:/(95) 'Transaction Code Does Not Exist'.
      endif.
    Take the user to SMOD for the Exit that was selected.
    at line-selection.
      get cursor field field1.
      check field1(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.

Maybe you are looking for

  • Question about Programming Notes for WD Abap / Context

    http://help.sap.com/saphelp_nw04s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm Since an instance of the follow-on view has not yet been created, you must now decide whether to configure a component controller context with an appropriate

  • SAP retrieve password

    Hi all For my remote access password got misused by some one. Now i need to reteive new password, can any one pls help with the process satish

  • Photoshop Not Printing files

    I have Photoshop CS4. I suddenly cannot print any files. I get an error screen that says I need to install a printer. I can print from other programs, just not Photoshop. Any ideas?

  • Updating Office 2011 on Mavericks

    I'm opening Microsoft Word (read; Office 2011 for Mac) for the first time after installing my new Macbook Pro Retina 13". However, if I check for an update there will be one. After I update it, there is another update. Why don't I get the latest upda

  • Templates Country music

    Sorry for my writing I'm not very good in americain. Do you think it's possible to find on internet a free templates for logic pro in country but only with the plug ins og logic pro. If you can help me merci beaucoup. Cordialement DLD