Doubt  in   ABAP-HR

hi ,
What is the difference between person selection period and data selection period?Please tel if u know...
Regards,
Suchithra

Hi
The basic difference is:
Standard Selection Screen
<u>Date selection:</u>
Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database.  When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
<u>Person selection:</u>
Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
Thanks
Vasudha

Similar Messages

  • Few more basic doubts in ABAP

    Hi Floks,
    I have few doubts in ABAP programming could please clarify that ..
    1. how to handle error messages in Call transaction and Call Session method .
    2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.
    3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?
    4.how many message types available ? what are they ?
    5.when call transction or Call session  can be used ? how to decide which method is best for requirement ?
    could you please help me out . if u have any material or links forward to [email protected]
    Good Rewards for best answers
    Thanks ,
    Sunitha

    Here are the answers to your questions.
    1. how to handle error messages in Call transaction and Call Session method .
    --> In Call transaction, if you see the command, messages are populated into an internal table. You need to read last record of this table. Using Function module FORMAT_MESSAGE, you can get details of the message. For session method, session gets created and status of session can be seen in transaction SM35. You can process erroneous sessions from here.
    2. which logic can be used to handle the table control in BDC method . when table control required ? let me give few transction related to table control of BDC.
    --> Check these links which explain in detail with examples.
    BDC - TABLE CONTROL
    In BDC table control
    3. what is structure of BDC DATA ? what is diffrence between BDC Session and Call Transaction method in programming steps ?
    -->PROGRAM - Program Name
    DYNPRO - BDC Screen number
    DYNBEGIN - BDC screen start (Flag)
    FNAM - BDC Field name
    FVAL - BDC Field value
    4.how many message types available ? what are they
    -->
    A (Abend) Termination
    E (Error) Error
    I (Info) Information
    S (Status) Status message
    W (Warning) Warning
    X (Exit) Termination with short dump
    5.when call transction or Call session can be used ? how to decide which method is best for requirement ?\
    --> These threads discuss the same
    Session Method
    Difference between Session method and Call transaction method

  • Doubts in ABAP WebDynpro

    Hi Experts,
    I am new to ABAP WebDynpro and self-learning going through SDN stuff and other online-help. Please provide me
    your kind explanation on below doubts.
    1. When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
    2. How to read the index of a particular selected row in table?
    3. How do you change position of a particulr node dynamically?
    4. Is it possible to execute a component without a window?
    5. Is it possible to run a VIEW without embeding into a window in Webdynpro application?
    6. How to read the content entered in PARAMTER and SELECT-OPTION elements in ABAP Webdynpro? Can anybody pass code how to read entries?
    I mean GET_ATTRIBUTE or GET_STATIC_ATTRIBUTES is used for reading attribute value. 
    7. Is it possible to fix the Message window position? Show at the bottom of a screen? Please provide some code for this.
    8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text. Please provide me example code.
    Thanks in advance for the support and useful explanation!
    Regards,
    Meera.

    Hi
    Refer the answers inline
    1) When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
    GET_ATTRIBUTE
    Method to get the values of a context attribute.
    The prerequisite for this method is that the application knows the data type of the attribute.
    The value of the given attribute is copied to the export parameter. To do this the export parameter must have a data type to which a value can be written.
    GET_STATIC_ATTRIBUTES
    This method copies the static attributes to the transferred variable. If the structure is not identical, a move-correspondingis performed, which is not as efficient as a direct move, but is still useful in many cases.
    Static attributes are those that either have been declared or that belong to the structure with which the node was declared.
    2) How to read the index of a particular selected row in table?
    data: lr_element type ref to if_wd_context_element,
              lv_index type i.
      lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT'  ).
      lv_index = lr_element->get_index( ).
    3) How do you change position of a particulr node dynamically?
        Explain Bit deeply
    4) Is it possible to execute a component without a window?
        No it is not possible, actually the component view can be viewed by embedding it to the window
    5) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
        No it is not possible, without window you cant run the view
    6) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
      DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
      DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
      DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
    navigate from <CONTEXT> to <MAIN_NODE> via lead selection
      LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
    get element via lead selection
      LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT(  ).
    get single attribute
      LO_EL_MAIN_NODE->GET_ATTRIBUTE(
        EXPORTING
          NAME =  `INPUT_VALUE`
        IMPORTING
          VALUE = LV_INP_VALUE ).
    7) Is it possible to fix the Message window position? Show at the bottom of a screen?
        Yes it is possible to show the messages by using the message area UI element in the needed position
    8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you      forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text.
        Im working onit and let you know after i complete.
    Regards
    Arun.P

  • Doubt in ABAP function

    Hi,
    I have a doubt in one of the abap function module i use.
    This contain code to retrieve ,update and delete and create values in table. I am using this function  module to
    retrieve ,update and delete and create values in table.  This is the ABAP code.
    FUNCTION ZUP_DESIG12.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(DESG_CODE) TYPE  ZUP_DESIG-DESG_CODE OPTIONAL
    *"     VALUE(DESG_DESC) TYPE  ZUP_DESIG-DESG_DESC OPTIONAL
    *"     VALUE(DESG_ACT) TYPE  ZUP_DESIG-DESG_ACT OPTIONAL
    *"     VALUE(DESG_OPT) TYPE  ZUP_DESIG-DESG_OPT OPTIONAL
    *"  EXPORTING
    *"     VALUE(DESG_CODE_C) TYPE  ZUP_DESIG-DESG_CODE
    *"     VALUE(DESG_DESC_C) TYPE  ZUP_DESIG-DESG_DESC
    *"     VALUE(DESG_ACT_C) TYPE  ZUP_DESIG-DESG_ACT
    *"     VALUE(DESG_OPT_C) TYPE  ZUP_DESIG-DESG_OPT
    *"  TABLES
    *"      WA STRUCTURE  ZMSTR_DESIG
    DATA CNT TYPE I.
    SELECT MANDT DESG_CODE DESG_DESC DESG_ACT FROM ZMSTR_DESIG
      INTO TABLE WA.
    IF DESG_OPT = 'U'.
    UPDATE ZMSTR_DESIG
        SET DESG_DESC = DESG_DESC
        DESG_ACT = DESG_ACT
        WHERE DESG_CODE = DESG_CODE.
    MESSAGE 'Updated Successfully' TYPE 'I'.
    ELSEIF DESG_OPT = 'C'.
    SELECT COUNT( * ) FROM ZMSTR_DESIG INTO CNT
       WHERE DESG_CODE = DESG_CODE.
       IF CNT > 0.
       MESSAGE 'Duplicate Designation code' TYPE 'I'.
       ELSE.
      WA-DESG_CODE = DESG_CODE.
      WA-DESG_DESC = DESG_DESC.
      WA-DESG_ACT = DESG_ACT.
      MODIFY ZMSTR_DESIG FROM WA.
       MESSAGE 'Inserted successfully' TYPE 'I'.
    ENDIF.
    ELSEIF DESG_OPT = 'D'.
       DELETE FROM ZMSTR_DESIG WHERE DESG_CODE = DESG_CODE.
       MESSAGE 'Deleted successfully' TYPE 'I'.
    ENDIF.
    ENDFUNCTION.
    can any one what is  wrong in this function.
    Regards,
    H.V.Swathi

    My doubt is how to write code to insert data to table. I have written code like this.
    try{
             String str1= wdContext.currentTestElement().getCode();
              String str2= wdContext.currentTestElement().getDesc();
              boolean str3= wdContext.currentTestElement().getAct();
              String str4= wdContext.currentTestElement().getOpt();
              String str5;
              if(str3)
              str5=new String("x");
              else
              str5=new String(" ");
              Zup_Desig12_Input input=new Zup_Desig12_Input();
              input.setDesg_Code(str1);
              input.setDesg_Desc(str2);
              input.setDesg_Act(str5);
              input.setDesg_Opt(str4);
              wdContext.nodeZup_Desig12_Input().bind(input);
              wdContext.currentZup_Desig12_InputElement().modelObject().execute();
        }catch(Exception e)
             wdComponentAPI.getMessageManager().reportSuccess(e.toString());
    But i am getting      java.lang.ArrayIndexOutOfBoundsException: -1
    in line
    input.setDesg_Act(str5);
    can any one help me plz

  • Doubt about ABAP Proxies

    Hi Gurus!
    I have a simple doubt.
    Exist any difference in the name of Poxies created with SPROXY against created with SE80?
    I think "SPROXY Proxies" are named ABAP Proxies and the "SE80 Proxies" are named Client Proxies, aren´t they?
    Helpful answers will be rewarded.
    Thanks and regards,
    Manuel.

    Hi Manuel,
    SPROXY is about proxy (client or server) you generate against an SLD connection, I mean when you Business System belongs to an SLD and it is connected to it. Finally when your Bus Sys has an integration server linked.
    Via SE80 you can create also proxy related to an integration server or client proxy in order to consumer Web Servicies.
    Hope this help
    regs
    matteo

  • Doubt in  abap dictionary

    hai friends,
    i created one user defined table in abap dic, in that fields, i want u add either in or out option for one field of the table created in abap dic?
    so please send for it......
    thank u                                                                               
    suresh

    Hi Suresh
    To provide user-defined values for a field, we've to go at domain level of that field.
    As u said, for the options 'in' 'out', go to domain of that field, there u'll find value range tab, there it allows user to provide our own values.
    If this works out for u, reward me plz

  • Doubt in ABAP proxy

    Hi friends,
    I am working on ABAP Proxies in XI(Client Proxy)
    After creating the Message interface in Integration Repository ,
    I went to the ABAP proxy generation,using SPROXY.
    And went to he Message Interface (Outbound) .There its displaying
    "Proxy_intfc_OB" (this is  the message interface defined in IR)
    But when Right click on the out bound interface and press " create" .Its asking me
    "Specifications for Objects to be generated"
    under it
    Package :
    Prefix :
    whats these two and what I have to give here ....
    pls help me...

    Hello,
    When I right click  on the message Interface (OB) in SPROXY.
    I created a Package and prefix and entered.
    It showing a pop up window
    with title : Add Developer.
    Message : You are not registered as a developer .Please register in the online service system(OSS) in the OSS you will recieve an access key .
    Key
    User Name : sap1user2     
    Access key :
    Installation :  "Installation number "

  • Doubt in ABAP OOP

    CLASS SAMPLE DEFINITION.
    PUBLIC SECTION.
    DATA : PU_A TYPE I.
    METHODS : CONSTRUCTOR,MM1,MM2.
    PRIVATE SECTION.
    DATA : PR_B TYPE I.
    ENDCLASS.
    CLASS SAMPLE IMPLEMENTATION.
    METHOD CONSTRUCTOR.
    ENDMETHOD.
    METHOD MM1.
    ENDMETHOD.
    METHOD MM2.
    ENDMETHOD.
    ENDCLASS.
    DATA : OBJ_SAMPLE TYPE REF TO SAMPLE.
    <b>CREATE OBJECT OBJ_SAMPLE.</b>
    In CREATE OBJECT OBJ_SAMPLE its giving err msg that statement could not be accessible.why id it so?.plz help

    hi
    copy paste my code and check. its very simple one that ur are looking for.
    REPORT  zaaclc_report.
    *       CLASS lcl_test_class DEFINITION
    CLASS lcl_test_class DEFINITION.
      PUBLIC SECTION.
        METHODS increment_counter.
        EVENTS break_statement EXPORTING value(count) TYPE i.
      PRIVATE SECTION.
        DATA: num TYPE i,
              max TYPE i VALUE 5.
    ENDCLASS.                    "lcl_test_class DEFINITION
    *       CLASS lcl_test_class IMPLEMENTATION
    CLASS lcl_test_class IMPLEMENTATION.
      METHOD increment_counter.
        num = num + 1.
        IF num EQ max.
          RAISE EVENT break_statement  EXPORTING count = num.
        ENDIF.
        WRITE:/ num .
      ENDMETHOD.                    "increment_counter
    ENDCLASS.                    "lcl_test_class IMPLEMENTATION
    *       CLASS event_receiver DEFINITION
    CLASS event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS handler FOR EVENT break_statement OF lcl_test_class  IMPORTING count.
        endclass.
    *       CLASS event_receiver IMPLEMENTATION
    CLASS event_receiver IMPLEMENTATION.
      METHOD handler.
    *    count = count + 10.
        WRITE :/ count.
        WRITE :/ 'Event Raised'.
        endmethod.
    ENDCLASS.                    "event_receiver IMPLEMENTATION
    DATA:obj TYPE REF TO lcl_test_class,
         rec TYPE REF TO event_receiver.
    START-OF-SELECTION.
    CREATE OBJECT: obj,rec.
    set handler rec->handler for obj." for all instances.
      DO 10 TIMES.
        CALL METHOD obj->increment_counter.
      ENDDO.
    <b> hope it clears ur doubt</b>
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>
    Message was edited by:
            ravish goyal

  • Doubt in ABAP Data types

    Hi friends,
    I want a clear idea of what is the diference between data type 'f' and 'p' with examples and in what situation which should be used.
    Similary what and where is 'x' and 'xstring' is used .. In what situations we 'll handly BYTE data ?????
    Iam not at all clear ... so eagerly waiting for ur responses with sample examples and clear explanations
    thanks in advance
    Cheers,
    R.Kripa.

    Hi Kripa,
    Types X and XSTRING are for binary data. For type X, the length of the data is specified at declaration, whereas for XSTRING, it can arbitrarily grow as for STRING.
    X      binary octets                 RAW       base64 string 
    Type X is used for binary octets. The length of the octets sequence must be specified at declaration. The initial value of each octet is 0.
    The lexical representation of binary octets is a sequence of characters in the MIME base64 format.
    There are two possible representations of data of type X, namely base64 and hex. base64 is a preferred binary coding scheme in the Internet community. There are standard libraries for encoding and decoding. base64 uses about 33% less space over hex coding. Although ABAP MOVE uses hex coding for binary to character conversion, base64 will be used to represent data of this type in XML.
    Note that the sequence of octets is transformed by the base64 encoding. The result, interpreted as a sequence of US-ASCII characters, appears as a sequence of Unicode characters in the content of that element.
    Dictionary type RAW corresponds to this type.
    XSTRING variable length binary octets RAWSTRING base64 string 
    Type XSTRING is used for a variable length binary octets. The initial value is ''. The length can vary as the string grows.
    The lexical representation of this type is the same as Type X.
    This type corresponds to the binary type.
    Dictionary type RAWSTRING corresponds to this type.
    Regards,
    Raj

  • Doubt in abap coding

    Hi Experts,
    I have doubt, i have an internal table with four column. like below.
    KSCHL     VALUE      DIFF
    ZMBO     1.25     12.56
    ZMBO     2.31     12.56
    ZMBO     4     12.56
    ZMBO     5     12.56
    ZCHL     4.31     16.87
    ZCHL     5.21     16.87
    ZCHL     7.35     16.87
    ZNLM     0.005     8.03
    ZNLM     0.125     8.03
    ZNLM     3.65     8.03
    ZNLM     4.25     8.03
    Now i want to print the above internal table like below,
    KSCHL     VALUE     DIFF     
    ZMBO     1.25     12.56     
    ZMBO     2.31     12.56     
    ZMBO     4     12.56     
    ZMBO     5     12.56     
              ZMBO TOTAL     12.56
    ZCHL     4.31     16.87     
    ZCHL     5.21     16.87     
    ZCHL     7.35     16.87     
              ZCHL TOTAL     16.87
    ZNLM     0.005     8.03     
    ZNLM     0.125     8.03     
    ZNLM     3.65     8.03     
    ZNLM     4.25     8.03     
              ZNLM TOTAL     8.03
    How to print this? Can any one help this. Point will be sure.
    Mohana

    Want headings?
    DATA:
      BEGIN OF myrec,
        kschl        TYPE kschl,
        value(4)     TYPE p DECIMALS 3,
        diff(4)      TYPE p DECIMALS 3,
      END OF myrec,
      itab LIKE STANDARD TABLE OF myrec.
    DATA: sv_diff(4)    TYPE p DECIMALS 3.
    TOP-OF-PAGE.
      WRITE:/1 'KSCHL',
             10 'Value',
             25 'Diff'.
    START-OF-SELECTION.
      PERFORM build_table.
      SORT itab.
      NEW-PAGE.
      LOOP AT itab INTO myrec.
        WRITE:/ myrec-kschl UNDER 'KSCHL',
                myrec-value UNDER 'Value',
                myrec-diff  UNDER 'Diff'.
        sv_diff = myrec-diff.
        AT END OF kschl.
          WRITE:/ 'Total', myrec-kschl,
                sv_diff under 'Diff'.
          SKIP.
        ENDAT.
      ENDLOOP.
    *&      Form  build_table
    FORM build_table.
      myrec-kschl = 'ZMBO'. myrec-value = '1.25'. myrec-diff = '12.56'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZMBO'. myrec-value = '2.31'. myrec-diff = '12.56'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZMBO'. myrec-value = '4.00'. myrec-diff = '12.56'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZMBO'. myrec-value = '5.00'. myrec-diff = '12.56'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZCHL'. myrec-value = '4.31'. myrec-diff = '16.87'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZCHL'. myrec-value = '5.21'. myrec-diff = '16.87'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZCHL'. myrec-value = '7.35'. myrec-diff = '16.87'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZNLM'. myrec-value = '0.005'. myrec-diff = '8.03'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZNLM'. myrec-value = '0.125'. myrec-diff = '8.03'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZNLM'. myrec-value = '3.65'. myrec-diff = '8.03'.
      APPEND myrec TO itab.
      myrec-kschl = 'ZNLM'. myrec-value = '4.25'. myrec-diff = '8.03'.
      APPEND myrec TO itab.
    ENDFORM.                    " build_table
    And the Output
    KSCHL    Value          Diff        
    ZCHL        7.350         16.870    
    ZCHL        5.210         16.870    
    ZCHL        4.310         16.870    
    Total ZCHL                16.870    
    ZMBO        1.250         12.560    
    ZMBO        2.310         12.560    
    ZMBO        4.000         12.560    
    ZMBO        5.000         12.560    
    Total ZMBO                12.560    
    ZNLM        4.250          8.030    
    ZNLM        3.650          8.030    
    ZNLM        0.125          8.030    
    ZNLM        0.005          8.030    
    Total ZNLM                 8.030    

  • Doubt in abap object classes

    in abap objects v have a class  cl_gui_alv_grid ,but can v use this class only when we are using a container,i mean in normal abap alv report we cannot use this class???
        in normal alv report v use cl_salv_table ...
    can any1 pls provide me some information on this

    Hi,
    This is the sample report for checkbox oops alv report.
    REPORT  YMS_CHECKBOXOOPSALV NO STANDARD PAGE HEADING.
    TYPE-POOLS: slis.
    DATA: BEGIN OF i_data OCCURS 0,
    qmnum LIKE qmel-qmnum,
    qmart LIKE qmel-qmart,
    qmtxt LIKE qmel-qmtxt,
    ws_row TYPE i,
    ws_char(5) TYPE c,
    chk,
    END OF i_data.
    DATA: report_id LIKE sy-repid.
    DATA: ws_title TYPE lvc_title VALUE 'An ALV Report'.
    DATA: i_layout TYPE slis_layout_alv.
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: i_events TYPE slis_t_event.
    DATA: i_header TYPE slis_t_listheader.
    DATA: i_extab TYPE slis_t_extab.
    SELECT qmnum
    qmart
    qmtxt
    INTO TABLE i_data
    FROM qmel
    WHERE qmnum <= '00030000010'.
    LOOP AT i_data.
    i_data-ws_row = sy-tabix.
    i_data-ws_char = 'AAAAA'.
    MODIFY i_data.
    ENDLOOP.
    report_id = sy-repid.
    PERFORM f1000_layout_init CHANGING i_layout.
    PERFORM f2000_fieldcat_init CHANGING i_fieldcat.
    PERFORM f3000_build_header CHANGING i_header.
    PERFORM f4000_events_init CHANGING i_events.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    i_callback_program = report_id
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_CALLBACK_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    i_structure_name = ' '
    I_BACKGROUND_ID = ' '
    i_grid_title = ws_title
    I_GRID_SETTINGS =
    is_layout = i_layout
    it_fieldcat = i_fieldcat
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    i_save = 'A'
    IS_VARIANT =
    it_events = i_events
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IT_ALV_GRAPHICS =
    IT_ADD_FIELDCAT =
    IT_HYPERLINK =
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    t_outtab = i_data
    EXCEPTIONS
    program_error = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *& Form F1000_Layout_Init
    FORM f1000_layout_init USING i_layout TYPE slis_layout_alv.
    CLEAR i_layout.
    i_layout-colwidth_optimize = 'X'.
    i_layout-edit = 'X'.
    ENDFORM. " F1000_Layout_Init
    *& Form f2000_fieldcat_init
    FORM f2000_fieldcat_init CHANGING i_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: line_fieldcat TYPE slis_fieldcat_alv.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMNUM'. " The field name and the table
    line_fieldcat-tabname = 'I_DATA'. " name are the two minimum req.
    line_fieldcat-key = 'X'. " Specifies the column as a key (Blue)
    line_fieldcat-seltext_m = 'Notification No.'. " Column Header
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMART'.
    line_fieldcat-ref_tabname = 'I_DATA'.
    line_fieldcat-hotspot = 'X'. " Shows the field as a hotspot.
    line_fieldcat-seltext_m = 'Notif Type'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'QMTXT'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Description'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_ROW'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_m = 'Row Number'.
    APPEND line_fieldcat TO i_fieldcat.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'WS_CHAR'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Test Character Field'.
    line_fieldcat-datatype = 'CHAR'.
    line_fieldcat-outputlen = '15'. " You can specify the width of a
    APPEND line_fieldcat TO i_fieldcat. " column.
    CLEAR line_fieldcat.
    line_fieldcat-fieldname = 'CHK'.
    line_fieldcat-tabname = 'I_DATA'.
    line_fieldcat-seltext_l = 'Checkbox'.
    line_fieldcat-checkbox = 'X'. " Display this field as a checkbox
    line_fieldcat-edit = 'X'. " This option ensures that you can
    " edit the checkbox. Else it will
    " be protected.
    APPEND line_fieldcat TO i_fieldcat.
    ENDFORM. " f2000_fieldcat_init
    *& Form f3000_build_header
    FORM f3000_build_header USING i_header TYPE slis_t_listheader.
    DATA: gs_line TYPE slis_listheader.
    CLEAR gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'This is line of type HEADER'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'This is line of type STATUS'.
    APPEND gs_line TO i_header.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'This is also line of type STATUS'.
    APPEND gs_line TO i_header.
    CLEAR gs_line.
    gs_line-typ = 'A'.
    gs_line-info = 'This is line of type ACTION'.
    APPEND gs_line TO i_header.
    ENDFORM. " f3000_build_header
    *& Form f4000_events_init
    FORM f4000_events_init CHANGING i_events TYPE slis_t_event.
    DATA: line_event TYPE slis_alv_event.
    CLEAR line_event.
    line_event-name = 'TOP_OF_PAGE'.
    line_event-form = 'F4100_TOP_OF_PAGE'.
    APPEND line_event TO i_events.
    CLEAR line_event.
    line_event-name = 'PF_STATUS_SET'.
    line_event-form = 'F4200_PF_STATUS_SET'.
    APPEND line_event TO i_events.
    ENDFORM. " f3000_events_init
    FORM F4100_TOP_OF_PAGE *
    FORM f4100_top_of_page.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = i_header.
    ENDFORM.
    FORM F4200_PF_STATUS_SET *
    FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
    REFRESH i_extab.
    PERFORM f4210_exclude_fcodes CHANGING i_extab.
    SET PF-STATUS 'STANDARD' OF PROGRAM 'SAPLSALV' EXCLUDING i_extab.
    ENDFORM.
    *& Form f4210_exclude_fcodes
    FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
    DATA: ws_fcode TYPE slis_extab.
    CLEAR ws_fcode.
    ws_fcode = '&EB9'. " Call up Report.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&ABC'. " ABC Analysis.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&NFO'. " Info Select.
    APPEND ws_fcode TO i_extab.
    ws_fcode = '&LFO'. " Information.
    APPEND ws_fcode TO i_extab.
    ENDFORM. " f4210_exclude_fcodes
    Thanks,
    Sankar M

  • Doubts in ABAP Proxy

    Hi All,
    1. I need to send material master data from sap r/3 to XI through abap proxy. How can i do this? can i write code in abap to extract material master data by using select statement? Please let me know.
    2. I am receiving invoice data from XI  I need to post this data into sap r/3 by abap server proxy. This data shouldn't be post immediately. it should be in parked status after doing some cross check i need to post.   How can i do this?
    Regards,
    venkatesh

    Hi,
    >>>2. I am receiving invoice data from XI I need to post this data into sap r/3 by abap server proxy. This data shouldn't be post immediately. it should be in parked status after doing some cross check i need to post. How can i do this?
    inside your abap proxy (server) just call BAPI BAPI_INCOMINGINVOICE_PARK
    and you can park invoices with this one
    there is no special handling necessary in ABAP proxy for this requirement
    parking of invoices is a standard FM in SAP
    >>>1. I need to send material master data from sap r/3 to XI through abap proxy. How can i do this? can i write code in abap to extract material master data by using select statement? Please let me know.
    there is no standard proxy for materials so just use IDoc instead
    Regards,
    Michal Krawczyk

  • Doubt on  ABAP Proxy transport

    Hi Friends,
    I have moved an abap proxy request from dev to quality, but the request has some errors in quality.
    How the procedure like whether to transport XI repository objects first or ABAP Proxy.
    In Abap Proxy is it ok if i transport only the active objects?
    Thanks.

    Hi,
    Do the XI transport first and then do the ABAP transport.
    Regards,
    Sunil.

  • Doubt about abap dynamic with performs.

    Good Morning Gurus.
    1-I have the tables of price in internal table ( t_a530 , T_a951 ... etc ).
    2- I need filter data by field datbi and datab.
    3-Can I create a perform to pass  a table and after pass other table with other format to taht same perform ?
    4-It abap dynamic.
    5-II do not want to create several performs because I can make only one (with my logic to all tables)
    Can you help me?
    Thanks.

    The program is already doing this except:
        where DATBI => sy-datum
             and DATAB <= sy-datum.
    in my program is:
        where DATBI => sy-datum
    if I change it then dont select duplicate matnrs?
    because today my problem is it:
    He slects all before sy-datum then if the material has 3 entries he show all.
    And I need the most current only.

  • Some doubts using abap

    Dear experts,
    I have used functionmodule as RFCs to fetch data from SAP
    using java/jco.Here i realised that all work has to be done in sap itself.Java is just a platform to fetch that object and show me the data.
    However i wish to know can i use native java platform itself
    ie only  jdk installalation with jco to write reports and fetch output just as i work in se38.
    Is there any separate java library for this where i can use joins ,pass querys just as i do in normal abap.
    Am i close to netweaver ,these questions are alway budding in my mind
    Regards,
    Aditya Sharma

    This is an area that I've gone changed my view on over the years. 
    When Netweaver was first introduced with it's dual stack (ABAP and Java) I was frustraited that you couldn't access the ABAP DB Schema from the Java side of the stack.  The architecture (which you can get aroudn if you really want to, but I wouldn't reccommend it) forces you to use either RFCs or WebService calls to access data on the ABAP stack from the Java stack.
    As time has gone on though I have realized that this is actually a good setup from an architecture perspective because it forces you into a seperation of concerns where your ABAP modules are implimenting a buisenss object layer around the data in the ERP system.  Additionally if you are building a composite application that combines SAP functionality with that of services provided by other applications then this actaully keeps some architectural purity to it becuase the SAP ABAP system is treated the same as any other system that it is utilizing. 
    So my recomendation would be to stick with service calls accross the stacks and not direct DB access.  In the end you'll have applications that are architected better.
    ~Ian

  • Doubts in abap user exit and coustomer exit

    Hi every bady,
    Any one knows the different between user exit and coustomer exit please answer my question
    with regards,
    Sentha

    Hi,
    Difference between user exits & customer exits:
    User exit - A user exit is a three character code that instructs the system to access a program during system processing.
    SXX: S is for standard exits that are delivered by SAP.   XX represents the 2-digit exit number.
    UXX: U is for user exits that are defined by the user.  XX represents the 2-digit exit number
    Customer exit - The R/3 enhancement concept allows you to add your own functionality to SAP’s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks.
    The following links are also useful:
    User Exit Vs Customer Exit
    coding in user exit in program rffous_t
    User exits
    User Exits
    Refer this link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975e643b111d1896f0000e8322d00/frameset.htm
    Check the following links.
    For customer exits
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1975d943b111d1896f0000e8322d00/frameset.htm
    Difference b/w BADI and user exits
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    User Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    Regards,
    Rakesh

Maybe you are looking for