USE OF FM MODULE HRIQ_READ_INFTY_1001 URGENT

Hi,
My best wishes in the new year for all. Well, I've been using the FM HRIQ_READ_INFTY_1001 in order to read the infotype HRP1001. I need to get the info of the field ADATANR, in order to build the key of the HRPAD500. Now, the gotten data by using the FM (by marking the parameter ADATA) do not correspond with the necessary info to built the HRPAD500 key. I debugged the FM, and I could see that the ADATANR was gotten internally, but not loaded in the field ADATANR. This problem could have been caused by the application of a support package in our system. The question is, How can I get right info for the field ADATANR, by using the FM? Does exist any other FM that I can use, in order to fill correctly the key?
Regards,
Jorge Rojas

Jorge,
I think you might misunderstand the usage of the ADATA flag in that function module.  When you set that flag, you do not get back the ADATANR (which is just a technical number) for the addtional relationship data.  Instead, you get the actual additional data fields at the end of the table.  Just run a test with the flag turned 'off' and you will see the difference. 
You should not really be trying to fill in the additional data table yourself.  You should use the RFCs to do that.  What kind of data are you trying to create/change?
Michael

Similar Messages

  • Update Equipment BOM using Function module (very urgent)

    Hi All,
    I am an ABAPER and trying to update equipemnt BOM.
    I want to update equipment BOM using a function module. I am currently using 'CSAI_BOM_MAINTAIN' function module. But i am not able to update the Equipment BOM. After function call the sy-subrc value is 0, even though the BOM is not updated.
    Please help its very urgent.
    Kind Regards,
    Sharat.

    Hi Sharat,
    I am facing the same problem. Could you please let me know what might be the reason.
    Plz mail me at [email protected]
    Plz update this section once u have mailed the answer.
    Thanks a lot in advance.
    Regards,
    Himanshu

  • URGENT ---- How to use BAPI_REQUIREMENT_CHANGE Function Module

    I want to change the Materail requirements through Txn MD62.
    Instead i am using BAPI_REQUIREMENTS_GETDETAILS Function Module.
    Using this I should use BAPI_REQUIREMENT_CHANGE Function Module.
    But the requirements are not getting changed.

    what kind of messages u are gettiing into the table RETURN ? u have to cross check this internal table .
    flow will be like this
    call  ' BAPI'
    if return[] is initial.
    commit work.
    else.
    do nothing.
    endif.
    Regards
    Peram

  • How to use a function module in a subroutine

    Hi,
      I am working on a report where i have to create list boxes for 5 fields.Instead of using the function module VRM_SET_VALUES for each field can i use subroutine?
    If so, can anyone tell me the procedure for that?Its very urgent.
    Thanks and Regards,
    Hema

    Hi,
       I have written the code like this.
    FORM VALUE USING V_NAME.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING id     = v_name
                  values = v_list.
      ENDFORM.
    AT SELECTION-SCREEN OUTPUT.
      REFRESH V_LIST.
      v_name = 'P_COMMER'.
      v_value-key = 'C'.
      v_value-text = 'Commercial'.
      APPEND v_value TO v_list.
      v_value-key = 'N'.
      v_value-text = 'Non-Commercial'.
      APPEND v_value TO v_list.
      v_value-key = ' ' .
      v_value-text = 'Both'.
      APPEND v_value to v_list.
      PERFORM VALUE USING V_NAME.
      REFRESH V_LIST1.
      v_name1 = 'P_DIRECT'.
      v_value1-key = 'D'.
      v_value1-text = 'Direct'.
      APPEND v_value1 to v_list1.
      v_value1-key = 'I'.
      v_value1-text = 'Indirect'.
      APPEND v_value1 to v_list1.
      PERFORM VALUE USING V_NAME1.
      REFRESH V_LIST2.
      v_name2 = 'P_DIR'.
      v_value2-key = 'D'.
      v_value2-text = 'D'.
      APPEND v_value2 TO v_list2.
      v_value2-key = 'C'.
      v_value2-text = 'C'.
      APPEND v_value2 TO v_list2.
      v_value2-key = ' ' .
      v_value2-text = ' '.
      APPEND v_value2 to v_list2.
      PERFORM VALUE USING V_NAME2.
      REFRESH V_LIST3.
      v_name3 = 'P_LOW'.
      v_value3-key = 'Y'.
      v_value3-text = 'Yes'.
      APPEND v_value3 TO v_list3.
      v_value3-key = 'N'.
      v_value3-text = 'No'.
      APPEND v_value3 TO v_list3.
      v_value3-key = ' ' .
      v_value3-text = ''.
      APPEND v_value3 to v_list3.
      PERFORM VALUE USING V_NAME3.
      REFRESH V_LIST4.
      v_name4 = 'P_PARENT'.
      v_value4-key = 'P'.
      v_value4-text = 'Parent'.
      APPEND v_value4 TO v_list4.
      v_value4-key = 'C'.
      v_value4-text = 'Child'.
      APPEND v_value4 TO v_list4.
      v_value4-key = ' ' .
      v_value4-text = ''.
      APPEND v_value4 to v_list4.
      PERFORM VALUE USING V_NAME4.
      REFRESH V_LIST5.
      v_name5 = 'P_PREF'.
      v_value5-key = 'P'.
      v_value5-text = 'Preferred'.
      APPEND v_value5 TO v_list5.
      v_value5-key = 'N'.
      v_value5-text = 'NotPreferred'.
      APPEND v_value5 TO v_list5.
      v_value5-key = ' ' .
      v_value5-text = ''.
      APPEND v_value5 to v_list5.
      PERFORM VALUE USING V_NAME5.
    Now I am getting the same set of values in all the fields.How can I solve this?
    Thanks and Regards,
    Hema

  • How to Use the Function Module 'BAPI_BUSPROCESSND_CHANGEMULTI'

    Dear Experts,
             Can anyone Explain me how to Use the Function Module 'BAPI_BUSPROCESSND_CHANGEMULTI'.My Requirement is i want to change the Partners of the Service Order.It is Very Urgent Requirement Please Help me.
    Thanks & Regards,
    Ashok.

    Hi,
    For service order you can use FM 'BAPI_ACTIVITYCRM_CHANGEMULTI' as it is much easier to use.
    Sample code is below. You can use that:
    "fill the details of partner which is
              "to be added as main partner or in place of Interaction Agent
              wa_partner_new-ref_guid = w_guid_ref.
              wa_partner_new-ref_handle = '0000000000'.
              wa_partner_new-ref_kind = 'A'.
              wa_partner_new-kind_of_entry = wa_partner-kind_of_entry.
              wa_partner_new-ref_partner_handle = '0000'.
              wa_partner_new-ref_partner_fct = 'Z_IA'.
    "wa_partner-partner_no : New partner no.
              wa_partner_new-ref_partner_no = wa_partner-partner_no.
              wa_partner_new-ref_no_type = wa_partner-ref_no_type.
              wa_partner_new-ref_display_type = wa_partner-ref_display_type.
              wa_partner_new-display_type = 'BP'.
              wa_partner_new-no_type = 'BP'.
              wa_partner_new-partner_fct = 'Z_IA'.
    "w_partner_no : Old partner no. which is to be changed
              wa_partner_new-partner_no = w_partner_no.
              wa_partner_new-mainpartner = 'X'.
              INSERT wa_partner_new INTO TABLE it_partner_new.
              wa_partner_newx-display_type = 'X'.
              wa_partner_newx-no_type = 'X'.
              wa_partner_newx-partner_fct = 'X'.
              wa_partner_newx-partner_no = 'X'.
              wa_partner_newx-mainpartner = 'X'.
              INSERT wa_partner_newx INTO TABLE it_partner_newx.
      IF it_partner_new[] IS NOT INITIAL AND it_partner_newx[] IS NOT INITIAL.
        "maintain all changes to be done
        CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI'
          TABLES
            partner  = it_partner_new
            partnerx = it_partner_newx.
        CLEAR : wa_guid1.
        REFRESH : it_guid1.
        wa_guid1-guid = w_guid_ref.
        APPEND wa_guid1 TO it_guid1.
        "save the changes
        CALL FUNCTION 'BAPI_ACTIVITYCRM_SAVE'
          TABLES
            objects_to_save = it_guid1.
        "commit the transaction
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    Reply fro any further help.
    Please reward points if helpful.
    Regards,
    Ashlesha

  • I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    You don't need a server, you just need a web hosting package such as the ones from GoDaddy or many other hosts. You then send the web gallery directly from LR to your web space.
    As you're asking such basic questions, it might be best if you read articles like this and see if a friend or colleague can get you started.

  • How can I use the print module to print different size images on one large "canvas"?

    How can I use the print module to print different size images on one large "canvas"? An example would be in Photoshop, go to file>new, and create the size paper I want, and move images of different sizes onto it.
    I was thinking the print module would do this automatically for me.

    You can't, at present. It's been a requested feature, so we'll see if it shows up in a future version, but it's not there at present.

  • Blue screen when using 2 memory modules !!

    Hi,
    When I use two memory modules (installed on bank 1 and 2), windows xp fails to install randomly (sometimes at the beginning, sometimes even after a rebooting...) and generates a blue screen of death... !
    However, they are correctly visible at boot time.
    But when I use only one module, it works fine (I tried with the first and the second module separately). These modules are strictly the same.
    What should I do now ?
    Just a remark : my FSB is at 100 Mhz. Is it normal ? (newbie question)
    Thanks
    David
    Here is my configuration :
    Athlon XP 2600+
    2x512 Mb DDR PC2700 (MDT)
    120 Gb UDMA6 IDE master on IDE1
    80 Gb UDMA5 IDE slave on IDE1
    DVD UDMA2 IDE master on IDE2
    Firewire disabled
    RAID activated (but not used so far)
    LAN and Audio enabled

    I think 300 watts is a way too SMALL for what your trying to run.  Check your label on the power supply and see what your 3.3 volt and 5 volt supply amperage is.  Anything less than 200 watts combined or about 28amps on 3.3 and 35 amps on the 5volt is going to give you grief.  You need a bigger power supply.  Recommend Antec or Enermax as the solution.  Antec SL350 or higher.
    Newegg has good prices and great service
    Antec Power Supplies

  • How to use read_text function module

    Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
    thanks,
    Mahe

    Dear,
    Use below code.
    DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
    V_TDNAME LIKE THEAD-TDNAME.
    V_TDNAME = PO_NUMBER.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
    *   CLIENT                        = SY-MANDT
        ID                            = 'F01'
        LANGUAGE                      = 'EN'
        NAME                          = V_TDNAME
        OBJECT                        = 'EKKO'
      TABLES
        LINES                         = IT_LINE.
    Thanks and Regards,

  • How to avoid use of function module in case of background jobs?

    Hi ,
           I am working a file tranfer interface .Functionality is to extract file either apllication or presentation server , and process the file  through bapi , send the  result in their respective server. This program should run through batch jobs in background mode.
    I am using following function module :
      SUBST_GET_FILE_LIS : Get the file list from application server
    TMP_GUI_DIRECTORY_LIST_FILES : Get the file list from presentation server
    GUI_UPLOad : to extract file data   from presentation server
    GUI_downLOAD : to download data  to presentation server
    in case of background job these function modules will not work.... so how to resolve this issue...
    what are the methods we can apply?
    Thanks & Regards
    Sandeep

    Hi,
    This FM is used to get list of files from Application server (will work in Background). This cannot be used to list files from presentation server.  There is no way , by which you can process presentation server files in background mode.
    Regards
    Vinod

  • How can i use reuse_alv_fieldcatalog_merge function module

    I am using below steps for populating the final internal table.How can I use reuse_alv_fieldcatalog_merge function module in the place of declaring all these fields.How canI put title of the report in reuse_alv_fieldcatalog_merge function module.
    FORM BUILD_FIELDCATALOG .
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'KUNNR'.
      FIELDCAT-SELTEXT_M = 'Customer Name'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VBELN'.
      FIELDCAT-SELTEXT_M = 'Invoice Reference'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKBUR'.
      FIELDCAT-SELTEXT_M = 'Sales Office'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKGRP'.
      FIELDCAT-SELTEXT_M = 'Sales Person'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'POSNR'.
      FIELDCAT-SELTEXT_M = 'Item No'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FIANL'.
      FIELDCAT-FIELDNAME = 'ARKTX'.
      FIELDCAT-SELTEXT_M = 'Item Description'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.

    Hello,
    It is very easy to use reuse_alv_fieldcatalog_merge.
    You try this it will work.
    example
    data:
    DATA : gv_repid        TYPE syrepid VALUE sy-repid .  " Report id
      PERFORM set_field_catalog USING gst_struct CHANGING lst_fieldcat.
    FORM set_field_catalog  USING uv_tab TYPE slis_tabname
                         CHANGING  xt_fieldcatalog TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = gv_repid
          i_internal_tabname     = uv_tab
          i_inclname             = gv_repid
        CHANGING
          ct_fieldcat            = xt_fieldcatalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 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.
    ENDFORM.                    " set_field_catalog_spec

  • Sending mails to UWL using SO_NEW_DOCUMENT_ATT_SEND_API1 function module

    Hi all,
    is it possible to view mails send using SO_NEW_DOCUMENT_ATT_SEND_API1 function module to UWL?
    I am receving emails in my SAP Inbox.
    Please guide.
    thanks.

    Hi,
    You can only get the SAP mails into UWL notification tab with the Sonic connector (well of course with some custom development everything is possible).
    One trick to get the workflow for sending "mails" to UWL is to NOT use email sending step, but instead use a decision step in the workflow and send this work item to the user. The decision step can include the same message as the email, and have onl one option "Confirm" (or whatever). These you can easily display in UWL since they are normal work items.
    Regards,
    Karri

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to keep long text in bdc using create_text  function module

    hi,
    ihave bdc in that i having field like long text i have to upload the long text using create_text function module how to use and where to use in bdc. wat parameters i have to pass exactly.
    i need some other information like how can i pass this to BDC i got like this .
    can u plz check it.
    its a length of 255 chaters
    perform bdc_field using 'RSTXT-TXLINE(02)'
    'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'
    & 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'.
    perform bdc_field using 'RSTXT-TXLINE(03)'
    'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    & 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.
    perform bdc_field using 'RSTXT-TXLINE(04)'
    'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
    & 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'.
    perform bdc_field using 'RSTXT-TXLINE(05)'
    'hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh'
    & 'hhhhhhhhhhhhhhhhhhhhhh'.

    Hi,
    Use this coding where do u want,
    data: begin of textline occurs 10.
            include structure tline.
    data: end of textline.
    start-of-selection.
    textline-tdformat = '*'.
    textline-tdline = 'TESTING FOR CREATION OF TEXT'.
    append textline.
    clear textline.
        call function 'CREATE_TEXT'
             exporting
                  fid       = '0013'
                  flanguage = sy-langu
                  fname     = '0095000501'
                  fobject   = 'VBBK'
             tables
                  flines    = textline
             exceptions
                  no_init   = 01
                  no_save   = 02.
    end-of-selection.

  • How to EDIT a particular Row in ALV using normal function module Reuse_alv_grid_display

    Hi experts..
    i got one requirement like i need to edit some rows particularly in alv....
    Edit in alv output....is it possible to get  that .....using normal function module with out using oops concept...
    could any one pls help me...

    Hi Pendurti ,
    If you want a particular field to be editable , simply define the fieldcatalog as
    wa_fieldcatalog-edit          = 'X'.
    wa_fieldcatalog-input         = 'X'.
    for that field.
    and
    Now when you use FM ' Reuse alv grid display '
    define USER_COMMAND
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = v_repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          it_fieldcat              = int_fieldcatalog
          is_layout                = wa_layout
        TABLES
          t_outtab                 = t_disp.
    and now in form USER_COMMAND ; code as per following
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                                rs_selfield TYPE slis_selfield.
         DATA ref1 TYPE REF TO cl_gui_alv_grid.
         CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
           IMPORTING
             e_grid = ref1.
         CALL METHOD ref1->check_changed_data.
    endform.
    Regards,
    Yogendra Bhaskar

