Want to fetch data from AFVU table with input of order number from AUFK table

Hi,
I have a requrement in report where in the user wil enter  the order number from AUFK table and it should display detais like job code condition code (from AFVU table) along with other fields. There is no relation ship between AFVU and AUFK. Can anybody help me in getting the replation ship between 2 tables. What is the table that iam missing and where can i find that relationship and fetch records for that order number?

Check if this helps..
AUFK -> AFKO -> AFVU
AUFK-AUFNR = AFKO-AUFNR
AFKO-AUFPL = AFVU-AUFPL
Hope this helps.

Similar Messages

  • Create list of materials with its purchase order texts from material master

    Dear all
    Simple question I do wanna ask.
    Just need to get out a list with my materials with its purchase order texts from the material master.
    As I do know that PO text is not stored on a table, it might be difficult to get it out from the system.
    Does anyone of you know how to retrieve it simply?
    Regards
    François

    Check this link Material Master Purchase Order Text.

  • If i sync'd songs to my ipod from a computer that i didnt have my accout on, is there a way to download songs from my account with out erasing the songs from the other account

    if i sync'd songs to my ipod from a computer that i didnt have my account on, is there a way to download songs from my account with out erasing the songs from the other accounts

    go to iTunes>Help>iTunes Help>Sync your iPod....>Sync You Device>Set up Syncing>Sync your device manually and follow the instructions.

  • I ahve taken over my daughter's computer but can't install the office software even though I ahve one licence left because it comes up with the old product number from her licence

    I have taken over my daughter's computer but can't re-install the office for mac 2008 software even though I have one licence left because it comes up with the old product number from her licence.  I ahve renamed the computer but wehn I tried to install again there was no option to enter the new licence number

    Follow these steps to remove Office completely, then reinstall.

  • Function Modul for Order Number from VA02

    Hallo
    i have a delivery number and want read the order number from VA02.
    Of course, select the database from LIKP --> LIPS --> VBKD is possible but 
    maybe it has function modul for read the order number from transaction VA02.
    THX ANU

    Hi,
    I think is better recover the data directly from DB tables (in table LIPS you have the fields VGBEL, VGPOS, VGTYP ) if you only want the order number.
    With the delivery number you only need to acces 1 table. If you use a FM, you will recover this data and a few fields that is not interesting for you. The access to table LIPS is using table index (delivery number)
    Regards,
    Pepe

  • Serial number associated with a production order number

    Hi All,
    How i can find serial number associated with a production order number.
    I want to input serial number and material number to fetch the production order number.
    Thanks
    Ritesh
    Edited by: R S D on Jun 8, 2009 7:08 PM
    Edited by: R S D on Jun 9, 2009 8:57 AM

    I am sure this is a solution..please try..
    In SQVI transaction join the tables SER05 and OBJK... YOu will get the results...
    Or
    GO to SA38, enter program RIOBJK00... YOu will get hte results..
    karthick

  • Getting purchase order number from sales order number

    Hi Experts,
    My requirement is to fetch the following values from a sales-order number:
    Purchase Order Number,
    Delivery Date
    Order Type(Source of Order EDI/EFAX/..)
    Ship To,
    Sold To.
    We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
    Is there any standard FM present in ECC which gives the above information from the sales order number?
    Thanks in advance
    Regards
    Shilpi

    Hi,
    Check the FM BAPISDORDER_GETDETAILEDLIST
    It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
    You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
    HEADER, ITEM etc...
    The fields
    PO_METHOD
    PURCH_NO
    REQ_DATE_H
    SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
    SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
    Regards
    Sarves

  • Transfer Order number in MSEG table

    Hi,
    I am a Technical team member and while preparing Technical Specification for a Report I came accross a problem that when we do a PGI the Transfer Order field in the table MSEG does not get updated.
    My requirement is to get the Transfer Order number from the Material document, and I don't understand why this field isn't getting updated in MSEG table with reference Transfer order when one does a PGI.
    Please let me know if there is any configuration I need to check with so that I can go with this info to my Functional team.
    Appreciate your help in this regard.
    Thanks and Regards,
    Saleem.

    Hi Saleem
    In MSEG you can find TR number (MSEG-TBNUM). Take MBLNR from MSEG and pass into LTAK table. There you can find TO Number (LTAK-TANUM)
    Hope it helps
    regards
    Srinivas
    reward if it is useful

  • How to get master sales order number from delivery number

    Hi All,
    I need logic for getting master sales order number from available Delivery number.
    Note: There can be many SO's in diffrent levels.
    Finally i need to pick up master sales order no.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have a outbound delivery[VL03N] 'X' in my system .
    Then for getting sales order no i am writing below code:
      SELECT single vbelv vbeln
             from vbfa
             INTO (vbelv, vbeln)
             where vbeln   EQ p_vbeln AND
                   vbtyp_n EQ 'J'.
    Then vbelv i need to pick up master sales order no.
        SELECT vbelv vbeln
               from vbfa
               INTO TABLE i_so
               where vbeln   EQ l_vbelv AND
                     vbtyp_n EQ 'C'.
    If i write code as above it is giving four sales orders which one of them is master sales order no!
    Thanks,
    Deep.

  • Find Sales order number from IDOC number

    I have a bunch of SO idocs, in status 64. They are then posted and Sales orders are created.
    How can I programatically find the Sales order Number from the Sales Order idoc number once it is in status 53 (other than going to EDIDS and checking if status = '53' and grabbing the 'STAPA2' field there ).

    Look at table EDIDS for sales order idocs and you can see SO number in any of STAPA1/2/3/4 variable for specific message id and message number.

  • Wanted to fetch data from ref cursor to nested pl/sql table getting an erro

    create or replace type "DEPT12" as object(dno number(2),dname varchar2(30),loc varchar2(50));
    create or replace type dept_tab as table of "DEPT12"
    create or replace type "LOC12" as object(locno number,loc_name varchar2(100))
    create or replace type loc_tab as table of "LOC12"
    create or replace type dept_loc_rec1 as object (dept_dt dept_tab,eno number,loc_dt loc_tab);
    create type dept_loc_tb as table of dept_loc_rec1
    create table dept_loc_tb_bk1(dept_dt dept_tab,eno number,loc_dt loc_tab)
    NESTED TABLE dept_dt
    STORE AS dept_tab12,
    NESTED TABLE loc_dt
    STORE AS loc_tab12
    insert into dept_loc_tb_bk1 values(dept_tab(dept12(3,'ABD','LOC')
    ,dept12(4,'ABD','LOC')
    ,dept12(5,'ABD','LOC')),3,loc_tab(loc12(21,'AAB'),
    loc12(22,'AAB'),
    loc12(23,'AAB')));
    when I am trying to fetch data from ref cursor to pl/sql table which i am getting an error ora-06504: pl/sql : Return types of result set variables or query do not match.
    I have created a nested table of same as the nested pl/sql object table dept_loc_tb and i have declared the lv_dept_loc_tb of same dept_loc_tb but getting an above error when trying to fetch into that variable.
    Please any one who can solve my problem.
    declare
    type cr is ref cursor;
    cr_obj cr;
    lv_dept_loc_tb dept_loc_tb;
    begin
    open cr_obj for select dept_dt,eno,loc_dt from dept_loc_tb_bk1;
    fetch cr_obj bulk collect into lv_dept_loc_tb;
    close cr_obj;
    end;

    Your query selects 3 separate columns therefore requires 3 collections of corresponding types. You want to treat those 3 columns as an object of DEPT_LOC_REC1 type:
    SQL> declare
      2  type cr is ref cursor;
      3  cr_obj cr;
      4 
      5  lv_dept_loc_tb dept_loc_tb;
      6 
      7  begin
      8  open cr_obj for select dept_dt,eno,loc_dt from dept_loc_tb_bk1;
      9  fetch cr_obj bulk collect into lv_dept_loc_tb;
    10  close cr_obj;
    11  end;
    12  /
    declare
    ERROR at line 1:
    ORA-06504: PL/SQL: Return types of Result Set variables or query do not match
    ORA-06512: at line 9
    SQL> declare
      2  type cr is ref cursor;
      3  cr_obj cr;
      4 
      5  lv_dept_loc_tb dept_loc_tb;
      6 
      7  begin
      8  open cr_obj for select DEPT_LOC_REC1(dept_dt,eno,loc_dt) from dept_loc_tb_bk1;
      9  fetch cr_obj bulk collect into lv_dept_loc_tb;
    10  close cr_obj;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> SY.
    P.S. Discover sys_refcursor.

  • Load data from a file with multiple record types to a single table-sqlldr

    We are using two datastores which refer to the same file. The file has 2 types of records header and detail.
    h011234tyre
    d01rey5679jkj5679
    h011235tyrr
    d01rel5678jul5688
    d01reh5698jll5638
    Can someone help in loading these lines from one file with only two data stores(not 2 separate files) using File to Oracle(SQLLDR) Knowledge Module.

    Hi,
    Unfortunately the IKM SQLDR doesn't have the "when" condition to be wrote at ctl file.
    If you wish a simple solution, just add an option (drop me a email if you want a LKM with this)
    The point is:
    With a single option, you will control the when ctl clause and, for instance, can define:
    1) create 2 datastores (1 for each file)
    2) the first position will be a column at each datastore
    3) write the when condition to this first column at the LKM in the interface.
    Does it help you?

  • How to check the number of rows in a table with input data?`

    Dear all,
    I am having a table ( with declaration of 5 rows during the init ) there's a next button which will add another 5 rows by pressing. Let say the user ony key in 7 rows of data.. how should i track it? coz these data act as input to my bapi function. One of the input field of my bapi is to state how many rows of data that a user had key in. Thank you.

    I think ur problem is empty records, u dont want to process empty table rows.
    m I right?
    if yes then just before processing the data / records, check for empty records and remove unwanted rows from the node.
    for (int i = 0; i < TableNode.size(); i++)
             if all cells of row(i) are empty
                   remove row(i) from Table Node.
    OR if you dont want to remove empty rows from display (screen), then at the time of processing, transfer useful rows to a separate node and process that node.
    Best Regards
    Deepak

  • Paging a data table with input text fields

    I've created a datatable with input text fields so that contents can be edited. I have 'save' and 'cancel' buttons on the page so that changes can be saved or abandoned. That seems to work fine.
    However, I have a problem with paging. If I modify an input text field, page to the next page in the datatable and then page back, the modified input text field reverts to the original entry in the database. Does anyone know how I can preserve this change (without issuing a commit) until the user clicks on the save button?
    Here is a snippet of jsp with datatable.
    <h:dataTable binding="#{DocTypeDetail.doctypeMetadataTable}" headerClass="list-header" id="doctypeMetadataTable"
    rowClasses="list-row-even,list-row-odd" rows="5" style="left: 240px; top: 312px; position: absolute"
    value="#{DocTypeDetail.doctypeMetadataTableModel}" var="currentRow">
    <h:column binding="#{DocTypeDetail.column2}" id="column2">
    <h:inputText binding="#{DocTypeDetail.textField1}" id="textField1" value="#{currentRow['name']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText5}" id="outputText5" value="Name"/>
    </f:facet>
    </h:column>
    <h:column binding="#{DocTypeDetail.column3}" id="column3">
    <h:inputText binding="#{DocTypeDetail.textField2}" id="textField2" value="#{currentRow['value']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText8}" id="outputText8" value="Value"/>
    </f:facet>
    </h:column>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header">
    <h:panelGroup binding="#{DocTypeDetail.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-header">
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_firstPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderFirstButton}" id="doctypeMetadataTableHeaderFirstButton"
    image="resources/paging_first.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_previousPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderPreviousButton}" id="doctypeMetadataTableHeaderPreviousButton"
    image="resources/paging_previous.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_nextPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderNextButton}" id="doctypeMetadataTableHeaderNextButton"
    image="resources/paging_next.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_lastPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderLastButton}" id="doctypeMetadataTableHeaderLastButton"
    image="resources/paging_last.gif" immediate="true"/>
    </h:panelGroup>
    </f:facet>
    </h:dataTable>

    I know by now you must have figured it out. If not you might want to try keeping the backing bean in session instead of request scope.
    Hope that helps,
    HeMan

  • Trigger to update field on a table with the sum of fields on another table

    My experience creating triggers and pl/sql in general can best be described in oracle terms as null. I've been practicing by creating tables and applications on my personal home server to help me with some of my work related tasks. Right now I'm trying to create a trigger that will, after insert, update, delete on the assignment_time_track table update the time_spent field on the assignments table with the sum of the time_spent fields on the assignment_time_track table. Hopefully that run on sentence there is clear to people other than myself. I've attempted to script this on my own using the trigger creation tool for Oracle Database Express Edition but I get the following error:
    Trigger create was not successful for the following reason:
    ORA-06552: PL/SQL: Compilation unit analysis terminated ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
    Here is my attempt at creating the trigger on my own.
    create or replace trigger "ASSIGNMENT_TIME_TRACK_T1"
    AFTER
    insert or update or delete on "ASSIGNMENT_TIME_TRACK"
    for each row
    begin
    update assignments
    set time_spent = (select sum(time_spent)
    from assignment_time_track
    where assignment_time_track.name = assignments.name);
    end;
    If what I've posted isn't clear or more detail is needed, let me know and I'll respond with a complete description of both tables and my goals for each table. Thanks in advance for any help. I will also gladly accept links to tutorials or lessons that explain how to do this sort of thing.
    Edited by: bobonthenet on Mar 9, 2009 2:01 PM

    Hi,
    If the assignments table has only one row per assignment, why is the primary key the combination of name and time_spent? If you have two two assignments called "Lab Report", isn't it possible that you would spend the same amount of time on each of them? I suggest using a sequence to assign an arbitrary id number to each assignment, and use that as the primary key.
    What does each row in assuignment_time_track represent? It sounds like it is a chunk of time spent on one assignment (that is, you want to know that you spent 90 minutes on Tudesday morning working on some assignment, and that you spent another 30 minutes on Tuesday afternoon working on the same assignment). If so, then there should be a foreign key constraint in assignment_time_track referencing the primary key of assignemnt, and not the other way around.
    Alex is right; you can get the total time spent on each project in a query or view; there is no need to replicate that data.
    If you're new to Oracle and SQL, you should invest your time in getting more experience with the basics: everyday things like queries (using joins and GROUP BY) and views, and not spend much time on things that aren't used that much, like triggers.
    If you really did have to copy the data, then you could have a trigger on assignemnt_time_track that kept the total in assignment up to date, like this:
    UPDATE  assignment
    SET     total_time_spent = total_time_spent
                    + NVL (:NEW.time_spent, 0)
                             - NVL (:OLD.time_spent, 0);I suggest you name the column in assignment something different than the column in assignment_time_track, to reduce the risk of confusion. Also, since they represent different things, the same name can't be the most descripttive for each of them.
    In case you're wondering about the use of NVL, above: It allows the same statement to take care of the situation when you INSERT, UPDATE or DELETE a row in assignment_time_track. That is, if you UPDATE a row in assignment_time_track, and change the time_spent from 60 to 90, then you want to add the new time (90) and subtract the old time (60) fro the total_time_spent in assignment: that is, total_time_spent would increase by 30. If you INSERT a new row into assignment_time_track with time_spent=30, you just need to add the new time_spent (30): there is nothing to subtract. But rather than write an IF statement and a second UPDATE for that situation, you can just rely on hte fact that all :OLD values are NULL iwhen INSERTing, and treat that NULL as a 0. Likewise, when DELETing, all :NEW values are NULL..

Maybe you are looking for