Function Module for reading PCL2 - B2 FEHLER table

Hi,
   Is there any function module can use to read the FEHLER table messages? There is a standard program called RPTERL00 that used to read the FEHLER messages. However, I wish to simplified and use FM to get all the FEHLER table data in my customise program. I will need to delete some of the entries in FEHLER table after the correction has been done. Do you know how to do this?
Thanks in advance.

Hi, You don't need pass any data for table tgetbuff .
Try this simple report. It's work for me:
REPORT  Z_JRQ038R NO STANDARD PAGE HEADING
                 LINE-COUNT 65
                 LINE-SIZE 175.
* D.A.T.A.
DATA: IT_FL TYPE PC2B8 OCCURS 0 WITH HEADER LINE.
DATA:  BEGIN OF tgetbuff occurs 0,
              x(10),
           END OF tgetbuff.
* S.E.L.L.E.C.T.I.O.N.  .S.C.R.E.E.N.
  SELECTION-SCREEN BEGIN OF BLOCK BL02 WITH FRAME TITLE TEXT-S20.
    PARAMETERS:
      PERNR LIKE PA0001-PERNR,
      YEAR  LIKE T549Q-PABRJ,
      MONTH LIKE T549Q-PABRP.
  SELECTION-SCREEN END OF BLOCK BL02.
* M.A.I.N.  .P.R.O.G.R.A.M.
START-OF-SELECTION.
  CALL FUNCTION 'HR_TIME_RESULTS_GET'
    EXPORTING
      GET_PERNR     = PERNR
      GET_PABRJ     = YEAR
      GET_PABRP     = MONTH
    TABLES
      GET_TBUFF     = TGETBUFF
      GET_FEHLER    = IT_FL
    EXCEPTIONS
      NO_PERIOD_SPECIFIED   = 1
      WRONG_CLUSTER_VERSION = 2
      NO_READ_AUTHORITY     = 3
      CLUSTER_ARCHIVED      = 4
      TECHNICAL_ERROR       = 5
      OTHERS                = 6.
  CHECK IT_FL[] IS NOT INITIAL.
  LOOP AT IT_FL.
    WRITE: / IT_FL-LDATE, SPACE, IT_FL-LTIME, SPACE, IT_FL-ERRTY.
  ENDLOOP.
Regards,

