Regd ABAP HR query

Hi All,
I have a requirement where i have to get the data for Basic Pay and DA from infotype 0008 as:-
Basic Pay     :-  Q0008-BETRG for Q0008-LGART = 1010, 1011 , 020, 1030 (earliest)         Q0008-BETRG for Q0008-LGART = 1010,1011,1020,1030 (latest)
Dearness Allowance:- Q0008-BETRG for Q0008-LGART = 1110,1111,1120,1130
Please advice how to code to get the same.
Thanks & Regards,
Preeti

Hello Preeti look at my program, i have made use of LDB PNP (so u have to specify it in attributes of program)..
as per my understanding u require the first and the last record of IT0008 for a employee.
code  -
REPORT  ZGILL3   message-id rp
                             line-size 250
                             line-count 65.
*eject
*& Tables and Infotypes                                                *
tables: pernr.
infotypes: 0000,
           0001,
           0008.
*eject
*& Constants                                                           *
constants: c_1(1)       type c               value '1'   ,
           c_3(1)       type c               value '3'   ,
           c_i(1)       type c               value 'I'   ,
           c_x(1)       type c               value 'X'   ,
           c_eq(2)      type c               value 'EQ'  .
*           c_pl03       like p0001-werks     value 'PL03'.
*eject
*& Internal tables                                                     *
* Internal Table for Output
data: begin of t_output occurs 0    ,
       pernr like pernr-pernr       ,
       lgart1   type LGART,
       betrg1   type PAD_AMT7S,
       lgart2   type LGART,
       betrg2   type PAD_AMT7S,
       lgart3   type LGART,
       betrg3   type PAD_AMT7S,
       lgart4   type LGART,
       betrg4   type PAD_AMT7S.
data: end of t_output           .
data: lgart type lgart,
      betrg type PAD_AMT7S.
data: count type i.
*eject
*& Initialization                                                      *
Initialization.
* Initialize Selection-Screen values
  perform init_selction_screen.
*eject
*& Start-of Selection                                                  *
Start-of-selection.
get pernr.
  clear t_output.
* Read Infotype 0
  rp-provide-from-last p0000 space pn-begda pn-endda.
  check pnp-sw-found eq c_1.
* Check if employee is active
  check p0000-stat2 in pnpstat2.      "pernr Active
* Read Infotype 1
  rp-provide-from-last p0001 space pn-begda pn-endda.
  check pnp-sw-found eq c_1.
* Check if emp belongs to Active Group
  check p0001-persg in pnppersg.
* Read Infotype 8
  rp-provide-from-last p0008 space pn-begda pn-endda.
  check pnp-sw-found eq c_1.
  sort p0008 by endda descending.
describe table p0008 lines count.
* Gather latest  wagetypes
clear t_output.
read table p0008 index 1.
if sy-subrc eq 0.
    move pernr-pernr to t_output-pernr.
    DO 40 TIMES VARYING LGART FROM P0008-LGA01 NEXT P0008-LGA02
                VARYING BETRG FROM P0008-BET01 NEXT P0008-BET02.
    if LGART = '1000'.
     move: lgart to t_output-lgart1,
           betrg to t_output-betrg1.
    append t_output.
    endif.
    if LGART = '1011'.
     move: lgart to t_output-lgart2,
           betrg to t_output-betrg2.
    append t_output.
    endif.
    if LGART = '1020' .
         move: lgart to t_output-lgart3,
           betrg to t_output-betrg3.
    append t_output.
    endif.
if LGART = '1030' .
     move: lgart to t_output-lgart4,
           betrg to t_output-betrg4.
    append t_output.
    endif.
ENDDO.
endif.
clear: t_output,
       p0008.
