How to create a ICWC "Cancel" function?

Hello all.
Our call-centre users have a large database of historical data which they frequently execute inefficient searches on in the ICWC. In order to avoid keeping their callers on the line waiting for the search to time-out, we need to give them an option to cancel the search they have just executed in error. Is it possible to put some button on the ContextAreaView - alongside the "End" button? The system doesn't seem to react (via DO_HANDLE_EVENT) to the user hitting the existing "End" button while a search is in progress.
Any ideas?
Regards,
Alex.

hi Alex,
"End" button would not end your search but you can implement a button adjacent to it in the same area (as only that area can have the click functionality while the search is going on).
The button which you implement should take care of ending the search process explicitly.
regards,
Abhishek !

Similar Messages

  • How to create and execute a function whose return value is  a table

    hi folks ,
    i would like know how to create and execute a function whose return value is a table ,
    am new to pl/sql ,
    my statement for the function is
    SELECT ct.credential_code, c.expiration_date
    FROM certifications c, credential_types ct
    WHERE ct.crdnt_id = c.crdnt_id
    AND c.person_id = person_id;
    i would like to have the result of the above query as return value for the function.
    Thanks in advance ,
    Ashok.c

    hi Ps ,
    Can you please do small sample ,
    that would help me in clear understanding
    thanks in advance
    ashok.c

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

  • How to Create a Remotely Enabled Function Module

    Hi All,
    How to Create a Remotely Enabled Function Module.
    I Want to Create a FM Using Sample Data , This for Practice
    What Fields can i give in the Import and Export Parameters.
    Please Give me one Example
    Can Any one Give me the Steps to do this.
    Regards
    Vamsi

    Hi Vamsi,
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & <b>check the pass value</b> (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & <b>check the pass value</b>
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & <b>check the pass value</b>
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination '<b>XXXXXX</b>'
      exporting
        p_num1 = 10
        p_num2 = 15
      importing
        p_tot = tot.
    write tot.
    please note that <b>XXXXXX</b> is RFC connection which is avialable in <b>sm59</b> transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of <b>XXXXXX</b> in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    Regards,
    Sukhee

  • ActionsScript 3 how to create on key down function?

    Ok so I understand that you make an event listener and an
    event handler, but I do not understand how to create a function
    were I can hold down a key and the object keeps moving until the
    key is up.
    With the following function it only moves it every time I
    press a certain key. I need to move while the key is held down
    until released. I looked around with google and couldn't really
    find anything other than how to do this in AS2, which isn't
    helpful. Please help! :D
    stage.addEventListener(KeyboardEvent.KEY_DOWN, jumpEvent);
    private function jumpEvent(event:KeyboardEvent):void
    if(event.keyCode == 17)
    nissanZ.x += 10;

    hey thanks a bunch vario pegged!
    its working pretty well :D

  • How to create a user_defined grouping function?

    I need to create a user_defined function and use it in my sql statement.
    I know the user_defined function can be used anywhere the build-in function can be used.In oracle,there are grouping functions.
    How can I create a user_defined grouping function and I can use it in my sql statement.

    Hi, can you explain exactly what you are trying to achieve:
    SQL> create or replace function my_func return number as
      2  begin
      3    return 5;
      4  end;
      5  /
    Function created.
    SQL> select deptno,my_func(),max(sal)
      2  from emp
      3  group by deptno,my_func()
      4  /
        DEPTNO  MY_FUNC()   MAX(SAL)
            10          5       5000
            20          5       3000
            30          5       2850

  • How to create in R/3 functional area hierarchies (0FUNC_AREA_0112_HIER)

    Hi all,
    First of all, thank you for your time, any help would be really appreciated and some points will be asigned to helpful answers.
    Now my little problem...
    We need to have in BW Functional Areas hierarchies.
    To do that I have activated 0FUNC_AREA_0112_HIER from bc. The problem is that there aren´t any functional areas structures defined in R/3 for the moment.
    I've been doing some tests creating structures in R/3, transaction SPRO, "Define finantial statement versions", but when I try to upload them to bw, they don't appear in the hierarchy flow of 0func_area infoobject but in 0gl_account, despite I have filled the flag of "assignment of functional areas is permitted".
    Also in R/3, when I run transaction SE38, program RSA1HCAT, Datasource with hierarchy type=0FUNC_AREA_0112_HIER, an error message is displayed: "No hierarchy catalog in the source system".
    That means they are not func area structures but GL account structures defined in R/3. Nobody in my team knows how to create these kind of structures so that I can load them as 0func_area hierarchies.
    Could you help me please?
    Thank you very much,
    JuliaM

    Hi Julia,
    Got the same issue with trying to create/load the functional area hierarchy.
    Don't know if this helps but if you want to use the hierarchy as defined by the financial statement version, use the hierarchy on the IOBJ 0GLACCEXT - Financial Statement Item.
    Setup as follows:
    IOBJ: 0GLACCEXT
    Hier: 0GLACCEXT_T011_HIER
    Text: 0FUNC_AREA_TEXT and 0GL_ACCOUNT_TEXT
    I'll be monitoring your thread for an answer if your initial issue. If you find a solution elsewhere it would be great if you could post it here. Thanks!
    Best Regards,
    Anders

  • How to create "moveUp" and "moveDown" functionality for items in a TileList

    I want to create "Move Up" and "Move Down" buttons for items in a TileList. They should have the same functionality as if they were dragged and dropped, except only moving one position up or down (and thus switch places with the item above/below). I have tried this using this code for the moveUp button:
    private function moveItemUp(){
         var moveFromPos:Number = myTileList.selectedIndex;
         if(myTileList.selectedIndex > 0){
              var moveToPos:Number = myTileList.selectedIndex-1;
              var tempItem:Item = myTileListDataProvider.removeItemAt(moveFromPos);
              myTileListDataProvider.addItemAt(tempItem, moveToPos);
                    trace("New selected Index: "+ moveFromPos - 1);
                    myTileList.selectedIndex = moveFromPos - 1;
                    trace("New selected Index: "+ myTileList.selectedIndex);
    But my problem is that the selectedIndex of myTileList isn't correctly set. For instance; if I have a list of three items and I move the last item up this is what happens:
    1. Item three (selectedindex is 2) switches places with Item two (So far, so good)
    2. Item two is shown in GUI as selected (has Halo around it - so far, so good)
    3. If i click "MoveUp" again, the same two (item three and two) switces places, instead of the intended item two and one.
    The traces tell me that myTileList.selectedIndex variable isn't set correctly as the trace shows this:
    New selected Index: 1
    New selected Index: 2
    Any idea on how to solve this problem?

    I found a partial solution at http://www.ultrashock.com/forums/flex/tilelist-selected-element-removed-124313.html and modified it a bit. The answer was using the callLater() method as in this example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp()" layout="vertical">
      <mx:Script>
      <![CDATA[
          import mx.events.FlexEvent;
          import mx.collections.ArrayCollection;
          var arr:ArrayCollection = new ArrayCollection();
          var temp:Number;
          var temp2:String;            
          private function initApp():void{                   
              arr.addItem("A");
              arr.addItem("B");
              arr.addItem("C");
              arr.addItem("D");
              arr.addItem("E");
              arr.addItem("F");
          public function traceEvent(event:FlexEvent):void{
              trace(event);
              trace(mtl.selectedIndex);
              if(mtl.selectedIndex==-1){
                  callLater(setInd);
          private function setInd():void{
              trace("Changing selected index..");
              mtl.selectedIndex = temp;
          public function removeItem():void{
                temp = mtl.selectedIndex - 1;
                temp2 = arr.removeItemAt(mtl.selectedIndex) as String;  
                arr.addItemAt(temp2,temp);                
          public function notifyChange(e:Event):void{
              trace("CH mtl.selectedIndex:" + mtl.selectedIndex);
      ]]>
      </mx:Script>
      <mx:TileList id="mtl" width="100" height="200" dataProvider="{arr}" columnCount="1" change="notifyChange(event)" updateComplete="traceEvent(event)"/>
      <mx:Button id="mbt" label="delete" click="removeItem()"/>
      </mx:WindowedApplication>

  • How to create delta extraction through function module?

    Hi all,
    So far i have created the data source through full load. But currently i would like to convert the couple of function module generic extraction converted through delta.
    Can anyone let me know how to convert from full load to delta using generic extraction
    thanks

    Hi,
    Try these Links, helps u in getting an idea.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aefb04-7043-2c10-8e92-941536eebc79?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f1a423-02ae-2e10-bd85-bde64e61fe7b?QuickLink=index&overridelayout=true&51947629650864
    Regards,
    Aravind.

  • How to create 'service' tier with functionality multiple struts apps

    I am looking for some advice regarding a future project. I have 3 struts webapps (running on Tomcat 4.1.3) each with some overlapping functionality. I would like to create a 'service tier' to accommodate common functionality which can be shared between the 3 struts web apps.
    What framework would best achieve this? Are EJBs the way to go? My struts apps all use DTOs so are not tied to the Action Form object. I have been looking at Spring but am not sure exactly how this will fit? Will tomcat serve my needs or do I need to migrate to something with full J2EE support. I have also considered JBOSS with Seam linking JSF to EJBs. Is this a viable option?
    The service layer can be on the same machine as the struts apps although I would like to have the flexibility to move it to a separate server in the future if necessary.
    I will be happy to provide more details to any who can offer me some guidance.

    Hi Saish,
    Thanks for your help.
    I have considered both options. The main goal is to
    eliminate duplicate code. However the presentation
    tiers of the applications are quite different. I
    will look into Martins book.
    It's outstanding. One of my top five favorite books.
    Would creating a jar file which is included in each
    .war end up becomming a maintenance nightmare?
    Depends on what you mean by ' maintenance'. In terms of onging development with your Java source, in a modern IDE, no. In terms of deployment, it does add a minor bit of complexity. However, if you are using an automated build and deployment tool such as Ant or Maven, the amount of extra work is trivial.
    In your opinion what would be the advantages of
    implementing the common functionality as a seperate
    tier (with SPRING/EJB) vs using a JAR file and
    distributing it with each app?They are not mutually exclusive. If you want to remove duplicate code, then simple refactoring is the start. As part of that refactoring, you may decide enough classes are providing similar functionality (such as transaction management, a coarse-grained public API, etc.) and create a tier. You mentioned in particular a service tier. This is a design and architectural decision. You could still completely refactor common functionality into a better design without the introduction of a new tier.
    Whether to create a tier is, IMO, more art than science. Adding a tier adds complexity. However, the net effect should be to reduce system complexity. It is more 'work' to implement a true persistence tier than to simply code JDBC in model objects (or use Hibernate/JDO objects). However, as overall system complexity grows, the addition of a persistence tier adds many benefits. Business objects concern themselves solely with business logic, where as data acccess objects concern themselves with persistence. You can even have different developers with different skills specialize within a tier.
    So, tiering really is a big topic. Fortunately, there are many architecture templates and design patterns to guide your decisions. "Patterns of Enterprise Architecture" (also by Fowler) compares and contrasts the more common ones. There is lively debate as to the pros and cons of different strategies. In the end, there is no cookie-cutter architecture. You will need (sometimes through the painful process of making a mistake) to see what works best for your actual system.
    Finally, about remoting. Remember the first law of distributed objects, "Don't distribute your objects". There is always a performance penalty compared to an in-JVM local call. Remoting has its uses, but these should be careful architecture-level decisions. (I should concded that even this paragraph is sometimes contentious and debated).
    - Saish

  • How to create material(mm01)  through function module or bapi

    Hi,
        this is kiran iam sap fresher.

    Hi,
    try this
    *& Report ZKAR_MATMAS_BAPI
    *& This program demonstrates how easy it is to create Material master
    *& data using BAPI_MATERIAL_SAVEDATA
    *& The program also generates a report post-execution displaying errors
    *& as well as successful uploads
    REPORT ZKAR_MATMAS_BAPI.
    * TABLES
    * FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    * DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    * STRUCTURES & INTERNAL TABLES
    *BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
                WERKS(4), " Plant
                MTART(4), " Material type
                MATNR(18), " Material number
                MATKL(9) , " Material group
                MBRSH(1), " Industry sector
                MEINS(3), " Base unit of measure
                GEWEI(3), " Weight Unit
                SPART(2), " Division
                EKGRP(3), " Purchasing group
                VPRSV(1), " Price control indicator
                STPRS(12), " Standard price
                PEINH(3), " Price unit
                SPRAS(2), " Language key
                MAKTX(40), " Material description
                END OF IT_DATA.
    * SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
    'C:\Material_master.XLS'.
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    * AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    * START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    * END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    * Form : validate_input_file
    * Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    * text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    * text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>.
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS>.
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    * To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    * P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    * to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    * Header
        UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    * Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
        BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    * Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
    * Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    * VALUATIONDATA = BAPI_MBEW1
    * VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS

  • How to create Drop-Down with Function Module REUSE_ALV_GRID_DISPLAY

    Hi Experts,
    I have used Reuse_alv_grid_display function module in my report for ALV output. I have a requirement to add drop down in one cell of my output. I have searched but all are suggesting through OOPS programing that I can not use.
    If it is possible with the given scenerion , please help me how to write the code for it?
    Thanks a bunch in advance.

    Hi,
    You can check demo programs:
    BCALV_EDIT_06
    BCALV_EDIT_07
    Hope it helps
    Regards
    Mansi

  • How to create an own dropdown function in the ALV toolbar?

    Dear experts,
    I follow the sap.help.com and try to create a dropdow as an own fucntion the the toolbar of an ALV.
    My codes are as following:
    DATA:  lo_dropdown TYPE REF TO CL_SALV_WD_FE_DROPDOWN_BY_IDX,
                lo_dropdown_func  TYPE REF TO CL_SALV_WD_FUNCTION
                lo_value  TYPE REF TO  CL_SALV_WD_CONFIG_TABLE.
    lo_value = ir_interface_controller->get_model( ).
    CREATE OBJECT lo_dropdown EXPORTING texts_elementname = 'DROPDOWN'.
    lo_dropdown_func = lo_value->if_salv_wd_function_settings~create_function( id = 'DROPDOWN' ).
    lo_dropdown_func->set_editor(  lo_dropdown ).
    lo_dropdown->set_enabled.
    I also set an external Context-Mapping to the Context-node FUNCTION_ELEMENTS of ALV-Interfacecontroller.
    But now I get an error message "The ASSERT condition was violated"
    The error position has the following code and comments:
    " Context Path contains no multiple node
         assert 1 = 2
    Could you please tell me, how could I fix this bug?
    Thanks a lot!
    Regards,
    meer

    >** " Context Path contains no multiple node
    From this statement I'm guessing that the context node that the DropDownByIndex editor is bound to isn't a multiple node (1:n or 0:n).  A byIndex gets its allowed values in the drop down from the elements in a context node. Therefore it doesn't make sense to bind a byIndex to a 0:1 or 1:1 context node.

  • How to create an array of functions

    normally I use
    repository.getFunctionTemplate(functionName);
    to get a function object.
    Is there a way to get an array of function objects for a function name.
    I am trying to execute multiple functions in the same connection to reduce calls for logging on and off for each call.
    Thanks,
    Aditya Pandit

    Hi Aditya,
    From
    <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/jc/com/sap/mw/jco/IFunctionTemplate.html">JavaDoc</a>:
    <i>getFunction
    public JCO.Function getFunction()
    <b>Creates</b> a function object from the template and returns it
    Returns:
    the function created from the template
    </i>
    So, you can reuse function template to create multiple fuctions.
    Best regards, Maksim Rashchynski.

  • How to create table maintence  with function group

    plz send me replay.
    urgent.

    Hi,
    Refer this:
    1.
    Create Maintenance Dialog 
    To generate the maintenance dialog for a table or view:
    Choose Development ® Other tools ® Gen.tab. maint. dialog. You go to the maintenance transaction initial screen.
    Enter the name of the table or view.
    Choose Generated objects.
    Choose Create/Change.
    Confirm the maintenance module creation prompt.
    Enter the generation data:
    – Maintenance module function group
    You can put maintenance modules for several tables or views in a function group.
    – Authorization group
    – Maintenance type (one/two-level)
    – Maintenance screen numbers
    – Recording routine (standard/individual or none)
    Choose Create. All components required are generated.
    When a maintenance dialog is generated, an entry with an object list is created in the maintenance object description table. All tables involved are in this object list.
    http://help.sap.com/saphelp_nw04/helpdata/en/a7/513477407a11d1893b0000e8323c4f/frameset.htm
    2. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
    3. Important : u must activate Function group before generating table maintainance.
    Jogdand M B

Maybe you are looking for

  • Conversion of 1.2 JATO project (non-Forte IDE) to S1AF (JATO) 2.0

    JATO Team, First of all, thank you very much for the Studio integration. It looks very promising in terms of development time consumption, deployment to S1AS7, etc., etc. It is impossible to observe all advantages for so short period of time. The SOA

  • Adobe Download Assistant stuck on "Extracting"

    Yesterday I tried to download the Creative Suite Master Collection trial for school, I have a key gen license from my school to enter once the trial product is downloaded. Im using a mac book pro Lion 10.7.2. It took a few hours to download and then

  • I AM USING ADOBE FLASH PLAYER AND SILVERLIGHT, SHOULD I BE DOING THIS

    My web pages keep flashing in and out, Is my silverlight and adobe flash player causing this problem ?

  • AJAX updating a display item

    I have a input box for a customer number and next to that, a display as text item that I would like to be updated with the Customers Name (from database) when customer number is supplied in the input box. Have tried adapting one or two examples from

  • Windows Printing w/ HP PSC 2175, prints, but settings are weird?

    I have an hp psc 2175 printer connected to a PC computer running on XP on my wireless/wired network. (I have a linksys wireless-g router; i connect wirelessly, and the PC is hooked in through one of the four ports on the back WRT54G). I am trying to