<?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 Re: Problem while working wwith tree control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579280#M1660649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the same i got that please tell me how u pasted the whole code as it is when i try it all gets mixed up one more thing i want to know is there any table that includes both the purchase order and the sales order i actually need to create a sales order corresponding to a purchase order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 10:28:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-30T10:28:12Z</dc:date>
    <item>
      <title>Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579278#M1660647</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 am working with tree control the prolems i have been facing are&lt;/P&gt;&lt;P&gt;:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not able o get the event for a single click on the tree node .&lt;/P&gt;&lt;P&gt;i am displaying the purchase order in the tree and once i select on sinlge click a purchase order ,now i want to create the sales order on the another screen and once i click on the button it should call another screen on which i have to create the sales order ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 09:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579278#M1660647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579279#M1660648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gandhivarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am posting the code which will give idea on Tree display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZALVGRID_PG.
TABLES: SSCRFIELDS.

DATA: V_BELNR TYPE RBKP-BELNR.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: IRNO FOR V_BELNR.
PARAMETERS: P_GJAHR TYPE RBKP-GJAHR.
SELECTION-SCREEN END OF BLOCK B1.

DATA: WA TYPE ZALVGRID_DISPLAY,
      ITAB TYPE STANDARD TABLE OF ZALVGRID_DISPLAY.

DATA: IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.

DATA: GRID TYPE REF TO CL_GUI_ALV_GRID.

DATA: L_IDENTITY TYPE REF TO CL_GUI_CUSTOM_CONTAINER.

DATA: L_TREE TYPE REF TO CL_GUI_ALV_TREE_SIMPLE.

TYPE-POOLS: SLIS,SDYDO.

DATA: L_LOGO TYPE SDYDO_VALUE,
      L_LIST TYPE SLIS_T_LISTHEADER.

END-OF-SELECTION.

CLASS CL_LC DEFINITION.
  PUBLIC SECTION.
    METHODS: DC FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN.
ENDCLASS.

CLASS CL_LC IMPLEMENTATION.
  METHOD DC.
    DATA: WA1 TYPE ZALVGRID_DISPLAY.
    READ TABLE ITAB INTO WA1 INDEX E_ROW-INDEX.
    BREAK-POINT.
    SET PARAMETER ID 'BLN' FIELD WA1-BELNR.
    CALL TRANSACTION 'FB02'.
  ENDMETHOD.                    "DC
ENDCLASS.

DATA: OBJ_CL TYPE REF TO CL_LC.

START-OF-SELECTION.
  PERFORM SELECT_DATA.
  IF SY-SUBRC = 0.
    CALL SCREEN 100.

  ELSE.
    MESSAGE E000(0) WITH 'DATA NOT FOUND'.
  ENDIF.

  INCLUDE ZALVGRID_PG_STATUS_0100O01.

  INCLUDE ZALVGRID_PG_LOGOSUBF01.

  INCLUDE ZALVGRID_PG_SELECT_DATAF01.

INCLUDE ZALVGRID_PG_USER_COMMAND_01I01.

*----------------------------------------------------------------------*
***INCLUDE ZALVGRID_PG_STATUS_0100O01 .
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'AB'.
*  SET TITLEBAR 'xxx'.

  IF IDENTITY IS INITIAL.
    CREATE OBJECT IDENTITY
    EXPORTING
      CONTAINER_NAME = 'ALVCONTROL'.
    CREATE OBJECT GRID
    EXPORTING
      I_PARENT = IDENTITY.

    CALL METHOD GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
         I_STRUCTURE_NAME              = 'ZALVGRID_DISPLAY'
      CHANGING
        IT_OUTTAB                     = ITAB.

    CREATE OBJECT OBJ_CL.
    SET HANDLER OBJ_CL-&amp;gt;DC FOR GRID.
    ENDIF.

    IF L_IDENTITY IS INITIAL.
      CREATE OBJECT L_IDENTITY
      EXPORTING
        CONTAINER_NAME = 'LOGO'
        .
      CREATE OBJECT L_TREE
      EXPORTING
        I_PARENT = L_IDENTITY.

      PERFORM LOGOSUB USING L_LOGO.
      CALL METHOD L_TREE-&amp;gt;CREATE_REPORT_HEADER
        EXPORTING
          IT_LIST_COMMENTARY    = L_LIST
          I_LOGO                = L_LOGO.
     ENDIF    .