* Gather earliest  wagetypes
read table p0008 index count.
if sy-subrc eq 0.
    move pernr-pernr to t_output-pernr.
    DO 40 TIMES VARYING LGART FROM P0008-LGA01 NEXT P0008-LGA02
                VARYING BETRG FROM P0008-BET01 NEXT P0008-BET02.
    if LGART = '1000'.
     move: lgart to t_output-lgart1,
           betrg to t_output-betrg1.
    append t_output.
    endif.
    if LGART = '1011'.
     move: lgart to t_output-lgart2,
           betrg to t_output-betrg2.
    append t_output.
    endif.
    if LGART = '1020' .
         move: lgart to t_output-lgart3,
           betrg to t_output-betrg3.
    append t_output.
    endif.
if LGART = '1030' .
     move: lgart to t_output-lgart4,
           betrg to t_output-betrg4.
    append t_output.
    endif.
ENDDO.
endif.
*eject
*& End-of Selection                                                    *
end-of-selection.
loop at t_output.
write:/ 'Employee',
      /20 t_output-pernr color 2.
write:/ '1000', t_output-betrg1,
       / '1011', t_output-betrg2,
       / '1020', t_output-betrg3,
       / '1030', t_output-betrg3.
endloop.
*eject
*&      Form  init_selction_screen
*Description:
FORM init_selction_screen .
  refresh: pnpwerks,
           pnppersg,
           pnpstat2.
  clear:   pnpwerks,
           pnppersg,
           pnpstat2.
*  pnpwerks-sign   = c_i.
*  pnpwerks-option = c_EQ.
*  pnpwerks-low    = c_pl03.
*  append pnpwerks.
  pnppersg-sign   = c_i.
  pnppersg-option = c_EQ.
  pnppersg-low    = c_1.
  append pnppersg.
  pnpstat2-sign   = c_i.
  pnpstat2-option = c_EQ.
  pnpstat2-low    = c_3.
  append pnpstat2.
ENDFORM.                    " init_selction_screen

