Regarding the Function module HR_READ_INFOTYPE

Hi Experts,
I'm using the Function module HR_READ_INFOTYPE and the code is as following
CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr     = g_pernr
          infty     = '0002'
        TABLES
          infty_tab = it0002.
      CLEAR wa0002.
      READ TABLE it0002 INTO wa0002 WITH KEY pernr = g_pernr.
it is not fetching the data for a particular PERNR but the sy-subrc is 0 after the executing the Function module.
Please help me out.
Thanks
Nivash S

Hi Experts,
Thanks for Ur advice. Actually there is no authorization for that particular PERNR thats why it has skipped that particular record.
Thanks Once again,
Nivash S
Edited by: Nivash S on May 12, 2009 8:49 AM

Similar Messages

  • Regarding The Function Module SXMS_ASYNC_EXEC strucking In Queue

    Dear All,
    I have Written an Enhancement for standard Program MB52,  I have written an Outbound Proxy and scheduled the job in background the Job is running successfully but default the the Function module SXMS_ASYNC_EXEC is also scheduled and is it  showing an Error SYS-Fail.
    Queue Block : Action OPEN_PSA_DATAPACKAGE/2 IS NOT SUPPORTED Iam Trying to Apply the Note Pls help me in this Regards
    Regards
    Naresh

    Hi Amit,
    if you are working with abap proxies there is an error in the proxy code that you have implemented.
    Use the tcode SPROXY -> Proxy -> Test Interface (F8)
    Best Regards,
    Francesco

  • Regarding the function module WF_WINDOWS_EXECUTE

    Can anyone tell me if the function module WF_WINDOWS_EXECUTE will work with a parameter of sap R/3 type. I mean that it works with internet sites but will it still work with the HTML pages which we design.

    hi..
    IMPORTING
    *" PARAMETER LIKE TWFSA-PARAM
    *" PROCESS_DATA LIKE WFPRCD STRUCTURE WFPRCD
    *" PROCESS_ID LIKE WFPRCK STRUCTURE WFPRCK
    *" EXPORTING
    *" PROCESS_DATA_NEXT LIKE TWFNS2 STRUCTURE TWFNS2
    *" RETURN_CODE LIKE TWFNS-RCODE
    *" TABLES
    *" ASSIGNMENTS STRUCTURE WFAS1
    *" LOGLINES STRUCTURE TLINE
    *" EXCEPTIONS
    *" WF_ERROR_PROCESS
    *" WF_NOTHING_DONE
    <b>Rewards point if useful</b>
    Regards
    Ashu

  • Please help regarding the function module 'MESSAGE_TEXT_BUILD'

    hii i am a new employee.
    can anyone please explain wat the following code is doing
    IF sy-subrc = 0.
    l_mstring = t100-text.
    IF l_mstring CS '&1'.
    REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
    ELSE.
    REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
    ENDIF.
    CONDENSE l_mstring.
    i am supposed to use a function module for it
    i have got a function module.
    but i am not understanding wat fields shd i put in it
    the function module is
    CALL FUNCTION <b>'MESSAGE_TEXT_BUILD'</b>
    EXPORTING
    msgid =
    msgnr =
    MSGV1 = ' '
    MSGV2 = ' '
    MSGV3 = ' '
    MSGV4 = ' '
    IMPORTING
    MESSAGE_TEXT_OUTPUT =
    can anyone tell wat shd i put on msgid ,msgnr and other fields.
    [email protected]

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

  • Regarding the function module 'DYNP_VALUES_READ'

    Hi,
         There are two input fields on my popup screen.
    1. Plant
    2. OrderNo.
    I have created F4 help for the order no. But i want to capture the plant value so that i can get order no based on the plant.
    For that, i have written the below code. The internal table tl_dynpfields is not getting filled after the function module  'DYNP_VALUES_READ'  gets executed.
    Can anyone tell me what mistake i am commiting.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pro1
    TYPES : BEGIN OF tp_dynpfields,
              fieldname  LIKE dynpread-fieldname,
              stepl      LIKE dynpread-stepl,
              fieldvalue LIKE dynpread-fieldvalue,
              fieldinp   LIKE dynpread-fieldinp,
              END OF tp_dynpfields.
      DATA : wl_dynpfields TYPE tp_dynpfields,
             tl_dynpfields TYPE STANDARD TABLE OF tp_dynpfields.
      wl_dynpfields-fieldname = 'P_PLANT1'.
      APPEND wl_dynpfields TO tl_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                         = sy-repid
          dynumb                         = '0200'
        TABLES
          dynpfields                     = tl_dynpfields
       EXCEPTIONS
         invalid_abapworkarea           = 1
         invalid_dynprofield            = 2
         invalid_dynproname             = 3
         invalid_dynpronummer           = 4
         invalid_request                = 5
         no_fielddescription            = 6
         invalid_parameter              = 7
         undefind_error                 = 8
         double_conversion              = 9
         stepl_not_found                = 10
         OTHERS                         = 11.
    Thanks,
    Ibrahim

    Hey,
    i got the value.
    thanks

  • Regarding the function module Number_Get_Next

    Hi All,
          We have created one custom transaction. We need to generate one number when we save. The number will be generated using the function module NUMBER_GET_NEXT. How can i capture the number which will be generated.
    When we create Sales Order, the sales order number gets generated and that number will go to the DB Table right.
    Similarly i need to save the number in one custom table which gets generated for my transaction.
    Thanks,
    Ibrahim

    Hi
    The code should be like this:
    IF RANGE_OPEN IS INITIAL.
          CALL FUNCTION 'NUMBER_GET_INFO'
               EXPORTING
                    NR_RANGE_NR        = <Nr range>
                    OBJECT             = <Object range>
               EXCEPTIONS
                    INTERVAL_NOT_FOUND = 1
                    OBJECT_NOT_FOUND   = 2
                    OTHERS             = 3.
          IF SY-SUBRC <> 0.
            MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          RANGE_OPEN = 'X'.
        ENDIF.
        CHECK RANGE_OPEN = 'X'..
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
                  NR_RANGE_NR             = <Nr range>
                  OBJECT                  = <Object range>
             IMPORTING
                  NUMBER                  = _NUMBER
             EXCEPTIONS
                  INTERVAL_NOT_FOUND      = 1
                  NUMBER_RANGE_NOT_INTERN = 2
                  OBJECT_NOT_FOUND        = 3
                  QUANTITY_IS_0           = 4
                  QUANTITY_IS_NOT_1       = 5
                  INTERVAL_OVERFLOW       = 6
                  BUFFER_OVERFLOW         = 7
                  OTHERS                  = 8.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    But I don't understand if you need an your own number or the number used for the sales order.
    Max

  • Regarding the function modules

    Hi anybody pls tell me
    what are the scenarios for the creation of function module
    can you give me the some examples
    thanks in advance

    <b>Function Modules</b>
    Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the  Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library. The R/3 System contains a wide range of predefined function modules that you can call from any ABAP program. Function modules also play an important role in database updates and in remote communications between R/3 Systems or between an R/3 System and a non-SAP system.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the  Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the  Function Builder.
    The  Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed

  • Regarding the function module 'REUSE_ALV_GRID_DISPLAY'

    wat do these things do in 'REUSE_ALV_GRID_DISPLAY' function module and how to use them??
           IS_VARIANT                        =
          IT_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
          I_HTML_HEIGHT_TOP                 = 0

    Hi
    See the function module Documentation,
    Passing an EXIT routine indicates to the ALV that the application wants to respond to certain function codes.
    Generally, these are function codes that are unknown to the ALV (that is, are not standard ALV functions) and that were defined and set by a user status.
    See also the documentation on parameter I_CALLBACK_PF_STATUS_SET.
    The interface of the form routine specified must be defined as follows:
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    Parameter R_UCOMM contains the function code triggered.
    Structure RS_SELFIELD contains the following information:
    tabname : Name of the internal output table
    tabindex : Index of the internal output table
    fieldname: Field name
    endsum : Cursor is located on the totals line
    sumindex : If >0, the cursor is located on a subtotals line
    value : Value of the field on the list
    refresh : (Exporting) List should be set up again
    col_stable:(Exporting) Keep column position when list is set up again
    row_stable:(Exporting) Keep row position when list is set up again
    exit :(Exporting) Exit list (and ALV)
    before_action: Call before standard action execution
    after_action : Call after standard action execution, before list setup
    ignore_multi : Internal use
    sel_tab_field: Internal use
    The EXIT routine is called whenever a function unknown to the ALV is triggered or if the routine call before/after the execution of a standard function code has been defined by interface parameter IT_EVENT_EXIT.
    See also the documentation on parameter IT_EVENT_EXIT.
    The function code and the current cursor position are then passed on to the calling program through the EXIT routine.
    If the user has selected multiple rows by selecting checkboxes, the output table field designated as the checkbox contains the current state of the checkbox in the list.
    Top_Of_page :
    If the caller specifies an EXIT routine, this routine must have the following form:
    FORM top_of_page.
    Module REUSE_ALV_COMMENTARY_WRITE can then be called within the EXIT routine. This module is responsible for formatting the header information and also ensures online HTML formatting. In the print preview or in batch mode, the text passed is then output in the normal format.
    If module REUSE_ALV_COMMENTARY_WRITE cannot be used, you must use two parameters instead. In I_CALLBACK_TOP_OF_PAGE you pass the form routine that is responsible for normal formatting in batch mode or in the print preview mode. The form routine that is responsible for online formatting, is passed in parameter I_CALLBACK_HTML_TOP_OF_PAGE. If one of these parameters is not filled, top-of-page is not output in the respective mode.
    The important parameters are :
    I. Export :
    i. I_callback_program : report id
    ii. I_callback_pf_status_set : routine where a user can set his own pf status or change the functionality of the existing pf status
    iii. I_callback_user_command : routine where the function codes are handled
    iv. I_structure name : name of the dictionary table
    v. Is_layout : structure to set the layout of the report
    vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE
    vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.
    II. Tables :
    i. t_outtab : internal table with the data to be output
    <b>REward if usefull</b>

  • Regarding  the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    Hi
    I am using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send an email with tab delimited text file as an attachment. while doing this i'm facing the folloing issues.
    1. a) Here the subject line field is char 50. My subject line is more than 50 characters. Is there any other way to do so?
    1.b) I am facing the data alignment problem in attached file if it is the case of Text file.
    can you please let me know how to resolve these issues and also let me if there are any other function modules to do so.

    Hi!
    1. You will have to manage with a subject of 50 char. In any case a longer subject would not be visible in your mailbox.
    2. For TAB delimited contents: Concatenate the fields of your internal table separated by HEX 09 (TAB). For every new line add HEX 0D at the end of the string.
    Cheers!

  • Regarding the function module --error is coming.

    Hi All
    I am executing function module and i am getting one error after actvating that FM.
    Error is - REPORT/PROGRAM statement missing, or program type is I (INCLUDE).          
    Waiting for the fovarable reply.

    Hi,
    While creating a FM you will be assigned to a Function Group, that Function Group is not active. If function group is not active then only you will be getting this error.
    To over come this issue. Please do the below process.
    Go to Se80--> Select Function Group from the drop down list --> Select the function group --> Right click on the Function group --> Select activate.
    After above process is completed.
    Test the Function Module.
    Thanks,
    Sriram Ponna.

  • Regarding the function module.

    hi,
    iam using a function module in my program
    GET_PRINT_PARAMETERS
    the program is going to dump.
    iam not understood why it is going to dump.
    please provide me the solution for this issue
    thanks in advance

    HI,
      Please check the type of parameters that you are passing to this function module...   check for the function module definition and get the type of the parameters that you havve to pass to this FM.
    I am sure this is ur problem.
    Thanks
    Mahesh

  • Help regarding the Function Module GUID_CREATE

    Hi Experts,
    Can some one explain the functionality of GUID_CREATE function module.Thanks in advance.
    With regards,
    Srini...

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

  • Regarding the functional modules

    hi,
    there are three types of function modules are there.
    1)normal functional modules
    2)remote functional modules
    3)update functional modules
    what is the update functional modules?
    please provide me the information regarding this functiional modules

    Hi,
    go through following ,material:
    http://sapmaterial.com/RFCmaterial.html
    http://sapmaterial.com/bapi.html
    Reward points if helpful
    Srikanta Gope

  • Regarding how to use the function module *control_form* in scripts

    HI friends,
    Can any one tell why and where do we use the function module control_form in scripts. Can you give me a small scenario how to use in scripts.

    hi satish,
    by using this function module we can pass the control
    commands to FORM THROUGH ABAP/4 PROGRAM.
    see the following example:
    TABLES: kna1.
    DATA: BEGIN OF it_kna1 OCCURS 0,
          kunnr LIKE kna1-kunnr,
          name1 LIKE kna1-name1,
          ort01 LIKE kna1-ort01,
          land1 LIKE kna1-land1,
          END OF it_kna1.
    DATA:records TYPE i,
         window TYPE i value 1.
    select-options:s_kunnr for kna1-kunnr.
    SELECT kunnr name1 ort01 land1 FROM kna1 INTO TABLE it_kna1
    where kunnr in s_kunnr.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        form     = 'ZSCRIPT4'
        language = sy-langu.
    LOOP AT it_kna1.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element  = 'ELE1'
          function = 'SET'
          type     = 'BODY'
          window   = 'MAIN'.
      DESCRIBE TABLE it_kna1 LINES records.
      IF window lt records.
        window = window + 1.
      CALL FUNCTION 'CONTROL_FORM'
       EXPORTING
            command         = 'NEW-WINDOW'
    EXCEPTIONS
      UNOPENED        = 1
    UNSTARTED       = 2
    OTHERS          = 3
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      CODEPAGE                       = 5
      OTHERS                         = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    thanks,
    raji

  • Error during generation of the function module..need help urgently

    Hello everyone,
                            m trying to generate data source in BWDevelopment.
    After mapping all the BW fields to Source Object elements I click on Generate DataSource(for UD Connect) so following error comes
    'An error occurred in step 1 during generation of the function module'
    RFC connection is fine, error free and extractor is also fine.
    Where could be the problem?
    Thanks & Regards,
    Priyanka

    Hello everybody,
                             my problem is solved.For the UDConnect, whatever DATA SOURCES you create gets registered in a FUNCTION MODULE which has a capacity of only 99 enties, so to increase it implement the SAP NOTE 876340 - UDC Error available on SERVICE MARKET PLACE.
    This problem occurs with BW version 3.5 level 17 or below.
    Regards,
    Priyanka
    Edited by: Priyanka Joshi on Jun 10, 2008 11:03 AM

Maybe you are looking for

  • Report not printing in preview mode

    i have a report that has real strange behavior. we are using the forms server to produce this report in preview mode. this report will produce the desired results for some of the reports. but on other reports this pulls up a blank pdf document. on th

  • HT201280 NUMBERS IOS PROBLEM:

    Perfect calculations in 'Transactions" section do not synchronize with chart or account categories. Both remain blank. i very much need the category totals. Please help. Is there a video tutorial for numbers? thnx

  • Customizing Related Information Layout

    Hi, Need to add the "Last Activity" field in "Contact" Related Information Layout for "Accounts" record type. The Problem is, can't find the "Last Activity" field in the Available Section of the Related Information layout for Contacts in Accounts rec

  • Quicktime upgrade = no controls in Firefox

    My quicktime in firefox now has no controls (pause, ff, etc.) since the quicktime upgrade today, when a few hours ago before the upgrade the controls were available. How can I get them to appear? Thanks!

  • Cannot open old Pages documents

    Cannot open old Pages documents after installing Yosemite. "The required index.xml file is missing." What happened?