<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with HIDE statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829512#M1471273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been working with an interactive report. while coding for the event AT LINE SELECTION i have used HIDE statement to capture the contents of the row on which click either on basic or secondary list. but the hide statment is not capturing the content of the record which i click. i have debugged the program, when the cursor comes to HIDE statement it is passing into some standard programs and still it is not holding the contents of the record on which i click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the coding, can anyone let me know where the coding went wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: VBAK,                       " Sales Document: Header Data&lt;/P&gt;&lt;P&gt;        VBAP,                       " Sales Document: Item Data&lt;/P&gt;&lt;P&gt;        VBKD,                       " Sales Document: Business Data&lt;/P&gt;&lt;P&gt;        VBEP.                       " Sales Document: Schedule Line Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBAK.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBAK.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBAP.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBAP.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBKD.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBKD.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBKD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBEP.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBEP.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK,&lt;/P&gt;&lt;P&gt;      WA_VBAK TYPE TY_VBAK,&lt;/P&gt;&lt;P&gt;      IT_VBAP TYPE STANDARD TABLE OF TY_VBAP,&lt;/P&gt;&lt;P&gt;      WA_VBAP TYPE TY_VBAP,&lt;/P&gt;&lt;P&gt;      IT_VBKD TYPE STANDARD TABLE OF TY_VBKD,&lt;/P&gt;&lt;P&gt;      WA_VBKD TYPE TY_VBKD,&lt;/P&gt;&lt;P&gt;      IT_VBEP TYPE STANDARD TABLE OF TY_VBEP,&lt;/P&gt;&lt;P&gt;      WA_VBEP TYPE TY_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS: S_VKORG FOR VBAK-VKORG,             " SALES ORGANIZATION&lt;/P&gt;&lt;P&gt;                  S_VTWEG FOR VBAK-VTWEG,             " DISTRIBUTION CHANNEL&lt;/P&gt;&lt;P&gt;                  S_SPART FOR VBAK-SPART,             " DIVISION&lt;/P&gt;&lt;P&gt;                  S_ERDAT FOR VBAK-ERDAT.             " OBJECT CREATED DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS: P_ERNAM TYPE VBAK-ERNAM.                " OBJECT CREATED PERSON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT HEADER DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 1.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT ITEM DETAILS'.&lt;/P&gt;&lt;P&gt;ELSEIF SY-LSIND EQ 2.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT BUSINESS DATA'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT SCHEDULING LINE DATA'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;        FROM VBAK&lt;/P&gt;&lt;P&gt;        INTO TABLE IT_VBAK&lt;/P&gt;&lt;P&gt;        WHERE VKORG IN S_VKORG&lt;/P&gt;&lt;P&gt;        AND   VTWEG IN S_VTWEG&lt;/P&gt;&lt;P&gt;        AND   SPART IN S_SPART&lt;/P&gt;&lt;P&gt;        AND   ERDAT IN S_ERDAT&lt;/P&gt;&lt;P&gt;        AND   ERNAM EQ P_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAK INTO WA_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBAK-VBELN HOTSPOT, WA_VBAK-ERNAM, WA_VBAK-VBTYP, WA_VBAK-AUART,&lt;/P&gt;&lt;P&gt;            WA_VBAK-SUBMI, WA_VBAK-VKORG, WA_VBAK-VTWEG, WA_VBAK-VKGRP,&lt;/P&gt;&lt;P&gt;            WA_VBAK-VKBUR, WA_VBAK-KNUMV, WA_VBAK-KTEXT, WA_VBAK-BSTNK,&lt;/P&gt;&lt;P&gt;            WA_VBAK-BSARK, WA_VBAK-BSTZD, WA_VBAK-KUNNR, WA_VBAK-KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  HIDE: WA_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 1.&lt;/P&gt;&lt;P&gt;    IF NOT IT_VBAK IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBAP&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBAP&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAP INTO WA_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBAP-VBELN HOTSPOT, WA_VBAP-POSNR, WA_VBAP-MATNR, WA_VBAP-MATWA,&lt;/P&gt;&lt;P&gt;            WA_VBAP-PMATN, WA_VBAP-CHARG, WA_VBAP-MATKL, WA_VBAP-ARKTX,&lt;/P&gt;&lt;P&gt;            WA_VBAP-PRODH, WA_VBAP-ZWERT, WA_VBAP-ZMENG, WA_VBAP-MEINS,&lt;/P&gt;&lt;P&gt;            WA_VBAP-ABDAT, WA_VBAP-ABSFZ, WA_VBAP-KDMAT, WA_VBAP-KBVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    HIDE: WA_VBAP-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 2.&lt;/P&gt;&lt;P&gt;  IF NOT IT_VBAP IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBKD&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBKD&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBAP-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBKD INTO WA_VBKD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBKD-VBELN HOTSPOT, WA_VBKD-POSNR, WA_VBKD-KONDA, WA_VBKD-KDGRP,&lt;/P&gt;&lt;P&gt;              WA_VBKD-BZIRK, WA_VBKD-PLTYP, WA_VBKD-INCO2, WA_VBKD-KURRF,&lt;/P&gt;&lt;P&gt;              WA_VBKD-VALDT, WA_VBKD-PRSDT, WA_VBKD-FKDAT, WA_VBKD-STCUR,&lt;/P&gt;&lt;P&gt;              WA_VBKD-FPLNR, WA_VBKD-BSTDK, WA_VBKD-AKWAE, WA_VBKD-AKPRZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    HIDE: WA_VBKD-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 3.&lt;/P&gt;&lt;P&gt;  IF NOT IT_VBKD IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBEP&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBEP&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBKD-VBELN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBEP INTO WA_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBEP-VBELN HOTSPOT, WA_VBEP-POSNR, WA_VBEP-ETENR, WA_VBEP-ETTYP,&lt;/P&gt;&lt;P&gt;              WA_VBEP-EDATU, WA_VBEP-EZEIT, WA_VBEP-WMENG, WA_VBEP-BMENG,&lt;/P&gt;&lt;P&gt;              WA_VBEP-LMENG, WA_VBEP-MEINS, WA_VBEP-BDDAT, WA_VBEP-BDART,&lt;/P&gt;&lt;P&gt;              WA_VBEP-VBELE, WA_VBEP-POSNE, WA_VBEP-ETENE, WA_VBEP-BSART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the output iam getting the basic list and the subsequent secondary lists but in the secondary lists iam having the data of the last record of the basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know why the HIDE statement is not getting triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Apr 2010 11:04:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-22T11:04:59Z</dc:date>
    <item>
      <title>Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829512#M1471273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have been working with an interactive report. while coding for the event AT LINE SELECTION i have used HIDE statement to capture the contents of the row on which click either on basic or secondary list. but the hide statment is not capturing the content of the record which i click. i have debugged the program, when the cursor comes to HIDE statement it is passing into some standard programs and still it is not holding the contents of the record on which i click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the coding, can anyone let me know where the coding went wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: VBAK,                       " Sales Document: Header Data&lt;/P&gt;&lt;P&gt;        VBAP,                       " Sales Document: Item Data&lt;/P&gt;&lt;P&gt;        VBKD,                       " Sales Document: Business Data&lt;/P&gt;&lt;P&gt;        VBEP.                       " Sales Document: Schedule Line Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBAK.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBAK.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBAP.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBAP.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBKD.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBKD.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBKD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES BEGIN OF TY_VBEP.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE VBEP.&lt;/P&gt;&lt;P&gt;TYPES END OF TY_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_VBAK TYPE STANDARD TABLE OF TY_VBAK,&lt;/P&gt;&lt;P&gt;      WA_VBAK TYPE TY_VBAK,&lt;/P&gt;&lt;P&gt;      IT_VBAP TYPE STANDARD TABLE OF TY_VBAP,&lt;/P&gt;&lt;P&gt;      WA_VBAP TYPE TY_VBAP,&lt;/P&gt;&lt;P&gt;      IT_VBKD TYPE STANDARD TABLE OF TY_VBKD,&lt;/P&gt;&lt;P&gt;      WA_VBKD TYPE TY_VBKD,&lt;/P&gt;&lt;P&gt;      IT_VBEP TYPE STANDARD TABLE OF TY_VBEP,&lt;/P&gt;&lt;P&gt;      WA_VBEP TYPE TY_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT-OPTIONS: S_VKORG FOR VBAK-VKORG,             " SALES ORGANIZATION&lt;/P&gt;&lt;P&gt;                  S_VTWEG FOR VBAK-VTWEG,             " DISTRIBUTION CHANNEL&lt;/P&gt;&lt;P&gt;                  S_SPART FOR VBAK-SPART,             " DIVISION&lt;/P&gt;&lt;P&gt;                  S_ERDAT FOR VBAK-ERDAT.             " OBJECT CREATED DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PARAMETERS: P_ERNAM TYPE VBAK-ERNAM.                " OBJECT CREATED PERSON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT HEADER DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 1.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT ITEM DETAILS'.&lt;/P&gt;&lt;P&gt;ELSEIF SY-LSIND EQ 2.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT BUSINESS DATA'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'THIS IS SALES DOCUMENT SCHEDULING LINE DATA'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;        FROM VBAK&lt;/P&gt;&lt;P&gt;        INTO TABLE IT_VBAK&lt;/P&gt;&lt;P&gt;        WHERE VKORG IN S_VKORG&lt;/P&gt;&lt;P&gt;        AND   VTWEG IN S_VTWEG&lt;/P&gt;&lt;P&gt;        AND   SPART IN S_SPART&lt;/P&gt;&lt;P&gt;        AND   ERDAT IN S_ERDAT&lt;/P&gt;&lt;P&gt;        AND   ERNAM EQ P_ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAK INTO WA_VBAK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBAK-VBELN HOTSPOT, WA_VBAK-ERNAM, WA_VBAK-VBTYP, WA_VBAK-AUART,&lt;/P&gt;&lt;P&gt;            WA_VBAK-SUBMI, WA_VBAK-VKORG, WA_VBAK-VTWEG, WA_VBAK-VKGRP,&lt;/P&gt;&lt;P&gt;            WA_VBAK-VKBUR, WA_VBAK-KNUMV, WA_VBAK-KTEXT, WA_VBAK-BSTNK,&lt;/P&gt;&lt;P&gt;            WA_VBAK-BSARK, WA_VBAK-BSTZD, WA_VBAK-KUNNR, WA_VBAK-KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  HIDE: WA_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 1.&lt;/P&gt;&lt;P&gt;    IF NOT IT_VBAK IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBAP&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBAP&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBAP INTO WA_VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBAP-VBELN HOTSPOT, WA_VBAP-POSNR, WA_VBAP-MATNR, WA_VBAP-MATWA,&lt;/P&gt;&lt;P&gt;            WA_VBAP-PMATN, WA_VBAP-CHARG, WA_VBAP-MATKL, WA_VBAP-ARKTX,&lt;/P&gt;&lt;P&gt;            WA_VBAP-PRODH, WA_VBAP-ZWERT, WA_VBAP-ZMENG, WA_VBAP-MEINS,&lt;/P&gt;&lt;P&gt;            WA_VBAP-ABDAT, WA_VBAP-ABSFZ, WA_VBAP-KDMAT, WA_VBAP-KBVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    HIDE: WA_VBAP-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 2.&lt;/P&gt;&lt;P&gt;  IF NOT IT_VBAP IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBKD&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBKD&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBAP-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBKD INTO WA_VBKD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBKD-VBELN HOTSPOT, WA_VBKD-POSNR, WA_VBKD-KONDA, WA_VBKD-KDGRP,&lt;/P&gt;&lt;P&gt;              WA_VBKD-BZIRK, WA_VBKD-PLTYP, WA_VBKD-INCO2, WA_VBKD-KURRF,&lt;/P&gt;&lt;P&gt;              WA_VBKD-VALDT, WA_VBKD-PRSDT, WA_VBKD-FKDAT, WA_VBKD-STCUR,&lt;/P&gt;&lt;P&gt;              WA_VBKD-FPLNR, WA_VBKD-BSTDK, WA_VBKD-AKWAE, WA_VBKD-AKPRZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    HIDE: WA_VBKD-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-LSIND EQ 3.&lt;/P&gt;&lt;P&gt;  IF NOT IT_VBKD IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;            FROM VBEP&lt;/P&gt;&lt;P&gt;            INTO TABLE IT_VBEP&lt;/P&gt;&lt;P&gt;            WHERE VBELN EQ WA_VBKD-VBELN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_VBEP INTO WA_VBEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ WA_VBEP-VBELN HOTSPOT, WA_VBEP-POSNR, WA_VBEP-ETENR, WA_VBEP-ETTYP,&lt;/P&gt;&lt;P&gt;              WA_VBEP-EDATU, WA_VBEP-EZEIT, WA_VBEP-WMENG, WA_VBEP-BMENG,&lt;/P&gt;&lt;P&gt;              WA_VBEP-LMENG, WA_VBEP-MEINS, WA_VBEP-BDDAT, WA_VBEP-BDART,&lt;/P&gt;&lt;P&gt;              WA_VBEP-VBELE, WA_VBEP-POSNE, WA_VBEP-ETENE, WA_VBEP-BSART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the output iam getting the basic list and the subsequent secondary lists but in the secondary lists iam having the data of the last record of the basic list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know why the HIDE statement is not getting triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829512#M1471273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829513#M1471274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively the clicked record it will get stored on system variable SY-LISEL. The whole record it will get sotred in the fileld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your logic purpose you can split or you can use offsetting. Check and let me know for further assitance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829513#M1471274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829514#M1471275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes the content get stored in SY-LISEL, but i want to know what went wrong with HIDE statement and how i can better use of HIDE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829514#M1471275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829515#M1471276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be helpful to you if you can format your code in a readable format using code tags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829515#M1471276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829516#M1471277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam trying to format the code in a readable way by using the code tags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after also the code appears as continuous text as it is appearing in my initial post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829516#M1471277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829517#M1471278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try by this, in Report statement increase your line-size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report &amp;lt;name&amp;gt; Line-size 1000.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this resolves You Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829517#M1471278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T11:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829518#M1471279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer program DEMO_LIST_HIDE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here secondary list is created in event AT USER-COMMAND not in AT LINE-SELECTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 11:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829518#M1471279</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2010-04-22T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829519#M1471280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line-size addition solved the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now iam able to get the details of the record which i clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i know how this addition made the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BJR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 12:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829519#M1471280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with HIDE statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829520#M1471281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hide statement stores according to sy-linno.&lt;/P&gt;&lt;P&gt;The Problem is with the empty fields in your Work area. When they are empty it goes for next line and 'write:/' statement will not trigger next line . so, the next work area prints on the same sy-lino which is already reserved for previous one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read Documentation in that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

HIDE &amp;lt;f&amp;gt;.

This statement places the contents of the variable &amp;lt;f&amp;gt; 
for the current output line (system field SY-LINNO) into the HIDE area.
 The variable &amp;lt;f&amp;gt; must not necessarily appear on the current line.

To make your program more readable, 
always place the HIDE statement directly after the output statement 
for the variable &amp;lt;f&amp;gt; or after the last output statement for the current line.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this piece of code for your understanding,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:
  w_hide LIKE sy-index.
  DO 20 TIMES.
   w_hide = sy-index.
    WRITE w_hide.
    NEW-LINE.
    HIDE w_hide.
  ENDDO.

AT LINE-SELECTION.
  IF sy-lsind = 1.
    WRITE w_hide.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 13:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-statement/m-p/6829520#M1471281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T13:35:35Z</dc:date>
    </item>
  </channel>
</rss>

