2 commands in 1 function

Dear Guru,
I am trying to execute 2 commands in 1 javascript function as follows:
function goto_tab(tablabel) {
SAPBWOpenURL(SAP_BW_URL_Get()'&item=TABLABEL*&multi=X&hidden=X&cmd_1=item%3d'tabname+'*%26hidden%3d %26multi%3dX');
SAPBWOpenURL(SAP_BW_URL_Get()'&item=ITEM1&multi=X&hidden=X&cmd_1=item%3d'ITEM1+'*%26hidden%3d %26multi%3dX');
Is this syntax allowed? I could run the template but not sure if this is allowed as I get errors.
Regards,
Mirella

this is allowed syntactially. you can definitely call more than one function from another function.
what errors do u get ? did u include the script containing SAPBWOpenURL function ?
Infact i suggested same approach in your earlier question as I saw that first.
Regards,
Piyush
ps: please mark for useful answers.

Similar Messages

  • Any issue if we writing DML,DDL and TCL commands in stored functions.

    Hi,
    Is there any issue if we writing DML,DDL and TCL commands in stored function with help of PRAGMA AUTONOMOUS_TRANSACTION.

    Hi,
    Yes, Ofcourse. Using DML Statements Inside the function using PRAGMA AUTONOMOUS_TRANSACTION is not highly
    recommended. It is recommended to use AUTONOMOUS TRANSACTION for error logging purposes only, and
    when used in an disorganized way it may lead to dead locks and we will have problem when examining the
    Trace Files.
    Thanks,
    Shankar

  • Voice Command does not function anywhere on phone

    Have owned the RAZR MAXX HD for two weeks.  Voice Command functionality does not work regardless of whether I try to open it from the apps list, dialer, or contacts list.  The error I get reads as follows: "Unfortunately, Voice Command has stopped."  If I use the Google Now microphone it does seem to work on a limited basis for certain contacts.  Would really like to use the phone hands free while driving but the lack of voice command functionality prevents this.

    Fixed it!  I had the same problem today with my Droid 4 and search the internet to find some answers.  Techs were saying that you cannot roll back updates for the OS  and what not but that is not true.  I found a free App on Google Play that did backups and restores for apps and the OS.  Even though it was too late to have a restore to go back to, I was able to see all the updates and loads that had happened today and uninstalled them from within the program and it did roll them back to the previous versions.  I had to uninstall Google Search, Google Play Books and Zillow. and then my Voice Commands would work again.  The error I was receiving when I tried to voice command was "Unfortunately Vioce Commands has stopped".  I hope this helps someone.  NOt trying to sell anything but the App that worked was AppMonster Free Backup Restore.

  • Using insert command in NVL function

    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.

    998504 wrote:
    How can we use insert command in a NVL function
    exapmle : INSERT INTO employee
    VALUES ( (NVL ( (SELECT emp_id
    FROM employee
    WHERE emp_name LIKE 'Test'),
    (insert into employee values((select max(emp_id)+1 from employee),'Test')))));
    I mean i will check for the record to exist in the table and if not exist i will add it to the table.The first thing caught my eye is this
    max(emp_id) +1A real bad piece of code. Never do that. Ever thought about multi user environment? Use a SEQUENCE.
    If you want EMP_NAME to be unique (Which looks strange to me), then just add a UNIQUE constraint. You dont try to do what oracle already does really well.

  • Command F [find] function not working in Word 2011

    It seems that my Command F function is not working properly...when I look for a term that I KNOW is in my document, sometimes it won't locate it. Sometimes it will only locate one instance of the word [in the sidebar] when the word actually appears multiple times in the document.  And, if the word appears in my footnotes, the command F function will then only highlight the instances in which that word appears in the footnotes, but not in the main text [again, in the sidebar].  I've also noticed that the spotlight function does this as well [ie, I will use spotlight to search for word documents containing a certain term, and although I KNOW the term is in a certain document, spotlight will not identify that document as containing my search term].
    These documents are a mix of ones that I created using Word 2011 and previous versions - the problem happens consistenly across all word files. And I'm not specifying any particular case for the terms (ie, I'm not searching for "Coffee" with a capital "C" and not getting any results because only "coffee" appears in my document).
    I'm running Word 2011 on Lion OS.  Please help - this is driving me insane.....

    Sorry, this is the Office forum for Windows platform. Office for Mac related questions should really be posed in the following forums:
    http://answers.microsoft.com/en-us/mac
    Thanks for your understanding.
    Tony Chen
    TechNet Community Support

  • Variant of expect command having similar functionality in Solaris OS??

    Hi All,
    I am using one shell script in Linux with “expect 5.38” command utility, this script contain ssh and sftp. Now same shell script I need to use in Solaris (SunOS eupr0016 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-V440) but issue is that the Solaris OS doesn’t have expect utility.
    Please let me know, is there any other variant of expect command/utility having similar functionality to use on Solaris OS.
    Thanks
    Jiten Mistry

    JitenMistry wrote:
    But we have Solaris 5.9 OS installed5.9 and 9 are the same version of solaris (actually I think it is SunOS 5.9 and Solaris 9, but whatever). So my advice is to install the package SFWexpct that should be on the companion CD.

  • Why was command-option-click functionality removed.  Please bring back.

    Can anyone fill me in on this issue.
    I used to use command-option-click hundreds of times a day.  Cleared out all windows and got me to the application I wanted to use.  It is, apparently, gone in Mavericks.
    I'd be interested to know  why it was removed.  I also want it back.
    And, I'd llike it brought back with the functionality changes so that the application I make active with the command leaves the "hide" options in the Application pulldown menu active.  My one complaint about the shortcut was that it grayed out the "hide" options so I had to click out of the application and back in to use them.
    Please, please, I really want the shortcut!
    --Kenoli

    totally agree- the loss of 'pinch to resize' is a disaster.
    It was one of the main reasons i'd use it over powerpoint.
    C'mon Apple!
    rob

  • Import command is not functional (greyed)

    the "import" command is not available (grayed) I want to import my Safari bookmarks

    I guess the first thing you now need to do is to get the latest drivers for your printer because as you say you uninstalled it from your machine and now reinstalled it again.  I don't know why you thought printer should have been uninstall;led but anyway, please reinstall the driver and then see if it is recognized by your operating system and try scanning something as a test from outside the PSE13 before going back to PSE13 and trying to scan your real image.
    Please post back so that Barbara or R_Kelly can help you as I don't use Apple Mac.

  • [Solved] xscreensaver-command -lock not functioning

    I've installed the xscreensaver-arch-logo package from the AUR and followed the wiki to get it up and running, although it returns this error
    no screensaver running on display:0.0
    Now I have included
    xscreensaver -no-splash &
    in my .xinitrc, which is where I start openbox. When I enter this command manually and then run the -lock command it works fine. So obviously its not being run from .xinitrc.. I have tried other variations
    /usr/bin/xscreensaver -no-splash &
    exec xscreensaver -no-splash &
    neither work... I'm running the command after I run the exec command for openbox, if that makes any difference..
    Anybody have any idea what is up?
    Last edited by HungGarTiger (2013-07-05 09:13:40)

    graysky wrote:
    HungGarTiger wrote:
    here you are mate
    aled 526 0.0 0.0 5024 952 pts/1 S+ 20:27 0:00 grep xscreensaver
    OK... it is not running.  That is showing you your grep command looking for it.  Nothing is wrong with the package, but with the method you're using to start it.
    Try this:
    1)
    % cp /etc/xdg/autostart/xscreensaver.desktop ~/.config/autostart
    2) Logout and log back in.
    3) Post the output of
    ps aux | grep xscrensaver
    I thought files in /etc/xdg/autostart are started by all users anyway?
    Edit:
    Also, I think that .desktop file is set to only run in Xfce
    Last edited by jrussell (2013-07-05 08:59:59)

  • Voice Over (VO) Commands - turning this function on and off

    I accidentally pressed a function key and a tutorial began for something called +"Voice Over".+ There were instructions printed onscreen and a computerized voice was reading them aloud. Apparently when you hit CONTROL and OPTION keys together with other keys they do something. Well...I didn't need to go through the whole tutorial since I accessed it by mistake so I pressed ESC to stop it. The tutorial stopped and I attempted to continue doing what I had been doing, however every time I hit a key or performed an action my computer "spoke" to me, telling me exactly what key I was pressing, what I was seeing, what I had just done, what I was about to do, etc. Also, on the lower left of the screen was a large window that wrote out every word the computer was "speaking". It seems like I somehow activated a setting for the hearing and/or visually impaired.
    *QUESTION: How do I turn this function off? And what key did I accidentally touch that turned this function on so I know what to avoid in the future?* I have searched through the online manual and did a quick scan of other threads here but I did not see anything related to this issue. I could not find anything on Apple's "System Preferences" menu that applied either. All I could think of to do was mute the sound on my computer until I figure out how to turn "the voice" off.
    Thanks in advance to anyone who can help me.

    You're welcome! I'm glad I could help. It was SO annoying, wasn't it? I tried just about everything until my friend told me the solution...which was so simple I felt like an idiot.

  • TS4079 Siri is not working since 7.0 upgrade - if I turn Siri off it works with voice command. Microphone functions with other apps just fine. I have gone through the trouble shooting page and still nothing. I read others are having the same issue.

    I have restarted the phone and reset it - Siri still not working. It does not pick up any voice - just lists some options.

    I have no idea what may have caused your MacBook to stop working, but from your description it kind of sounds like it may have started before you ran Software Update and installed the new Apps. Just the general slow feeling and bugginess is what tips me off. You said that you weren't sure if you had closed all open windows, that doesn't matter if the computer restarts itself. It automatically closes all other open applications when restarting.
    As to your data being retrievable, if when you take it in they do a fresh install of the OS, then no, it will not be unless you want to pay several thousand dollars to a software retrieval company.
    I am glad to hear that you have taken into the Apple Store to get it fixed, and that you have all of your purchased music backed up to your iPod. You should be able to just transfer it all back to iTunes once you get your computer back should it be necessary.
    As a side note, the proper place for this topic would probably in the MacBook forums, not iTunes since there is no evidence that iTunes started the issue.

  • Console APP - Call function based upon a command line parameter

    I am writing an extrensible console ( interactive console ) application was thinking having my application read in the command, then look up which function to use to process its parameters.
    say the command the user types is "print Hello World"
    I would just grab the first parameter, recognize it as the print command , and then call a function in my class that prints out "Hello World" to the screen.
    Instead of doing a bunch of If statement to match the first argument to a recognized command, what I would like to do is have a type of Hash table that points to the correct function to process the command.
    So.. something like :
    String cmd = console.readline( "Enter your command" ); - get the users command
    "function = HashMap.get( cmd)" - get the function out of the hashmap
    "function( parameters )" - run the function
    the prompt for another command, as long as the last command wasn't "exit"
    I would have to check to make sure the command had a function mapped to it, but with this setup, all I do is update the table when I need to add a new command. and the function( method ) that processes it.
    Thanks!

    It sounds like you're describing the Command pattern. It normally goes something like this:
    interface Command {
        Object execute(String... args);
    Map<String, Command> commands = new HashMap<String,Command>();
    commands.put("print", new Command() {
        public Object execute(String... args) {
            System.out.print(args);
    // ... and more commands
    //.. then in your command-line UI, for example:
    BufferedReader in = new BufferedReader...
    String line;
    while((line = in.readLine()) != null) {
        String[] tokens = line.split();
        Command cmd = commands.get(tokens[0]);
        String[] args = take_subarray_of_tokens_starting_at_1_I_forget_easiest_way_to_do_that(tokens);
        Object returnval = cmd.execute(args);
        // maybe you'll want to do something with return val, or maybe it should be an int more like an exit val, whatever
    }Not tested but you get the idea.

  • How to run 'Get-AssignedAccess' or 'Set-AssignedAccess' power shell commands in c# Application

    Hi,
    I have console application using which i am trying to run power shell command  like 'Get-AssignedAccess' or 'Set-AssignedAccess'.
    i am using below code for this it is throwing exception 'Get-AssignedAccess' doesn't exist in cmdlet which is correct because these commands belongs to function category.
    using (PowerShell pwInstance = PowerShell.Create())
                            pwInstance .AddScript("Get-AssignedAccess");
                            var result = pwInstance .Invoke();
    How can we execute this kind of command using c#?
    Thanks,

    Hi prakashlight,
    Thank you for comming back and tell us the result. For more information about how to run PowerShell script in C# language, you can refer to this blogpost here:
    Executing PowerShell scripts from C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create, Update & Save Functions

    Hi All,
    This is my code for the requirement to print sales order in ALV Grid Format using OOPS concept.
    Please tell me how i should add select button to the ALV Grid in the first column.
    Also when i click on CREATE button a new blank line should be added to the alv grid.
    when i click on UPDATE button the selected row should become editable & when i click on save then my Ztable should be update with the new values and all the changes made.
    The Ztable has fields as of the IT_FIANL table.
    I have gone through many links regarding this topic but cant implement it in my code.
    REPORT  z12darp_shad_so_alv_oops
            MESSAGE-ID z12darp1.
    *Class definition for handling double click
    CLASS event_class DEFINITION DEFERRED.
    *Class definition for ALV toolbar
    CLASS lcl_alv_toolbar   DEFINITION DEFERRED.
    *AUTHOR: Darpana. Ahire
    *DATE: 28/11/2008
    *DESCRIPTION: To printsales order as Interactive ALV using OOPS concept.
    *&               D A T A   D E C L R A T I O N
    type-pools: icon.
    INCLUDE z12darp_alv_oops.
    data: ok_code_2008 like sy-ucomm.
    *&  Include           Z12DARP_ALV_OOPS
    *Author: Darpana. Ahire
    *Date: 28/11/2008
    *Description: ALV Grid Using OOPS concept.
    tables: z12Darp_final.
    types: begin of ty_vbak,
             vbeln   type   vbeln_va,
             erdat   type   erdat,
             vkorg   type   vkorg,
             spart   type   spart,
          end of ty_vbak.
    types: begin of ty_vbap,
             vbeln   type   vbeln_va,
             posnr   type   posnr_va,
             matnr   type   matnr,
             netpr   type   netpr,
             netwr   type   netwr_ap,
           end of ty_vbap.
    types: begin of ty_final,
             vbeln   type   vbeln_va,
             erdat   type   erdat,
             vkorg   type   vkorg,
             spart   type   spart,
             posnr   type   posnr_va,
             matnr   type   matnr,
             netpr   type   netpr,
             netwr   type   netwr_ap,
           end of ty_final.
    data: wa_vbak   type   ty_vbak,
          wa_vbap   type   ty_vbap,
          wa_final  type   ty_final.
    data: it_vbak   type   standard table of   ty_vbak,
          it_vbap   type   standard table of   ty_vbap,
          it_final  type   standard table of   ty_final.
    data: v_vbeln   type   vbeln_va.
    data: cust   type   ref to     cl_gui_custom_container,
          alv    type   ref to     cl_gui_alv_grid,
          event_receiver TYPE REF TO event_class.
    data: wa_fcat       type    lvc_s_fcat,
          it_fcat       type    lvc_t_fcat,
          wa_layout     type    lvc_s_layo.
    *Declaration for toolbar buttons
    DATA : ty_toolbar TYPE stb_button.
    data: c_alv_toolbar    TYPE REF TO lcl_alv_toolbar.      "Alv toolbar
    *&               S E L E C T I O N     S C R E E N
    SELECT-OPTIONS: ss_vbeln FOR v_vbeln.
    *&                 I N I T I A L I Z A T I O N
    INITIALIZATION.
      PERFORM initial.
    *&               A T   S E L E C T I O N - S C R E E N
    AT SELECTION-SCREEN.
      PERFORM at_sel_scr.
    *&            S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
      PERFORM sel_records.
      PERFORM join_tables.
      PERFORM alv_output.
    * CLASS lcl_event_receiver DEFINITION
    CLASS event_class DEFINITION.
    *Handling double click
      PUBLIC SECTION.
      METHODS:
        handle_double_click
        FOR EVENT double_click OF cl_gui_alv_grid
        IMPORTING e_row e_column.
    ENDCLASS. "lcl_event_receiver DEFINITION
    * CLASS lcl_event_receiver IMPLEMENTATION
    CLASS event_class IMPLEMENTATION.
    METHOD handle_double_click.
      case e_column.
        when 'MATNR'.
          read table it_final into wa_final index e_row-index.
          set parameter id 'MAT' field wa_final-matnr.
          call transaction 'MM03' and skip first screen.
       endcase.
    ENDMETHOD.           "handle_double_click
    endclass.
    *       CLASS lcl_alv_toolbar DEFINITION
    *       ALV event handler
    CLASS lcl_alv_toolbar DEFINITION.
      PUBLIC SECTION.
    *Event for toolbar
        on_toolbar
           FOR EVENT toolbar
           OF  cl_gui_alv_grid
           IMPORTING e_object e_interactive,
      handle_user_command
            for event user_command of cl_gui_alv_grid
                importing e_ucomm.
    endclass.
    *       CLASS lcl_alv_toolbar IMPLEMENTATION
    *       ALV event handler
    CLASS lcl_alv_toolbar IMPLEMENTATION.
    METHOD on_toolbar.
    *   Add customized toolbar buttons.
    *   variable for Toolbar Button
        clear ty_toolbar.
        ty_toolbar-icon      =  icon_create.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'CREATE'.
        APPEND ty_toolbar TO e_object->mt_toolbar.
        clear ty_toolbar.
        ty_toolbar-icon      =  icon_change.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'UPDATE'.
        APPEND ty_toolbar TO e_object->mt_toolbar.
        clear ty_toolbar.
        ty_toolbar-icon      =  icon_system_save.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'SAVE'.
        APPEND ty_toolbar TO e_object->mt_toolbar.
    ENDMETHOD.                    "on_toolbar
    method handle_user_command.
    case e_ucomm.
        when 'CREATE'.
        when 'UPDATE'.
    endcase.
    endmethod.                           "handle_user_command
    ENDCLASS.            "lcl_event_receiver IMPLEMENTATION
    *&      Module  STATUS_2008  OUTPUT
    *       text
    MODULE status_2008 OUTPUT.
      SET PF-STATUS 'MENU1'.
      SET TITLEBAR 'TITLE1'.
    ENDMODULE.                 " STATUS_2008  OUTPUT
    *&      Module  alv_display  OUTPUT
    *       text
    MODULE alv_display OUTPUT.
      IF cust IS INITIAL.
    *    Creating object of container
        CREATE OBJECT cust
        EXPORTING
          container_name              = 'CUSTOM'.
    *    Creating object of alv
        CREATE OBJECT alv
          EXPORTING
            i_parent          = cust.
    ** create ALV event handler
    *  CREATE OBJECT c_alv_toolbar
    *    EXPORTING
    *      io_alv_grid = alv.
    create object c_alv_toolbar.
    * Register event handler
      SET HANDLER c_alv_toolbar->on_toolbar FOR alv.
      set handler c_alv_toolbar->handle_user_command for alv.
    *    alv layout
        PERFORM alv_layout.
    *    alv field catalogue
        PERFORM fieldcatalog_display.
    *    Displaying the ALV grid
        CALL METHOD alv->set_table_for_first_display(
          EXPORTING
            is_layout                     = wa_layout
          CHANGING
            it_outtab                     = it_final
            it_fieldcatalog               = it_fcat ).
    *Create object of the event class and setting handler for double click
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_double_click FOR alv.
    ENDIF.
    ENDMODULE.                 " alv_display  OUTPUT
    *&      Module  USER_COMMAND_2008  INPUT
    *       text
    module USER_COMMAND_2008 input.
      case ok_code_2008.
        when 'EXT'.
          leave program.
        when 'BCK'.
          leave to screen 0.
        when 'UP'.
          leave program.
      endcase.
    endmodule.                 " USER_COMMAND_2008  INPUT
    *&                E N D   O F   M A I N   P R O G R A M
    *&      Form  initial
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM initial .
      CLEAR: wa_vbak,
             wa_vbap,
             wa_final.
      REFRESH: it_vbak,
               it_vbap,
               it_final.
    ENDFORM.                    " initial
    *&      Form  at_sel_scr
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM at_sel_scr .
      SELECT vbeln
        INTO TABLE it_vbak
        FROM vbak
        WHERE vbeln IN ss_vbeln.
      IF sy-subrc <> 0.
        MESSAGE e000.
      ENDIF.
    ENDFORM.                    " at_sel_scr
    *&      Form  sel_records
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sel_records .
      SELECT vbeln
             erdat
             vkorg
             spart
      INTO TABLE it_vbak
      FROM vbak
      WHERE vbeln IN ss_vbeln.
      IF sy-subrc <> 0.
        MESSAGE e000.
      ENDIF.
      SELECT vbeln
             posnr
             matnr
             netpr
             netwr
      INTO TABLE it_vbap
      FROM vbap
      FOR ALL ENTRIES IN it_vbak
      WHERE vbeln = it_vbak-vbeln.
      IF sy-subrc <> 0.
        MESSAGE e000.
      ENDIF.
    ENDFORM.                    " sel_records
    *&      Form  join_tables
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM join_tables .
      SORT it_vbak BY vbeln.
      SORT it_vbap BY vbeln posnr.
      LOOP AT it_vbap INTO wa_vbap.
        READ TABLE it_vbak INTO wa_vbak WITH KEY vbeln = wa_vbap-vbeln
        BINARY SEARCH.
        wa_final-vbeln = wa_vbak-vbeln.
        wa_final-erdat = wa_vbak-erdat.
        wa_final-vkorg = wa_vbak-vkorg.
        wa_final-spart = wa_vbak-spart.
        wa_final-posnr = wa_vbap-posnr.
        wa_final-matnr = wa_vbap-matnr.
        wa_final-netpr = wa_vbap-netpr.
        wa_final-netwr = wa_vbap-netwr.
        APPEND wa_final TO it_final.
        CLEAR wa_final.
      ENDLOOP.
    ENDFORM.                    " join_tables
    *&      Form  alv_output
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM alv_output .
      CALL SCREEN 2008.
    ENDFORM.                    " alv_output
    *&      Form  alv_layout
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM alv_layout .
      wa_layout-grid_title = 'SALES ORDER'.
      wa_layout-zebra = 'X'.
    ENDFORM.                    " alv_layout
    *&      Form  fieldcatalog_display
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fieldcatalog_display .
    *  IT_FINAL-VBELN.                    SALES ORDER NUMBER
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='2'.
      wa_fcat-fieldname ='VBELN'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = 'X'.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='SALES ORDER NO.'.
      wa_fcat-outputlen   = 15.
      wa_fcat-ref_table ='VBAK'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-POSNR.                    SALES ITEM NUMBER
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='3'.
      wa_fcat-fieldname ='POSNR'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = 'X'.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='SALES ITEM NO'.
      wa_fcat-outputlen   = 15.
      wa_fcat-ref_table ='VBAP'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-ERDAT.                    DATE ON WHICH DOCUMENT WAS CREATED
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='4'.
      wa_fcat-fieldname ='ERDAT'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='DATE OF CREATION'.
      wa_fcat-outputlen   = 10.
      wa_fcat-ref_table ='VBAK'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-VKORG.                    SALES ORGANIZATION
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='5'.
      wa_fcat-fieldname ='VKORG'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='SALES ORG'.
      wa_fcat-outputlen   = 10.
      wa_fcat-ref_table ='VBAK'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-SPART.                    DIVISION
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='6'.
      wa_fcat-fieldname ='SPART'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='DIVISION'.
      wa_fcat-outputlen   = 10.
      wa_fcat-ref_table ='VBAK'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-MATNR.                    MATERIAL NUMBER
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='7'.
      wa_fcat-fieldname ='MATNR'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='MATERIAL NUMBER'.
      wa_fcat-outputlen   = 20.
      wa_fcat-ref_table ='VBAP'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-NETPR.                    NET PRICE
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='8'.
      wa_fcat-fieldname ='NETPR'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='NET PRICE'.
      wa_fcat-outputlen   = 15.
      wa_fcat-ref_table ='VBAP'.
      APPEND wa_fcat TO it_fcat.
    *  IT_FINAL-NETWR.                    NAET VALUE
      CLEAR wa_fcat.
      wa_fcat-col_pos  ='9'.
      wa_fcat-fieldname ='NETWR'.
      wa_fcat-tabname  ='IT_FINAL'.
      wa_fcat-key      = ' '.
      wa_fcat-just     = 'L'.
      wa_fcat-hotspot  = ' '.
      wa_fcat-lzero    ='X'.
      wa_fcat-seltext ='NET VALUE'.
      wa_fcat-outputlen   = 15.
      wa_fcat-ref_table ='VBAP'.
      APPEND wa_fcat TO it_fcat.
    ENDFORM.                    " fieldcatalog_display
    Regards,
    Darpana.
    Edited by: Darpana Ahire on Dec 3, 2008 7:10 AM
    Edited by: Matt on Dec 4, 2008 12:04 PM - added  tags

    im99_chs wrote:
    I have created a package with some functions in it.Keep in mind that these functions requires PL/SQL code to be executed. Thus it needs a context switch from the SQL engine (executing your view code) to the PL/SQL engine (to do the function call).
    This may work fine for smaller data sets. But it does not scale well as context switches are expensive operations with inherent latency. The more switches there are, the bigger the execution time chunk required for context switching.
    The ideal is to rather use SQL to perform the work of the function. SQL code can implement if-then-else logic via the DECODE() SQL function and SQL CASE command. Analytical functions can be used for complex aggregation and calculation.
    If a user define (PL/SQL) function is needed, then ensure that the function is as fast as possible (minimal moving parts), and consider defining it as a deterministic function if the same input always produces the same output.

  • Questions on Commands for planning application

    Hi,
    1. Where can i get the information on commands for planning functions?
    2. What is the difference between
    ---Execute planning function simple and -
    Execute planning function
    3. I create planning layout with few buttons
    a. Copy: I clicked on the copy button and can see the data in the layout
    b. Save: Clicked on the save icon, Data saved into the planning cube
    c. Change. : clicked on the change and changed few values and then clicked on SAVE button. Data got saved into my planning cube.
    Now I my requirement is when user open the planning layout, It should only be in display mode. But currently automatically all the keyfigures are in change mode (Is it because in query designer, I checked "Start query in the change mode?)
    When user opens the planning layout, he should run the copy function, then should save the data into the planning cube and then should be allowed to chagne. Change button should be in active until data is saved into the plannigng cube. IS this possible?
    Thanks
    Annie

    Hi Deepthi,
    Thanks for your reply.
    I did as you mentioned and its working as expected.
    User wants something like this
    1. Execute the planning layout.
    2. Click on the copy function
    3. Save the data
    4. Click on the change button so that data can be changed now.
    As per your solution, without have change button its working perfectly. But now i want to have change button on the layout. Initially change button should be disabled. When i save the data then it should get active.
    I did the following things but didnt work
    1. Save button i have two commands
    a. Save data
    b. Set_item_parameters
    2. Change button> disable>set_data_entry_mode.
    After executing the layout. I could copy the data and save it. BUT after saving it change button is not getting active.
    I think i did do something in save button (B). I just mentioned button group but didnt mention the change button. Can you please help me?
    Thanks
    Annie

Maybe you are looking for

  • Background Job Error

    I am defining background job in abap report i am facing the below error     Printer not suitable for job step; automatic output not possible. Kindly suggest Immediately, Best Regards, kalees

  • How many machines can i put CC on?

    I have a Mac which has CC on it and i have just bought a laptop to take with me when on holiday I put cc on the new laptop and found that the laptop is faulty, I uninstalled it and want to put it on the replacement laptop will this be ok or do i need

  • In Business content activation

    Hi, What is 1. In data flow before? 2. In data flow Afterwards? 3.Before and afterwards? Why we are using this? While doing best practice in the documentation it is given as to choose " in data flow before", what is the purpose? Can anyone explain...

  • Can you extract the audio from a music video?

    Some of my favorite songs were purchased from Itunes as music videos. (Because they are also my favorite videos.) Now I'm trying to figure out how to move those songs to the iPod +without having to buy the songs as just songs!+ It's been very frustra

  • Adjustment Layers Not Functioning

    I have Photoshop CS6 and suddenly I am unable to use adjustment layers. I've been using Photoshop for over 15 years, and the procedure has always been the same; create an adjustment layer then click the circle on the left of that layer, and a dialog