How to write the code for a panel when using treeview?

Hi,
We are developing a new plug-in in Indesign as based on treeview. we have completed the design part, but we have some doubts in coding..
One dialog widget and three panels(General, fitting, Eventsandscripts).
The .fr file:
resource GeneralPanelWidget (kGeneralPanelResourceID)
          __FILE__, __LINE__,
          kGeneralPanelWidgetID,      // WidgetId
          kPMRsrcID_None,         // RsrcId
          kBindNone,              // Frame binding
          Frame(0,0,800,500)      // Frame
          kTrue,                  // Visible
          kTrue,                  // Enabled
          kGeneralPanelTitleKey,                    // Panel name
                    StaticTextWidget
                              kInvalidWidgetID,                                                                                // WidgetId (default=0)
                              kSysStaticTextPMRsrcId,                    // RsrcId
                              kBindNone,                                                            // Frame binding
                              10, 15, 138, 35,                                                  // Frame: left, top, right, bottom.
                              kTrue, kTrue,                                                  // Visible, Enabled
                              kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style
                              ksamPrefProjectPathStringKey,                    // Initial text.
                              ksamPrefProjectPathTextEditBoxWidgetID          // No associated widget
                    // TextEditBox Widget resource
                    TextEditBoxWidget
                    ksamPrefProjectPathTextEditBoxWidgetID, // WidgetId
                    kSysEditBoxPMRsrcId, // RsrcId
                    kBindNone, // Frame binding
                    Frame(140, 15, 420, 35), // Frame (l,t,r,b)
                    kTrue, kTrue // Visible, Enabled
                    0, // Widget id of nudge button (0 so we dont get one)
                    0, 0,// small,large nudge amount
                    0, // max num chars(0 = no limit)
                    kFalse,// is read only
                    kFalse,// should notify each key stroke
                    kFalse,// range checking enabled
                    kFalse,// blank entry allowed
                    0, // Upper bounds
                    0, // Lower bounds
                    "", // Initial text
                    ButtonWidget
                              ksamChooseProjectButtonWidgetID,
                              kSysButtonPMRsrcId,
                              kBindNone,
                              430, 15, 500, 35,
                              kTrue, kTrue,
                              ksamChooseBtnStringKey,
                    StaticTextWidget
                              0,                                                                                // WidgetId (default=0)
                              kSysStaticTextPMRsrcId,                    // RsrcId
                              kBindNone,                                                            // Frame binding
                              10, 45, 138, 65,                                                  // Frame: left, top, right, bottom.
                              kTrue, kTrue,                                                  // Visible, Enabled
                              kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style
                              ksamPrefImagePathStringKey,                    // Initial text.
                              ksamPrefImagePathTextEditBoxWidgetID                    // No associated widget
                    // TextEditBox Widget resource
                    TextEditBoxWidget
                    ksamPrefImagePathTextEditBoxWidgetID, // WidgetId
                    kSysEditBoxPMRsrcId, // RsrcId
                    kBindNone, // Frame binding
                    Frame(140, 45, 420, 65), // Frame (l,t,r,b)
                    kTrue, kTrue // Visible, Enabled
                    0, // Widget id of nudge button (0 so we dont get one)
                    0, 0,// small,large nudge amount
                    0, // max num chars(0 = no limit)
                    kFalse,// is read only
                    kFalse,// should notify each key stroke
                    kFalse,// range checking enabled
                    kFalse,// blank entry allowed
                    0, // Upper bounds
                    0, // Lower bounds
                    "", // Initial text
                    ButtonWidget
                              ksamChooseImgpathButtonWidgetID,
                              kSysButtonPMRsrcId,
                              kBindNone,
                              430, 45, 500, 65,
                              kTrue, kTrue,
                              ksamChooseBtnStringKey,
                    StaticTextWidget
                              0,                                                                      // WidgetId (default=0)
                              kSysStaticTextPMRsrcId,                    // RsrcId
                              kBindNone,                                                            // Frame binding
                              10, 75, 138, 95,                                                  // Frame: left, top, right, bottom.
                              kTrue, kTrue,                                                  // Visible, Enabled
                              kAlignLeft, kEllipsizeEnd,kTrue,                    // Alignment, ellipsize style
                              ksamPrefMasterTempPathStringKey,                    // Initial text.
                              ksamPrefMasterTemplatePathTextEditBoxWidgetID                    // No associated widget
                    // TextEditBox Widget resource
                    TextEditBoxWidget
                    ksamPrefMasterTemplatePathTextEditBoxWidgetID, // WidgetId
                    kSysEditBoxPMRsrcId, // RsrcId
                    kBindNone, // Frame 85
                    Frame(140, 75, 420, 95), // Frame (l,t,r,b)
                    kTrue, kTrue // Visible, Enabled
                    0, // Widget id of nudge button (0 so we dont get one)
                    0, 0,// small,large nudge amount
                    0, // max num chars(0 = no limit)
                    kFalse,// is read only
                    kFalse,// should notify each key stroke
                    kFalse,// range checking enabled
                    kFalse,// blank entry allowed
                    0, // Upper bounds
                    0, // Lower bounds
                    "", // Initial text
                    ButtonWidget
                              ksamChooseMasterTempButtonWidgetID,
                              kSysButtonPMRsrcId,
                              kBindNone,
                              430, 75, 500, 95,
                              kTrue, kTrue,
                              ksamChooseBtnStringKey,
