Aims to allow user to input a PO (or a range of PO) and in turn present a tree structure output screen to user. By clicking on each level of the tree, the lower level data can be seen.

START-OF-SELECTION.
  PERFORM get_ekes.
  PERFORM get_vepo.
  PERFORM get_vekp.
  PERFORM build_tree.
END-OF-SELECTION.
  PERFORM display_tree.
*&      Form  get_vepo
*       text
FORM get_vepo.
  SELECT venum
         vbeln
    FROM vepo INTO TABLE i_vepo
    FOR ALL ENTRIES IN i_ekes
    WHERE vbeln EQ i_ekes-vbeln.
ENDFORM.                    "get_vepo
*&      Form  get_vekp
*       text
FORM get_vekp.
  SELECT venum
         exidv2
    FROM vekp INTO TABLE i_vekp
    FOR ALL ENTRIES IN i_vepo
    WHERE venum EQ i_vepo-venum.
ENDFORM.                    "get_vekp
*&      Form  get_ekes
*       text
FORM get_ekes.
  SELECT ebeln
         vbeln
         vbelp
         xblnr
    FROM ekes INTO TABLE i_ekes
    WHERE ebeln IN s_ebeln.
ENDFORM.                    "get_ekes
*&      Form
*       text
*&      Form  build_tree
*       text
FORM build_tree.
  CLEAR : i_node, f_node.
  f_node-type = 'T'.
  f_node-name = 'Purchase Order'(002).
  f_node-tlevel = '01'.
  f_node-nlength = '25'.
  f_node-color = '5'.
  f_node-text1 = 'Purchase Document'.
  f_node-tlength1 = '20'.
  f_node-tcolor1 = '5'.
  f_node-text2 = 'Item Number'.
  f_node-tlength2 = '20'.
  f_node-tcolor2 = '5'.
  f_node-text3 = 'External Document'.
  f_node-tlength3 = '25'.
  f_node-tcolor3 = '5'.
  APPEND f_node TO i_node.
  CLEAR f_node.
  LOOP AT i_ekes INTO f_ekes.
    f_node-type = 'P'.
    f_node-tlevel = '02'.
    f_node-text1 = f_ekes-ebeln.
    f_node-tlength1 = '20'.
    f_node-tcolor1 = '3'.
    f_node-text2 = f_ekes-vbeln.
    f_node-tlength2 = '20'.
    f_node-tcolor2 = '3'.
    f_node-text3 = f_ekes-vbelp.
    f_node-tlength3 = '20'.
    f_node-tcolor3 = '3'.
    f_node-text4 = f_ekes-xblnr.
    f_node-tlength4 = '20'.
    f_node-tcolor4 = '3'.
    APPEND f_node TO i_node.
    CLEAR f_node.
    LOOP AT i_vepo INTO f_vepo WHERE vbeln EQ f_ekes-vbeln.
      f_node-type = 'P'.
      f_node-tlevel = '03'.
      f_node-text = f_vepo-vbeln.
      f_node-tlength = '20'.
      f_node-tcolor = '4'.
      f_node-text6 = f_vepo-venum.
      f_node-tlength6 = '20'.
      f_node-tcolor6 = '4'.
      APPEND f_node TO i_node.
      CLEAR f_node.
    ENDLOOP.
    LOOP AT i_vekp INTO f_vekp WHERE venum EQ f_vekp-venum.
      f_node-type = 'P'.
      f_node-tlevel = '04'.
      f_node-text = f_vekp-venum.
      f_node-tlength = '20'.
      f_node-tcolor = '5'.
      f_node-text6 = f_vekp-exidv2.
      f_node-tlength6 = '20'.
      f_node-tcolor6 = '5'.
      APPEND f_node TO i_node.
      CLEAR f_node.
    ENDLOOP.
  ENDLOOP.
ENDFORM.                    "build_tree
*&      Form  display_tree
*       text
FORM display_tree.
  CALL FUNCTION 'RS_TREE_CONSTRUCT'
    TABLES
      nodetab            = i_node
    EXCEPTIONS
      tree_failure       = 1
      id_not_found       = 2
      wrong_relationship = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
      callback_program = sy-repid.
ENDFORM.                    "display_tree
                    this is the code i developed but there is a problem in drop down.

