How will you go back to the previos list in interactive list

how will you go back to the previos list in interactive list

Hello Surya,
Check the below program :
REPORT  ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
HEADING.
*TABLES DECLARATION
TABLES : KNA1, VBAK, VBAP.
*SELECT OPTIONS
SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
*INITIALIZATION
INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
*SELECTION SCREEN VALIDATION
AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
        IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
          MESSAGE E001(ZTJ1).
         ENDIF.
    ENDLOOP.
*BASIC LIST SELECTION
START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
           (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
           FROM KNA1
           WHERE KUNNR IN CUST_NO.
          WRITE:/1 SY-VLINE,
                KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
                16 SY-VLINE,
                KNA1-NAME1 UNDER 'NAME',
                61 SY-VLINE,
                KNA1-ORT01 UNDER 'CITY',
                86 SY-VLINE,
                KNA1-LAND1 UNDER 'COUNTRY',
                103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
*SECONDARY LIST ACCESS
AT LINE-SELECTION.
    IF SY-LSIND = 1.
        PERFORM SALES_ORD.
    ENDIF.
    IF SY-LSIND = 2.
        PERFORM ITEM_DET.
    ENDIF.
*TOP OF PAGE
TOP-OF-PAGE.
        FORMAT COLOR 1.
        WRITE : 'CUSTOMER DETAILS'.
        FORMAT COLOR 1 OFF.
        ULINE.
        FORMAT COLOR 3.
        WRITE : 1 SY-VLINE,
                3 'CUSTOMER NO.',
                16 SY-VLINE,
                18 'NAME',
                61 SY-VLINE,
                63 'CITY',
                86 SY-VLINE,
                88 'COUNTRY',
                103 SY-VLINE.
                ULINE.
      FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR SECONDARY LISTS
TOP-OF-PAGE DURING LINE-SELECTION.
*TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-LSIND = 1.
                 ULINE.
  FORMAT COLOR 1.
  WRITE : 'SALES ORDER DETAILS'.
                 ULINE.
  FORMAT COLOR 1 OFF.
  FORMAT COLOR 3.
        WRITE : 1 SY-VLINE,
                3 'CUSTOMER NO.',
                16 SY-VLINE,
                18 'SALES ORDER NO.',
                40 SY-VLINE,
                42 'DATE',
                60 SY-VLINE,
                62 'CREATOR',
                85 SY-VLINE,
                87 'DOC DATE',
                103 SY-VLINE.
                ULINE.
      ENDIF.
      FORMAT COLOR 3 OFF.
*TOP OF PAGE FOR 2ND SECONDARY LIST
IF SY-LSIND = 2.
                 ULINE.
      FORMAT COLOR 1.
      WRITE : 'ITEM DETAILS'.
      ULINE.
      FORMAT COLOR 1 OFF.
FORMAT COLOR 3.
        WRITE : 1 SY-VLINE,
                3  'SALES ORDER NO.',
                40 SY-VLINE,
                42 'SALES ITEM NO.',
                60 SY-VLINE,
                62 'ORDER QUANTITY',
                103 SY-VLINE.
                ULINE.
    ENDIF.
FORMAT COLOR 3 OFF.
*END OF PAGE
END-OF-PAGE.
     ULINE.
WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
SY-PAGNO.
      SKIP.
*&      Form  SALES_ORD
*&      FIRST SECONDARY LIST FORM
FORM SALES_ORD .
SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
       (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
       FROM VBAK
       WHERE KUNNR = KNA1-KUNNR.
       WRITE:/1 SY-VLINE,
               VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
               16 SY-VLINE,
               VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
               40 SY-VLINE,
               VBAK-ERDAT UNDER 'DATE',
               60 SY-VLINE,
               VBAK-ERNAM UNDER 'CREATOR',
               85 SY-VLINE,
               VBAK-AUDAT UNDER 'DOC DATE',
               103 SY-VLINE.
      HIDE : VBAK-VBELN.
ENDSELECT.
ULINE.
ENDFORM.                    " SALES_ORD
*&      Form  ITEM_DET
*&      SECOND SECONDARY LIST FORM
FORM ITEM_DET .
  SELECT VBELN POSNR KWMENG INTO
         (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
         FROM VBAP
         WHERE VBELN = VBAK-VBELN.
         WRITE : /1 SY-VLINE,
                   VBAP-VBELN UNDER 'SALES ORDER NO.',
                   40 SY-VLINE,
                   VBAP-POSNR UNDER 'SALES ITEM NO.',
                   60 SY-VLINE,
                   VBAP-KWMENG UNDER 'ORDER QUANTITY',
                   103 SY-VLINE.
        ENDSELECT.
        ULINE.
        ENDFORM.                    " ITEM_DET
Just keep press one back button then you will able to go back to previous list.
if you want to go to specific list then you need to use sy-lsind system variable,see the above logic
Thanks
Seshu

Similar Messages

  • For. iBooks, at the end of the book how do you get back to the library ?

    At the end of a book in IBook how do you get back to the library ? I am stuck on the last page of the book.

    tap on the middle of the book, in the upper left hand corner you will see a Library button. select that to return to your library.

  • How can you get back to the registration screen to change information once registration is complete

    how can you get back to the registration screen to change information once registration is complete?

    You don't have to. Just go to Apple's Express Lane and add products.

  • How do you get back to the main screen?

    How do you get back to the main screen? My little movie screen is not in the top right corner as it usually is... ever since it unexpectedly shut down. I can not edit it anymore and the screen is in the middle and the clips and sound are separated underneath. PLEASE HELP THIS PROJECT IS DUE TOMORROW AND I WAS ALMOST DONE

    my limited experience tells me that different magazines work differently.
    try double clicking the home button and then swiping the magazine image up off the top of the screen

  • HT5467 how do you change back to the south african store from the american store on your settings??

    how do you change back to the south african store from the american store on your settings??

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • HT3458 How do you go back to the beginning of playlist

    How do you go back to the beginning of playlist on ipod shuffle

    The device only displays the last portion of a large text message. I'm not aware of any other method to access the beginning of the conversation except to scroll and keep loading the older part of the message. I would imagine to help with RAM management, the device does not load entire conversations.
    You can provide feedback to Apple HERE, if you would like to see a change in the way the device displays messages.

  • After entering a Search topic, then receiving, 10 or more suggestions, reviewing one of them, HOW DO YOU GET BACK TO THE OTHER NINE ??? WITHOUT COMPLETELY SHUTTING FIREFOX DOWN???

    OK, So I'm NEW to Firefox, however I'm a Computer user for more then 26+ years, so although not a GEEK, I'm fairly knowledgeable how to use most venues.
    I open Firefox to search for a specific environment, after receiving the selections I click on one to review it. I try to go back to the original page of selections, but the ARROWED BACK BUTTON does not go back, Then I click the right mouse to go back that way, and it is either grayed out or does not function as intended. I try to close the original page, but No option is available other then to QUIT, which is not what I want.

    See also:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    The "Use custom settings for history" setting allows to see the current history and cookie settings, but selecting that setting doesn't make any changes to history and cookie settings.<br />
    Firefox shows the "Use custom settings for history" setting as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.<br />
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".<br />

  • How do you go back to the list view on the new iTunes?

    I just want my music in a list with the artist and genre like it was before, is there a way to do that?

    How did you solve this!?!?!

  • How do you go back to the finalized copy of a movie on iMovie?

    Basicly I made a short movie on iMovie. I had finalized it and uploaded it to YouTube. I then tryed to make some ajustments which had failed and subsequently made the first slide of writing go and it now wont play past the first short film, unless I drag it past. Is there any way in which I can return to the finalized copy of my film as I have run out of undos. Non of my other videos have been affected. PLEASE could someone help me as this film is about something very close to my heart and it took me a very long time.

    The device only displays the last portion of a large text message. I'm not aware of any other method to access the beginning of the conversation except to scroll and keep loading the older part of the message. I would imagine to help with RAM management, the device does not load entire conversations.
    You can provide feedback to Apple HERE, if you would like to see a change in the way the device displays messages.

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How long can you revert back to the original photo after cropping?

    Is there any time limit for how long can you revert back to the original photo after cropping? Are you always able to revert back?
    Thanks.

    DAM = "Digital Asset Manager", a fancy name for a filing system.
    iPhoto keeps the original and makes one (usually much smaller) copy based on your edits. It is non-destructive in that if you crop, and later change the color, iPhoto will go back to the original and apply the corrections to get the new image, it will not simply modify the preview.
    If you want a high quality copy of the image, use the export function which allows you to specify the size and compression.

  • How do you go back to using iMessanger after having to send the message via SMS as i am in a conversation and had to send via sms and now i cant change back

    How do you change back to iMessage during a conversation? i have reset network settings and turned iMessage on and off several times however it is not working

    stotty87 wrote:
     How do you change back to iMessage during a conversation? i have reset network settings and turned iMessage on and off several times however it is not working
    What I'm reading here is that you have attempted to re-activate your iMessaging server several times. For the iMessaging to be enabled it will need to activate betwee your device and the apple server. It CAN take up to 24 hours for the imessaging activation to activate.
    You didn't say in your post if the imessaging actually showed as being activated or if it is reading that it is in the process of activating. That would explain why you at one time were able to use iMessaging and now are not long able to use it. IF your imessaging is showing as being activated and still you are not able to iMessaging a contact that at a point in time you were able to message, I would be leaning hard on the server as being the culprit. (understanding that you said you already tried resetting Network settings).
    Good luck.

  • Firefox 25.0 disabled kaspersky virtual keyboard and safe money ect how do i change back to the previous version as fire fox tells you to late in the update

    firefox 25.0 disabled kaspersky virtual keyboard and safe money ect how do i change back to the previous version as fire fox tells you to late in the update to back track

    Hello Bretus,
    Thank you for contacting Mozilla Support and I'm sorry this update isn't compatible with the extensions you're using.
    The Kaspersky support forums mention that those extensions will be updated soon, so that they are compatible with FF25. In the meantime, we do not recommend that you downgrade your version of Firefox, but you can find instructions and download locations for previous versions here:
    [[Install an older version of Firefox|Install an older version of Firefox]]
    Please let us know if this solves your issue.
    Cheers, Patrick

  • How will you turn off an IPhone 4S voice over with the latest IOS

    How will you turn off Voice Over in Iphone 4S? i tried turning it off through settings/accessability/voice over but when i turned it off it always go back to ON. It is very depressing to go over with this feature. Thanks.

    on your phone go to settings - icloud - find my iphone - off

  • How can you enable back the Android native Menu button in AIR 2.7?

    I've noticed in AIR 2.7 for Android, that now the bottom icons in Android 3.0 Honeycomb are hidden (replaced by small dots) in AIR 2.7, whereas in AIR 2.6 they were always visible. That's cool. Since the bottom bar can never be hidden in Android 3, at least now those icons are less visible (unless you intentionally touch the bottom bar, then the icons show up for a few seconds).
    BUT I also noticed in AIR 2.7 compiled apps, the native "Menu" icon is not visible anymore, even after touching the bottom bar. In AIR 2.6 you could see and press that button (which can be captured from AIR so you can show a custom settings menu or whatever).
    So, quoting the subject --> How can you enable back the Android native Menu button in AIR 2.7?

    There is a work around and a reason for the menu issue.  Honeycomb doesn't natively support a menu softkey, it is only to support old apps comiled in phone API levels.  If you compile a Honeycomb app in 2.7 or 3.0, it is expected you manage the settings within the larger tablet UI framework.  See below link for more info and work around. 
    http://forums.adobe.com/message/3964792#3964792

Maybe you are looking for