Similar Messages

  • Abap/4 query

    what is mean by ABAP/4 Query? explain with simple?
    Search before you Post.*
    Edited by: kishan P on Jan 12, 2012 6:45 PM

    Hi,
    The whole process comprises of three steps.
    1) Creation of user group - Transaction associated with creation of usergroup is SQ03.
    2) Creation of infoset - Transaction associated with creation of infoset is SQ02.
    3) Creation of queries - Transaction associated with creation of query is SQ01.
    SAP's online help link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm
    How to create ABAP Query with screenshots(PDF Document):
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    Creating the ABAP Query:
    http://www.thespot4sap.com/articles/sap_abap_queries_create_the_query.asp
    Regards,
    Srilatha.

  • Abap select query problem

    This report will take delivery document number and delivery date from user and fetches details from delivery table and fetches
    corresponding sales order details and billing details  and displays sales order details with ALV list.
    << Please only post the relevant portions of your code >>
    i just want to know that is this way of fetching the data into internal table okay ?are there any better ways of fetching the data into the internal table ? why  is it looping in work area of lips, why not in likp?
    (plz dont use field-symbols or oo abap or macros) I WANT TO USE PLAIN AND SIMPLE ABAP STATEMENTS LIKE ABOVE..
    By using "vbeln type lips-vbeln" are we refering to the field or data element? plz suggest.
    P.S.           [my approach was to inner join likp and lips into itab(my internal table).
    select data from kna1, vbak,vbap,vbrp into respective internal tables like it_kna1,it_vbak etc.
    then using individual loops into the tables, i would use read table to insert data into itab(my final internal table) plz suggest which method wud be more efficient? ]
    Edited by: Rob Burbank on Jun 8, 2009 11:54 AM

    ok i am posting the select queries once again.
    i want to know why are we looping in t_lips and why not t_likp? bcoz tlikp is the header table, if we loop thru it and then read the rest tables then what will be the problem? plz clarify with examples._
    [my idea was to loop at t_likp then read t_lips.append the lips data into t_order(main internal table).then do read table on t_kna1,t_vbap etc indexing t_order. so plz suggest whether my approach was write or wrong?if wrong why?plz site any other ways of doing this query.
    types: begin of ty_vbap,
           vbeln type vbap-vbeln,
           posnr type vbap-posnr, .....
    does the declaration statement in types refer to tables or data elements? what is the difference if we declare it like:
       types: begin of ty_vbap,
           vbeln type vbeln,
           posnr type posnr, .....
    select-options:
    s_deldoc FOR likp-vbeln, " Delivery
    s_dldate FOR likp-lfdat. " Delivery Date
    Get delivery document number,delivery date,customer number from
    delivery header table
    SELECT vbeln " Delivery
    lfdat " Delivery Date
    kunnr " Customer Number 1
    FROM likp
    INTO TABLE t_likp
    WHERE vbeln IN s_deldoc
    AND lfdat IN s_dldate.
    IF sy-subrc EQ 0.
    Get Customer name for customer numbers from Customer master table
    SELECT kunnr " Customer Number 1
    name1 " Name 1
    FROM kna1
    INTO TABLE t_kna1
    FOR ALL ENTRIES IN t_likp
    WHERE kunnr EQ t_likp-kunnr.
    IF sy-subrc EQ 0.
    Get delivery item number,sales document number,sales item number,
    delivery quantity from delivery item table
    SELECT vbeln " Delivery
    posnr " Delivery Item
    vgbel " Document number of
    " reference document
    vgpos " Item number of reference item
    lfimg " Actual quantity delivered
    vrkme " Sales unit
    FROM lips
    INTO TABLE t_lips
    FOR ALL ENTRIES IN t_likp
    WHERE vbeln EQ t_likp-vbeln.
    IF sy-subrc EQ 0.
    Get sales document number,item number,material,material description,
    ordered quantity from sales item table
    SELECT vbeln " Sales Document
    posnr " Sales Document Item
    matnr " Material Number
    arktx " Short text for sales order
    " item
    kwmeng " Cumulative Order Quantity
    vrkme " Sales unit
    FROM vbap
    INTO TABLE t_vbap
    FOR ALL ENTRIES IN t_lips
    WHERE vbeln EQ t_lips-vgbel
    AND posnr EQ t_lips-vgpos.
    IF sy-subrc EQ 0.
    Get sales document number ,created date,purchase order number from
    sales header table
    SELECT vbeln " Sales Document
    erdat " Date on Which Record Was" Created
    aufnr " Order Number
    FROM vbak
    INTO TABLE t_vbak
    FOR ALL ENTRIES IN t_lips
    WHERE vbeln EQ t_lips-vgbel.
    IF sy-subrc EQ 0.* Get billing document number,billing item,reference delivery document
    number,delivery item number,billing item from billing item table
    SELECT vbeln " Billing Document
    posnr " Billing item
    vgbel " Document number of the
    " reference document
    vgpos " Item number of the" reference" item
    fklmg " Billing quantity in" stockkeeping unit
    vrkme " Sales unit
    FROM vbrp
    INTO TABLE t_vbrp
    FOR ALL ENTRIES IN t_lips
    WHERE vgbel EQ t_lips-vbeln
    AND vgpos EQ t_lips-posnr.
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ELSE.
    Display message if records are not found for entered values
    MESSAGE S000.
    EXIT.
    ENDIF. " IF SY-SUBRC EQ 0
    Looping Delivery item internal table to assign values to order
    internal table
    LOOP AT t_lips INTO fs_lips.
    Get delivery date and customer number for delivery document number
    from delivery header internal table
    READ TABLE t_likp WITH KEY vbeln = fs_lips-vbeln
    INTO fs_likp.
    Get customer name for customer number from customer master internal
    table
    IF sy-subrc EQ 0.
    READ TABLE t_kna1 WITH KEY kunnr = fs_likp-kunnr
    INTO fs_kna1.
    Get sales document number,item number,ordered quantity for delivery
    document number,item number from sales item internal table
    IF sy-subrc EQ 0.
    READ TABLE t_vbap WITH KEY vbeln = fs_lips-vgbel
    posnr = fs_lips-vgpos INTO fs_vbap.
    Get goods issue date and purchase order number for sales document
    number from sales header internal table
    IF sy-subrc EQ 0.
    READ TABLE t_vbak WITH KEY vbeln = fs_vbap-vbeln INTO fs_vbak.
    IF sy-subrc EQ 0.
    Get billing document number,billing item,billing quantity for delivery
    document number,delivery item number from billing item internal table
    READ TABLE t_vbrp WITH KEY vgbel = fs_lips-vbeln
    vgpos = fs_lips-posnr INTO fs_vbrp.
    Assign sales,delivery,billing fields into respective fields of sales
    order internal table
    IF sy-subrc EQ 0.
    fs_order-vbeln = fs_vbap-vbeln.
    fs_order-posnr = fs_vbap-posnr.
    fs_order-erdat = fs_vbak-erdat.
    fs_order-kunnr = fs_likp-kunnr.
    fs_order-name1 = fs_kna1-name1.
    fs_order-aufnr = fs_vbak-aufnr.
    fs_order-matnr = fs_vbap-matnr.
    fs_order-arktx = fs_vbap-arktx.
    fs_order-kwmeng = fs_vbap-kwmeng.
    fs_order-vrkme = fs_vbap-vrkme.
    fs_order-vbeln1 = fs_lips-vbeln.
    fs_order-posnr1 = fs_lips-posnr.
    fs_order-lfimg = fs_lips-lfimg.
    fs_order-vrkme1 = fs_lips-vrkme.
    fs_order-vbeln2 = fs_vbrp-vbeln.
    fs_order-posnr2 = fs_vbrp-posnr.
    fs_order-fklmg = fs_vbrp-fklmg.
    fs_order-vrkme2 = fs_vbrp-vrkme.
    APPEND fs_order TO t_order.
    CLEAR fs_order.
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDIF. " IF SY-SUBRC EQ 0
    ENDLOOP. " LOOP AT T_LIPS INTO FS_LIPS

  • How to get the layouts in ABAP program/Query

    Hi -
    I had created some layouts for a ABAP query and I can see them in the table LTDX as well.
    But I had deleted the layouts while changing the query settings.
    How can I get those layouts back in my query? Please suggest. Thanks.

    Hi,
    Did you check with the below function modules,
    ALV_LAYOUT_GET
    REUSE_ALV_VARIANT_F4
    Also try executing the report, RSVARDOC_610, which will enable the variants sometimes after some modifications.
    I am not sure, but may be you can have a look.....

  • ABAP mapping query

    Hi Sdn,
    I am new to ABAP mapping in XI, can you please help me out by answering the below questons.
    1. When is an ABAP mapping being used?
    2. How to write an ABAP mapping?
    3. Some examples of ABAP mapping?
    Suitable links will also do?
    Thanks and regards,
    Aniruddha Bhattacharya

    Hi Aniruddha,
    Few Links from my collection;)
    [ABAP Mapping Steps |https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/abap%252bmapping%252bsteps]
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    collection of all related Blogs and [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426|]Wikis
    The best one http://www.sdn.sap.com/irj/scn/advancedsearch?query=abap+mapping.
    Regards,
    Srinivas
    Edited by: Srinivas on Apr 22, 2010 8:47 PM

  • Apache Reverse Proxy with Abap Web query

    Hi to all
      We are trying to configure apache 2 to work as a reverse proxy with web abap Netweaver installation.
    From inside the network the web query is fine.
    Running the query with the reverse proxy we have only the html code in the browser. All the scripts and css are not present.
    We checked some messages inside the forum and we have tried a lot of stuff without success.
    We use always linux (Fedora, Ubuntu with xampp or apache only) plus the html module or the publisher from http://apache.webthing.com.
    Our installation is like this the reverse proxy in the dmz and the netweaver to the inside off coarse, and we don't have the same domain name, i don't know if this is important.
    Any help/idea  is valuable.
    Thank you
    Yiannis

    Hi Olivier
    I have seen your solution in other messages but i didn't try it because i was trying to work with the html_proxy module.
    I read the documents you gave me plus some apache tutorials on the rewrite rule.
    In any case i have my installation working now.
    I did some extra changes in my config so now the rules are like that
    ProxyVia On
    ProxyBadHeader IsError
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass /sap http://192.168.1.59:8001/sap
    ProxyPassReverse /sap http://192.168.1.59:8001/sap
    RewriteEngine On
    RewriteRule ^/(sap\(.*) http://192.168.1.59:8001/$1 [P,L]
    Thanks again for your help
    Yiannis

  • HTTP Connection to ABAP System - Query String Not Allowed message

    Hi All,
    We are trying to create HTTP Connection to ABAP System on a SAP ECC system.
    Following entries are added
    1 Connection Type: H
    2 Target Host: Host name
    3 Service Number: HTTP Port name
    4 Path Prefix: /sap/XI/engine/?type=entry
    It is not allowing me to enter Path prefix as "/sap/XI/engine/?type=entry". It is throwing a warning message as "Query String Not Allowed message".
    As per the documentation it is mentioned that -<b> If the system displays the Query String Not Allowed message, you can ignore it.</b>
    It is not allowing me to save the entries succesfully . I need to remove the path refix entry then only i am able to save other wise it is not allowing me to proceed at all.
    Please let me know what entry i can put for the same or let me know how can i ignore and proceed by saving the path prefix as "/sap/XI/engine/?type=entry".
    Please provide your valuable help on this.
    Regards,
    Nanda

    Hi Aamir ,
    Thanks for the response.
    Tried both but still same issue .
    Any more inputs .
    Cheers,
    Nanda

  • Very Urgent Help , ABAP SQL Query

    Guys,
    Please suggest.I have a table(custom_table1) with a field say A which is of date type = c and length = 9. And i want to query this table.Following is the query.
    Select substr(A,0,5) B C into itab From table custom_table1
    where b = ( select b from cusstom_table2 )
    and substr(A,0,5) = Input_A.
    That is i want to equate an Input_A (which is of 5 character length) with field A (only first 5 character of the 9 length). But it seems the query is wrong. Kindly help ,very urgent
    Thanks

    Thanks guys, U have helped me to fill up the where condition as
    but what about the column A in the select query ?I need only 5 characters from the field populated into Itab.
    CONCATENATE  srch_str '%' INTO srch_str.  -- bcos i want it to be 'InputA%'
    Select Substr(A,0,5) , B C Into Itab From CustomTable 1 where B = (Select B from customtable2) and A Like SrchStr
    Is there any means i can populate only the 5 characters from the select field A into Itab without using Substr (becos it doesnt work) ? Please help.

  • MDM ABAP API: Query with Multiple Parameters

    I would like to query MDM repository passing multiple parameters. I used the following code, however, it didn't work.
    If I pass only one parameter, it works fine.
    DATA lt_query                  TYPE mdm_query_table.
    DATA ls_query                 TYPE mdm_query.
    DATA lv_search_text       TYPE string.
    DATA lt_result_set            TYPE mdm_search_result_table.
    DATA ls_result_set           LIKE LINE OF lt_result_set.
    * Fill query structure with FIRST parameter
        ls_query-parameter_code  = 'Name'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = 'BMW'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    * Fill query structure with SECOND parameter
        ls_query-parameter_code  = 'Model'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = '2009'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    * Query on records (search for value 'BMW' model '2009' in table Products)
        CALL METHOD lr_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'                  
            it_query            = lt_query
          IMPORTING
            et_result_set       = lt_result_set.

    Hi,
    I see you are not clearing your local structure "ls_query".  This could be reason of problem,  try this and let us know the result:
    DATA lt_query                  TYPE mdm_query_table.
    DATA ls_query                 TYPE mdm_query.
    DATA lv_search_text       TYPE string.
    DATA lt_result_set            TYPE mdm_search_result_table.
    DATA ls_result_set           LIKE LINE OF lt_result_set.
    Fill query structure with FIRST parameter
        ls_query-parameter_code  = 'Name'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = 'BMW'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Fill query structure with SECOND parameter
        ls_query-parameter_code  = 'Model'.
        ls_query-operator        = 'CS'. 
        ls_query-dimension_type  = mdmif_search_dim_field.    
        ls_query-constraint_type = mdmif_search_constr_text.
        lv_search_text = '2009'.
        GET REFERENCE OF lv_search_text INTO ls_query-value_low.
        APPEND ls_query TO lt_query.
    CLEAR ls_query.
    Query on records (search for value 'BMW' model '2009' in table Products)
        CALL METHOD lr_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Products'                  
            it_query            = lt_query
          IMPORTING
            et_result_set       = lt_result_set.

  • MDM ABAP API query to pass the date range

    Hi
    I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
    Not sure how to do it to pass the select option value in the query.
    select-options: s_cdate for sy-datum obligatory .
    DATA  wa_query     TYPE mdm_query.
    DATA: v_search_date1    TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1   type string.
    data: v_datestamplow    type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow  = v_datestamplow1.
    clear wa_query.
        wa_query-parameter_code = 'Changed_On '.             "Field code ( Field name )
        wa_query-operator = 'EQ'.
        wa_query-dimension_type = mdmif_search_dim_field.    "Field search
        wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date  serach
    I am able to get the data when I just pass the low value from selecct option.  But I dont how  to pass the date range.
       v_search_date1-CONTENT = v_datestamplow.
        ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
        APPEND wa_query TO gt_query.
      CALL METHOD cl_api->mo_core_service->query
          EXPORTING
            iv_object_type_code = 'Vendors'
            it_query            = gt_query
          IMPORTING
            et_result_set       = gt_result.
    II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
    EQ     Equal to (like standard select-options parameter)
    NE     Not equal to (like standard select-options parameter)
    LT     Less than (like standard select-options parameter)
    LE     Less than or equal to (like standard s-o parameter)
    GT     Greater than (like standard select-options parameter)
    GE     Greater than or equal to (like standard s-o parameter
    SW     Starts with (MDM specific parameter)
    Thanks,
    Krishna.

    Hi,
    To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
    select-options: s_cdate for sy-datum obligatory .
    DATA wa_query TYPE mdm_query.
    DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
    data: v_datestamplow1 type string.
    data: v_datestamplow type TZNTSTMPL.
    concatenate s_cdate-low '000000' into v_datestamplow1
    v_datestamplow = v_datestamplow1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'GE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    concatenate s_cdate-high '235959' into v_datestamphigh1
    v_search_date2 = v_datestamphigh1.
    clear wa_query.
    wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
    wa_query-operator = 'LE'.
    wa_query-dimension_type = mdmif_search_dim_field. "Field search
    wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
    GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
    APPEND wa_query TO gt_query.
    CALL METHOD cl_api->mo_core_service->query
    EXPORTING
    iv_object_type_code = 'Vendors'
    it_query = gt_query
    IMPORTING
    et_result_set = gt_result.
    Thanks.

  • ABAP + HR Query

    Hi all,
    I learnt ABAP. Now I want to learn HR module.
    Can anyone give me the roadmap to learn HR module ?
    If anyone have material for HR module then please send it to [email protected]
    Thanks & Regards
    Raj

    Hi Raj,
    The PDFs available in the following link cover nearly all topics of the 4.6C SAP Online Help:
    http://www.easymarketplace.de/online-pdfs.php
    http://www.consolut.de/saphelp/sap_online_help_en.html
    You can find the HR module PDFs in the above links.
    Best regards,
    Thangesh

  • Regd Abap Objects

    Hi,
    Using abap objects i have designed a screen with tree structure.
    In my tree,nodes correspond to menu items of a standard transaction.
    In the std transaction, if i click menu items i will get diff. selection-screens for each menu item.
    In the same way,If i click a node in my tree, screen corresponding to that  menu item in the std. transaction shold be displayed.
    <b>i just want to know how to get/call the scelection-screens here.</b>
    Hope i am clear.
    Please let me knwo how to do.
    Regards,
    Sowjanya.

    hi dominic,
    i know which method to use.
    In the method node_double_click
    if node_key = 'Child1'.
    call transaction 'VA03'.
    endif.
    if i give it goes to 1st screen of VA03 transaction.
    but i want to go directly to create sales screen like if i click 1 st menu item i will get a screen i want to get that.
    I hope you got it.
    Regards,
    sowjanya

  • ABAP Select Query

    Hi Experts,
        I am running one report program where the user gives only the date in the selection screen. I need to select all the document number which has not been sent before and equal to that date and send as file to another system. I have one standard table and custom ztable. I will be updating the document number,store number and posting date of the document in the ztable once the file is sent.
    I need to put a query where i need to compare the date as less than equal to selection screen date and I should select only the document numbers that is not existing in my ztable.
    How to proceed on this query??
    Regards
    Sridevi S

    Hi,
    You can follow below code:
    Select * from standard table into I_itab where date LE P_date.
    Select * from custome table for all entries in i_itab into i_itab1 where document number = i_itab-document number.
    Loop at i_itab into wa_itab.
       v_index = sy-tabix.
       read table i_itab1 into wa_itab1 where document number = wa_itab-document number.
       if sy-subrc EQ 0.
          delete i_itab index v_index.
       endif.
    clear: wa_itab1, wa_itab, sy-tabix.
    endloop.
    Thanks,
    Archana
    Edited by: Archana Pawar on Aug 19, 2010 12:51 PM

  • Sharepoint to ABAP related query

    Hi All,
    I have saved a report output from abap to Sharepoint site.........
    My requirement is that, can we provide checkin & checkout from ABAP coding using their methods from sharepoint.......
    If it is possible plz send me the sample code...... its urgent.....
    Thanks in advance.......,
    Ahmed

    Hi,
    I think this is not the correct forum for this question.
    Regardss,
    DeepaK Kori

  • ABAP Certification Query

    I already have 2.5 years exp. in ABAP and planning to do certification.
    I am taking preparation by studying TAW10 and TAW12  e-books and practicing test in http://codeexcellence.com/.
    I donu2019t want to join any institute and want to clear the exam C_TAW12_04, directly through Siemens.
    Can anybody inform me in details, about the process.

    Hi...
    I hope this ll be helpful to you.
    http://www.sapcertification.info/viewpage.php?page_id=48
    Plz go thru the site, its really nice info about SAP certification.
    Rewards point if useful.
    Thanks & Regards
    vinsee

Maybe you are looking for

  • SSO between Portal and Nakia.....problem with SSO... library not found..

    Hi Sdn's  and Nakisa tehnical experts, We have a Portal environment 7.02 , a Nakisa environment 3.0  (CE) and and HR backend environment 701 (604). We are busy setting up SSO between Portal and Nakisa via the, URL iview for the Org chart (http://<hos

  • Interlacing issue when zooming in on photo in FCP

    Can anyone tell me why this image (picture 1) looks interlaced in FCP's Canvas window and on my NTSC broadcast monitor when in fact it isn't? I scanned this image at 600dpi planning to zoom in on the photo in FCP, so I know it's not a low resolution

  • Query regarding cron expression in BPEL

    Hi, I am using the quartz scheduler in BPEL and using the cron expression in bpel.xml but the problem I am facing is it is running for only one day it is not running for the next day the expression I am writting in bpel.xml is <activationAgents> <act

  • Applying OLAP 9.2.0.1.0A patch fails

    Hi, I can't apply OLAP 9.2.0.1.0A patch. Bellow is the error message I got and it seems like the additional '/' after the 'lib' directory in the path is causing the problem. Can anyone help me with this problem? Thank you very much. Best Regards, Sei

  • SVN configuration file

    Hello, I am using Data Modeler in combination with SVN. I want to modify the SVN config file which Data Modeler uses for client settings. This file is situated in : <Data modeler settings directory>\system3.3.0.744\o.jdeveloper.subversion.11.1.1.4.37