hi vineesh ,
this is the full code
TABLES : ekes, vepo, vekp.
TYPES : BEGIN OF ivekp,
        venum TYPE vekp-venum,
        exidv2 TYPE vekp-exidv2,
  END OF ivekp,
  BEGIN OF ivepo,
    vbeln TYPE vepo-vbeln,
    venum TYPE vepo-venum,
    END OF ivepo,
    BEGIN OF iekes,
      ebeln TYPE ekes-ebeln,
      vbeln TYPE ekes-vbeln,
      vbelp TYPE ekes-vbelp,
      xblnr TYPE ekes-xblnr,
      END OF iekes.
DATA : i_node TYPE TABLE OF snodetext,
       i_vekp TYPE TABLE OF ivekp,
       i_vepo TYPE TABLE OF ivepo,
       i_ekes TYPE TABLE OF iekes.
DATA : f_node TYPE snodetext,
       f_vekp TYPE ivekp,
       f_vepo TYPE ivepo,
       f_ekes TYPE iekes.
SELECT-OPTIONS :s_ebeln FOR ekes-ebeln.
START-OF-SELECTION.
  PERFORM get_ekes.
  PERFORM get_vepo.
  PERFORM get_vekp.
  PERFORM build_tree.
END-OF-SELECTION.
  PERFORM display_tree.
*&      Form  get_vepo
*       text
FORM get_vepo.
  SELECT venum
         vbeln
    FROM vepo INTO TABLE i_vepo
    FOR ALL ENTRIES IN i_ekes
    WHERE vbeln EQ i_ekes-vbeln.
ENDFORM.                    "get_vepo
*&      Form  get_vekp
*       text
FORM get_vekp.
  SELECT venum
         exidv2
    FROM vekp INTO TABLE i_vekp
    FOR ALL ENTRIES IN i_vepo
    WHERE venum EQ i_vepo-venum.
ENDFORM.                    "get_vekp
*&      Form  get_ekes
*       text
FORM get_ekes.
  SELECT ebeln
         vbeln
         vbelp
         xblnr
    FROM ekes INTO TABLE i_ekes
    WHERE ebeln IN s_ebeln.
ENDFORM.                    "get_ekes
*&      Form
*       text
*&      Form  build_tree
*       text
FORM build_tree.
  CLEAR : i_node, f_node.
  f_node-type = 'T'.
  f_node-name = 'Purchase Order'(002).
  f_node-tlevel = '01'.
  f_node-nlength = '25'.
  f_node-color = '5'.
  f_node-text1 = 'Purchase Document'.
  f_node-tlength1 = '20'.
  f_node-tcolor1 = '5'.
  f_node-text2 = 'Item Number'.
  f_node-tlength2 = '20'.
  f_node-tcolor2 = '5'.
  f_node-text3 = 'External Document'.
  f_node-tlength3 = '25'.
  f_node-tcolor3 = '5'.
  APPEND f_node TO i_node.
  CLEAR f_node.
  LOOP AT i_ekes INTO f_ekes.
    f_node-type = 'P'.
    f_node-tlevel = '02'.
    f_node-text1 = f_ekes-ebeln.
    f_node-tlength1 = '20'.
    f_node-tcolor1 = '3'.
    f_node-text2 = f_ekes-vbeln.
    f_node-tlength2 = '20'.
    f_node-tcolor2 = '3'.
    f_node-text3 = f_ekes-vbelp.
    f_node-tlength3 = '20'.
    f_node-tcolor3 = '3'.
    f_node-text4 = f_ekes-xblnr.
    f_node-tlength4 = '20'.
    f_node-tcolor4 = '3'.
    APPEND f_node TO i_node.
    CLEAR f_node.
    LOOP AT i_vepo INTO f_vepo WHERE vbeln EQ f_ekes-vbeln.
      f_node-type = 'P'.
      f_node-tlevel = '03'.
      f_node-text = f_vepo-vbeln.
      f_node-tlength = '20'.
      f_node-tcolor = '4'.
      f_node-text6 = f_vepo-venum.
      f_node-tlength6 = '20'.
      f_node-tcolor6 = '4'.
      APPEND f_node TO i_node.
      CLEAR f_node.
    ENDLOOP.
    LOOP AT i_vekp INTO f_vekp WHERE venum EQ f_vekp-venum.
      f_node-type = 'P'.
      f_node-tlevel = '04'.
      f_node-text = f_vekp-venum.
      f_node-tlength = '20'.
      f_node-tcolor = '5'.
      f_node-text6 = f_vekp-exidv2.
      f_node-tlength6 = '20'.
      f_node-tcolor6 = '5'.
      APPEND f_node TO i_node.
      CLEAR f_node.
    ENDLOOP.
  ENDLOOP.