ENDMODULE.                 " STATUS_0100  OUTPUT

*----------------------------------------------------------------------*
***INCLUDE ZALVGRID_PG_LOGOSUBF01 .
*----------------------------------------------------------------------*
FORM LOGOSUB  USING    P_L_LOGO.
  P_L_LOGO = 'ERPLOGO'.

ENDFORM.                    " LOGOSUB

*----------------------------------------------------------------------*
***INCLUDE ZALVGRID_PG_SELECT_DATAF01 .
*----------------------------------------------------------------------*
FORM SELECT_DATA .

  SELECT RBKP~BELNR
         RBKP~BLDAT
         RSEG~BUZEI
         RSEG~MATNR
         INTO TABLE ITAB
         FROM RBKP INNER JOIN RSEG
    ON RBKP~BELNR = RSEG~BELNR
    WHERE RBKP~BELNR IN IRNO
    AND RBKP~GJAHR = P_GJAHR.

ENDFORM.                    " SELECT_DATA

*----------------------------------------------------------------------*
***INCLUDE ZALVGRID_PG_USER_COMMAND_01I01 .
*----------------------------------------------------------------------*
  CASE SY-UCOMM.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'CANCEL'.
       EXIT.
       ENDCASE.
ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Ragrds,&lt;/P&gt;&lt;P&gt;PavanKumar.G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pavankumar.g on Jan 30, 2012 11:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579279#M1660648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579280#M1660649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the same i got that please tell me how u pasted the whole code as it is when i try it all gets mixed up one more thing i want to know is there any table that includes both the purchase order and the sales order i actually need to create a sales order corresponding to a purchase order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579280#M1660649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T10:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579281#M1660650</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;For this issue you need to maintain a separate internal table which contains both the sales order and purchase order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For posting issue you need to select the code and click on code button then the data will display like the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Pavan Kumar.G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pavankumar.g on Jan 30, 2012 12:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579281#M1660650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T11:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579282#M1660651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz help me out with this&lt;/P&gt;&lt;P&gt;i want to display purchase orders in tree control,i have done that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on single click of the root node i am displaying an information as 'this is root node'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS gv_class IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;METHOD node_click.&lt;/P&gt;&lt;P&gt;clear: gv_flag .&lt;/P&gt;&lt;P&gt;IF node_key = 'ROOT'.&lt;/P&gt;&lt;P&gt;clear: gv_flag.&lt;/P&gt;&lt;P&gt;MESSAGE 'It is a root node' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF node_key 'ROOT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;gv_ponumber = node_key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;gv_flag = 'X'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMETHOD. "node_click&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in else that is on selecting the node i m displaying a screen that would be used to create sales order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem:-once i click on the root node a message is popped up but not for the subsequent times also it only gets displayed when i select a PO number(child node) deselts it and again select the root node&lt;/P&gt;&lt;P&gt;module USER_COMMAND_0100 input.&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;when 'BACK' or 'CANC'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when 'CREATESO'.&lt;/P&gt;&lt;P&gt;IF GV_FLAG = 'X'.&lt;/P&gt;&lt;P&gt;call screen 0200.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE 'Select a PO Number' type 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;CLEAR OK_CODE.&lt;/P&gt;&lt;P&gt;create so is a funct code for the utton on the main screen (initial screen)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579282#M1660651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while working wwith tree control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579283#M1660652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i got the answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 09:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-working-wwith-tree-control/m-p/8579283#M1660652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-02T09:25:21Z</dc:date>
    </item>
  </channel>
</rss>