Similar Messages

  • Function module for reading payroll results

    HI,
    I need a function module for reading payroll results RT table.
    Import parameters are personal number, payroll area, and payroll period.
    Export should be RT table.
    Regards,
    Wasim Ahmed

    Hai Wasim
    Check the following Code
    data: payroll_cluster like t500l-relid.
        call function 'PYXX_READ_PAYROLL_RESULT'
             exporting
                  clusterid                    = payroll_cluster
                  employeenumber               = pernr-pernr
                  sequencenumber               = payroll-evp-seqnr
                READ_ONLY_BUFFER             = ' '
                READ_ONLY_INTERNATIONAL      = ' '
                CHECK_READ_AUTHORITY         = 'X'
           IMPORTING
                VERSION_NUMBER_PAYVN         =
                VERSION_NUMBER_PCL2          =
             changing
                  payroll_result               = payroll_us
            exceptions
                 illegal_isocode_or_clusterid = 1
                 error_generating_import      = 2
                 import_mismatch_error        = 3
                 subpool_dir_full             = 4
                 no_read_authority            = 5
                 no_record_found              = 6
                 versions_do_not_match        = 7
                 others                       = 8
        if sy-subrc <> 0.
          if sy-subrc <> 0.
            write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
            write: /'zu Personalnummer'(008), pernr-pernr,
                    'bei Sequence-Number'(012),
                     payroll-evp-seqnr.
            write: /  'Fehlercode ='(004), sy-subrc.
          endif.
        endif.
    Thanks & regards
    Sreenivasulu P

  • Function module for reading service line items of a po

    function module for reading service line items of a po.............I want to read data from eslh and esll tables to getthe service line details.....
    My requirement is if the item category is 9 I need to print the service line items. So I wan to read the data of service line items from a function module. I am not able to find a fm which fetches both elsh and esll data...

    Hi oskchaitanya ,
    use bapi BAPI_PO_GETDETAIL1.
    Regards
    REA

  • Function Modul for read field label

    hi all
    i search a function modul for read the field label from data element.
    Example for data element matnr, i must have field label text material.
    Thx abap_begin

    Hi,
    If you give input parameters type, field and table you get data element using
    RP_PRINT_GET_DATA_ELEMENT
    Try also
    KL_TABLE_INFO_GET
    But not sure if this futfill your requirement...

  • Rfc enabled function module for the updating the database table

    Hi,
            I need one rfc enabled function module for the updating the database table from the legacy system.currently i am using the rfc_read_table to read the database table.similarly i need for the update.

    Hi
    I believe you need to create one by yourself
    Max

  • Function module for updating the values in table VTTK

    Hi,
    I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
    Thanks in advance,
    Priyanka.

    As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
    DATA: BEGIN OF it_return OCCURS 0.
            INCLUDE STRUCTURE bapiret2.
    DATA: END OF it_return.
    CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
    <...>
      TABLES
    <...>
        return = it_return.
    LOOP AT it_return.
      MESSAGE
           ID      it_return-id
           TYPE    it_return-type
           NUMBER  it_return-number
       WITH
                   it_return-message_v1
                   it_return-message_v2
                   it_return-message_v3
                   it_return-message_v4.
    ENDLOOP.
    Hope this helps.

  • Available Function Modules for Reading Master Recipe Info...

    Hi
    Is there a function module(s) available in ECC to read Master Recipe info.for Material/Plant inputs?
    Thanks
    Bluesclues

    Dear
    Try the folloiwng :
    1.BAPI_CONTROL_RECIPE_GET_LIST Read control recipe
    2.BAPI_CONTROL_RECIPE_REQUEST Request and transfer control
    3.MRTRS300_MASTER_RECIPE_READ  
    4.BAPI_CONTROL_RECIPE_GET_LIST
    5.MRTRS300_MASTER_RECIPE_SAVE (Save Master Recipe data from internal table )
    6.MRTRS300_MASTER_RECIPE_WRITE (Write Master Recipe data into internal table)
    Regards
    JH

  • Function modules for data retrieval from diff. tables

    Hi,
    I would just like to ask if there are function modules that can be used to retrieve data from the ff. tables:
    TSAD3T
    KNVV
    ESTRH
    for TSAD3T i need to get the value of title_medi
    for KNVV    i need to get the fields klabc vkorg vtweg
    for ESTRH  i need to get the fields subcat subid.
    Thanks.

    I doubt if you have such a FM

  • Function Module for creating condition record (XKOMV table record)

    Hi,
    I have a requirement as like below,
    In the repair order i need to sum the GRWR condition type's  conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
    the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
    for the above logic i am using the user exit
    USEREXIT_SAVE_DOCUMENT_PREPARE
    All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
    Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
    Regards,
    Manikumar
    Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PM

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • SAP HR Function Module for reading RT

    Hi,
    Is there any function module in SAP HR which takes multiple employee numbers and period as input and gives payroll results as output.
    Thanks,
    Nidhi

    There is no FM for that
    But you can try reading the cluster by using import export commands.
    Regards,
    Manu

  • Help required in creating function module which reads payroll clusters.

    Hi ,
    We have a requirement where in we need to create a function module for reading a sequence of tables from payroll clusters. This function module does two functions:
    1.Read the payroll results from one system.
    2.write the payroll results to other system.
    please do the needful as soon as possible.
    Thanks in advance.
    Regards,
    Durga.

    hi
    Refer to the below thread
    Programming with Clusters for HR-Payroll
    Regards
    Sameer

  • Function Modul for Order Number from VA02

    Hallo
    i have a delivery number and want read the order number from VA02.
    Of course, select the database from LIKP --> LIPS --> VBKD is possible but 
    maybe it has function modul for read the order number from transaction VA02.
    THX ANU

    Hi,
    I think is better recover the data directly from DB tables (in table LIPS you have the fields VGBEL, VGPOS, VGTYP ) if you only want the order number.
    With the delivery number you only need to acces 1 table. If you use a FM, you will recover this data and a few fields that is not interesting for you. The access to table LIPS is using table index (delivery number)
    Regards,
    Pepe

  • Buffered Function Modules for EKKO, EKPO, EKBE, EKES etc

    Hi,
    Could you please let me know of some buffered function modules for reading data from EKKO EKPO EKBE EKES EKET?
    Regards,
    Suraj

    Try BAPI_PO_GETDETAIL  , BAPI_PO_GETITEMS  , BAPI_PO_GET_LIST

  • SAP Functional Module for authorization tables

    I would like to know are there any standard SAP Functional Modules which could update the Authorization Tables, like AGR_1251.
    Thank you

    Hi Prabhu,
    Other than function modules with role, I had also tried to look for function modules with AuthObject*.
    Because, I would like to update remove one of the authorization object from the system. For example, remove all data which AUTHORIZATION OBJECT = S_SCD0 and ACTIVITY = 06 in the system.
    I got the list of functions from the search, but all of them are without proper documentations. So is very hard for me to understand their functionalities and purposes.
    Kindly advice.
    Thank you.

  • Urgent: creation function module for chvw table

    hi,
    I want to make Function Module for the fields in which i have to display the production order and batch numbers.plzz tell me how to create for it.

    Hi Everybody,
    About how to use this function Does anyone have an idea?
    I've found it.
    call function 'FI_DOCUMENT_READ'
    exporting
       i_awtyp = 'VBRK'
       i_awref = vbfa_tab-vbeln
       i_awsys = vbrk-logsys
       i_bukrs = vbrk-bukrs
       i_gjahr = vbrk-gjahr
    tables
       t_bkpf = xbkpf
       t_bseg = xbseg
    exceptions
    wrong_input = 1
    not_found = 2.
    But this is not enough.
    Best Regards Rasim.

Maybe you are looking for

  • I have purchased apple tv and it wont accept my gmail ID, am I missing something?

    I have tried several times to set up my apple tv, but I cant't get passed the Apple ID, maybe I'm using a wrong gmail address but thats my Apple ID, any help would be appreciated.

  • File Batch Rename Errors

    I am renaming a lot of files using Bridge Batch Rename and get errors on some of the files.  I have a Windows 7 Professional 64 bit computer running Photoshop CS6.  Bridge version is 5.0.1.23 x64.  I am renaming files using this format - YYYYMMDD-HHM

  • Web Overlay content - lock?

    Hi- Love DPS. Have a question when I bring in a web overlay with html5 content (not adobe edge based). It seems that that content can be moved around within the frame window. Is it possible to lock it in position so that when a user interacts with it

  • VSO API Auth - specifying tenant/principal

    I have users with VSO accounts linked to their AAD instances and I want to query these accounts with the VSO API. The problem is, if I redirect a user who hasn't logged into VSO to the VSO authorization endpoint, they get redirected to the VSO sign i

  • [SOLVED] TTY font and screen size not right after switch GUI- cons

    I have a small problem that I need some help with.  I lost my ttys when in r/l 5.  So, I appended my krnl boot line w/ vga=773.  That gave me fb in tty.  But I saw that the top of the screen was about 30% down from the top of the actual screen.  To f