Tables to fetch Components in a subcontracting PO .

Dear Experts ,
In a subcontracting PO , where components are mentioned in the PO taht shall be provided to the vendor , from what tables can I fetch the entries made for components against the PO number ?
Regards
Anis

Hi
Look at table ENT5177. it will help you
Regards
Antony

Similar Messages

  • Regarding performance tuning for BSEG & BKPF table data fetch

    Hi Friends:
       Plz see the below select queries. This is really impacting the performance of my report. Plz suggest the steps to increase the performance of the report.Points will be rewarded.
    Thanks:
    FORM GET_DATA .
    Selecting the Document number from BSEG table
      SELECT BELNR BUKRS FROM BSEG INTO TABLE L_DOC_NO
                                   WHERE BUKRS IN S_BUKRS
                                   AND   GJAHR = P_GJAHR
                                   AND   HKONT IN S_SAKNR.
      IF SY-SUBRC <> 0.
        MESSAGE ID 'ZTFI' TYPE 'E' NUMBER 006.
      ENDIF.
      CLEAR L_DOC_NO.
      SORT L_DOC_NO BY BELNR.
    Selecting the Document Number Based on the selection-screen.
      SELECT BELNR BUKRS BUDAT CPUDT  BLART MONAT FROM BKPF INTO TABLE
    L_BKPF
      FOR ALL ENTRIES IN L_DOC_NO
                            WHERE BUKRS = L_DOC_NO-BUKRS AND
                                  BELNR = L_DOC_NO-BELNR AND
                                  GJAHR = P_GJAHR AND
                                  BUDAT IN S_BUDAT AND
                                  MONAT IN S_MONAT.
      IF SY-SUBRC <> 0.
        MESSAGE ID 'ZTFI' TYPE 'E' NUMBER 006.
      ENDIF.
    *Fetch the Line Items
      SORT L_BKPF BY BELNR.
      SELECT BELNR BUKRS BUZEI HKONT  SHKZG WRBTR FROM BSEG INTO TABLE
    L_BSEG
                                    FOR ALL ENTRIES IN L_BKPF
                                 WHERE BUKRS = L_BKPF-BUKRS
                                 AND   BELNR = L_BKPF-BELNR
                                 AND   GJAHR = P_GJAHR
                                 AND   BUZEI BETWEEN '001' AND '999'.

    Hi,
    Let me understand your code first.
    The below code (the 2 selects) gets data from BSEG first and then gets data from BKPF table.
    "*Selecting the Document number from BSEG table
    SELECT BELNR BUKRS FROM BSEG INTO TABLE L_DOC_NO
    WHERE BUKRS IN S_BUKRS
    AND GJAHR = P_GJAHR
    AND HKONT IN S_SAKNR.
    IF SY-SUBRC 0.
    MESSAGE ID 'ZTFI' TYPE 'E' NUMBER 006.
    ENDIF.
    CLEAR L_DOC_NO.
    SORT L_DOC_NO BY BELNR.
    "*Selecting the Document Number Based on the selection-screen.
    SELECT BELNR BUKRS BUDAT CPUDT BLART MONAT FROM BKPF INTO TABLE L_BKPF
    FOR ALL ENTRIES IN L_DOC_NO
    WHERE BUKRS = L_DOC_NO-BUKRS AND
    BELNR = L_DOC_NO-BELNR AND
    GJAHR = P_GJAHR AND
    BUDAT IN S_BUDAT AND
    MONAT IN S_MONAT.
    IF SY-SUBRC 0.
    MESSAGE ID 'ZTFI' TYPE 'E' NUMBER 006.
    ENDIF.
    The below code, can't you avoid by taking all the fields required on your 1st select on BSEG table?
    *Fetch the Line Items
    SORT L_BKPF BY BELNR.
    SELECT BELNR BUKRS BUZEI HKONT SHKZG WRBTR FROM BSEG INTO TABLE
    L_BSEG
    FOR ALL ENTRIES IN L_BKPF
    WHERE BUKRS = L_BKPF-BUKRS
    AND BELNR = L_BKPF-BELNR
    AND GJAHR = P_GJAHR
    AND BUZEI BETWEEN '001' AND '999'.
    Please check the below blog on "Performance of Nested Loops" by Rob Burbank which would be really helpful.
    /people/rob.burbank/blog/2006/02/07/performance-of-nested-loops
    Hope this helps. Rwd points if helpful.
    Thanks,
    Balaji

  • Table to fetch PR Cost Center

    HI All,
    I am having error in Print Preview of PR. All cost centers are not printing properly in PR Print.
    Please tell me in which table can fetch details of cost center list  other than EBKN.
    Expecting reply as earliest as possible.
    Thanks in Advance,
    GANESH

    Dear Dhruba,
    Thanks for your input. But the table EBKN, line item wise cost centre for all service is not available. If there are multiple cost centre used in various services, in EBKN, it will show collective details of each cost centre. Our requirement is to get print out of Service PR, with all service line item details like quantity, price, g/l account, cost centre etc.
    Request you to help me on this.
    Thanks in Advance,
    GANESH

  • Table to fetch account group against GL accounts ( groups created by KDH1)

    Hello,
    Can anyone tell me that from what tables i fetch the data of account groups and GL accounts against them.
    regards
    Hina.

    Try SKA1 table in SE16
    Reward if it helps.

  • Table for fetching GL Information.

    Hi,
    Could any one help me out to find the table for fetching the GL information which is not yet posted..ie parked.
    Thanks & Regards,
    Sudheer.

    hi see this link
    http://www.sap-img.com/financial/important-tables-in-sap-fi.htm
    with regards
    and cheers
    s.janagar

  • Insert data from an tabular to a temp table and fetching a columns.

    Hi guys ,
    I am working in apex 3.2 in which in a page i have a data's fom various tables and displays it in tabular form. Then i have to insert the tabular form data to a temp table and fetch the data from the temp table and insert into my main table. I think that i have to use a cursor to fetch the data from the temp table and insert into the main table but i didnt get the perfect example for doing this. Can any one help me to sort it out.
    Thanks With regards
    Balaji

    Hi,
    Follow this scenario.
    Your Query:
    SELECT t1.col1, t1.col2, t2.col1, t2.col2, t3.col1
    FROM table1 t1, table2 t2, table3 t3
    (where some join conditions);On insert button click call this process
    DECLARE
    temp1 VARCHAR2(100);
    temp2 VARCHAR2(100);
    temp3 VARCHAR2(100);
    temp4 VARCHAR2(100);
    temp5 VARCHAR2(100);
    BEGIN
         FOR i IN 1..apex_application.g_f01.COUNT
         LOOP
              temp1    := apex_application.g_f01(i);
              temp2    := apex_application.g_f02(i);
              temp3    := apex_application.g_f03(i);
              temp4    := apex_application.g_f04(i);
              temp5    := apex_application.g_f05(i);
              INSERT INTO table1(col1, col2) VALUES(temp1, temp2);
              INSERT INTO table2(col1, col2) VALUES(temp3, temp4);
              INSERT INTO table3(col1) VALUES(temp5);
         END LOOP;
    END;You don't even need temp tables and cursor to make an insert into different tables.
    Thanks,
    Ramesh P.
    *(If you know you got the correct answer or helpful answer, please mark as corresponding.)*

  • How to add a serail no field in components screen in Subcontracting PO

    I need to Create Subcontract PO With BAPI_PO_CREATE1.Its working fine (With Batch).
    My requirement is I need to map one more extra field as Serial No in the Component SCreen.
    How can i add the Serail no field in the Subcontractiong with Components Screen and How to Update that with BAPI.
    Anybody knows the solution,let me know.
    Edited by: ksampath on Feb 8, 2011 3:12 PM

    Thanks for early response Dan.
    As per the document (It is available at  http://www.****************/Tutorials/ABAP/XD01/XD01.htm),
    1) I created the screen group, I created the Badi implementations
    2) Created the Implementation by giving a name and added code the method CHECK_ADD_ON_ACTIVE. and activated it
    3) agian using  Business Add-in: Customer Subscreens  , i created one more implementation and in that added code to GET_TAXI_SCREEN  method. before this i created a screen with a field.and i created a function pool and activated everything.
    4) after everthing i added the field in the kna1 table. when i execute the xd03 transaction code,  i can able to see my own tab ( which i was created) on the screen, and i am able to see the field with blank.
    Now my questions are:
    1) How to write the logic to get the field information from the kna1 when i enter the transaction xd03/.
    2) how to save the field values to kna1 database table when i open it in change mode(xd02) and changed the value.
    and where to write the logic?.
    Please provide me the code snippet if you have any.
    appriciate for your early response.
    thanks again.
    kp

  • Internal table data fetch

    hi,
    I'm fetching 10 datas from flat file to internal table. But my requirement is first column data is passed to table i need to select 5 column of data from my internal table.
    Eg. column 1 = A1
          column 2 = A2
          column 3 = A3
          column 4 = A4
          column 5 = A5
          column 6 = A6
    i passed A1 data and next time i need to select A5. is it possible.
    If any one knows let me give the solution..
    regards,
    bab

    Hi,
    Have a look at this [Convert rows into columns|http://docs.google.com/Doc?id=dfv2hmgs_5d6bcxqgp&hl=en] if you are looking to convert rows of a internal table into columns
    Regards,
    Vikranth

  • HR abap :  how to declare internal table to fetch data from 0585 infotype

    Hi all ,
    I am able to fetch the data from pa0585 infotype for set of employee no , but the problem is as the fields in pa0585 (like Contr to ULIP , NSC , Medical Treatment,Contribution to Certain Pension Funds so on ..) will be changed dynamically and will be displayed based on the amount value in descending order iam not able to store the values of the fileds into internal table . I dont understand how to declare the internal table ..Please help in if u have solved this kind of problem.
    I shld get the output in this way ...
    Emp No     Name    Medical treatment       Contr to ULIP             ....... so on
    101          abc           10000                        150000                      .......so on
    102          xyz           12000                        150000                      .......so on
    My header shld be fixed and I shld display values in this way .... I can use write statement to display directly .
    Thanks ....

    Hi
    Decalre INFOTYPE
    Goto SE37 - Find FM -
    READINFOTYPE*

  • IDOC related table to fetch out delivery numbers.

    Hi All,
    Please suggest me the tables from where in I can put Idoc no in selection screen and execute and fetch the delivery numbers in it.
    Regards,
    Satish.

    Hi,
    You can find in table EDIDS.
    Provide idoc number in field DOCNUM ( Idoc number) and execute
    In ouput check the value of field STAPA1 ( Parameter 1)
    Example of how it is shown in Parameter 1 field Ind 61 : Delivery successfully created 0050015575
    Regards
    vK

  • How to load data from XML DOM into tables using Business Components

    <p>
    Hi,
    </p>
    <p>
    I need to upload XML file (it&#39;s not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
    </p>
    <p>
    <font face="courier new,courier" size="2">&lt;Departments&gt;
       &lt;Department&gt;
          &lt;DepartmentName&gt;OPERATIONS&lt;/DepartmentName&gt;
          &lt;Localization&gt;BOSTON&lt;/Localization&gt;
          &lt;Employees&gt;
             &lt;Employee&gt;
                &lt;LastName&gt;TURNER&lt;/LastName&gt;
                &lt;Job&gt;SALESMAN&lt;/Job&gt;
                &lt;Manager&gt;7698&lt;/Manager&gt;
                &lt;HireDate&gt;1981-09-08&lt;/HireDate&gt;
                &lt;Salary&gt;1500&lt;/Salary&gt;
                &lt;Commerce&gt;0&lt;/Commerce&gt;
             &lt;/Employee&gt;
          &lt;/Employees&gt;
       &lt;/Department&gt;
    &lt;/Departments&gt;</font>
    </p>
    <p>
    Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
    </p>
    <p>
    Kuba 
    </p>

    Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
    HTH
    Srini

  • How can i join the header and item table to fetch the data

    hi experts,
                   i have a doubt in using inner join or for all entries, for fetching the data from the item table mseg, by taking the doc.no from mkpf. Plz sort out the difference, what happens, if i use the both statements for fetching data

    Hi,
    Both has same functionality.
    but if u are using FAE, u ahev to check for the
    ~intial condition of the source table,
    ~ duplicate entries, if any
    Inner join will fetch the data from all the join tables at once. FAE will fetch the date from a table first then use that data to fetch data from subsequent table.
    say in ur case, if u r using FAE,
    1.select from mkpf.
    2.select from mseg fae in I_MKPF.
    first try using JOIN. if it is taking lots of time, then try FAE.
    regards,
    madhu

  • Pivot Table Data Fetching

    Greetings. I have problem with data fetching in pivot table.
    I can see only 25 rows in it. Any ideas with my problem.

    Hi,
    Try increasing the rangeSize of the iterator to some value like 150?
    -Arun

  • Nested Tables and Business Components

    Hi,
    We have developed a paradigm whereby all of our tables are of object types. In one example we haveL
    create type addresslines_nt as table of varchar2(30);
    We have another type:
    create type address_ot as object(
    lines addresslines_nt );
    We create the TABLE off of address_ot with a nested table (store as) off LINES.
    CREATE TABLE ADDRESS of ADDRESS_OT ....
    In JDeveloper we want to create BUSINESS COMPONENTS and can not find a way for it (JDeveloper) to create a matching component for ADDRESS (the table) without it dropping a reference to the LINES property?
    HELP!
    Dave

    BC4J version 3.2.x only supports VARRAY collection types.
    BC4J 9i (which will come with JDeveloper 9i when it's release) supports both VARRAY and TABLE collection types.

  • Table for PO components

    HI All,
    Plz let me know the table used for PO components.
    Regards,

    Hi,
    Use the tables mentioned below in the sequence mentioned to get the components:
    MAST -- Material to BOM Link
    STKO -- BOM Header
    STPO -- BOM item
    Regards,
    Chandra
    Edited by: chandra piminty on Dec 9, 2009 1:09 PM

Maybe you are looking for

  • How to Get Opening Balance?

    Hello All, from our legacy system we inputed it to SBO... now i want to get the summary of all the opening balance. how can i get the data that i wanted to. is there a built in report in SBO for this? Please advice. FIDEL

  • How can I get netflix on Apple TV to auto play the next episode?

    How can I get netflix on Apple TV to auto play the next episode?

  • Impossible to call a action handler in managed bean

    Hello! I'd developed simple jsf-application using JDeveloper 10.1.3.3 that doesn't use faces-config.xml for a nafigation. Simple jsf page (page1.jspx) has only one command button: <af:commandButton text="commandButton 1" binding="#{backing_page1.comm

  • Read user name from Header of SOAP Sender

    Hi All, Is there any way to read value of "sap-user" passed in below URL. http://<server>:<port>/sap/xi/adapter_plain?namespace=<sender_ns>&interface=<sender_mi>&service=myservice&party=&agency=&scheme=&QOS=BE&queueid=httpclient&sap-user=<sap-user>&s

  • N97 mini Mfe Error

    Hi, I am trying to setup Mail for Exchange for a client of mine on a N97 mini. At first i was not able to even create the connection at all. So i updated - this did not allow me to create the connection. Then i wipped the phone and i could not create