Question re fieldcat "appends" in demo progam BCALV_EDIT_05

I've successfully used the code in this demo program to build an editable ALV with three checkboxes at the beginning of the ALV row (instead of just one, like in the program itself.)
But my question is how SAP knows that the checkbox field goes at the beginning of the row in BCALV_EDIT_05.  I always thought it was the order of the fields in the fieldcat, but it looks like here it's the order of fields in the outtab structure. 
Because the checkbox field is appended to fieldcat, not inserted at the beginning.
Can someone explain what's going on her?  Is SAP getting the order of fields from the outtab definition?
Thanks   ... back later to check for answer(s).
djh

Hi,
If you check the gt_fieldcat table after the insert the checkbox is inserted with value column position as 0
             col_pos    fieldname
         0 |         1 |MANDT                         |              
         0 |         2 |CARRID                        |               
         0 |         3 |CONNID                        |               
         0 |         4 |FLDATE                        |                 
         0 |         5 |PRICE                         |                 
         0 |         6 |CURRENCY                      |                 
         0 |         7 |PLANETYPE                     |                
         0 |         8 |SEATSMAX                      |               
         0 |         9 |SEATSOCC                      |                 
         0 |        10 |PAYMENTSUM                    |               
         0 |        11 |SEATSMAX_B                    |                 
         0 |        12 |SEATSOCC_B                    |                 
         0 |        13 |SEATSMAX_F                    |                 
         0 |        14 |SEATSOCC_F                    |                 
         0 |         0 |CHECKBOX                      | "<<<                 
if you change the posiiton to 15 then check box will display in the last
If you check the code for insert system not providing any column position for checkbox
form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
  data ls_fcat type lvc_s_fcat.
  call function 'LVC_FIELDCATALOG_MERGE'
       exporting
            i_structure_name = 'SFLIGHT'
       changing
            ct_fieldcat      = pt_fieldcat.
*§A2.Add an entry for the checkbox in the fieldcatalog
  clear ls_fcat.
  ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
*            mark it as editable field:
  ls_fcat-checkbox = 'X'.
  ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
  ls_fcat-coltext = text-f01.
  ls_fcat-tooltip = text-f02.
  ls_fcat-seltext = text-f03.
* optional: set column width
  ls_fcat-outputlen = 10.
  append ls_fcat to pt_fieldcat.
endform.
aRs

