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

Similar Messages

  • How to upload the Header and Item texts

    Hi ,
    I need to upload the Header and Item texts , what is the process to upload.................................
    Regards,
    Raghunath.S

    hi,
    see the sample code.
    report ZVENDOR_BANK
           no standard page heading line-size 255.
    *-----tables declaration
    tables:lfa1,lfbk,t100.
    *-----data declaration
    data:begin of it_dummy occurs 0,
           dummy(100) type c,
         end of it_dummy.
    data:begin of it_lfa1 occurs 0,
           lifnr like lfa1-lifnr,
           ktokk like lfa1-lifnr,
           name1 like lfa1-name1,
           sortl like lfa1-sortl,
           land1 like lfa1-land1,
         end of it_lfa1,
         begin of it_lfbk occurs 0,
           lifnr like lfbk-lifnr,
           banks like lfbk-banks,
           bankl like lfbk-bankl,
           bankn like lfbk-bankn,
           koinh like lfbk-koinh,
         end of it_lfbk.
    data:bdcdata like bdcdata occurs 0 with header line.
    start-of-selection.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
      FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                      = it_dummy
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17.
      loop at it_dummy.
        if it_dummy-dummy+0(1) = 'H'.
          it_lfa1-lifnr = it_dummy-dummy+1(4).
          it_lfa1-ktokk = it_dummy-dummy+5(4).
          it_lfa1-name1 = it_dummy-dummy+9(7).
          it_lfa1-sortl = it_dummy-dummy+16(2).
          it_lfa1-land1 = it_dummy-dummy+18(2).
          append it_lfa1.
        else.
          it_lfbk-lifnr = it_dummy-dummy+1(4).
          it_lfbk-banks = it_dummy-dummy+5(2).
          it_lfbk-bankl = it_dummy-dummy+7(8).
          it_lfbk-bankn = it_dummy-dummy+15(8).
          it_lfbk-koinh = it_dummy-dummy+23(4).
          append it_lfbk.
        endif.
      endloop.
      loop at it_lfa1.
        refresh bdcdata.
        perform bdc_dynpro      using 'SAPMF02K' '0100'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'RF02K-LIFNR'
                                      it_lfa1-lifnr.
        perform bdc_field       using 'RF02K-KTOKK'
                                      it_lfa1-ktokk.
        perform bdc_dynpro      using 'SAPMF02K' '0110'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'LFA1-NAME1'
                                      it_lfa1-name1.
        perform bdc_field       using 'LFA1-SORTL'
                                      it_lfa1-sortl.
        perform bdc_field       using 'LFA1-LAND1'
                                      it_lfa1-land1.
        perform bdc_dynpro      using 'SAPMF02K' '0120'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-KOINH(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        data:FNAM(20) TYPE C,
             IDX TYPE C.
        move 1 to idx.
        LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
          CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-banks.
          CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankl.
          CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankn.
          CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-koinh.
          IDX = IDX + 1.
        endloop.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        perform bdc_dynpro      using 'SAPLSPO1' '0300'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=YES'.
        call transaction 'XK01' using bdcdata mode 'A'.
      endloop.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD

  • Difference between  header and item table

    hi experts
    I have doubt in choosing header and item table. what is the difference between them. on what situations they can be choosed, how can i conclude that my object needs only item or header table.
    thanks in advance.
    maaya

    Hi
    Header will be always a single time data in a transaction
    where as Item data is Multiple lines of data
    Item data in most of the times consists of more number of lines.
    see the header and Item related tables for some Tcodes
    Tcode      Header   Item
    VA01       VBAK    VBAP  Sales order
    VL01N     LIKP       LIPS    Delivery
    VF01       VBRk      VBRP   Invoice/Billing Doc
    ME21N    EKKO     EKPO   Pur order
    Regards
    Anji

  • How to find the header and item level status of a CRM contract ?

    Hi,
    Few questions
    A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
    B. How to get the BPs associated with a contract ?
    Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]

    CRMD_ORDERADM_H     Contains the Header Information for a Business Transaction.
    Note:
    1.     It doesn’t store the Business Partner
           responsible for the transaction. To 
           get the Partner No, link it with
           CRM_ORDER_INDEX.
    2.     This table can be used for search
           based on the Object Id(Business
           Transaction No). 
    CRMD_CUSTOMER_H     Additional Site Details at the Header Level of a Business Transaction
    CRMD_LINK     Transaction GUID set for all the Business Transactions
    CRMD_ORDER_INDEX     Contains Header as well as Item details for a Business Transaction.
    Note:
    1.     It doesn’t store the Business 
          Transaction No (Object ID).
          To get the Business Transaction No  
          link the table with
          CRMD_ORDERADM_H
    2.   This table can be used for search
          based on the Partner No
    CRMD_ORDERADM_I     Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
    E.g. Service Contracts
    CRMD_CUSTOMER_I     Additional Site Details at the Item Level of a Service Contract
    Pl.reward points.......

  • How can I listen to itunes and play a game at the same time on my ipad 4?

    How can I listen to itunes and play a game at the same time on my ipad 4? This means I need to run 2 apps at the same time itunes and my game.  The game has its own sound control so I can turn off its sound while i listen to itunes tracks.  But I don't know how to set it up so the ipad does both.

    Anytime you open an app that has a persistant sound stream - a movie, a podcast, some games - it will overide the music app's stream. nothiong you can do to change it.

  • How can you listen to music and play a game at the same time?

    How can you listen to music and play a game at the same time?
    I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
    It seems like this should be possible.
    Message was edited by: RuthlessVengeance
    Message was edited by: RuthlessVengeance

    Select the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
    Mike

  • Z-Report for PR using ES language not getting the Header and Item text deta

    Hi,
    We have developed Z report for PR report and we ahve used ES and EN language, but when i select language ES and execute the report then we are not getting the Header and Item text data,
    Secondly when We select language EN and execute the report then we are getting the Header and Item text details.
    Please guide me.
    Thanks
    Shital

    Have you maintained Tetexxt in ES language or is it that you are expecting  on selecting ES the text from En will get coverted to ES and display in your report?

  • How can i download photoshop elements and premiere elements 10 using the serial number not the cd?

    How can i download photoshop elements and premiere elements 10 using the serial number not the cd?
    I tried downloading the trial elements 11 and entering the serial number but it wouldn't work, i cannot find a trial for elements 10.
    Thanks

    http://prodesigntools.com/photoshop-elements-10-direct-download-links-pse-premiere-pre.htm l
    Follow the instructions on that page carefully before you click the download link.

  • I have and Ipod touch, and new computer. How can i add all purchased and non purchased songs? The old computer with the original library is dead. HELP

    I have an  ipod touch 3rd  generation and a new computer. How can i add all purchased and non purchased songs into the new computers itune library? The old computer is dead! Will not even turn on. Help!!!!!!!! I'm going crazy.

    Look into downloading some type of iRip software! Allows you to transfer music from iPod to iTunes.

  • Opportunity Header and Item tables

    I am looking at the keys on the Opportunity Header and Item table which are GUIDs.
    I have the following scenario.
    1. My source table contains the Opportunity Header GUID
    2. My target table requires all the fields from the source table and some Opportunity Header and Item attributes
    I can write WHERE clause logic for my Opportunity Header attributes
    For my Opportunity item attributes I was going to introduce a count - this is not possible with Item GUID unless a part of the GUID is incremental for each line by 1 or there is a maintained field otherwise as part of the Opportunity Item which is a number representation for each line.
    Can someone advise
    Thanks

    Hi,
    In the CRMD_ORDERADM_H table you have the Opportunity GUID as well as the Object ID which is the opportunity id.  In the CRMD_ORDERADM_I table, you have the GUID and also the NUMBER_INT which is the item number.  See if you can use the item number.
    Thanks.

  • Header and Item table - Form Design Question

    Hi All,
    I have a header table and Item table. For every record in the header table I have multiple records in the item table. I want to have a adobe form in the following way
    1. A new page starts for every record in the header table and Items in the item table for this header record can span multiple pages with the same header information.
    2. When all the items are displayed for that particular header record, a new page should start for the next header record.
    I created one internal table in the following way
    Header_field1 Header_field2 Item_table(with all the items for this header record)
    Header_field1 Header_field2 Item_table(with all the items for this header record)
    I am not sure how to use a table for this scenario (Should It be a nested table?).
    Please provide me some ideas.
    Thanks,
    Ganesh.

    Hi Balasubramani,
    I made some changes and have the following now. Can you please let me know how I can achieve page break for every BP_NUMBER.
    I have a nested table like the one below.
    Main table u2013 Has header and Items information. Every header record has some header information like BP number, name and all line items for that BP in a nested table .
    IT_HEADER:
    BP_NUMBER     BP_NAME           IT_ITEMS(Items table)
    BP_NUMBER     BP_NAME           IT_ITEMS
    BP_NUMBER     BP_NAME           IT_ITEMS
    To display this information I created the following
    Subform1 u2013 overflow u2013bound to $record.IT_HEADER.DATA[*] u2013 (Repeat sub form for
    |                                             each data item)
    |->Header sub form u2013 Positioned
    |     |
    |     |-> Text Field u2013 bound to BP_NUMBER
    |
    |
    |->Item sub form -
         |     
         |->Item Table u2013 bound to IT_ITEMS
              |
              |->Data u2013 bound to IT_ITEMS.DATA[*] u2013(Repeat row for each data item)
    In the output BP number in the first record of IT_HEADER gets displayed and then all the Item records in IT_ITEMS for that BP get displayed. This is repeated all the records in IT_HEADER which is perfectly fine.
    Please provide me some suggestions to solve the following issues I am having
    1.     I need a page break between records of IT_HEADER. I want the new subform1 for the next header record to start in a new page. I tried conditional break option, on the only field BP number in header sub form. I have two master pages and two body pages. All the above information is in master page 2 and body page 2.  I am also not sure what to select in the TO section of the conditional break screen.
    2.     When there is an overflow in IT_ITEMS I need the Header sub form to be shown in the next page too.
    Thanks,
    Ganesh.

  • How can i disable some text and item in the reports from printing

    i have a requirment to prepare a report for cheque printing on a formatted cheque paper..so i want the data should be printed in the paper not the whole thing..how can i do this...
    it is like this
    Name:- <coming from database>
    Address :-
    Rs :-
    in printing i need only the data not Name,Address and Rs headings..
    plz help me out??

    Hi,
    The usual method to influence whether an item should be printed or not is to adjust the function which lies underneath the item (simply return FALSE when you don't need it. You can also adjust the input and then return TRUE). I hope this will help you to solve your problem.
    Regards,
    Vincent ([email protected])

  • How can I get mouse pressed and mouse released positions on the desktop whi

    Hello All,
    I am generating a Frame using Swing API. My requirement is I need to capture the mouse pressed and mouse released positions, whenever user drags the mouse on desktop region (i.e. outside of the Frame). I require these points to find the rectangle region user has generated starting from mouse pressed to mouse released position. I need to pass that rectangle to Robot class in order to capture that desktop region.
    Can anybody help me out how can I achieve this using java on MAC, Linux and Windows platforms?
    Thanks in advance.
    Regards,
    VPKVL

    VPKVL wrote:
    DarrylBurke wrote:
    Can't be done in Java.I don't think that there is something which can't be done using java. When searched over net, found few applications which are using java for implementing this feature but not free, asking for license fee. I checked by downloading the demo version.
    Just want to know the hint how it can be achieved so that I can move further on that lines.
    Your thoughts ?They use JNI with the OS API.

  • I deleted my phone from the list after trying to back it up how can I get it back and back up my phone , the only one showing on the phone is my ipad which is synced to it

    I wanted to back up my phone as have bought a new 6 so went to settings I cloud then back up but it wouldn't turn on . I went in to view the backups and it wasn't done since September last year , then I clicked on my phone detail and made a mistake of pressing delete back up . the phone now isn't listed just my ipad which is linked to the phone . So how can I back this phone up please and perhaps restore the phone detail in backups

    Your title asks "How do I get my iPhone information back on my (iPhone)?
    You also said "I have yet to back it up."  Therefore, all your information that had been on your iPhone is now gone.
    Your iPhone has (and will continue to) been refreshed from iTunes.

  • How can I apply row numbers and column litteral to identify the cells?, How can I apply row numbers and column litteral to identify the cells?

    I news identici row and column in numbers over and left as in Excel. How can I do?

    Hi Roanto,
    Welcome to Apple Support Communities.
    We're all feeling out way around in this newly designed environment, but I think I've discovered that the iWork applications for iPad are still in a community separate from those for the Mac versions of the iWork appplications.
    Seeing as you question is about Numbers for iPad, you might find it better served in the https://discussions.apple.com/community/ipad/iwork_for_ipad>Numbers for iPad Community area. The link will take you to the front page of that community.
    Regards,
    Barry
    PS: You might also consider rewriting your question. I'm having some difficulty deternmining exactly what you want to accomplish.
    B

Maybe you are looking for