Doubts regarding the 'Append Row' button

Hi Experts,
I have created one ABAP screen. In this ABAP screen I can see 'Append Row' button. I want to know what code is executed after this button is clicked.
Answer of this question is very important. As it will help me in resolving one important query.
The query is mentioned in my other two threads that I have created today.
Thanks in advance
Smith

Hi Vijay,
I have used class CL_GUI_ALV_GRID for creation of the screen. I can see that function = '&LOCAL&APPEND' of method handle_toolbar_set is responsible for creation of this push button.
Regards,
Smith

Similar Messages

  • Have some doubt regarding the  weblog (Lookup's in XI made simpler)

    Hi All,
    I have created the same scenario as mentioned in Siva's weblog (Lookup's in XI made simpler).
    I having some doubts regarding the scenario, it will be great if you help me to resolve the same.
    I am having a file-file scenario where I need to do lookup in database(MS-Access)  through mapping.
    The standard file-file scenario is in place and in addition I have created a receiver jdbc channel . I  have also created the receiver agreement for the same in the cofiguration.
    While creating the receiver agreement you have to specify the interface name which includes the message type…I have specified the normal format which we specify while configuring the jdbc receiver adapter.
    In the message mapping I have created a advance user defined function as mentioned in your weblog which calls my receiver jdbc channel.
    I have also specified the select query to be executed in the mapping program.
    While testing I am getting the following error
    Cannot produce target element /ns0:Role_MT/URole. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    <b>Can you please suggest me what all I need to do in addition to the file-file scenario for this lookup scenario to work.</b>
    Thanks and Regards
    Rahul

    Hi,
    Following is my user defined function
    //write your code here
    String Query = "";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    Query = "Select URole from  Lookup where UName = '  " + UName[0] + "  ' and UPassword = '  " + Pwd[0] +" '  ";
    try{
    channel = LookupService.getChannel("DB_service","JDBC_channel_receiver");
    accessor = LookupService.getDataBaseAccessor(channel);
    resultSet  = accessor.execute(Query);
    for(Iterator rows = resultSet.getRows();rows.hasNext();){
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("URole"));
    catch(Exception ex){
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!= null) accessor.close();
    catch(Exception ex){
    result.addValue(ex.getMessage());
    Thanks and Regards
    Rahul

  • Few questions regarding the "Update CMS" button

    Hello,
    Few questions regarding the "Update CMS" button:
    1. When I create new product at the SLD I see it at the add SC table even if I don't click the "Update CMS" button first. If so, when will I use this option?
    2. When I do click the "Update CMS" button it takes it between 30-40 minutes to finish the update. During this time frame the whole development portal (it is sitting on the same WAS as the NWDI) becomes extremely slow. Is this normal response time or do I have a certain performance problem with my server?
    Thank you in advance,
    Roy

    Hello Roy,
    I think that <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/46/6fe3ec58f0477a816b80f182b389e0/frameset.htm">this</a> topic should answer all your questions :).
    Hope that helps!
    Jordan

  • ALV  List Layout add new button  and modify Append Row Button Text and Logi

    Hi All,
    I am working on Employee custom development Application in Webdynpro ABAP>
    In my ALV list Layout  I have to add new  two Buttons  Top or Bottom of the ALV List.
    If I am adding I have to add logic for those Buttons. How to add and add logic for those buttons.
    as well as I have to Change the  Text  for  Existing Button ''Append Row''    to  "ADD NEW ROWS"
    and I have to add logic in this button while Append New Row I have to generate ID no for New Rows .
    Kindly help/advice  me to proceed further.
    Thanks in advance.
    Dav

    Hi Dav,
    To Add buttons please refer this thred,
    ALV with user-defined buttons on toolbar in wd abap
    To change or rename text in ALV standard buttons, please refer this ...
    How can i change the text of an standard button in ALV?
    and also see this article on self defined functions...
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true
    Thanks,
    Kris.
    Edited by: kissnas on Feb 22, 2011 5:59 AM

  • Doubts regarding the CTTYP field after a PU12 run

    Hi Everyone,
    I had some doubts regarding PU12. When I maintain the IT16 data for an employee belonging to Employee Group/Subgroup E/52, I want to keep the contract type blank. However, when I do this, CTTYP is not sent through in the IDoc after PU12 processing. I would like to know if this is standard behaviour. (If it is maintained as say unlimited contract, the field is sent through with the value 01) If I would like to send CTTYP through as 00, can I do it? Would I have to maintain a conversion? As of now, this field is configured as a key field in my system.
    Regards,
    Alpana.

    I presume that you cave a template for your documents with unsigned signature fields. Add a text filed (or other field type that you wish to use) to this template. Then you will be able to fill in this field after signing.

  • Basic doubts Regarding the RFC to File scenario.

    Hi All,
    I'm doing a RFC to File scenario, so before starting the development i went through many blogs and sites to know more the about scenario. I'm confused in the step where we have to create a RFC (type TCP/IP) in sm59.
    I have the following doubts :
    1)whether  to create the RFC in sender (which will be ECC system) or XI.
    i.e., RFC in sender (ECC) pointing to xi system in sm59 of Sender(ECC)
    or
    in XI pointing to sender (ECC) system.
    2) the program id maintained in RFC.
    the program id is any name or the FM which is being imported in XI system.
    Thanks in Advance,
    Kind Regards,
    Lalitkumar.

    Hi Lalitkumar,
    1)whether to create the RFC in sender (which will be ECC system) or XI.
    i.e., RFC in sender (ECC) pointing to xi system in sm59 of Sender(ECC)
    or
    in XI pointing to sender (ECC) system.
      It should be in sender ECC.
    2) the program id maintained in RFC.
    the program id is any name or the FM which is being imported in XI system.
    It can be any name but should be same in RFC destination and RFC adapter.
      As stefen mentioned use ABAP proxy inspite of RFC as its better performance wise.
    Regds,
    Pinangshuk.

  • Doubts regarding the SDN BPM scenerio!

    Hi Experts,
        I was tryin on the BPM scenerio made my Murthy.
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    I have completeted all the steps.
    The communication channels are up and running well. But I simply cant get to the last step.
    In the last step:
    "To monitor Integration process log, go to transaction SXMB_MONI_BPE ->Process Selection->Select corresponding integration process (in Service Field) ->Execute->Select work item."
    I simply cant get to see ANY FIELDS in Process Selection. It is all blank . And when I am putting no selection criteria, and simply executing it, then also it is giving NO VALUES.
    Experts, can u suggest, what step, am I missing, any settings, any step, that I hav skipped.
    PS.
    I hav checked each step thoroughly.
    I hav avtivated all items.
    Regards,
    Arnab.
    I am also getting an error in SXMB_MONI:
    <SAP:Stack>No receiver agreement found for sender -BS_FILE_BPM to receiver -IP_File_to_File,urn:bpm_am.MI_FILE_to_BPM_ABS</SAP:Stack> .
    Pls comment Experts:
    Regards,
    Arnab
    Edited by: Arnab Mondal on Jan 6, 2009 7:14 AM

    >
    > "To monitor Integration process log, go to transaction SXMB_MONI_BPE ->Process Selection->Select corresponding integration process (in Service Field) ->Execute->Select work item."
    >  I simply cant get to see ANY FIELDS in Process Selection. It is all blank . And when I am putting no selection criteria, and simply executing it, then also it is giving NO VALUES.
    You will see that only if the BPM was executed. Seems your BPM is not executed yet. In SXMB_MONI, for the entry of your process, do you see a column with PE ? if so try clicking and drilling down
    > I am also getting an error in SXMB_MONI:
    > <SAP:Stack>No receiver agreement found for sender -BS_FILE_BPM to receiver -IP_File_to_File,urn:bpm_am.MI_FILE_to_BPM_ABS</SAP:Stack> .
    have you created the receiver agreements?
    there will be two receiver agreements;
    1. from sender system to BPM.
    2. BPM to receiver system.

  • Doubts regarding the filters

    Hi All,
          I am creating a qurey in the BEx Analyzer in BI 7.0 which consists of some dropdown boxes for materials and sales organisation.
          My requirement is this:
                 If I select the particular material (Ex: M100), only the sales organisations which are availble for the material should have to be displayed.
         Pls give me ur valuable suggestions regarding this problem.
    With Regards,
    Yokesh.

    Dear Yokesh,
    Restirct the Material with the particular Material number (Ex: M100).
    or
    Restrict the Material with a Variable.
    Create a Char variable on Material : Give value  (Ex: M100), only the sales organisations which are availble for the material would be displayed.
    Regards,
    Ram.

  • I have doubt regarding the byte to integer conversion.

    In java card epurse application the output we see is in bytes.to convert this byte to integer which is understandable by the end-user what should be done?

    809295 wrote:
    In java card epurse application the output we see is in bytes .
    to convert this byte to integer which is understandable by the end-user what should be done?What do you mean by we ?
    How many bytes ?
    On a java card platform support for integer is optional, you may only have short.
    I assume by understandable by the end-user you mean display as a sequence of decimal digits ?
    So two bytes 0x04 0xd2 (combined to a short 0x04d2 which is 1234 decimal)
    should be presented to the user as 0x31 0x32 0x33 0x34 (ascii values for '1' '2' '3' '4').

  • A doubt regarding the usage of Reflection

    There are several classes A, B, C, D,.... in a package.
    A, B, C & D are generic names given to the java files inside the package.
    They actually indicate files selected by the user during run-time.
    A a = new A();
    B b = a.getB();
    C c = b.getC();
    D d = c.getD();
    int count = d.getCount();
    a.getB() returns an instance of B.
    similarly with getC() & getD() too.
    The classes indicated by A, B, C & D are selected by the user.
    So, I need to use reflection to implement the above 5 statements.
    How do I go about doing this?
    Thanks

    Basically to create an instance of a dynamic class:
    Class cl = Class.forName(myClassName);  // get class
    for name
    Object o = cl.newInstance();  // create an instance
    the above code works fine, if Iam dealing with a single class.
    But my problem is Class A returns an object of Class B
    which I need to use to get an Object of class C and so on until I get the required data to be parsed form the XML document.
    When I invoke a method in Class A, it returns an object(of class B, which I need to use to invoke a method in class B) and so on to get the final value.
    I have a large XML document as shown below, which I need to parse.
    !-- an xml document -->
    <Element A>
       <Element B>
          <Element P>
             Some data for Element P
          <Element Q>
             Some data for Element Q
          <Element R>
       </Element B>
       <Element C>
       <Element D>
       <Element E>
    </Element A>I have a class that represents the whole document with the main elements in it. (Class A representing the whole document along with objects representing the main Elements B, C, D & E)
    Each element in turn has its own class which are necessary to access the sub-elements of it. (Class B representing Element B and also including Element P & Q)
    If I want to parse a specific part of the document(if i need to get the data in Element P), I need to get the Element B from a Class A and use that Object representing Element B to get Element P and then use it to get the required data.
    Each class returns a part of the document and as you use the classes(and the returned part of the document), we narrow down to the required region to get the data.

  • Read the Home Row button/shortcuts can be configured

    i forget where i read it, but i cant find it in the manual or doing a search of the forums. is this possible and how.
    would like to replace the iTouch Store, with either Contact's, or Calender

    Apple does not repair devices, they replace them.
    Go here select your country then Express Replacement Service and select "My iPhone is not under warranty" for pricing information.

  • Appending rows in ALV Grid

    Hi all,
      I am using CL_GUI_ALV_GRID to create an ALV grid.
    I set some fields to be editable.When I tried to use the APPEND ROW button in the tool bar it is showing a popup where i get the error message
    <i><b>Unit validity period: Enter a valid value.</b></i>
    the field unit validity period is having fixed values in the domain.
    the message is coming because when a new row is inserted the value of the field unit validity period is blank and blank value is not there in the fixed values of the domain.
    ideally when a new row is inserted the initial value will be blank and later on the user enters the correct value.but the system is throwing a popup and is not allowing to proceed further.
    Can any one help on how to handle this.

    Hi,
    Try setting AUTO_VALUE in your field catalog to 'X' for the fields in question, but I don't think that's going to work for you as you want the field to be empty. To achive the result you want, you will probably need to trap and remove the error message in the DATA_CHANGED event.
    See program BCALV_EDIT_04 for an example of defaulting values when a new row is added.
    MJ

  • Doubt's regarding the Hierarchial Queries in Oracle

    Hi,
    i have a doubt regarding the Hierarchial Queries in Oracle.
    SELECT * FROM TMP_TEST;
    ID     NUMVAL     STRVAL
    1     100     Hello
    1     -100     World
    2     1     Concatenate
    2     2     In String
    2     3     using Connect By
    2     4     Using SYS_CONNECT_BY_PATH
    i am clear with my execution of IN_Line view (mechanism how it work's) .
    But i have also read about the Hierarchial queries in the Oracle product documentation's. i am also aware of the
    SYS_CONNECT_BY_PATH , LEVEL & START WITH , CONNECT BY Keywords.
    But i couldnot able to Manually work out as how this below Query works.
    Can you please explain me how this Hieracial query works ?
    SELECT ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
    FROM
    SELECT ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
    COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
    FROM TMP_TEST
    START WITH RNUM = 1
    CONNECT BY PRIOR RNUM = RNUM - 1
    Many Thanks,
    Rajesh.

    Hi, Rajesh,
    My first message was in response to your first message.
    In your latest message, the query is:
    SELECT  ID, (SYS_CONNECT_BY_PATH(STRVAL,',')),LEVEL
    FROM    (
            SELECT  ID,STRVAL,ROW_NUMBER() OVER(PARTITION BY ID ORDER BY ID) RNUM,
                    COUNT(*) OVER(PARTITION BY ID ORDER BY ID) CNT,NUMVAL
            FROM TMP_TEST
    WHERE   RNUM = CNT
    START WITH  RNUM = 1
    CONNECT BY  PRIOR RNUM = RNUM - 1;It looks like you lost the second CONNECT BY condition:
    AND PRIOR ID = IDPut it back: it's important.
    Now you're confused about the output row:
    2    ,Hello,World,using Connect By,Using SYS_CONNECT_BY_PATH   4It doesn't seem to correspond to anything results that you got when you ran the sub-query alone.
    That's because the resutls from your sub-query may change every time you run it, even though the data doesn't change. The ORDER BY clauses in both of the analytic functions do not result in a complete ordering. In fact, they're completely meaningless. It never makes any sense to PARTITON BY and ORDER BY the same value; "PARTITION BY id" means that only rows with the same id will be compared to each other; you might as well say "ORDER BY 0" or "ORDER BY dmbs_random.value".
    The ORDER BY clause of ROW_NUMBER whould reflect that way in which you want the results to appear within each id, for example:
    ROW_NUMBER () OVER (PARTITION BY id ORDER BY UPPER (strval))Note that this is very similar to what was in my first reply.
    In the COUNT function, why do you want an ORDER BY clause at all? Just say:
    COUNT (*) OVER (PARTITION BY id)

  • Row Level PPR in Advanced Table with Add More Rows Button

    <br>
    I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
    Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
    through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
    But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
    I even tried with this code and get NULL for rowReference.
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    In Processrequest()
    String pageName = pageContext.getRootRegionCode();
         Hashtable params = new Hashtable (1);
         params.put ("param1", pageName);
         Hashtable paramsWithBinds = new Hashtable(1);
        paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
        mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
    In ProcessFormRequest() {
    if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))   
          String rowReference = pageContext.getParameter("param2");
        //    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
         Serializable[] parameters = { rowReference };
          am.invokeMethod("handlePositionChangeEvent", parameters);
    <br>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    HI Kumar,
    Answer to your last post is "yes".
    Now to your doubt regarding the code:
    Hi Anna
    I am trying to understand your code.
    FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
    HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    1. What is this i/noOfTlaColSpan ?
    :)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
    Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
    and in PFR u can capture tht as:
    if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
    //your logic to invoke AM method
    2. I believe this HideImgBean would be MessageChoice for me?
    :)Yep ur right
    3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
    I create by adding the transient attributes?
    :)Yep ur right
    4. I cannot understand this code. Could you explain.
    :)Please look at my comments in some of the lines .I have explained wht i am doing
    if(updateIter==null)
    updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
    if(cnt>0)
    updateIter[0].setRangeStart(0);
    updateIter[0].setRangeSize(cnt);
    for(int i=0;i<cnt;i++)
    row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
    String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
    if(RowID.equals(selectFlag))
    //This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
    if(reserveMethod.equals("BINARY"))
    System.out.println("In Binary");
    Boolean bVal= new Boolean("false");
    Serializable sr[]={bVal};
    Class []methodParamTypes = { bVal.getClass() };
    row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
    Boolean bVal1= new Boolean("true");
    System.out.println("bVal1"+bVal1);
    Serializable sr1[]={bVal1};
    Class []methodParamTypes1 = { bVal1.getClass() };
    row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
    break;
    In my AM I am doing this. Am i doing right?:)Yep u r right
    BioPrescribersPVO is the custom VO(extending seeded base VO).
    public void handlePositionChangeEvent(String param)
    OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    String position = (String)row.getAttribute("AttendeeType");
    if (("PRESCRIBER".equals(position)) )
    // BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
    row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
    row.setAttribute("BioPresManagerRender", Boolean.FALSE);
    else
    row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
    row.setAttribute("BioPresManagerRender", Boolean.TRUE);
    } // end handlePositionChangeEvent()
    // Initializing the custom VO
    /*No need to initialize the VO because this is not a PVO(Propeties View object)
    U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
    public void init()
    OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
    if (appPropsVO != null)
    if (appPropsVO.getFetchedRowCount() == 0)
    appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
    appPropsVO.insertRow(appPropsVO.createRow());
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    handlePositionChangeEvent("");
    } // end init()
    Thanks
    Anna

  • Worklist table ponits to the first row after copy row

    Hi experts,
    We have installed ESS BP 1.41 into EP version 7.02. Now we found one issue in the ESS Working Time application screen.
    The screen has an option of copying rows from Worklist Table on top to the bottom table having Weekly/Daily view.
    The problem is if we choose recoreds from the top table and press the button 'Copy Rows' the table gets re-sorted and again points to the first row.
    When there are hundreds of entries in that table, it becomes difficult for the user to see the rows selected for copy immediately after pressing the Copy Rows button.
    Can anyone help to stop this sorting.
    Regards
    Arindam

    Hi Siddharth,
    many thanks for your reply. One doubt in BP 1.41, it is a WD java application, but the note you suggested, talks about the Ehp5 version which is in WD abap. Can you please re check and confirm.
    Regards
    Arindam

Maybe you are looking for