Maybe you are looking for

  • Populate Error Message while submitting Travel Request if Supervisor(A002) relationship is not maintained for employee

    Hi Team, We have a requirement to "Populate Error Message(Supervisor not Maintained) while submitting Travel Request if Supervisor(A002) relationship is not maintained for employee in ESS. We are using standard WDA application - FITV_REQUEST and stan

  • Ipod no longer recognised in Itunes 12

    I bought some music that I would like to add to my Ipod (an older model). Annoyingly, it doesn't show up in Itunes anymore! I've read that it might be under playlists, but it isn't there either. I have this new Itunes 12 now on my Macbook Air so I'm

  • I-Pod Touch Problem Switching On - I-Tunes, USB Cable and Arrow on Screen

    Hi folks. When I switched on my i-pod touch this morning, an image appeared with a usb cable and an arrow pointing to the i-tunes logo. I have tried to switch off and restart the i-pod touch (16GB) but I cannot get past this stage. Do I need to have

  • "Int'l No" symbol on startup

    On my early-2009 8-core 2.28g MacPro (10.6.?.) I now get the international no symbol (circle with a diagonal line through it) when attempting to start up. First, I get the gray startup screen with the Apple logo, then the apple turns into the no symb

  • Photosmart 3310All-in-One prints blank pages

    My Photosmart 3310 started printing a long document just fine.  Then midway through, no ink is laid on the paper (this is on black ink).  Looks as is the cartridge is out but the ink level shows full and when I shake the cartridge i can hear plenty o