CheckBoxWidget
                              ksamShowFrameLabelCheckBoxWidgetID,                              // WidgetId
                              kSysCheckBoxPMRsrcId,                                                                      // RsrcId
                              kBindNone,
                              Frame( 10, 165, 320, 185)                                                            //  left, top, right, bottom
                              kTrue,                                                                                                              // Visible
                              kTrue,                                                                                                              // Enabled
                              kAlignLeft,                                                                                                    // Alignment
                              ksamShowFrameLabelChkBoxTextKey                                        // Initial text
DefaultButtonWidget
                              kOKButtonWidgetID,                    // WidgetID
                              kSysButtonPMRsrcId,                    // RsrcID
                              kBindNone,                                        // Binding 
                              320, 380, 390, 400,                    // Frame (l,t,r,b)  
                              kTrue, kTrue,                              // Visible, Enabled
                              ksamPrefSaveStringKey,          // Button text
                    CancelButtonWidget
                              kCancelButton_WidgetID,          // WidgetID
                              kSysButtonPMRsrcId,                    // RsrcID
                              kBindNone,                                        // Binding
                              400, 380, 470, 400,                    // Frame (l,t,r,b)
                              kTrue, kTrue,                              // Visible, Enabled
                              ksamPrefCancelStringKey,          // Button name
                              kTrue,                                                  // Change to Reset on option-click.
This is for General panel design and we have written the code for this..but we dont know where to call this functions. we implemented this plug-in based on BasicSelectableDialog sample plug-in. please guide me to complete this code.
Thanks in Advance..

Your question is not very clear. Have you gone through the PanelTreeView.sdk example in the sdk?