ENDFORM.                    "build_tree
*&      Form  display_tree
*       text
FORM display_tree.
  CALL FUNCTION 'RS_TREE_CONSTRUCT'
    TABLES
      nodetab            = i_node
    EXCEPTIONS
      tree_failure       = 1
      id_not_found       = 2
      wrong_relationship = 3
      OTHERS             = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
      callback_program = sy-repid.
ENDFORM.                    "display_tree

Similar Messages

  • My IPAD2, which I bought in late March, has two patches of yellowish light on the lower frame of the screen, near the home button. These  spots can be seen especially when dark backgorund application is running. It's a hardware problem?

    My IPAD2, which I bought in late March, is affected by two patches of yellowish light on the lower frame of the screen, near the home button. These  spots can be seen especially when dark backgorund application is running.
    It's a hardware problem?

    Have you looked here:
    fix for Home button
    Fix a broken, unresponsive or sticky iPhone Home Button
    You can use the Accessibility Assistive Touch feature for almost all of the Home button functions.

  • FaceTime freezes when same room has no problems. The picture is high resolution. There are no freezes when calling my daughter's iPad but the picture is lower resolution. Can I troubleshoot this?

    FaceTime freezes when I call my son's iPad. Calling his iPhone in the same room has no problems. The picture is high resolution. There are no freezes when calling my daughter's iPad but the picture is lower resolution. Can I troubleshoot this?

    Thanks Mario, but I tried everything there before posting my question. I may not have been clear in my question since I accidently recorded the whole question as the title and tried to edit. In brief: I have no trouble connecting with my daughter's iPad or my son's iPhone. However, his iPad is sending much higher resolution pictures and we disconnect after about a minute.  Oddly, he can hear and see me while my screen first freezes, then goes black and gives me a message of "reconnecting" until it quits trying and shows the buttons to end or redial. The picture quality difference is what is leading me to believe it is bandwidth related. However, I get anywhere from 5 to 10 MB download speeds; usually closer to 10. Last summer, I had 4 granddaughters on their iPads, a grandson on his gaming device and me on cell phone or pc, all using the bandwidth at once with no complaints. If there is a way to lower his outgoing resolution, I think that would help.

  • My question is what if I have troubleshooted with holding the sleep/awake button and power and it's not changing to any other screen what should I do? It doesn't even show the battery strength wheither its completely dead or charging at all.

    My question is what if I have troubleshooted with holding the sleep/awake button and power and it's not changing to any other screen what should I do? It doesn't even show the battery strength wheither its completely dead or charging at all.

    - If you did not charge the iPod for a couple of hours before you did the reset then charege and reset:
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Then connect to your computer and if iTunes sees the iPod restore via iTunes. 
    - Next see if recovery mode will allow iTunes to see the iPod so you can restore the iPod. For recovery mode:
    iPhone and iPod touch: Unable to update or restore
    - Last, make an appointment at the Genius Bar of an Apple store.

  • Can anyone help me?  I have a MacBook Air mini and I'm not sure which key or keys I need to click on to be able to unlock the keys ... I can't seem to click on anything because I think the keys are on lock mode.

    Please anyone help me please!

    If you don't have Time Machine or an External USB Hard Drive for Storage, I hate to say this but you may have to erase and re-install your Operating System.
    If you didn't empty the trash after you threw the Application Folder in the trash you can click on the trash and when it opens you can drag the Applications folder to the Desktop and drag and drop it back to the Mac HD.

  • When a try to turn on my macbook, a continuous alarm sounds and wont turn on. Just a white screen. Anyone know the problem

    I tried yesterday to get on my computer but when it began to power up it stopped showing a white screen while emitting a loud beep every 2 to 3 seconds and wouldnt stop. Anyone know what the deal is?

    If you experience one of these beeps, you should call your Apple-authorized service provider for additional troubleshooting assistance.
    1 beep = No RAM installed/detected
    2 beeps = Incompatible RAM type installed (for example, EDO)
    3 beeps = No RAM banks passed memory testing
    4 beeps = Bad checksum for the remainder of the boot ROM
    5 beeps = Bad checksum for the ROM boot block

  • Ticking down to the lower level if thats empty in ALV

    location     level
    aaa          1
    (aaa)          2
    ccc          3
    (aaa)          3
    bbb          2
    (bbb)          3
    ddd          3
    my requirement is
    the value of the field in location should tickle down to the next immmediate lower level if the lower level is empty.as i have explained it with brackets.the number of levels are not known(can be 3 or 10).as anyone came across this before.if someone has any algorithm or solution to this please kindly forward it to me.
    one solution that i though was creating a variable dynamically with that of the level, but creating a variable dynamically is not possible it seems in ABAP...
    so kindly people out there help me if u can....
    thanks heaps in advance

    It depends Upon the level of data u have ? but u can do it thru SAP.
    So first thing what i do is
    get the data for A ,B,C .
    if itab_a[] is not initail.
    perform display_alv.
    elseif.
    perform display_alv "with itab_b.
    endif.
    Regards
    Prabhu

  • How to change the order of cascading prompt?[The prompt at higher level appears at TOP]

    Hi Guys,
    I have one doubt in cascading prompt without Hierarchy view in UNIVERSE 3.1
    While running a report with it.
    The prompt at higher level appears below the prompt at lower level.How can we change the order,i.e, I want Level 2 Account Code as top and then Level 3 Account Code ?
    It can achieve in hierarchy view,but i don't want to set it as hierarchy view,because there are huge number of Level 2 Account code[Search pattern is not available too]
    Thanks in Advance
    Shenbu

    Hi Sathish,
    Thanks for your reply.
    I created Cascading list of value as you said only.please find below screenshot for your refefrence.
    I think,its tool  limitation as "The prompt at higher level appears below the prompt at lower level in report".Can any other way is there to achieve?

  • Warning:Low-level logging is currently enabled in 12.0.6

    Hi All,
    DB:10.2.04.0
    Oracle Apps:12.0.6
    OS:AIX
    We are seeing the message : Warning:Low-level logging is currently enabled.Your application will not perform as well while Low-level logging is on.
    On investigation, found the following:
    NAME USER_PROFILE_OPTION_NAME LEV CONTEXT VALUE
    AFLOG_ENABLED FND: Debug Log Enabled SITE N
    AFLOG_ENABLED FND: Debug Log Enabled APP XX Y
    AFLOG_ENABLED FND: Debug Log Enabled RESP XXXX Y
    AFLOG_ENABLED FND: Debug Log Enabled RESP XYZ Y
    AFLOG_ENABLED FND: Debug Log Enabled RESP ABC Y
    AFLOG_ENABLED FND: Debug Log Enabled USER XXX N
    AFLOG_ENABLED FND: Debug Log Enabled USER XXX N
    AFLOG_ENABLED FND: Debug Log Enabled USER XXX Y
    AFLOG_ENABLED FND: Debug Log Enabled USER XXXX Y
    Should the value be simply set to 'N' at APP,RESP and USER level to disable the message:Warning:Low-level logging is currently enabled.
    Additionally, should the apache be bounced too?
    Please advise.
    Thanks for your time!
    Regards,

    Hi,
    Should the value be simply set to 'N' at APP,RESP and USER level to disable the message:Warning:Low-level logging is currently enabled.Correct.
    Additionally, should the apache be bounced too?Yes.
    Problem with 11.5.10.2
    Re: Problem with 11.5.10.2
    Regards,
    Hussein

  • Low level code

    hi
    while configuring SNP planning run -SAPAPO/SNP01     screen under object selection >manual selection i could see planning version, product, location and low-level code....
    1. what is the significance of this parameter low level code ?
      2. how it reacts to the planning run ?
    my guess is that it takes into account all the tail end level of the BOM that belongs to the product ..but am not sure ..since it is 000/production server i dont want to experiment
    Please help me understand the science behind low level code,can you please suggest an easy to understand link or material
    thanks

    Hi Rahul,
    The low level code the position of a particular location product in a supply chain. SNP heuristics use it to determine the correct planning sequence. This is particular important if you are running "Location Heuristics" and putting the location products in the selection and want system to plan for only those location products.
    The system will use the low level code to determine which location product to plan first and then move to the next one and so on.
    You can refer the following links for further explanation.
    The Level of BOM Planning in the SNP Heuristic and Low Level Codes - SAP Planning
    Low-Level Code Determination - Supply Network Planning Run - SAP Library
    Regards,
    Mitesh

  • Low Level VI for ELVIS

    Where can I get the low level VIs for ELVIS functionalities not currently exposed in LabView eg for Bode Analyzer, Arbitrary WaveForm Generator

     Hi Adnaan,
     The lower level VI's are just as you list: DMM, FGEN, etc. I'm sorry the Bode Analyzer low level's are not available.
     It looks like all of the controls for the BodeAnalyzer can be accessed from the block diagram, is this not the level of programatic control that you need?
     The Express VI link was included in case you we're interested in how to create these.
     Have a great weekend!
    Best regards,
    MatthewW
    Applications Engineer
    National Instruments
    Message Edited by Matthew W on 09-28-2007 06:36 PM
    Attachments:
    bode_elvis.JPG ‏11 KB

  • Muvo n200, lower level voice recored and encoded, and wanna configue EQ in FM m

    I read the topic about Muvo n200 for a few day. I have a problem same as all of you. My problem is I cannot hear the voice that I recorded in my lecture room. Sounds like Ohh Uhh Umm, I cannot catch the word and the sound is low level. Firstly, I think it's from the plastic cover but after I pull it out the sound is same as before I put out. And encode function is low level noise, I should recorded in high level but the sounds is very bad.
    And I don't know why I cannot configue qualizer in FM mode. I like the the sound when I configue equalizer in Music mode, but FM mode cannot. This make me disappoint very much.
    I hope a new firmware of N200 will coming soon and it should be configue my problem that I'm bore.
    the_newkung

    The microphone is quite short range.
    Sounds like EQ with the radio is a wishlist item. Hopefully one of the moderators will log it for you, or you can send it direct to support.

  • A low-level exception occurred in Adobe Player (Player)? no playback

    Help!
    I start premiere and playback wont work at all - It gives me the error “A low-level exception occurred in Adobe Player (Player)
    I tried cleaning the cache and duplicating the sequence - nada
    Premiere Pro CC 7.2.1 (4)
    Recent updates installed
    Mac OSX 10.8.5
    footage: Apple ProRes 422 (LT) .mov
    error: A low-level exception occurred in Adobe Player (Player)
    Happens whenever I start - cant edit at all
    I think it started happening after I imported a sequence from another project

      FAQ: What information should I provide when asking a question on this forum?

  • Low-level code MRP

    Dear gurus,
    i find in the material master (MM02 and in the table MARA) the parameter "Low-level code" = 000 , how  use this parameter ?
    When this value is write?  At saving of Bom? Is a setup of customizing for value possible?
    Thanks a lot
    Daniele Pistilli
    PP TEAM

    Hi
          Pl go thru the following may be useful
    The lowest level that a material appears in any product structure of the
    company. The low-level code controls the sequence in which the material
    is planned in an MRP run: First the materials with low-level code 0 are
    planned, then the materials with low-level code 1, and so on. The lower
    the low-level code, the higher the number that is assigned to the
    material.
    The level that is set in the material master record represents the level
    at which the material will be planned. This means that the material will
    only be planned once all assemblies in which it occurs have been planned
    and exploded.
    The low-level code is set internally in the material master record when
    the BOM is maintained.
    When you create a bom item for a assemblyparts ,the item's low-level code will equal (assemblyparts's low-level code + 1),but if (assemblyparts's low-level code + 1) < bom item then the bom item's low-level code not changed
    Ram

  • Good afternoon, I bought a box of PEV in the game the sims 3 worth € 8.99 and I was not credited in the game despite me out of the account. How can I cancel or receive the PEV?

    Good afternoon, I bought a box of PEV in the game the sims 3 worth € 8.99 and I was not credited in the game despite me out of the account. How can I cancel or receive the PEV?

    Try contacting iTunes support via this page and ask them to help : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for

  • Photoshop CS4 Crashes When Opening Image - Other Adobe Programs Work

    I'm at the end of my rope here. The problem is (that has spontaneously occurred) is that Photoshop CS4 opens fine.  I go to Open, select image, it loads it on screen for a few seconds ,and then I get this Photoshop  has stop working and it closes out

  • Playlists on New Apple TV 2

    How do I get my playlists to sync in the order I set up on the new Apple TV???? I don't want them in alphabetical order! Any help mutely appreciated! Thanks

  • .lrprev files in Bridge

    Two questions: 1. I see hundreds of .lrprev files (LR3 preview) in Bridge CS5 that cannot be viewed. Can I safely delete these since bringing up Bridge takes a few minutes due to the number of images in it. Can I safely delete these? 2. Is there any

  • Jclient Binding to nested application module

    we use a test case of Applications ParrentAM & NestedAM Forms ParrentForm & NestedForm We added a reference to the NestedAM datacontrol in the ParrentDatabindings.cpx When the ParrentForm attempts to set the bindingcontext in the NestedForm we reciev

  • Goods issue quantity check

    Hi Friends Scenario: There are 2 components with quanity of 100 each for header material (10 qty) .Both teh components have backflush indicator. User iwants option of doing Goods issue through MB1A also.Suppose 20 qty each is issued through MB1a by u