Tablecontrol and Tabstrip

Hi,
I created a dynpro as tabstrib. The tabstrip with 3 subscreen which contains tablecontrols. On tabstrip is possible to delete, insert, scoll etc...without problems. To the dynpro I added a Gui status with 2 function codes. My problem is, if I make double click on table control, programm prozess first function code from Gui status. Clearing of function codes save_ok doesn't help.
Thanks for helping tips  and with kind regards

Hallo,
in Application Toolbar is Text as function code and icon "ICON_EXECUTE_OBJECT" embedded.
Regards,
Hüsniye

Similar Messages

  • What are the uses of table control and tabstrip control

    can anyone tell me the uses of table control and tabstrip control

    Hi,
    table control is more comfortable for customizing.scroll bars all possible in this.where as it is not possible in step loops.
    check this example.
    PROGRAM ZBHTCTRL.
    TABLES: LFA1, EKKO.
    DATA: OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
    DATA: BEGIN OF ITAB OCCURS 0,
    MANDT LIKE EKKO-MANDT,
    EBELN LIKE EKKO-EBELN,
    BSTYP LIKE EKKO-BSTYP,
    BSART LIKE EKKO-BSART,
    END OF ITAB.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'BACK'.
    SET SCREEN 0.
    WHEN 'NEXT'.
    SET SCREEN 1001.
    SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
    LIFNR = LFA1-LIFNR.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE MOVE_DATA OUTPUT.
    EKKO-MANDT = ITAB-MANDT.
    EKKO-EBELN = ITAB-EBELN.
    EKKO-BSTYP = ITAB-BSTYP.
    EKKO-BSART = ITAB-BSART.
    ENDMODULE. " MOVE_DATA OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 OUTPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'MENU'.
    SET TITLEBAR 'TIT'.
    ENDMODULE. " STATUS_1001 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'DMENU'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_1000 OUTPUT
    FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.
    CALL METHOD CMENU->LOAD_GUI_STATUS
    EXPORTING
    PROGRAM = ' ZBHTCTRL'
    STATUS = 'CMENU'
    MENU = CMENU.
    CALL METHOD CMENU->ADD_FUNCTION
    EXPORTING
    FCODE = 'RX'
    TEXT = 'RECIEVE'.
    ENDFORM.
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.
    MODULE MOVE_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    LOOP AT ITAB.
    ENDLOOP.
    for more info check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    thanks
    Ashu.

  • ALV and TABSTRIP

    Hi,
    I have an alv and tabstrip on the same page. When i click one field( hotspot ) i wanna change the selected tab of tabstrip. Is there any way to do this ?

    Hi ,
    First of all you need to set 'X' to i_appl_events parameter when creating your alv object. It will trigger PAI after , ALV related event. Maybe you can use a global variable to set which indicates hotspot event was triggered to cahnge tabstrip and than in a module at the pai for example module go_to_tabstrip.
    i_parent = gv_custom_container
    i_appl_events = 'X'
    module go_to_tabstrip.
    CHECK gv_hotsp_clicked = 'X'.
    *** Your Action
    *** Set initial on exit
    gv_hotsp_clicked = space.
    endmodule.

  • RS_TREE_LIST_DISPLAY and tabstrip

    Hi,
    I have an HR function which uses RS_TREE_LIST_DISPLAY to display some data in a list tree. I would like to incorporate this into a tabstrip that I have built, but when I try to run this function in the PBO of the subscreen of the tab in the tabstrip, the tree isn't displayed in the subscreen area of the tabstrip. Instead it simply displays the data in a standard list screen. When I back out of this list screen I am then returned to my tabstrip (and the tab is empty). Can RS_TREE_LIST_DISPLAY be used to display data in a tabstrip or is there an alternate function that can do this? What is the best way to show a tree list in a tabstrip?
    Thank you,
    Lee

    Hi,
    I don't understand
    then I don't think it's worth doing this complex solution! :-p
    The other solution is to use a SAPscript form or Smart form (and probably Adobe forms as it is more recent but I don't know), there are embedded mechanisms to setup the number of pages at the end of the generation on every page.
    The last solution is to ask people to look at the number of pages of the spool if they want to have the information.
    About what I said previously, I think I was incorrect because as it is a background process, there's no list buffer we could operate on, and I think the only solution is to operate on the spool after it has been generated. It's really much more complex than what I thought!
    Sandra

  • Subscreen and tabstrip

    Dear All
    I have used tabstrip with two taps. In the first tap, I used input controls to get two inputs. In the second tab, the addition of two inputs.from the first tap.
    I have placed a sub screen(first). I called another one sub screen(second) from this sub screen. Two fileds available in the second sub screen. The above is same for tab2.
    Second sub screen didn't called when i execute.
    How to solve this....?????
    Refer the following link
    http://www.4shared.com/dir/7546404/59f81067/sharing.html
    Thanks And Regards
    Suresh

    hi,
      Refer the followind example programs for triggering the tab strips.
    demo_dynpro_tabstrip_server
    demo_dynpro_tabstrip_local
    Regards,
    Veeresh

  • How to add or delete rows in tablecontrol?

    Hi,
    I am using a tablecontrol to enter data records.
    I want to use 2 buttons, one to insert a row into a tablecontrol and another to delete a selected row of a tablecontrol.
    How do I insert or delete rows of a tablecontrol?
    Thanks.

    Hi Kumar,
    Please look at the below sections......
    ADDING BLANK LINES
    To add blank lines to table control we do not need to change any of the fields of the structure CXTAB_CONTROL simply adding blank lines to the internal table will do.
    INSERT INITIAL LINE INTO itab.
    DELETING SELECTED ROWS
    Deletion of selected rows is simple. To delete selected rows first we will determine the rows which have been selected through selection column .
    FOR SINGLE ROW SELECTION
    IF mark EQ 'X' .             "mark is the name of selection column field
    DELETE itab FROM workarea . 
    ENDIF.
    FOR MULTIPLE ROW SELECTION
    *To deetermine the rows selected we will use the selection column field to loop
    *through the internal table.
    LOOP AT itab WHERE mark EQ 'X'.  "mark is the name of selection column field
    DELETE itab                                    " and is part of the internal table .
    ENDLOOP.
    Thanks,
    Ravi Kanth

  • How to print the smartform as in the data of tablecontrol...?

    Hi,
    1.I create 2 tabs in Modulepool Programming.
    2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
    3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
    4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
    5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
    6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
    without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
    should be displayed in smartform as of Tablecontrol.
    where I want to write these code....? and what code i want 2 write...?
    can anybody help me
    Moderator message - Cross and duplicate posting is not allowed in the forum. This is at least the second post of yours that I have locked for this reason. If you continue, your userid may be deleted - thread locked
    Edited by: Rob Burbank on May 12, 2010 3:23 PM

    Did u look at the system fields of smartform ?
    Look at the structure SFSY.
    Amandeep

  • What is the code for entering data in tablecontrol as in smartform....?

    Hi
    1.I create 2 tabs in Modulepool Programming.
    2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
    3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
    4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
    5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
    6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
       without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
       should be displayed in smartform as of Tablecontrol.
    where I want to write these code....? and what code i want 2 write...?
    can anybody help me

    >
    dileepbandla wrote:
    > Hi
    >

    > 1.I create 2 tabs in Modulepool Programming.
    > 2.In First Tab, I enter the data and when i click the SAVE button the data should be saved in my custom table ZDILEEP.
    > 3.In Second Tab,I put an Tablecontrol and DISPLAY the data what i have to save in first tab and i do 3 operations as DELETE,UPDATE,ADD A RECORD.
    > 4. I Create a button in Application Toolbar as FORM,whenever i click this button the SMARTFORM will be triggered.
    > 5.In SmartForm, I put an TableControl and display the data and i put SUM of SALARY.
    > 6.Now My Requirement is At run time, if i add a record or update a record that should be displayed in smartform,
    >    without clicking the pushbuttons UPDATE,ADD A RECORD i.e. without using custom table ZDILEEP the data
    >    should be displayed in smartform as of Tablecontrol.
    You need to read the table control data along with Custom table data before you call the smartform and passing data to smartform.
    > where I want to write these code....? and what code i want 2 write...?
    >
    In PAI. What code? - Probably, loop at table control and get the data into another internal table then pass this data into smartform interface.
    >
    >  can anybody help me

  • ABAP Certification and Course

    Hi Friends ,
    I want to do ABAP Certification and want to learn ABAP .
    I am a BE Computer Engg. (Fresher) having good core knowledge in Core JAVA.
    Can anybody give me contacts (Names , number ect. ) of Instituts offering the ABAP course.
    If Possible in Pune , Mumbai and Haydarabad .
    Thanks and Regards,
    Nikhil

    <b>Here are the details u asked for</b>
    SAP Consultant Certification
    Development Consultant SAP NetWeaver 2004 – Application Development Focus ABAP
    Software components: SAP Web Application Server 6.40
    Certification exam is included in course TAW12 and is also offered separately at many SAP locations.
    Certification ID (Booking code): C_TAW12_04
    Certification duration: 3 hours
    Number of certification questions: 80
    Courses for certification preparation: TAW10 (ABAP Workbench Fundamentals); TAW12 (ABAP Workbench Concepts)
    Please note that you are not allowed to use any reference materials during the certification test (no access to online documentation or to any SAP system).
    The certification test Development Consultant SAP NetWeaver 2004– Application Development Focus ABAP verifies the knowledge in the area of the SAP NetWeaver for the consultant profile Application Development Focus ABAP. This certificate proves that the candidate has a basic understanding within this consultant profile, and can implement this knowledge practically in projects.
    The certification test consists of questions from the areas specified below:
    Topic Areas
    1.     SAP Technologies
    &#61607;     SAP systems (mySAP Business Suite and SAP NetWeaver)
    &#61607;     Technical structure of an SAP Web Application Server
    2.     ABAP Workbench Basics (++)
    &#61607;     Data types and data objects (declaration)
    &#61607;     Internal tables
    &#61607;     Data retrieval (authorization check)
    &#61607;     Subroutines
    &#61607;     Function groups and function modules
    &#61607;     Program calls and memory management
    3.     Advanced ABAP (++)
    &#61607;     ABAP runtime
    &#61607;     Data types and data objects (usage)
    &#61607;     Open SQL (high-performance programming)
    &#61607;     Dynamic programming
    4.     ABAP Objects (++)
    &#61607;     Classes and objects
    &#61607;     Inheritance
    &#61607;     Polymorphism (casting)
    &#61607;     Interfaces
    &#61607;     Events
    &#61607;     Global classes and interfaces
    &#61607;     Exception handling
    &#61607;     Shared objects
    5.     ABAP Dictionary (++)
    &#61607;     Database tables
    &#61607;     Performance for table accesses
    &#61607;     Consistency by means of input check (foreign key dependency)
    &#61607;     Dependency for ABAP Dictionary objects
    &#61607;     Views
    &#61607;     Search helps
    6.     List Creation Techniques (++)
    &#61607;     Data output in lists
    &#61607;     Selection screen
    &#61607;     Logical database
    &#61607;     Interactive lists
    &#61607;     List creation with the ALV grid control:
            - Simple lists 
            - Field catalog
            - Layout
            - Event handling
    7.     Dialog Programming (++)
    &#61607;     Screen (basics)
    &#61607;     Program interface (GUI title, GUI status)
    &#61607;     Screen elements for output (text fields, status icons, and group boxes)
    &#61607;     Screen elements for input/output
    &#61607;     Subscreen and tabstrip control
    &#61607;     Table control
    &#61607;     Context menu
    &#61607;     Lists in dialog programming
    8.     Database Changes
    &#61607;     Database updates with open SQL
    &#61607;     LUWs and client/server architecture
    &#61607;     SAP locking concept
    &#61607;     Organize database changes
    &#61607;     Complex LUW processing
    &#61607;     Number assignment
    &#61607;     Change document creation
    9.     Enhancements and Modifications
    &#61607;     Changes to the standard SAP system
    &#61607;     Personalization    
    &#61607;     Enhancements to ABAP Dictionary elements
    &#61607;     Enhancements via customer exits
    &#61607;     Business Transaction Events
    &#61607;     Business Add-Ins
    &#61607;     Modifications
    Amount of questions by topic (as percentage of test):
    +              = 1 - 10%
    ++            = 11 - 20%
    +++          = over 20%
    <b>GENEVOTE and SEIMENS</b>... these are two companies in INDIA which provide sap certification
    This link will give you the schedule of training at various locations in india along with course fee's.
    http://www.sap.com/asia/services/education/schedule/schedule_IN.htm
    Further information can be had from the SAP Education Centre, SAP India Labs, Thapar Niketan, 7/4, Brunton Road, Bangalore-560 025. Ph: 25593554. E-mail: [email protected]
    The SAP training partner in Bangalore is Siemens Information Systems Limited, Du Parc, 3rd Floor, Trinity 17, Mahatma Gandhi Road. Ph: 57700001, 98459 94380. Contact persons: Vani Mittal / Sonia Nalini. E-mail: [email protected]
    <b>Hope this is helpful</b>

  • ABAP ECC6.0 Certification Exam Syallabus and which PDF files

    Hi
    Im Planning to write the ABAP-ECC6.0 certification exam . Can anyone tell which tabs i should read and what is the syallabus for this one
    kumar

    Hi
    certification ..
    /message/213564#213564 [original link is broken]
    /message/514469#514469 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/257122#257122 [original link is broken]
    /message/130164#130164 [original link is broken]
    This is link from SAP about ABAP certification
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    http://www.sapteched.com/india/confactivities/certexam.htm
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=351
    There is a pdf called ABAP certification.
    http://www.esnips.com/web/SAP-ABAP?
    You can try www.sapdoamin.com
    They provide Certification simulation questions which are very useful and a must try site.
    Have a look at below link for mySAP Technology - ABAP Workbench
    https://websmp206.sap-ag.de/~sapidp/011000358700000746472003E
    Have a look at below link for SAP NetWeaver - ABAP Workbench
    http://www30.sap.com/hk/services/education/pdf/cert/ABAPWB.pdf
    The certification test consists of questions from the areas specified below:
    Topic Areas
    1. mySAP.com Technologies
    - mySAP.com
    - Navigation (system handling)
    - Technical setup of an SAP system
    - System-wide concepts
    2. ABAP Workbench Basics (++)
    - Data types and data objects
    - Internal tables
    - Data retrieval (authorization check)
    - Subroutines
    - The ABAP Runtime System
    - Function groups and function modules
    - Program calls and data transfer
    3. ABAP Objects (++)
    - Classes and objects
    - Inheritance
    - Casting
    - Interfaces
    - Events
    - Global classes and interfaces
    - Exception handling
    - Dynamic programming
    4. ABAP Dictionary (++)
    - Database tables
    - Performance for table access
    - Consistency through input check (foreigh key dependency)
    - Dependency of ABAP Dictionary objects
    - Views
    - Search help
    5. Techniqes for List Generation (++)
    - Data output to lists
    - Selection screen
    - Logical database
    - Program-specific data retrieval
    - Data formatting and control level processing
    - Storage of lists and background processing
    - Interactive lists
    6. Dialog Programming (++)
    - Screen (basics)
    - User interface (GUI title, GUI status)
    - Screen elements for output (text fields, status icons, and group boxes)
    - Screen elements for input/output
    - Subscreen and tabstrip control
    - Table control
    - Context menu
    - Dialog programming lists
    7. Database Changes
    - Database updates with Open SQL
    - LUWs and Client/Server Architecture
    - SAP locking concept
    - Organizing database changes
    - Complex LUW processing
    - Number assignment
    - Change-document creation
    8. Enhancements and Modifications
    - Changes in SAP Standards
    - Personalization
    - Enhancements to Dictionary elements
    - Enhancements using customer exits
    - Business Transaction Events
    - Business Add-Ins
    - Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    +++ = over 20%
    Reward points for useful Answers
    Regards
    Anji

  • -----and I am undergoing a training on ABAP

    I am a 31 old guy  and previously I was doing tutions on mathematics to earn my living though I do have a background on computer science-----and I am undergoing a training on ABAP -
    do you thi9nk I have a fair chance of a career in SAP?

    Hi
    u want to take up sap its good .
    it isa booming field.but the exam is tough and moreover the training should be good
    the initial phases are difficult to handle because there are less paying jobs for certified freshers but aftre 2 years evertyng wud be fine
    plus ur current profile is also no good so it is a good career move
    take up good trainig and get certified and afterwards u d definitely get a good job
    here are some tips about the exam and the pass % as well as whr u can get the material and all
    happy learning and best of luck
    address
    find below Siemens Hyderabad address and phone numbers... just
    call them up and find out. I don’t think it will cost you
    more than Rs.3.10 lacs for FI.
    Siemens
    Opposite Secretariat
    Saifabad, Hyderabad
    040 23243146
    040 23482500
    040 23482534
    040 23482578
    040 23482800
    Before you burn your cash for certification course…..
    What I suggest you … ... first thing you
    need to do is to join a course in any small institute in
    “UNIVERSITY OF AMEERPET”… …..wondering …. from where
    this university has born???????…. don’t worry... This is
    NOT really a university… just kidding…
    There is a place called “AMEERPET” in “HYDERABAD”
    “happening city of India”. This a HUB for all computer
    courses to do ….any DAM course and you know what! You will
    really find “mushrooms” like institutes offering different
    courses in this place.
    There is a guy called.. Satyanara. He teaches SAP in
    institutes like Compulearn and iLogic in Ameerpet. He took
    around 500 batches and has implementation experience. I
    would say you should try this place and go for certification and
    it will really help you. It will not cost you more then
    9k…..Trust me.
    All the best… dude
    How can I take up ABAP Certification exam?
    You will have to get in touch with sap education or any institute that is sap education partner, currently siemens and genaovate are the ones which conduct exams.
    What all I need to know in ABAP?
    Training institute will provide you with relevant study material for the exam, Just stick to it and practice your concept with any of the online test websites, like www.sapdomian.com.
    Here are links for the e-books that is provided for ABAP certification.
    http://www.esnips.com/web/SAPAbapCertificationDocs/
    http://www.esnips.com/web/SAPABAP
    http://www.esnips.com/web/saparun-ebooks
    http://www.esnips.com/doc/2a4c274b-b5b9-46b7-8ab5-5af47700a6c7/Command-List
    http://www.esnips.com/doc/6bdb820f-f533-4517-a043-b64641b00490/TABC43-
    How can I prepare for the exams?
    Concept is tested. If you understand the concept, you have a better chance of answering the question than trying to remember the actual bullet points in the academy course material.
    Use the online help to find and review the concepts covered in the certification course material. The information in the online help is presented in a different format to the course material and will therefore solidify the concepts presented. You will be much better prepared to answer the questions regardless of how the question may be worded. This really works.
    How many levels will the exam will be conducted?
    The certification exam is conducted in three levels, associate, principal and master. If you are a first timer then go with associate level, and there aftre gaining experience you can enhance your career with other levels of exam.
    the pass %age is 70
    Certification duration: 3 hours
    Number of certification questions: 80
    You cannot go for all three levels at the same time.It depends upon your work experience, which one will be suitable for you.
    You can contact genovate or siemens which are SAP education parteners, and they are based throughout the country(India).
    Concept is tested. If you understand the concept, you have a better chance of answering the question than trying to remember the actual bullet points in the academy course material.
    Use the online help to find and review the concepts covered in the certification course material. The information in the online help is presented in a different format to the course material and will therefore solidify the concepts presented. You will be much better prepared to answer the questions regardless of how the question may be worded. This really works.
    u can have look ate the detailed course line
    You can contact genovate or siemens which are SAP education parteners, and they are based throughout the country(India).
    1. mySAP.com Technologies
    mySAP.com
    Navigation (system handling)
    Technical setup of an SAP system
    System-wide concepts
    2. ABAP Workbench Basics (++)
    Data types and data objects
    Internal tables
    14/02/2008
    http://****************/Tutorials/Smartforms/OTF2PDF.htm
    http://www.sap-img.com/abap/function-list.htm
    Data retrieval (authorization check)
    Subroutines
    The ABAP Runtime System
    Function groups and function modules
    Program calls and data transfer
    3. ABAP Objects (++)
    Classes and objects
    Inheritance
    Casting
    Interfaces
    Events
    Global classes and interfaces
    Exception handling
    Dynamic programming
    4. ABAP Dictionary (++)
    Database tables
    Performance for table access
    Consistency through input check (foreigh key dependency)
    Dependency of ABAP Dictionary objects
    Views
    Search help
    5. Techniqes for List Generation (++)
    Data output to lists
    Selection screen
    Logical database
    Program-specific data retrieval
    Data formatting and control level processing
    Storage of lists and background processing
    Interactive lists
    6. Dialog Programming (++)
    Screen (basics)
    User interface (GUI title, GUI status)
    Screen elements for output (text fields, status icons, and group boxes)
    Screen elements for input/output
    Subscreen and tabstrip control
    Table control
    Context menu
    Dialog programming lists
    7. Database Changes
    Database updates with Open SQL
    LUWs and Client/Server Architecture
    SAP locking concept
    Organizing database changes
    Complex LUW processing
    Number assignment
    Change-document creation
    8. Enhancements and Modifications
    Changes in SAP Standards
    Personalization
    Enhancements to Dictionary elements
    Enhancements using customer exits
    Business Transaction Events
    Business Add-Ins
    Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    + = over 20%
    Topic Areas
    1. mySAP.com Technologies
    mySAP.com
    Navigation (system handling)
    Technical setup of an SAP system
    System-wide concepts
    2. ABAP Workbench Basics (++)
    Data types and data objects
    Internal tables
    Data retrieval (authorization check)
    Subroutines
    The ABAP Runtime System
    Function groups and function modules
    Program calls and data transfer
    3. ABAP Objects (++)
    Classes and objects
    Inheritance
    Casting
    Interfaces
    Events
    Global classes and interfaces
    Exception handling
    Dynamic programming
    4. ABAP Dictionary (++)
    Database tables
    Performance for table access
    Consistency through input check (foreigh key dependency)
    Dependency of ABAP Dictionary objects
    Views
    Search help
    5. Techniqes for List Generation (++)
    Data output to lists
    Selection screen
    Logical database
    Program-specific data retrieval
    Data formatting and control level processing
    Storage of lists and background processing
    Interactive lists
    6. Dialog Programming (++)
    Screen (basics)
    User interface (GUI title, GUI status)
    Screen elements for output (text fields, status icons, and group boxes)
    Screen elements for input/output
    Subscreen and tabstrip control
    Table control
    Context menu
    Dialog programming lists
    7. Database Changes
    Database updates with Open SQL
    LUWs and Client/Server Architecture
    SAP locking concept
    Organizing database changes
    Complex LUW processing
    Number assignment
    Change-document creation
    8. Enhancements and Modifications
    Changes in SAP Standards
    Personalization
    Enhancements to Dictionary elements
    Enhancements using customer exits
    Business Transaction Events
    Business Add-Ins
    Modifications
    Weighting Key in the Test:
    + = 1 - 10%
    ++ = 11 - 20%
    + = over 20%
    do reward if useful
    Edited by: sharad narayan on Mar 11, 2008 7:18 AM

  • Tablecontrol-bdc

    hi!
    to handle table control for any screen resolution we set defsize = 'X' in ctu_params.
    can anybody explain how this works internally. I mean if my monitor shows 3visible lines in a tablecontrol and i run the same program in another pc having more resolution,does that monitor also show 3visible lines.I think i confused you.anyway tell me how it works internally.i want to know more.

    Please check the follwing code
    *&  Include           Z_93900_MATERIAL1_F01                            *
    *&      Form  extract_mat                                            *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    *extraction of material.
    FORM extract_mat.
    Declaration for local variable
      DATA l_mard TYPE mard .
      SELECT m~matnr
             r~labst
             FROM mvke AS m
             JOIN mard AS r
             ON m~matnr = r~matnr
             INTO CORRESPONDING FIELDS OF TABLE g_t_mat
             WHERE   m~vkorg = p_vkorg
                 AND m~vtweg = p_vtweg
                 AND r~lgort = p_olgort
                 AND r~labst > 0.
      IF g_t_mat[] IS NOT INITIAL.
        SELECT matnr meins FROM mara
               INTO CORRESPONDING FIELDS OF TABLE g_t_mat2
               FOR ALL ENTRIES IN g_t_mat
               WHERE matnr = g_t_mat-matnr.
        LOOP AT g_t_mat.
          READ TABLE g_t_mat2 WITH KEY matnr = g_t_mat-matnr.
          g_t_mat-meins = g_t_mat2-meins.
          MODIFY g_t_mat TRANSPORTING meins.
          CLEAR g_t_mat.
          CLEAR g_t_mat2.
        ENDLOOP.
    Fetching required fields into temporary table
        SELECT m~matnr
               m~meins
               c~vrbmt
               FROM mara AS m
               JOIN marc AS c
               ON m~matnr = c~matnr
               INTO CORRESPONDING FIELDS OF TABLE g_t_mat1
               FOR ALL ENTRIES IN g_t_mat
               WHERE c~vrbmt <> g_t_mat-matnr
               AND   c~werks = p_owerks.
      ENDIF.
      APPEND LINES OF g_t_mat1[] TO g_t_mat[].
      IF g_t_mat[] IS NOT INITIAL.
        LOOP AT g_t_mat.
          SELECT SINGLE * FROM mard
          INTO   l_mard
          WHERE matnr = g_t_mat-matnr
          AND   werks = p_owerks
          AND   lgort = p_olgort
          AND   labst > 0.
    Populating qty in main table
          g_t_mat-labst = l_mard-labst .
          CLEAR l_mard .
          MODIFY g_t_mat.
        ENDLOOP.
      ENDIF.
      LOOP AT g_t_mat.
        IF g_t_mat-labst EQ 0.
          DELETE TABLE g_t_mat.
          CLEAR g_t_mat.
        ENDIF.
      ENDLOOP.
      SORT g_t_mat BY matnr.
      DELETE ADJACENT DUPLICATES FROM g_t_mat.
      ADD 1 TO g_f_recs.
    ENDFORM.                   " extract_mat
    *&      Form  extract_refmat
          text
    -->  p1        text
    <--  p2        text
    extract reference material number from new plant.
    form extract_refmat .
      SELECT vrbmt
      FROM  marc
      INTO CORRESPONDING FIELDS OF TABLE g_t_mat3
      WHERE   werks = p_nwerks.
    endform.                    " extract_refmat
    *&      Form  validate_mat                                            *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    *validations on material.
    FORM validate_mat.
      SELECT matnr
      FROM  marc
      INTO CORRESPONDING FIELDS OF TABLE g_t_mat3
      WHERE   werks = p_nwerks.
      sort g_t_mat3[] by matnr.
      LOOP AT g_t_mat.
      read table g_t_mat3.
       IF g_t_mat-matnr = g_t_mat3-matnr.
          IF sy-subrc = 0.
            MESSAGE s000 WITH text-010.
          ENDIF.
        ENDIF.
        CLEAR g_t_mat.
      ENDLOOP.
    ENDFORM.                    " validate_mat
    *&      Form  validate_date                                           *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    *validating date
    FORM validate_date .
      w_date = sy-datum.
      CALL FUNCTION 'CONVERSION_EXIT_D3DAT_OUTPUT'
        EXPORTING
          input  = w_date
        IMPORTING
          output = w_date1.
      MOVE w_date1+6(4) TO w_date2.
    ENDFORM.                    " validate_date
    *&      Form  UPDATE_PROCESSING
    FORM update_processing.
      PERFORM construct_bdc_data .
    ENDFORM.                               " UPDATE_PROCESSING
    *&      Form  Construct_BDC_data
          text
    -->  p1        text
    <--  p2        text
    FORM construct_bdc_data .
      LOOP AT g_t_mat.
        REFRESH bdcdata.
        AT NEW matnr.
          w_line_i = 0.
          PERFORM bdc_dynpro      USING 'SAPMM07M' '0400'.
          PERFORM bdc_field       USING 'BDC_CURSOR'    'MKPF-BUDAT'.
          PERFORM bdc_field       USING 'BDC_OKCODE'    '/00'.
          PERFORM bdc_field       USING 'MKPF-BKTXT'    '93900 Golive'.
          PERFORM bdc_field       USING 'RM07M-BWARTWA' '309'.
          PERFORM bdc_field       USING 'RM07M-WERKS'    p_owerks.
          PERFORM bdc_field       USING 'RM07M-LGORT'    p_olgort.
          PERFORM bdc_dynpro      USING 'SAPMM07M' '0421'.
          PERFORM bdc_field       USING 'BDC_CURSOR'    'MSEG-ERFMG(01)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'    '/00'.
          PERFORM bdc_field       USING 'MSEGK-UMWRK'    p_nwerks.
          PERFORM bdc_field       USING 'MSEGK-UMLGO'    p_nlgort.
          PERFORM bdc_field       USING 'MSEGK-UMMAT'    g_t_mat-matnr.
          PERFORM bdc_field       USING 'DKACB-FMORE'   'X'.
          PERFORM bdc_dynpro      USING 'SAPLKACB'  '0002'.
          PERFORM bdc_field       USING 'BDC_OKCODE'    '=ENTE'.
        ENDAT.
        PERFORM bdc_detail.
        PERFORM bdc_field       USING 'DKACB-FMORE'  'X'.
        PERFORM bdc_dynpro      USING 'SAPLKACB'  '0002'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENTE'.
        PERFORM bdc_dynpro      USING 'SAPMM07M'  '0410'.
        PERFORM bdc_field       USING 'BDC_OKCODE'     'BCK'.
        PERFORM bdc_field       USING 'BDC_CURSOR'     'MSEG-MATNR'.
        PERFORM bdc_dynpro      USING 'SAPMM07M'  '0410'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '/E'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'MSEG-MATNR'.
        PERFORM bdc_dynpro      USING 'SAPMM07M'  '0420'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '/E'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'MKPF-BUDAT'.
        PERFORM call_transaction.
      ENDLOOP.
    ENDFORM.                    " Construct_BDC_data
    *&      Form  call_transaction
          text
    -->  p1        text
    <--  p2        text
    FORM call_transaction .
      DATA: w_mode VALUE 'N'.
    Exucute transaction via Call Transaction
      CALL TRANSACTION  'MB1B'
                     USING bdcdata
                     MODE  w_mode
                     UPDATE 'S'
                     MESSAGES INTO t_msg          .
    check for all terminal error messages
      READ TABLE t_msg WITH KEY msgtyp = 'S'
                                msgid  = 'M7'
                                msgnr  = '060'.
      IF sy-subrc EQ 0.
        g_t_mat-msg    = text-002.
        g_t_mat-status = 'G'.
        g_t_mat-mblnr  = t_msg-msgv1.
      ELSE.
        LOOP AT t_msg.
          CHECK t_msg-msgtyp NE   'S'.
          CHECK t_msg-msgtyp NE   'I'.
          CHECK t_msg-msgtyp NE   'W'.
          PERFORM get_msg_text USING t_msg-msgid t_msg-msgnr
                               CHANGING g_t_mat-msg.
          g_t_mat-status = t_msg-msgtyp.
          EXIT.
        ENDLOOP.
      ENDIF.
      MODIFY g_t_mat TRANSPORTING status msg mblnr.
    ENDFORM.                               " CALL TRANSACTION
    *&      Form  bdc_detail                                              *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_detail .
    accumulate lines to determine if page_down required
      DATA: w_qty_x(17).
      ADD 1 TO w_line_i.
      IF w_line_i > 12.
        w_line_i = 2.
        PERFORM bdc_dynpro      USING 'SAPMM07M' '0421'.
        PERFORM bdc_field       USING 'BDC_OKCODE' '=NP'.
      ENDIF.
      w_qty_x = g_t_mat-labst.
    material overview screen (with enter)
      PERFORM bdc_dynpro     USING 'SAPMM07M'    '0421'.
      PERFORM bdc_field        USING 'BDC_CURSOR'  'MSEG-ERFME(01)'.
      PERFORM bdc_field        USING 'BDC_OKCODE'  '=BU'.
      PERFORM bdc_field_idx    USING 'MSEG-MATNR'  g_t_mat3-vrbmt w_line_i.
      PERFORM bdc_field_idx    USING 'MSEG-ERFMG'  w_qty_x        w_line_i.
      PERFORM bdc_field_idx    USING 'MSEG-ERFME'  g_t_mat-meins  w_line_i.
    ENDFORM.                    " bdc_detail
    *&      Form  bdc_field_idx                                           *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_field_idx USING field LIKE bdcdata-fnam
                                value  p_index TYPE i.
      DATA: w_index_tx(2).
      UNPACK p_index TO w_index_tx.
      CLEAR bdcdata.
      CONCATENATE field '(' w_index_tx ')' INTO field.
      bdcdata-fnam = field.
      bdcdata-fval = value.
      APPEND bdcdata.
    ENDFORM.                    " BDC_FIELD_IDX
    *&      Form  bdc_dynpro                                              *
    *&      text                                                          *
    FORM bdc_dynpro  USING  program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field                                               *
    *&      text                                                          *
    FORM bdc_field  USING  fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    " bdc_field
    *&      Form  GET_MSG_TEXT
          text
         -->P_T_MSG_MSGID  text
         -->P_T_MSG_MSGNR  text
         <--P_W_DETAILS_MSG  text
    FORM get_msg_text USING    p_msgid
                               p_msgnr
                      CHANGING p_text.
      DATA : w_arbgb_tx LIKE t100-arbgb.
      DATA : t100 LIKE t100.
    GET MESSAGE TEXT
      w_arbgb_tx = p_msgid.
      CALL FUNCTION 'T100_SINGLE_READ'
        EXPORTING
          t100_sprsl = sy-langu
          t100_arbgb = w_arbgb_tx
          t100_msgnr = p_msgnr
        IMPORTING
          wt100      = t100
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      CHECK sy-subrc = 0.
      p_text = t100-text.
    ENDFORM.                               " GET_MSG_TEXT
    *&      Form  bdc_create                                             *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_create .
      PERFORM bdc_open_group.
      PERFORM bdcdata_populate.
      PERFORM bdc_close.
    ENDFORM.                    " bdc_create
    *&      Form  bdc_open_group                                         *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_open_group .
      DATA :   w_user_tx LIKE apqi-userid.
      w_user_tx = sy-uname.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client              = sy-mandt
          group               = 'LT06'
          keep                = 'X'
          user                = w_user_tx
        EXCEPTIONS
          client_invalid      = 01
          destination_invalid = 02
          group_invalid       = 03
          holddate_invalid    = 04
          internal_error      = 05
          queue_error         = 06
          running             = 07
          user_invalid        = 08.
      CASE sy-subrc.
        WHEN 0.
        WHEN OTHERS.
          WRITE: / 'BDC OPEN ERROR', sy-subrc.
      ENDCASE.
    ENDFORM.                    " bdc_open_group
    *&      Form  bdc_populate                                            *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdcdata_populate .
      LOOP AT g_t_mat.
        REFRESH bdcdata.
        PERFORM bdc_dynpro1      USING  'SAPML02B'  '0203'.
        PERFORM bdc_field1       USING  'BDC_CURSOR'   'RL02B-DUNKL'.
        PERFORM bdc_field1       USING  'BDC_OKCODE'   '/00'.
        PERFORM bdc_field1       USING  'RL02B-MBLNR'   g_t_mat-mblnr.
        PERFORM bdc_field1       USING  'RL02B-MJAHR'   w_date2.
        PERFORM bdc_field1       USING  'RL02B-LGNUM'   p_lgnum.
        PERFORM bdc_field1       USING  'RL02B-DUNKL'   'D'.
        w_tcode = 'LT06'.
        PERFORM bdc_insert.
      ENDLOOP.
    ENDFORM.                    " bdcdata_populate
    *&      Form  bdc_insert                                              *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_insert.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode            = w_tcode
        TABLES
          dynprotab        = bdcdata
        EXCEPTIONS
          internal_error   = 1
          not_open         = 2
          queue_error      = 3
          tcode_invalid    = 4
          printing_invalid = 5
          posting_invalid  = 6
          OTHERS           = 7.
      CASE sy-subrc.
        WHEN 0.
        WHEN OTHERS.
          WRITE: / 'BDC INSERT ERROR', sy-subrc.
      ENDCASE.
    ENDFORM.                    " bdc_insert
    *&      Form  bdc_close1                                              *
    *&      text                                                          *
    *& -->  p1        text                                                *
    *& <--  p2        text                                                *
    FORM bdc_close.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          not_open    = 1
          queue_error = 2
          OTHERS      = 3.
      CASE sy-subrc.
        WHEN 0.
        WHEN OTHERS.
          WRITE: / 'BDC CLOSE ERROR', sy-subrc.
      ENDCASE.
    ENDFORM.                    " bdc_close
    *&      Form  bdc_dynpro1                                             *
    *&      text                                                          *
    FORM bdc_dynpro1  USING  program  dynpro.
      CLEAR bdcdata.
      bdcdata-program = program.
      bdcdata-dynpro = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_feild1                                              *
    *&      text                                                          *
    FORM bdc_field1  USING  fnam fval.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    ENDFORM.                    " bdc_field

  • Tablecontrol as texteditor

    Hi all,
    I need to insert tablecontrol and convert the tablecontrol into texteditor and has to accept 2000 character.
    Can anyone give sample code or any documentation please.
    Thanks in advance.
    Krishna.

    hii..
    In program declare a table with field containing 2000 characters with type c.In  table control get field from program to display the empty field .For table control use demo program <b>demo_dynpro_tabcont_loop_at</b> ,<b>demo_dynpro_tabcont_loop</b>.
    regards,
    veeresh

  • Is it possible to Display BW Bex report iviews in Tabbed Interface?

    Hi,
      Is their a way to display BW BEx Report Iviews in Tabbed Interface?
      My requirement is to show four BEx Reports using 4 tabs on a page. Can we achieve this functionality in portal? If yes can some one guide me how to proceed?
    Regards
    Sai Krishna Reddy

    why not have a webtemplate with tabbed interace and use that webtemplate to create BWP iview?
    check out the following how to document on this subjec.
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5074a890-0201-0010-a489-dd05902a28c8">How to Create Buttons and TabStrips in BI Web Applications</a>
    Regards
    Raja

  • How to find out, if a dynamic genereated structure already exists in DDIC?

    Good morning developers,
    can you help me with that above mentioned problem?
    I'm about to write a report which manages to change tablecontrol(s) to alvgrids.
    My current problem is, that i read all fields of a tablecontrol and generate its <b>structure</b> dynamically ( temporary just during runtime of the report, not stored yet ).
    Now I have to know, if this generated structure already exists in the DDIC, or not.
    If not, i have to create a type of my generated structure and store it in the DDiC.
    I know that there s a FM called <b>"COMPARE_STRUCTURE_DATA"</b>.
    But i think i have to know the name of the existing structure in DDiC.
    Is there also a way for a recursive search in ddic?
    If not:  when i read the fields of my tablecontrol from the DDiC, i read from ddic-table D021S. In its field "FNAM" it contains for example SFLIGHT-carrid ( <table><column> ).
    I could split 'FNAM' into table and column. How do i search for the structuretype of a table?
    Thx for your replys, post points waiting
    Regards
    Basti

    Hello Bastian
    All dynpro fields (including table controls) are either based on DDIC structures of program variables. Thus, the following coding will return you the required answer.
    *& Report  ZUS_SDN_RTTI_IS_DDICTYPE
    REPORT  zus_sdn_rtti_is_ddictype.
    TYPE-POOLS: abap.
    TYPES: BEGIN OF ty_s_line.
    TYPES:   field(3)  TYPE n.
    TYPES:   flag(1)   TYPE c.
    " INCLUDE TYPE knb1.
    TYPES: END OF ty_s_line.
    TYPES: ty_t_line    TYPE STANDARD TABLE OF ty_s_line
                        WITH DEFAULT KEY.
    DATA:
      gs_line    TYPE ty_s_line,
      gs_knb1    TYPE knb1,
      go_tabdescr      TYPE REF TO cl_abap_tabledescr,
      go_strucdescr    TYPE REF TO cl_abap_structdescr.
    START-OF-SELECTION.
      go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_line ).
      IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
        WRITE: / 'gs_line is a DDIC type'.
      ELSE.
        WRITE: / 'gs_line is not a DDIC type'.
      ENDIF.
      SKIP.
      go_strucdescr ?= cl_abap_tabledescr=>describe_by_data( gs_knb1 ).
      IF ( go_strucdescr->is_ddic_type( ) = abap_true ).
        WRITE: / 'gs_knb1 is a DDIC type'.
      ELSE.
        WRITE: / 'gs_knb1 is not a DDIC type'.
      ENDIF.
    END-OF-SELECTION.
    However, if a dynpro field is based on a type defined within the program the situation may be more complex if the type includes DDIC structures (as shown above). But I am sure you will master this obstacle.
    Regards
      Uwe

Maybe you are looking for

  • Adobe Photoshop CS4 Extreme Lag?

    Hello everyone! I've been a fan of Adobe for quite some time and started using it the first day in my new school. (We were given laptops with CS4 installed for free.) Now the thing is, 2 years has gone and I've recently gotten a new computer and I re

  • How to upload CSV file w/o ,, for the last line

    Hi Experts, As part of one interface uploading the csv file (4coulmns) manually using the TCODE: CSCA_FILE_COPY. After uploading when i see in the AL11 as it is csv file it is filling the , in each space. But my issue while running the interface (bec

  • How to display an XML in Web Dynpro

    Hi, I am pretty new to Web Dynpro and have a specific requirement. I have a web dynpro page on which we display a table. One of the columns in the table is a XML message. Now on lead selection of each row I want to display the contents of the XML in

  • Backup Configuration for 3560 and 3750

    Hi guys,  I couldn't make any test yet, but my doubt is about to copy a configuration and paste in the switch 3560 or 3750, the encrypted enable secret  its affected in any way?

  • Updating CardLayout GUI

    After reading the grphics tutorial and about ten threads on the subject no answer was given, so I had no other way but to post a question... I have a CardLayout GUI which needs to add a JPanel with some calculations on it when asked to. It gets an Ar