Similar Messages

  • I found the answer to my question on my own via Demo from Pittsburgh PA thanks restarting the printer and iPad worked thanks

    I asked the question I am unable to print from my iPad 3 since the last update it says printer no longer available with an error code 5809EC well no one directly answered my question so I started looking at other questions that were similar and I found an answer from Demo from Pittsburgh PA his suggestion was to turn off your printer and iPad and restart them, and this worked perfectly.  His answer was in reference to a question asked last march so to others it's ok to seek answers from 7 months ago he was right.

    I like to give credit to where credit is due, thanks again, hopefully this helps others out there too cause apparently many others are having the same problem

  • Minor question / problem with OWB 10gR2 demo tutorial

    Hi, I'm working on the OWB tutorial demo for 10gR2 that was just released, and have a question. At the start of the chapter on "Designing ETL Data Flow Mappings", as part of the workflow manager install instructions, it says to execute the following:
    grant owb_o_rep_owner to owf_mgr;
    I can't find the role owb_o_rep_owner anywhere - should this instead be owb_o_owb_owner?
    Thanks in advance,
    Scott

    One more question - does anyone know how to install the demo / tutorial on a different server? I.e. I've had the DBAs get OWB installed on a QA server, but they are busy and don't have time to do the install of the tutorial. Can I install it remotely some way (note that when I tried, I kept getting errors from OMB saying it couldn't deploy things remotely or something).
    Thx in advance,
    Scott

  • SRM Beginner documentation & demo progam

    Hello,
    I am new to SRM and require as much information as as I can possible get. Is it possible to email me some documentation I can read through?
    Are there any sides for Demo Version on the Internet available to get an idea about the program?
    I basically need to understand the advantages/ disadvantages to other esourcing programs (for example Ariba).
    Many thanks in advance.
    Atanod
    My email ad is [email protected]

    Hi,
    As far as I know about ARIBA SRM it's for E procurement and reverse auction functionality.
    But SAP SRM is basically enhancement of SAP mjaterials management. It offers diff business scenarios viz.
    1. Self service procurement- self procurement of low cost items by employees reliving purchasers for more imp works.
    2. Service procurement - Scenario specialized for services.
    3. Plan driven procurement - scenario where external demands can be worked in EBP sourcing or PO/SA can be sent to suppliers and they can confirm.
    4. Strategic Sourcing - New suppliers can be registered. Bidding can be done with suppliers. Live auction is possible.
    5. Catalog content management - Suppliers catalogs can be uploaded and managed. Supplier's sites can be accessed for procurement.
    6. Spend analysis - BIW can be integrated with SRM for very powerful reporting.
    Also, there are newer submodules coming viz. MDM, PLM, C folders in SAP SRM
    But you need to know about the SAP SRM infrastructure scenarios and SAP technical objects how they work.
    Functionality wise both may be same but when it come to the customization you need to know about the technical things in SAP SRM.
    Ariba is core SRM (E-Procurement and E Sourcing) vendor, and they are in top 2 or 3 in SRM Market. Ariba's spend anlysis capability is its major strength, where as SAP SRM, integration is its major strength.
    Please refer this link, (comparison by Aberdeen group)
    http://www.ariba.com/learningcenter/view_page.cfm?asset_id=325
    and also, you can search in Google, Forrester report for E sourcing vendors, you may get nice information.
    Sent you some useful docs.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Question about array append

    Hi,
    I have a for loop and an array outside the for loop. In each iteration some values are sent to the array.
    For example, after first loop, I send following data to array:
    2 3 4 5
    4 5 6 7
    after the second loop, other data send to array again and will overwrite the former data in array. How can I append the data to the array?
    I try to use "Insert into array.vi", but how to keep the former array's data?
    Thanks.

    You have quite a few options.
    The attached VI (LabVIEW 7.1) shows two possibilities, either building the table (2D string) or building the array (2D DBL).
    (NOTES: If this is in a fast FOR loop it is not useful to update the display inside the loop, simply place the output terminals outside the FOR loop, connected to the shift registers on the right. If you know the final array size and it is relatively big, it is more efficient to initialize the shift register with the full sized array (e.g. filled with zeroes or NaNs), then replace array sections as you go in the loop. This avoids array resizing operations.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    temp_ni_MOD.vi ‏43 KB

  • Log4j question about closed appender error

    Hi all,
    In my company's project, we have used the log4j 1.1.3 for logging. Since in the project, there are a few applications. We have a common properties to state the log4j properties for AppSTDERR(console), AppLogFile and AppNTEventLog. And we also have a properties file for each application. In each proeprties file, we state a different path to the AppLogFile for different application. We use PropertyConfigurator.configure() to configure the properties and use Category.getRoot(). However, sometimes some application's log will log to another application log file. So we decide to change the application properties file like this:
    log4j.category.AppXXX=DEBUG, AppXXXSTDERR, AppXXXLogFile
    log4j.appender.AppXXXLogFile=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.AppXXXLogFile.File=C:\\xxx\\xxx.log
    log4j.appender.AppXXXLogFile.layout=org.apache.log4j.PatternLayout
    log4j.appender.AppXXXLogFile.layout.ConversionPattern=%d{ISO8601} [%-5p] [%t] %m%n
    log4j.appender.AppXXXSTDERR: org.apache.log4j.ConsoleAppender
    log4j.appender.AppXXXSTDERR.layout: org.apache.log4j.PatternLayout
    log4j.appender.AppXXXSTDERR.layout.ConversionPattern: %d{ISO8601} [%-5p] [%t] - %m%n
    We don't use Category.getRoot() and use Category.getInstance("AppXXX") instead. But we sometimes get these errors on console:
    log4j:ERROR Attempted to append to closed appender named [AppSTDERR].
    log4j:WARN Not allowed to write to a closed appender.
    log4j:ERROR Attempted to append to closed appender named [AppLogFile].
    log4j:WARN Not allowed to write to a closed appender.
    We don't know what is the problem. We guess that some common programs will log common messages to AppLogFile and AppSTDERR but we do not open the AppLogFile and AppSTDERR in each application. Is that we have to use Category.getRoot() ?
    Anybody help?
    Raymond

    Do you not need a DatePattern value for the DailyRollingFileAppender? DatePattern being the variable that determines WHEN the logs are rolled.
    If not specified what is the default value? Could not setting this value result in strange behavior?
    These are shots in the dark I know but we are having similar issues. I can't find any documentation on what the default value is of DatePattern if not specified and have no idea what happens if no value is set. At any rate we are going to supply a value for DatePattern and see if it fixes our problem, I'll post the resutls.

  • Question on JTextArea.append(String str)

    Hi All,
    When i provide JTextArea.append("FMTL") it is showing me on the JTextArea but when i give it as
    String item="Viswanadh";
    JTextArea.append(item).this particular statement is remaming blank on the TextArea.
    Any idea why this is happening and is there any other method to be used instead of append.???
    Thanks in advance..
    regards,
    Viswanadh

    class OnApplyFormat implements ActionListener{
         public void actionPerformed(ActionEvent formatevent){
              JComboBox source = (JComboBox) formatevent.getSource();
                   String item =  source.getSelectedItem().toString();
                     System.out.println("Selected Format is:"+item);
                     try
                       if ( item!=null )
                              System.out.println("Format is:"+item);
                     infoarea.append("FMTL");
                   infoarea.append(item);
                     infoarea.append("\r\n");
                   infoarea.append("FMTU");
                   infoarea.append("\r\n");
                   infoarea.append("wait 5");
                   infoarea.append("\r\n");
              else
                   throw new Exception("FormatNotFoundException");
                          }catch(Exception e){
                          e.printStackTrace();
    }That is my code and still i am facing the same FMTL is not getting appended with the item variable.
    Help me in solving this issue.
    Thanks in advance.
    regards,
    Viswanadh

  • Append Parralel question

    Hi,
    I've got a question about the Append Parallel hint. Within a mapping in OWB(warehouse builder) there is a hint APPEND PARRALEL, but the destination/source tables don't have the option parallel enabled. Do i need to enable this option for the tables or is this hint enough to use parallel execution?
    And i want to enable PARALLEL_AUTOMATIC_TUNING parameter for the database, at the moment it's disabled. Is this smart to do?
    regards,
    Osman

    Osman,
    Ossy81 wrote:
    I've got a question about the Append Parallel hint. Within a mapping in OWB(warehouse builder) there is a hint APPEND PARRALEL, but the destination/source tables don't have the option parallel enabled. Do i need to enable this option for the tables or is this hint enough to use parallel execution?The hint is sufficient, you don't need to enable parallelism on object level. But in order to have parallel DML working (for the insert part, parallel query is enabled by default) you need to explicitly enable parallel DML (alter session enable parallel DML).
    And i want to enable PARALLEL_AUTOMATIC_TUNING parameter for the database, at the moment it's disabled. Is this smart to do?Depends on your version. If you're on pre-10g and if you don't know what the different parallel settings of the database mean it might be a good starting point, yes.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to Install Oracle Forms 10g (9.0.4) Demos

    Hi.
    My forms version is :
    Forms [32 bits] Versión 10.1.2.0.2 (Producción)
    Oracle Toolkit Versión 10.1.2.0.2 (Producción)
    PL/SQL Versión 10.1.0.4.2 (Producción)
    I'm trying to install Oracle Forms 10g (9.0.4) Demos. Everything works fine until step 5. I can even access the forms demos home page(changing forms90 to forms). However when i try to access any link, i get the following error:
    404 Not Found Resource /forms90/f90servlet not found on this server
    What's wrong?. I believe forms is pointing to the wrong direction:
    http://mluis:8888/forms90/f90servlet?config=reusable_picklist
    For example to show the tick image on step five on install guide, I have to replace
    http://mluis:8888//forms90/formsdemo/images/tick.gif
    for http://mluis:8888//forms/formsdemo/images/tick.gif
    This is because I don't have a forms90 directory in my Oracle_Home. I changed forms90 for forms in formsdemo.env. But still doesn't work. So my question is
    - Are these forms demos built for my forms version?.
    - If not, what do i have to change in order to make things work. I'm really interested in some special features like PJC, Webutil etc.
    - The configuration is still pointing at a forms90 directory. I need to change it to just forms but don't know which files.
    Thanks in advance ...!

    Hi,
    Have you resolved this issue? I have gotten a bit further.
    You also need to change any f90xxxxxx to frmxxxxxx
    But the servlet cannot seem to find any of the demo forms.
    I assume a path issue, but cannot seem to find it.
    Any clues?
    Thanks.

  • Slow Insert APPEND into Temporary Table

    Hello,
    We did the following test on Oracle11g 11.1.0.7 database:
    create global temporary table test_tab
    as select * from tab1 where rownum <= 1;
    insert into test_tab select * from tab1 where rownum <= 500000;
    commit;
    Elapsed time: 00:00:04.56
    Statistic
    80 recursive calls
    26360 db block gets
    10606 consistent gets
    4729 physical reads
    2543400 redo size
    399 bytes sent via SQL*Net to client
    340 bytes received via SQL*Net from client
    6 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    500000 rows processed
    truncate table test_tab;
    insert /*+ append */ into test_tab select * from tab1 where rownum <= 500000;
    commit;
    Elapsed time: 00:00:09.35
    Statistic
    84 recursive calls
    4900 db block gets
    4738 consistent gets
    4698 physical reads
    1128 redo size
    376 bytes sent via SQL*Net to client
    354 bytes received via SQL*Net from client
    6 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    500000 rows processed
    Note that insert APPEND generates much less redo size: 1128 vs 2543400 . Now the question: why insert APPEND into the temporary table is two times slower than the ordinary insert? Potentially, it should run faster because of lower redo size... Any ideas?

    If you run the truncate / insert / truncate / insert append again are the timings the same ?
    Wondering if the temp tablespace needed to extend for the first append.

  • Flash Backwards Compatibility Question

    Hi,
    About a year ago I created a project using the Adobe Flash 5.5 Demo.
    I need to edit the Flash 5.5 file but my employer only has Adobe Flash 5 so I am not able to edit the 5.5 project using Flash 5.
    Question - Can the Flash 6 Demo open a Flash 5.5 file and re-save it as a Flash 5 document?
    If I download the latest Adobe Flash 6 Demo will I be able to open the Flash 5.5 file and then save it back as a Flash 5 file so I can edit it using my employers Flash 5 version?

    Yes, you can open the file with Flash CS6, and then Save it in format Flash CS5
    FLASH Proffesional CS6 ( Flash Professional 11)

  • Slide edit question

    Hi,
    I know this is proably a very obvious question; I created a
    Captivate demo for showing how to navigate within an application
    and I need to edit at least 5 seconds out of the middle of one
    slide. While waiting for a selected new screen to appear the word
    "processing" flashes. The wait for the new screen is too long. The
    wait during these seconds has no audio so that's not a problem but
    I'd like to know how to edit with or without audio. I've tried HELP
    but could not find anything.
    Thank you for any assistance.

    Hello and welcome to the Captivate forums!
    It sounds like you're trying to edit a Full Motion Recording?
    If so, a very basic editor for Captivate FMRs was made
    available by a member of the Captivate development team.
    It can be found here:
    http://www.adobe.com/devnet/captivate/articles/fmr_editor.html
    Regards,
    John

  • Dialog with Yes/No-questions of various length

    Hi all,
    a dialog shall be created,where the user has to answer to questions with „Yes“ or “No“. Corresponding to some conditions there are a various number of questions. The question may consist of 1 , 2 or more lines. It might look like this:
    No   Questions                               Yes  No
    01.  Questions and answers, suggestions,      O   O
          hints, example coding etc..regarding
          typical ABAP programming topics are
          welcomed here. Do you understand
          what I mean ?
    02.  Are you 30 years old ?                   O   O
    03.  Is there anybody going to listen
          to my story all about a girl who
          came to stay ?                           O   O
    Has anybody an idea how to realize this ?
    regards
    Wolfrad

    Hi wolfrad,
    POPUP_TO_DECIDE_LIST
    1. i don't know with radio buttons (yes/no)
    2. but we can display with CHECK BOX
    3. just copy paste in new program.
       (it will display dialog box
        with 5 questions, and checkbox against it)
    4.
    REPORT abc.
    DATA: BEGIN OF spoplist OCCURS 15.
            INCLUDE STRUCTURE spopli.
    DATA: END   OF spoplist.
    DATA: antwort TYPE c.
    spoplist-varoption = 'Are you 30 years old'.
    APPEND spoplist.
    spoplist-varoption = 'This is Question 2'.
    APPEND spoplist.
    spoplist-varoption = 'Is there anybody going to listen to my story '.
    APPEND spoplist.
    spoplist-varoption = 'This is Question 4'.
    APPEND spoplist.
    spoplist-varoption = 'This is Question 5'.
    APPEND spoplist.
    CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
      EXPORTING
        titel            = 'Questions'
        textline1        = ''
        textline2        = ''
        textline3        = ''
        mark_max         = 3
        mark_flag        = 'X'
      IMPORTING
        answer           = antwort
      TABLES
        t_spopli         = spoplist
      EXCEPTIONS
        too_much_answers = 1
        too_much_marks   = 2.
    IF sy-subrc = 2.
      WRITE: 'Too many answers chosen.'.
    ENDIF.
    IF antwort = 'A'.
      WRITE: 'Popup canceled.'.
    ELSE.
      WRITE: 'Options chosen:'.
      LOOP AT spoplist WHERE selflag = 'X'.
        WRITE / spoplist-varoption.
      ENDLOOP.
    ENDIF.
    regards,
    amit m.

  • Return goods: sales return

    Hi sap gurus,
    If the goods are returned back, what happens to the returned goods.
    What is the diff b/w Subsequent delivery free of charge and free of charge delivery

    When the goods are returned back , it first goes to the Block/restricted stock.
    The quality assurance department will varify it and if they certify as 'OK', then again a document is created with a different movement type to include it in the un-restricted stock.
    In the process, we have to create a Return order (you have to put a order reason,why this has taken place ), which can be created either with reference to the Sales order or Billing document. Ofcourse it can be created without any reference also.
    With reference to the Return order, a Return delivery is created and a Put away & PGR for the same.
    Then, we have to issue a Credit memo for the return and **it is created with reference to the Return order**.
    Before creating a Credit memo , you have to remove the "billing block" from the Return order.
    your 2nd question
    When you send a Demo material to your customer, you do not charge for it. It is for demonstration purpose , so no commercial value is associated.
    To process this type of material, you create an order with Order type FD.  This is called "Free of charge Delivery".
    Another scenario,
    You had sent some quantity of material say M1 to your cutomer.
    Customer has paid for those quantity. Now, customer has returned suppose one unit due to damage. I want to replace this one unit by a fresh one. So, now I will send a fresh piece as replacement which is free of charge.
    That means , I am sending subsequently one more unit/quantity which is now free of charge. This is processed with order type SDF and called "Subsequent delivery Free of charge".
    The most important difference between  "FD" (Free of charge delivery) and "SDF"(Subsequent delivery free of charge) is that FD does not require any reference but SDF always requires a preceding document.

  • Many to Many Relationships in ejb.....Urgent Pls help

    hi all,
    Am working in EJB.Now we are coding for many to many relationship.
    Company and Salary register
    One Company can have many salary register and More than one company can have one salary register
    Companyand Salary register are the two tables having details of it.And the intermediate table having pk of company and salary register is Company_salary_register table,I want to add the value in this table having seperate interface.
    How to model it? I have given the add method of this company_salary_register table in company bean.I am getting the value of this one as collection.But it is asking me to add the values as the instance of LocalSalary(interfaceand entitybean).If i type cast it as Local Salary Class castexception occurs
    Please help me.Even Material of Modelling Many to Many relationship in EJB is enough.
    thanx in advance,

    THaaaaaanks alottt for the quick reply...
    I used the first way to insert the document and i was successful...
    but thing is that..
    when i do
    SQL>desc message_type
    message_type is NOT FINAL
    Name Null? Type
    SYS_XDBPD$ XDB.XDB$RAW_LIST_T
    to VARCHAR2(4000 CHAR)
    from VARCHAR2(4000 CHAR)
    subject VARCHAR2(4000 CHAR)
    body VARCHAR2(4000 CHAR)
    i can see the structure...
    and when i
    select count(*) from messages
    it says count is 1.
    so how to know where the data is ..like below in the data :
    'to' it has '[email protected]'
    and for 'from' it has '[email protected]'..and so on..
    <message>
    <to>[email protected]</to>
    <from>[email protected]</from>
    <subject>Question</subject>
    <body>Does this demo work?</body>
    </message>
    so what is the command to get that data...
    because when i do
    select * from message_type..it says
    select * from message_type
    ERROR at line 1:
    ORA-04044: procedure, function, package, or type is not allowed here
    Plss help me outt.......this will be my final step...
    Thankssssssssssssssss

Maybe you are looking for

  • Email Notifications through workflow for all Approved and Rejected Orders

    hi, i have to send Email Notifications through workflow for all Approved and Rejected Orders to the user who have submitted the order for approval.how could it be done.please send ur solutions. regards yesukannan

  • After updating old Touch to 3.1.3, can no longer hear on Bose Sounddock. How can I update to an earlier version?

    After updating old ipod touch to 3.1.3, can no longer hear it on old Bose Sounddock. How can I reverse-update to an older version? Or, is there something else I can do? I can hear the ipod on earbuds, but not on the sounddock.

  • ClassLoader & java.policy

    Hi , I am facing problem with the following code. ClassLoader loaderPrev = Thread.currentThread().getContextClassLoader(); ClassLoader loader = URLClassLoader.newInstance(new URL[]{new URL(CodeBase)} , loaderPrev ); ClassLoader loader = new URLClassL

  • Variable in textnode

    Hi everybody! I want to print a variable of the datatyp CURR with length 11. if i place the variable in a Textnode, the Smartform canceled with a formaterror. I can handle this problem, when i define a local string, copy the variable into that string

  • Dynamic Field type declaration in a structure

    Hi All,    How to declare the data element of a field dynamically in the structure i.e, how to define a field type dynamically in the structure?    Please find below example for better understanding of my query and share your ideas if we have a solut