Sender JDBC reading all entries in blocks

Hi guys,
Is it possible to set the Sender JDBC adapter (Oracle DB) to read all the table entries in blocks of i.e 10k and 10k until the end? More or less like Sender file adapter does.
Thanks in advance,
Ricardo.

Hi,
you could use the Sender JDBC adapter, but the datbase tables are based on no of rows. So with JDBC sender adapter you could restrict the no of lines to be read at a time.
You could achive this with the index in select query or may be you could call stored procedure to apply more cmplex logics.
Refer
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
Thanks
Swarup

Similar Messages

  • Need to read all entris  for field prtxt from table /sapsll/prt

    hi
    i need to read all entries from table /sapsll/prt field prtxt but only one is coming
    pls see below seelct statement
    if not gt_sagmeld[] is initial.
                SELECT /sapsll/cuit~guid_cuit         " PK
                       /sapsll/cuit~QUANT_FLT         " to be displayed
                       /sapsll/cuit~QUAUM             " to be displayed
                       /sapsll/cuit~RPTDT             " to be displayed
                       /sapsll/cuit~guid_cuhd
                       /sapsll/cuit~guid_pr           " needed for gt_prt inttab
                      /sapsll/corref~refno
                       /sapsll/corref~guid_pobj
                INTO corresponding fields of table gt_sapsllcuit
                FROM ( ( /sapsll/cuit
                inner join /sapsll/cuhd on /sapsll/cuit~guid_cuhd = /sapsll/cuhd~guid_cuhd )
                inner join /sapsll/corref on /sapsll/corref~guid_pobj = /sapsll/cuhd~guid_cuhd )
                FOR all entries in gt_sagmeld
                WHERE /sapsll/cuit~guid_cuit = gt_sagmeld-guid_pobj.
             endif.
            if not gt_sapsllcuit[] is initial.
             select /sapsll/prt~prtxt
                    /sapsll/prt~guid_pr       
             into corresponding fields of table gt_prt
             from /sapsll/prt
             for all entries in gt_sapsllcuit
             where /sapsll/prt~guid_pr = gt_sapsllcuit-guid_pr.
    loop at gt_sagmeld into wa_sagmeld.
    read table gt_sapsllcuit into wa_sapsllcuit
    with key guid_cuit = wa_sagmeld-guid_pobj
    binary search.
    Read table gt_prcon into wa_prcon with key
    guid_pr = wa_sapsllcuit-guid_pr.
    if sy-subrc = 0.
    *wa_sagmeld_outtab-guid_pr  = wa_prt-guid_pr. 
    here i am facing problem as multiple entries from table  /sapsll/prt is not being displayed only one.....but i have checked in table it is having two enteries
    pls suggest
    reagards
    Nishant

    Hi Nishant!
    When you use 'for all entries' SAP (or database?) does a 'delete adjacent duplicates' on the result. This is necessary because of the special selection technique in this case.
    You need to select enough columns from /sapsll/prt, so that your two entries will differ in the result.
    Regards,
    Christian

  • Reading all search result entries before sending a client

    I tired reading the entries in the pre and post search ops -
    SLAPI_PLUGIN_POST_SEARCH_FN
    SLAPI_PLUGIN_PRE_SEARCH_FN
    I got NENTRIES=0 (even though numerous were being returned).
    With the
    SLAPI_PLUGIN_PRE_ENTRY_FN
    the plugin is called each time an entry needs to be sent to the client
    1) Is there a way in which i can view all entries being sent, instead of those one at a time?
    2) Besides the pre_entry function where else can SLAPI_SEARCH_RESULT_ENTRY be used to give an entry?
    3) it is said to be used for "iterating thru candidates"..what does this mean?
    4) when and what can
    SLAPI_SEARCH_RESULT_SET be used for?
    Any ideas?
    Thanks

    To get the old search bar back:
    1. Navigate to about:config (accept prompts/warnings)
    2. Search for "browser.search.showOneOffButtons"
    3. Change the property to false.
    4. Restart Firefox.

  • How does JDBC sender adapter reads data from DB

    Hi ALL,
               I have scenario where the JDBC adapter has to read the data once every month. now how would JDBC adapter know that it has to select data which has been updated after last months select only and not the old data?
    XIer

    Hey
    in the sender JDBC adapter you give the select statement as well as update statement.
    what you do is that once you select the data from data base you use an update query to set a flag to false,so that you dont select that data again next time.
    have a look at this blog
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    in this he has used both select and update query on the sender side
    Thanx
    Aamir suhail
    Message was edited by:
            Aamir Suhail

  • After my upgrade to iOS6, my iPhone4 lost all entries in the Reading List and Bookmarks.  I cannot add new entries.  Any thoughts on how to fix this?

    I'm not 100% positive that this is related to the iOS6 upgrade, but the timing is certainly suspicios.  Previously, I had 7 entries in Safari's readling list and many entries in the Bookmarks.  Now, I have nothing except the large pair of sunglasses and help text that tells me how to add a link to the reading list.
    When I am looking at a webpage and click on the Forward button, I'm giving all sorts of choices now in full color...  facebook... Message... Twitter... Mail... Add to homescreen.  The following buttons are all grey: Print, Copy, Bookmark, and Add to Reading List.
    I'm guessing that the icon color is a red herring.  Print and Copy, despite being grey, appear to work fine.  Bookmark and Add to Reading List have problems. 
    Adding to the Reading List makes the forwarding screen go away, as though the link was added.  When I click on the Bookmark icon and look at my reading list, it remains empty, displaying the large sunglasses and help text, as though the list has never had an entry added to it.
    Adding a Bookmark prompts me to enter the name and location.  Interestingly, the list of locations is empty.  I have a single folder with no name and a check mark next to it.  I cannot do anything else (make a new folder, for example).  Once added, when I click on the Bookmark icon to look at my bookmarks, that list remains empty of individual bookmarks.  All I have are: Reading List (still empty), History (full of expected entries), Bing (which takesme to some Bing thing).
    Any help in restoring my bookmarks and Reading List entries would be appreciated.  Thanks!

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

  • Performance on Select Single&Write  AND Select*(For All Entries)&Read&Write

    Hi Experts,
    I got a code review problem & we are in a argument.
    I need the best performance code out of this two codes. I have tested this both on 5 & 1000 & 3000 & 100,000 & 180,000 records.
    But still, I just need a second opinion of experts.
    TYPES : BEGIN OF ty_account,
            saknr   TYPE   skat-saknr,
            END OF ty_account.
    DATA : g_txt50      TYPE skat-txt50.
    DATA : g_it_skat    TYPE TABLE OF skat,       g_wa_skat    LIKE LINE OF g_it_skat.
    DATA : g_it_account TYPE TABLE OF ty_account, g_wa_account LIKE LINE OF g_it_account.
    Code 1.
    SELECT saknr INTO TABLE g_it_account FROM skat.
    LOOP AT g_it_account INTO g_wa_account.
      SELECT SINGLE txt50 INTO g_txt50 FROM skat
        WHERE spras = 'E'
          AND ktopl = 'XXXX'
          AND saknr = g_wa_account-saknr.
      WRITE :/ g_wa_account-saknr, g_txt50.
      CLEAR : g_wa_account, g_txt50.
    ENDLOOP.
    Code 2.
    SELECT saknr INTO TABLE g_it_account FROM skat.
    SELECT * INTO TABLE g_it_skat FROM skat
      FOR ALL ENTRIES IN g_it_account
          WHERE spras = 'E'
            AND ktopl = 'XXXX'
            AND saknr = g_it_account-saknr.
    LOOP AT g_it_account INTO g_wa_account.
      READ TABLE g_it_skat INTO g_wa_skat WITH KEY saknr = g_wa_account-saknr.
      WRITE :/ g_wa_account-saknr, g_wa_skat-txt50.
      CLEAR : g_wa_account, g_wa_skat.
    ENDLOOP.
    Thanks & Regards,
    Dileep .C

    Hi Dilip.
    from you both the code I have found that you are selecting 2 diffrent fields.
    In Code 1.
    you are selecting SAKNR and then for these SAKNR you are selecting TXT50 from the same table.
    and in Code 2 you are selecting all the fields from SAKT table for all the values of SAKNR.
    I don't know whats your requirement.
    Better you declare a select option on screen and then fetch required fields from SAKT table for the values entered on screen for SAKNR.
    you only need TXT50 and SAKNR fields.
    so declare two types one for SAKNR and another for TXT50.
    Points to be remember.
    1. while using for all entries always check the for all entries table should not be blank.
    2. you will have to fetch all the key fields in table while applying for all entries,
        you can compare key fields with a constant which is greater than initial value.
    3. while reading the table sort the table by the field on which you are going to read it.
    try this:
    TYPES : BEGIN OF ty_account,
    saknr TYPE skat-saknr,
    END OF ty_account.
    TYPES : begin of T_txt50,
          saknr type saknr,
          txt50 type txt50,
    end of t_txt50.
    DATA: i_account type table of t_account,
          w_account type t_account,
          i_txt50 type table t_txt50,
          w_txt50 type t_txt50.
    select SAKNR from SKAT into table i_account.
    if sy-subrc = 0.
    sort i_account by saknr.
    select saknr txt50 from SKAT into table i_txt50
    for all entries in i_account
    where SAKNR = i_account-SAKNR
    here mention al the primary keys and compare them with their constants.
    endif.     
    Note; here you need to take care that, you will have to fetch all the key fields in table i_txt50.
    and compare those fields with there constants which should be greater than initial values.
    they should be in proper sequence.
    now for writing.
    loop at i_account into w_account.
    clear w_txt50.
    sort i_txt50 by saknr.
    read table i_txt50 into w_txt50 with key SAKNR = w_account-saknr
    if sy-subrc = 0.
    write: w_txt50-saknr, w-txt50-txt50.
    clear w_txt50, w_account.
    endif.
    endloop.
    Hope it wil clear your doubts.
    Thanks
    Lalit

  • I have read all the questions regarding the "Can't send photo using iMessage".

    I have read all the questions regarding the "Can't send photo using iMessage". I followed everything and check everything that was in it. It's still the same. I am still not able to send a photo. It started happening last week. It was fine before that. There is no error message.
    It will try to send but it will get stuck just before it sends
    and the red ! will appear with the "Not Delivered" status.
    When i tap on the !, it just says "This iMessage was not delived".
    No other message or photo is sending as the same time as the photo.
    I did reset it, I checked the email address, removed it as well. Turned it off then back on. Signed out and signed back in. Wi-Fi strength is very good. iOS is 6.0.1. I checked for updates, it is up-to-date I also checked a link http://support.apple.com/kb/TS2755. It did not help at all.
    What's wrong?!?!?!?!

    It is not a matter of reconsidering the decision. There are unsolveable technical problems with trying to run a program such as Firefox on Blackberry OS. We would need Blackberry to distribute a tool similar to Android's NDK to run on Blackberries.

  • I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this?

    Hi
    I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this? But i still want to send messages to him.
    Thank You

    . You do not need a seperate Apple ID. One one device you just need to go to Settings>Messages and add another/different Messaging email address and delete the common Apple ID address. Also see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • For all entries in read statement

    hi
    is there any command equivalent to for all entries in read statement

    Hi,
    You have to use Loop at...and move the values from the it_vbrp to the final internal table..
    Example
    LOOP AT IT_OUTPUT.
      MOVE-CORRESPONDING IT_OUTPUT TO IT_FINAL.
      LOOP AT IT_VBRP WHERE AUBEL = IT_OUTPUT-VBELN
                                    AND     AUPOS = IT_OUTPUT-POSNR.
          MOVE-CORRESPONDING IT_VBRP TO IT_FINAL.
          APPEND IT_FINAL.
      ENDLOOP.
      IF SY-SUBRC <> 0.
        APPEND IT_FINAL.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • How to: Sender File Adapter to dinamically read all subfolders of a folder

    Here is the scenario:
    -Interface:  A file to file interface.
    -Objective: The idea is to move files from a file server to another file server.
    -Master Source Folder: ...\OUTPUT\
    -Master Destination Folder: .....\INPUT\
    Interface example
    -Source Folder: ...\OUTPUT\INTERFACE1
    -Destination Folder: .....\INPUT\INTERFACE1
    The idea is that the PI interface must read all the subfolders inside ..\OUTPUT\ and then move the files found to the corresponding folder in the target.
    What we want to achive is to be able to add a new source folder i.e ...\OUTPUT\INTERFACE2 without having to modify the sender File adapter.
    Actual status: Dynamic determination of the destination folder is already done, but source folders are statically defined in the sender file adapter.
    Can this be done? Perhaps using a Bean Module or something?
    Regards.
    Mariano Billinghurst.

    This is great! In the off chance anyone else is trying to do this, this is also useful if you have Papers and you want to switch to Mendeley. Papers keeps PDFs all organized by year and then author so the PDFs are all nested in subfolders. If you option-click the triangle next to the Papers folder, it will then show all the PDFs. Select All and then drag over the whole thing into Mendeley. I just imported my entire collection in under a minute. Glad I looked this up!

  • All entries and read statement not working

    Hi Experts,
    I am doing a report on material history,
    First I get the entire matnr from mara then I go to eket  and mard to take some details  and then to ekpo to take open Po's (ebeln) for the particular matnr .....
    I am displaying my o/p like : for a single matnr there will be many ebeln.
    But I am facing problem in displaying eban~banfn for the particular matnr ...can any one
    please advice me how to display it such that other details which I have already displayed should not get affected.
    I tried ALL ENTRIES FROM EBAN connecting only MATNR and WERKS then  used READ its just reading the first record.
    Please advice if there is any other logic.
    Thanks
    Karthik

    Here,
    SELECT MARA~MATNR MARA~MTART MARD~WERKS MARD~LABST MARD~INSME MARD~SPEME    FROM MARA INNER JOIN MARD ON MARA~MATNR EQ MARD~MATNR
      INTO CORRESPONDING FIELDS OF TABLE IT_MARA
    WHERE MARA~MATNR IN MATNR  
    AND MARD~WERKS IN   WERKS                                                                               
      LOOP AT IT_MARA.
        MOVE IT_MARA-MATNR TO IT_TAB-MATNR.
        MOVE IT_MARA-WERKS TO IT_TAB-WERKS.
        MOVE IT_MARA-LABST TO IT_TAB-LABST.
        MOVE IT_MARA-INSME TO IT_TAB-INSME.
        MOVE IT_MARA-SPEME TO IT_TAB-SPEME.
        COLLECT IT_TAB.
      ENDLOOP.
    IF NOT IT_TAB IS INITIAL.
        SELECT * FROM EKPO INTO CORRESPONDING FIELDS OF TABLE IT_EKPO
           FOR ALL ENTRIES IN IT_TAB WHERE MATNR EQ IT_TAB-MATNR
           AND WERKS EQ IT_TAB-WERKS AND PSTYP EQ '0' AND BSTYP EQ 'F'
           AND ELIKZ EQ ' '.
      ENDIF.
    LOOP AT IT_TAB.
        MOVE-CORRESPONDING IT_TAB TO IT_FIRST.
        LOOP AT IT_EKPO WHERE MATNR EQ IT_TAB-MATNR
                          AND WERKS EQ IT_TAB-WERKS.
          MOVE IT_EKPO-EBELN TO IT_FIRST-EBELN.
          MOVE IT_EKPO-EBELP TO IT_FIRST-EBELP.
          APPEND IT_FIRST.
          CLEAR IT_FIRST."-LABST.
        ENDLOOP.
      ENDLOOP.
    And now I am facing problem in the below querry
    SELECT * FROM EBAN INTO CORRESPONDING FIELDS OF TABLE IT_EBAN FOR ALL
      ENTRIES IN IT_FIRST WHERE MATNR = IT_FIRST-MATNR
      AND WERKS = IT_FIRST-WERKS AND STATU IN ('N','A').
    LOOP AT IT_FIRST.
        READ TABLE IT_EBAN WITH KEY MATNR = IT_FIRST-MATNR
                                    WERKS = IT_FIRST-WERKS.
        MOVE IT_EBAN-BANFN TO IT_FIRST-BANFN.
        MODIFY IT_FIRST.
    *    CLEAR IT_EBAN.
      ENDLOOP.
    Please advice
    Karthik

  • Read data : for all entries

    wht happens if v read data using FOR ALL ENTRIES in select statement

    Hi Ankur,
    You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
    SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client).
    For Example:
    SELECT *
      FROM SCARR
      INTO TABLE t_scarr.
    LOOP AT t_SCARR INTO wa_scarr.
      SELECT SINGLE *
        FROM sflight
        INTO wa_sflight
       WHERE carrid EQ wa_scarr-carrid.
      APPEND wa_sflight TO t_sflight.
    ENDLOOP.
    Instead of the Above use below code:
    SELECT *
      FROM SCARR
      INTO TABLE t_scarr.
    SELECT *
      FROM SFLIGHT
      INTO TABLE t_sflight
       FOR ALL ENTRIES IN scARR
    WHERE carrid EQ t_scarr.
    this condition, return all entries of the sflight
    Refer the Below Links for more Info:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm
    Regards,
    Sunil

  • Alternate Index not read with FOR ALL ENTRIES

    I have a select statement like:
          SELECT d~dokar
                 d~doknr
                 d~dokvr
                 d~doktl
                 l~lifnr
                 l~stcd1
                 l~stcd2
                  APPENDING CORRESPONDING FIELDS OF TABLE t_dms
                 FROM lfa1 AS l JOIN drad AS d
                      ON llifnr = dobjky
                 FOR ALL ENTRIES IN t_infile
                 WHERE  ( l~stcd2 =  t_infile-taxcode2ssn
                    OR  l~stcd2 =  t_infile-taxcode2fed
                    OR  l~stcd2 =  t_infile-fedtaxid2 )
                   AND  d~dokob =  'LFA1'
                   AND  d~obzae =  '0000'
                   AND  d~doktl IN s_doktl.
    I have defined an alternate index on LFA1 called ZX2 (MANDT, STCD2). T_INFILE is sorted by a field called FEDTAXID. This is a nine character field. TAXCODE2SSN is the same number but it is formatted 999-99-9999. TAXCODE2FED is the same number only formated 99-0000000. FEDTAXID2 is the same as FEDTAXID.
    S_DOKTL is defined as sign = I, Option = BT, Low = 000, High = 000.
    The problem is LFA1ZX2 is not being used. The file is being read sequentially. Any ideas what is causing the alternate index to be ignored?  I wrote another select statement where I removed the FOR ALL ENTRIES and the "ddoktl IN s_doktl" and the alternate index is being used. Any thoughts?
    Thanks,

    It's probably the OR-condition causing the problem. An alternative could be a driver table (t_infile or a new one) that does not have one line with three tax code variations but rather one line for each variation in  one generic column. If this driver table is sorted by tax code and stripped of duplicates, there might be an improvement possible.
    Thomas

  • Sender JDBC Commn channel problem - Channel is not reading any data.

    Hi,
    I am referring to the following blog as i have exactly the same problem:
    [Blog|Sender JDBC Commn channel problem;
    I communication channel monitoring i am getting the following logs -
    6/21/10 7:19:07 PM   Processing started
    6/21/10 7:19:07 PM   Retry interval started. Length: 86400.0 seconds
    Here in the channel the poling interval is 86400 seconds.
    Now according to this blog the solution to my issue is "Check whether anything is locked in "Locking adapter" in VA? If there is then just release the lock and restart the comm channel. Note: In "locking adapter" the name will be something like $XIDBAD.JDBC2XI."
    Mine is a PI7.1 system and i am not able to find any thing like this in NWA.
    Can some one please help me on this?
    Thanks & Regards,
    Anshul

    try;
    Goto NWA -> Availability and Performance Management -> Resource Monitoring -> Locks

  • Use of for all entries in abap

    Please tell me how to use "for all entries" in linking two
    tables for retrieve informations by using corresponding fields in both the tables.plz send the codings.

    REPORT  YVCHIERSEQ                              .
    TYPE-POOLS:SLIS.
    DATA:T_VBAK TYPE STANDARD TABLE OF VBAK INITIAL SIZE 0,
         T_VBAP TYPE STANDARD TABLE OF VBAP INITIAL SIZE 0,
         W_VBAK TYPE VBAK,
         W_VBAP TYPE VBAP,
         G_VBELN TYPE VBAK-VBELN,
         W_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
         T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
         W_KEYINFO TYPE SLIS_KEYINFO_ALV.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS:S_VBELN FOR G_VBELN.
    SELECTION-SCREEN END OF BLOCK B1.
    INITIALIZATION.
    CLEAR:W_VBAK,
          W_VBAP.
    REFRESH:T_VBAK,
            T_VBAP.
    START-OF-SELECTION.
    PERFORM SUB_GET_VBAK.
    PERFORM SUB_GET_VBAP.
    PERFORM SUB_DISP_OUTPUT.
    FORM SUB_GET_VBAK.
    SELECT * FROM VBAK INTO TABLE T_VBAK WHERE VBELN IN S_VBELN.
    ENDFORM.
    FORM SUB_GET_VBAP.
    SELECT * FROM VBAP INTO TABLE T_VBAP FOR ALL ENTRIES IN T_VBAK WHERE
    VBELN = T_VBAK-VBELN.
    ENDFORM.
    FORM SUB_DISP_OUTPUT.
    W_FIELDCAT-COL_POS = 1.
    W_FIELDCAT-FIELDNAME = 'VBELN'.
    W_FIELDCAT-SELTEXT_M = 'SALESORDER'.
    W_FIELDCAT-TABNAME = 'VBAK'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 2.
    W_FIELDCAT-FIELDNAME = 'ERNAM'.
    W_FIELDCAT-SELTEXT_M = 'NAME'.
    W_FIELDCAT-TABNAME = 'VBAK'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 3.
    W_FIELDCAT-FIELDNAME = 'VBTYP'.
    W_FIELDCAT-SELTEXT_M = 'SD CATEGORY'.
    W_FIELDCAT-TABNAME = 'VBAK'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 4.
    W_FIELDCAT-FIELDNAME = 'KUNNR'.
    W_FIELDCAT-SELTEXT_M = 'SOLD TO PARTY'.
    W_FIELDCAT-TABNAME = 'VBAK'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 5.
    W_FIELDCAT-FIELDNAME = 'NETWR'.
    W_FIELDCAT-SELTEXT_M = 'NET VALUE'.
    W_FIELDCAT-TABNAME = 'VBAK'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 1.
    W_FIELDCAT-FIELDNAME = 'POSNR'.
    W_FIELDCAT-SELTEXT_M = 'SALES ITEM'.
    W_FIELDCAT-TABNAME = 'VBAP'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 2.
    W_FIELDCAT-FIELDNAME = 'MATNR'.
    W_FIELDCAT-SELTEXT_M = 'MATERIAL NO'.
    W_FIELDCAT-TABNAME = 'VBAP'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 3.
    W_FIELDCAT-FIELDNAME = 'MATKL'.
    W_FIELDCAT-SELTEXT_M = 'MAT GROUP'.
    W_FIELDCAT-TABNAME = 'VBAP'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_FIELDCAT-COL_POS = 4.
    W_FIELDCAT-FIELDNAME = 'NETWR'.
    W_FIELDCAT-SELTEXT_M = 'NET VALUE'.
    W_FIELDCAT-TABNAME = 'VBAP'.
    APPEND W_FIELDCAT TO T_FIELDCAT.
    CLEAR W_FIELDCAT.
    W_KEYINFO-HEADER01 = 'VBELN'.
    W_KEYINFO-ITEM01   = 'VBELN'.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
      I_INTERFACE_CHECK              = ' '
        I_CALLBACK_PROGRAM             = SY-CPROG
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      IS_LAYOUT                      =
        IT_FIELDCAT                    = T_FIELDCAT
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
        i_tabname_header               =   'VBAK'
        i_tabname_item                 = 'VBAP'
      I_STRUCTURE_NAME_HEADER        =
      I_STRUCTURE_NAME_ITEM          =
        is_keyinfo                     = W_KEYINFO
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      tables
        t_outtab_header                = T_VBAK
        t_outtab_item                  = T_VBAP
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      ENDFORM.

Maybe you are looking for

  • Error in loading WebUtil package

    Dear all, i have the following problem, we have install the application server on one machine Windows server 2003 Enterprise edition (both the infra and middle tier on the same machine), and we wanted to configure the webutil package with this instal

  • Splitting of Customer Invoice item

    Hi I have requirement from my colleague in SD Module. When an Invoice is made against Sales to a particular Customer, the requirement is that the total amount is split as 95% and 5% - the reason being 95% payment is made when goods are delivered and

  • Wi-fi problem in europe

    Will there every be some update for european owners of sony mobile phones ? Sony designed the firmware based on the laws of the USA, which means that it does not support wifi channels 12,13. But these are normally used in Europe so im often unable to

  • Adobe Air for iOS - How to access or read current playing music

    Hi guys, is there a way in AS3 how to detect the current song playing, for example I want to get the title of the music that is currently playing?

  • Advance Sql query

    Hey Friends it's very useful interview links that will give the answer of frequently asked question http://latest-in-it-sectror.blogspot.com check out this link and send it as many as you can for help the other person click others google adds to get