Similar Messages

  • [svn:fx-trunk] 10545: Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts

    Revision: 10545
    Author:   [email protected]
    Date:     2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
    Log Message:
    Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
    QE Notes: 2 Mustella tests fail:
    components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
    components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
    These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
    Doc Notes: None
    Bugs: SDK-15241
    Reviewer: Darrell
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/browser/DataGrid
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-15241
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.as

    Hi Matthias,
    Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
    At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional).  We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files).  We also use VIPM Enterprise to distribute new VI Packages over the network.
    Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
    Please feel free to contact JKI if you have any specific questions about these products.
    Thanks,
    -Jim 

  • How to write the code for IMPORT and export in Field exit

    Hi,
       Using the FB01 tcode with condition as document type (ZF) and company code
    i want to substitute values should come in the next screen.
          i am passin the document type and the company code in the FB01 initial screen (100) and added field exit for Cost centre.
    if the Doc type ZF and company code is 0245 then the field exit shoul trigger and give the defaul cost centre value if it contain any cost centre valu it over write the existing if it is empty i will write the defauls cost centre value.
    Thanks & Regards,
    Nelsons......

    Hi,
    As i have understood, if ur doc type is ZF and company code is 0245, then you want to pass the value to cost centre field in next screen.
    You can use program RSMODPRF. here enter the data element of cost centre field and assign the screen no and program name (for FI docs prg name would be SAPMF05A).
    After assigning program and screen no , Create the function module where u have to write an 'if' statement for assigning value to cost centre (i.e export field in FM)
    the values for company code and document type can be fetched from their respective parameter  ids i.e. BUK and BAR.
    Regards,
    Seema Jaisinghani

  • How to write the code for screen-exits

    halo fellow SAPiens,
    I want to add a screen for t-code AS01......for which i have created a sub-screen in the function grp (related to AS01)........now i need to link the sub-screen with the Standard SAP prgm..........i.e  call the sub-screen........how can i do it...........

    pls send me one example for implementing menu-exits,screen exits and
    Screen exits - Urgent.
    screen exits
    Screen exit
    Please reward points if helpful...

  • How to write the expression for multiple texbox selection using single textbox status

    Hii frnz,
    can you see  the below image  if the value of the text box is stopped means Red i want to display the entire row(all the texboxs values should be displayd in the red colour only) should be display in Red colour only. 
    How to implemet it is in SSRS reporting side.....
    Thanks ! In Advance....

    Just give an expression as below for the color property
    =IIf(Me.Value = "Stopped","Red","Green")
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can we write the code for opening the command prompt and closing the

    how can we write the code in java for opening the command prompt and closing the cmd prompt from eclipse (cmd prompt should close when click on the turminate button in eclipse)

    rakeshsikha wrote:
    how can we write the code for opening the command prompt and closing theBy typing in Eclipse (which you seemingly have)?

  • How to write a code for  open new txt file in swing

    hai all,
    now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
    plz give me that code ! very urgent
    Advance Thanks !
    RSK

    Swing Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
    If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
    note: don't use the word urgent because it implies that your problem is more important than others.

  • How to write a code for cumulative values..

    Hi
    Can any one proivde the Sudo code for Customer exit at Reports.
    I need to write a code for when ever user input Calaender month then querry calucalate the cumulative values also.
    How to write a code for cumulative values..
    Example:
    Customer -Sales.Quantity(CalMonth)---   Sales.quantity(Cumulative Month)  
    1000--223--
    2200
    Regards
    mannev.

    hi mannev,
    to get an idea, search in SDN
    for example
    customer exit code
    with hopes,
    Raja Singh

  • How to write the logic for extending Idocs...

    Hi,
          Can anybody pls explain how to write the logic for extending IDOCs with an example...
          Good suggestions can be appreciated..
    Regards,
    Ram

    Hi Ram,
    Generally the IDoc user exit is called at the following places:
      1) When the control record is read.
      2) After each and every segment in the data record
      3) At the end of the data segment processing.
    The IDoc user exit interface generally imports IDOC_DATA (data record internal table) table. Now the data records in the internal table should appear in the same order as maintained while defining IDoc structure (WE30 transaction). For SAP standard segment SAP code will take care of this. For extended segment you will have to take care of this aspect by appending the Z-segment in the IDOC_DATA table.
    You can do this by:
             looping at IDOC_DATA table:
                 - Do a case-endcase fo IDOC_DATA-SEGNAM (This stores the segment 
                   structure as per the hierarchy).
                 - Within the case for "Z-segment" you can write the logic for appending
                   the Z-segment to IDOC_DATA-SDATA.
    Hope this gives some clue.
    Regards,
    Gajendra.

  • How to write the code to send the report output to the local file.

    dear all,
    how to write the code to send the report output to the local file.
    Thanks & Regards,
    Jyothi.

    Hi,
    Try this , it will display report and download the file as well. Just vhange the path and execute
    TYPE-POOLS : SLIS.
    DATA : IT_SCARR TYPE TABLE OF SCARR,
           IT_FCAT  TYPE SLIS_T_FIELDCAT_ALV.
    SELECT *
    FROM SCARR
    INTO TABLE IT_SCARR.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    *   I_PROGRAM_NAME               =
    *   I_INTERNAL_TABNAME           =
        I_STRUCTURE_NAME             = 'SCARR'
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_INCLNAME                   =
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
      CHANGING
        CT_FIELDCAT                  = IT_FCAT
    * EXCEPTIONS
    *   INCONSISTENT_INTERFACE       = 1
    *   PROGRAM_ERROR                = 2
    *   OTHERS                       = 3
    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 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
    *   I_CALLBACK_PROGRAM             = ' '
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   I_STRUCTURE_NAME               =
    *   IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FCAT
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    *   IR_SALV_LIST_ADAPTER           =
    *   IT_EXCEPT_QINFO                =
    *   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = IT_SCARR
    * 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.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
    *    BIN_FILESIZE              =
        FILENAME                  = 'C:\Documents and Settings\sap\Desktop\Hi.xls' " Change path
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      CHANGING
        DATA_TAB                  = IT_SCARR
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24
    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 METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'C:\Documents and Settings\sap\Desktop\Hi.xls' "Change path
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *    OPERATION              = 'OPEN'
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    SYNCHRONOUS_FAILED     = 8
    *    NOT_SUPPORTED_BY_GUI   = 9
    *    others                 = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to restrict the GR for Production Order when Goods Issue is not done

    Hi Gurus
    How to restrict the GR for Production Order when all the required components for production order are not issued with all required quantity. Even for partial issue system should not allow GR with 101. The user status with RMWA, RMWF & CGFB is not working.
    Pls suggest best solution.
    Abhijit.

    Hi,
    You can club together the GI nad GR at the time of confirmation..
    I.e Backflush for the components and auto GR for the Product.
    So that you can stream line the Process.
    The best Option would be to use the User Exit:
    Enhancement - MBCF0002
    Functional Module - EXIT_SAPMM07M_001
    Include - ZXMBCU02
    Refer below link for further details..
    How to stop the goods receipt before issueing the goods for production orde
    Regards,
    Siva

  • How to write the code?

    Hi,
    I have a internal table T. when the t-zuonr is blank, the ALV look like:
    t-zuonr                     document no       data
                              200630303  AB  2007.08.31
                              200627855  AB  2007.06.30
                              200627887  AB  2007.06.30
    MSFT047/07         93631164   RV  2007.10.19
    MSFT061/07         93594484   RV  2007.10.09
    MSFT061/07         93594485   RV  2007.10.09
    MSFT061/07         93594486   RV  2007.10.09
    MSFT061/07         93594487   RV  2007.10.09
    MSFT061/07         93594488   RV  2007.10.09
    MSFT061/07         93594489   RV  2007.10.09
    MSFT061/07         93594490   RV  2007.10.09
    *I need to not show the company which t-zuonr is space.
    How can I write the code?*
    The original source code is as following:
    SORT t.
      LOOP AT t.
        AT NEW bukrs.
          CLEAR anz_dl.
          CLEAR htext-anzahl.
          CLEAR htext-datei.
          htext-text1 = ' records writen in file '.
          CLEAR p_pfad.
          CONCATENATE
              i_pfad
              'CU_CC'
              t-bukrs
              sy-datum+6(2)
              sy-datum+4(2)
              sy-datum(4)
              sy-uzeit
              '.txt'
         INTO p_pfad.
          CLEAR outtab.
          REFRESH outtab.
          REFRESH: gt_outalv.                                  "INS MG020207
        ENDAT.
       IF t-shkzg = 'H'.
         h_betrg  = t-wrbtr * -1.
       ELSE.
        h_betrg  = t-wrbtr.
        h_dmbtr  = t-dmbtr.
       ENDIF.
        s-filler1 = s-filler2 = s-filler3 = s-filler4 = s-filler5 = ';'.
        s-filler6 = s-filler7 = s-filler8 = ';'.
        s-filler9 = s-filler10 = s-filler11 = s-filler12 = s-filler13 = ';'.
        s-filler14 = ';'.
        s-belnr = t-belnr.
        IF t-xblnr NE space.                                    "WD041005a
          s-xblnr      = t-xblnr.                               "WD041005a
        ELSE.                                                   "WD041005a
          s-xblnr      = t-belnr.                               "WD041005a
        ENDIF.                                                  "WD041005a
        WHILE s-xblnr(1) EQ '0'.                            "INS MG130606
          SHIFT s-xblnr LEFT.                               "INS MG130606
        ENDWHILE.                                "INS MG130606
    *<<< CR01 CHANGE START BY LI_Y 2008/01/10
        IF t-waers = 'JPY'.
        h_dmbtr = h_dmbtr.
        else.
        h_dmbtr = h_dmbtr * 100.
        endif.
    *>>> CR01 CHANGE END BY LI_Y 2008/01/10
        WRITE t-kunnr TO s-kunnr NO-ZERO.
        s-lifn2 = s-kunnr.
        shift s-lifn2 RIGHT.
        s-lifn2(1) = 'R'.
      S-KUNNR = T-KUNNR+5(5).
        s-bldat+2(1) = '/'.
        s-bldat+5(1) = '/'.
        s-bldat0(2) = t-bldat4(2).
        s-bldat3(2) = t-bldat6(2).
        s-bldat6(4) = t-bldat0(4).
        s-budat+2(1) = '/'.
        s-budat+5(1) = '/'.
        s-budat0(2) = t-budat4(2).
        s-budat3(2) = t-budat6(2).
        s-budat6(4) = t-budat0(4).
        s-netdt+2(1) = '/'.
        s-netdt+5(1) = '/'.
        s-netdt0(2) = t-netdt4(2).
        s-netdt3(2) = t-netdt6(2).
        s-netdt6(4) = t-netdt0(4).
        s-waers      = t-waers.
        s-dmbtr      = t-dmbtr.
        s-sgtxt      = t-sgtxt.
        CLEAR s-twaer.
        SELECT SINGLE waers INTO s-twaer
                            FROM t001
                            WHERE bukrs = t-bukrs.
        IF h_betrg < 0.
          hs_betrg+0(1) = '-'.
        ELSE.
          hs_betrg+0(1) = ' '.
        ENDIF.
        WRITE h_betrg CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                        NO-SIGN
                                                        LEFT-JUSTIFIED.
        REPLACE ',' WITH '.' INTO hs_betrg.
        WRITE hs_betrg TO s-betrg.
        IF h_dmbtr < 0.
          hs_betrg+0(1) = '-'.
        ELSE.
          hs_betrg+0(1) = ' '.
        ENDIF.
        WRITE h_dmbtr CURRENCY t-waers TO hs_betrg+1 NO-GROUPING
                                                        NO-SIGN
                                                        LEFT-JUSTIFIED.
        REPLACE ',' WITH '.' INTO hs_betrg.
        WRITE hs_betrg TO s-dmbtr.
        s-compcode   = t-bukrs.                                 "fw070905
        IF p_downl = 'X'.
          MOVE s TO outtab-s.
          APPEND outtab.
          ADD 1 TO anz_dl.
        ENDIF.
        gs_outalv-belnr = s-belnr.                             "INS MG020207
    *<<<< CR01 START CHANGE BY LI_Y 2007/12/24      " ADD as_outalv-zuonr
        gs_outalv-zuonr = s-zuonr.                             "CR01
    *>>>> CR01 EDD CHANGE BY LI_Y 2007/12/24         "ADD as_outalv-zuonr
        gs_outalv-kunnr = s-kunnr.                             "INS MG020207
        gs_outalv-bldat = s-bldat.                             "INS MG020207
        gs_outalv-netdt = s-netdt.                             "INS MG020207
        gs_outalv-betrg = s-betrg.                             "INS MG020207
        gs_outalv-waers = s-waers.                             "INS MG020207
        gs_outalv-compcode = s-compcode.                       "INS MG020207
        gs_outalv-budat = s-budat.                             "INS MG020207
        gs_outalv-sgtxt = s-sgtxt.
        gs_outalv-kmmnt = s-kmmnt.
        gs_outalv-vbeln = s-vbeln.
        gs_outalv-xblnr = s-xblnr.
        gs_outalv-lifn2 = s-lifn2.
        gs_outalv-dmbtr = s-dmbtr.
        gs_outalv-twaer = s-twaer.
        APPEND gs_outalv TO gt_outalv.                         "INS MG020207
        AT END OF bukrs.
          WRITE anz_dl  TO htext-anzahl.
          WRITE p_pfad  TO htext-datei.
          CONDENSE htext.
    *<<<< CR01 START CHANGE BY LI_Y 2007/12/24
    WA_SORT-fieldname = 'BELNR'.     " speicfy field name..
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOT = 'X'.
    APPEND WA_SORT TO I_SORT.
    Thank you!!

    Hi,
    Do this. Declare another internal table of identical structure as table t say t1.
    REFRESH t1.
    APPEND LINES OF t TO t1.
    DELETE t1 WHERE zuonr IS INITIAL.
    and then use t1 to display the ALV.
    Hope this helps.
    Regards,
    Aditya

  • How to customize the code for default scroll buttons provided in the table?

    Hi Everyone,
    I want to customize the code for default 'next page' navigation button provided in a table. If this is possible then how it can be done?
    Thanks,
    Swati

    do you mean 'footer' of table, which used to scroll table contents?
    Table footer button is not editable.
    Instead you can try buttons in the table tool bar and can swap elements in the table.And also table footer can be set to showfootoer: false.
    refer thread: [Table Element Swapping|Re: Table with special requirement]
    nikhil

  • How to write processing code for the Inbound IDOC to the R/3 ??

    i m having a file -> XI-->R/3 scenario,
    IDOC is being sent from XI to R/3,
    can u guide to me to write a processing code for the Inbound IDOC to the R/3,
    since i m new to ABAP and ALE technology, can we provide me any blog for doing that.......or guide me....

    Hi Sudeep
    Simple File to Idoc scenarion blog
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    Also see the blog
    <a href="/people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi Steps for Posting IDOC's</a> by Ravikumar.
    Configuration of IDOC adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/96/791c42375d5033e10000000a155106/frameset.htm
    Regards
    Santhosh
    *Reward points if useful*

  • User exit function module include how to write the code

    hi all,
    i am creating user exit  for ME22N  using this enhance  MM06E005 .
    in this i created subscreen and set some fields .
    that data has to be stoe in EKPO.
    inside the include i have to write the logic plz guide me how to follow .
    once i enter it will store on wish internal table and wish internal table to shall i move to EKPO .
    If Tcode is ME23N how to display data in disable mode.
    Regards,
    Hari.

    This is the code inside the function module .
    once i enter data in custom field the below wish table it will store.
    FUNCTION EXIT_SAPMM06E_016.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_EKPO) LIKE  EKPO STRUCTURE  EKPO
    *"     VALUE(I_AKTYP)
    *"     VALUE(I_CI_EKPO) LIKE  EKPO_CI STRUCTURE  EKPO_CI
    *"     VALUE(I_BSTYP) LIKE  EKKO-BSTYP
    *"     VALUE(I_NO_SCREEN)
    *"     VALUE(I_LFA1) LIKE  LFA1 STRUCTURE  LFA1
    *"     VALUE(I_LFM1) LIKE  LFM1 STRUCTURE  LFM1
    *"     VALUE(I_EKKO) LIKE  EKKO STRUCTURE  EKKO
    *"     VALUE(I_REKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_KEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_AEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_REBAN) LIKE  EBAN STRUCTURE  EBAN OPTIONAL
    *"     VALUE(I_MT06E) LIKE  MT06E STRUCTURE  MT06E OPTIONAL
    *"     VALUE(I_EINA) LIKE  EINA STRUCTURE  EINA OPTIONAL
    *"     VALUE(I_EINE) LIKE  EINE STRUCTURE  EINE OPTIONAL
    *"     VALUE(I_EKPO_OLD) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_KOMP) LIKE  KOMP STRUCTURE  KOMP OPTIONAL
    *"     VALUE(I_ENJ_CALL) OPTIONAL
    *"  TABLES
    *"      TEKPO STRUCTURE  BEKPO OPTIONAL
    *"      TEKET STRUCTURE  BEKET OPTIONAL
    *"      TEKKN STRUCTURE  EKKNU OPTIONAL
    *"      TKOMV STRUCTURE  KOMV OPTIONAL
    INCLUDE ZXM06U41 .
    ENDFUNCTION.
    inside the INCLUDE ZXM06U41 .  i writen this code
    *&  Include           ZXM06U41
    DATA :
          FS_EKPO TYPE EKPO_CI.
    IF ( SY-TCODE EQ  'ME22N' OR SY-TCODE EQ 'ME23N'
          OR SY-TCODE EQ 'ME22' OR SY-TCODE EQ 'ME23' ) .
      LOOP AT TEKPO.
       IF ( TEKPO-EBELN EQ i_EKPO-EBELN
            AND TEKPO-EBELP EQ i_EKPO-EBELP ) .
        EKPO_CI-ZMATERIAL = TEKPO-ZMATERIAL.
        EKPO_CI-ZQUANTITY = TEKPO-ZQUANTITY.
        EKPO_CI-ZUNIT     = TEKPO-ZUNIT.
        EKPO_CI-ZPRICE    = TEKPO-ZPRICE.
        EKPO_CI-ZCURRENCY = TEKPO-ZCURRENCY.
       ENDIF.
      ENDLOOP.
    ENDIF.
    Regards,
    Hari.

Maybe you are looking for

  • Error in Running of java file(while connecting for SAP BW SERVER)

    Hi, Any one could be help regarding the  following error message I am getting on running of Java File? C:\>cd C:\j2sdk1.4.2_04\bin C:\j2sdk1.4.2_04\bin>Set Classpath=%classpath%;C:\j2sdk1.4.2_04\bin\jco\com\sap\ mw\jco\jco.jar; C:\j2sdk1.4.2_04\bin>j

  • AutoSuggestBox.selecteditem is Not Working in Windows Phone8.1

    For AutoSuggestBox Selected item is Enabled in _SuggestionChosen Event But in "getitemselected()" method selected item is not working, in WP8.1 In XAML File: <AutoSuggestBox x:Name="tblkpersonname" Width="380" Margin="0,-7,0,0" ItemsSource="{Binding}

  • Populating values on a table view

    Hi, Following is the xml webservice response: <?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:getAvailableResourcesResponse xmlns:ns="http://webservices.iphoneapps

  • SQLException: how do I know where I went wrong?

    I just revolutioned the database I was using for my tomcat application, switching from MyIsam to InnoDB. But as soon as I tried an insert I got an SQLException. this is part of the code (which is called from a servlet):     public void saveInitialize

  • How do I disable the Do-Not-Track header? Firefox preference is not working.

    The "Do not tell anything about my tracking preferences" option is not working. As it always sends the "DNT:1" header no matter what option. I am using Firefox 23. I am aware of Bugzilla 803898. I would like an immediate solution if possible until th