Problem: Reqd. help in function module

Hi Friends,
I am working on an user exit..the Requirement is such a way that I have to collect all the warning or error messages in that transaction and to show in a pop-up to the user before saving that transaction. This pop-up should have user action buttons such as OK or CANCEL so that the user can choose his own action whether to continue saving the transaction still...or to cancel the processing.
I used REUSE_ALV_LIST_DISPLAY in the user exit and reduced the start_row, start_column....and tried to display in a pop-up. it was showing fine.. But for user actions..I placed a button in the output list. When I press on that button...user command is not triggering. Can someone give input on this ?
Regards,
Hari krishna

Hello..
Any help on this one ?
Regards,
Hk

Similar Messages

  • Problem while importing RFC function module in XI. Please Help!

    Hi Experts,
               When I try to import RFC function module in XI I get the following error:
                 **Ready for import**
    Import started...
    YCOP_VALIDATE_GR:
      + com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: connection closed without message (CM_NO_DATA_RECEIVED)
    Import failed with 1 error
    Any idea why is this error? How to resolve this?
    Thanks
    Gopal

    Hi
       The problem still persists.
       This is what I have done:
        1. My FM is RFC enabled. In the "Attribute" tab of the FM I have selected "Remote-enabled module" and "Start immed".
    2.Activated and tested the FM.
    3.Released the FM. In se37, Function Module -> Release ->Release. 
    4.Tried to import this FM in XI under "RFC". Get the same error.
    I have some questions:
    1. After releasing the FM do I have to activate it?
    2. In release there is "Internal Release" Do I have to use that?
    3.Do I have to do "Internal Release" first then "Release"?
    4.The FM i am trying to import makes a call to another FM. Both the FMs are in the same system. Both are remote enabled. The second FM updates data in custom table. the first FM which I am importing validates the data and then calls the second FM for update. Do I have to import both FMs?
    Please help me!
    Thanks
    Gopal

  • Problem with Remotely Invoked Function Module

    Hi All,
    I have a requirement to develop a Remote Enabled Function Module in SAP R/3 which will be invoked from an XI environment via an XML message.
    The purpose of this FM is to validate the incoming data(which comes as a pair of values) by comparing it with values in a corresponding SAP Table.
    If the incoming data is consistent with the values in the SAP Table, i need to return the data in the same format as it is passed. If any inconsistent record is encountered, then i just need to delete that particular record and return the rest of them.
    I used a TABLE for the Input/Output in the FM and tried it. Though it works fine stand-alone, when invoked from the XI environment, the calling system is able to receive only the name of the Table Structure that is used in the FM for I/O.
    I am unable to comprehend the format the input comes into SAP when the FM is invoked. So I'm not able to exactly pin-point the place where the problem arises.
    Please suggest a solution.
    Any pointers in this regard will be helpful.
    Thanks in Advance.

    Hi,
    You can view the incoming message in the local XI Message Monitor SXMB_MONI. There you will see if the input table parameter is correctly filled. In the same transaction, you can also see the reply that is sent to XI. If that is OK, you know that your function works correctly. When you are sure of that, and the calling system does not get the same parameters returned as you could see, that means the mapping in XI is wrong.
    good luck,
    Peter Glas

  • Problem with Remote Invoked Function Module

    Hi All,
    I have a requirement to develop a Remote Enabled Function Module in SAP R/3 which will be invoked from an XI environment via an XML message.
    The purpose of this FM is to validate the incoming data(which comes as a pair of values) by comparing it with values in a corresponding SAP Table.
    If the incoming data is consistent with the values in the SAP Table, i need to return the data in the same format as it is passed. If any inconsistent record is encountered, then i just need to delete that particular record and return the rest of them.
    I used a TABLE for the Input/Output in the FM and tried it. Though it works fine stand-alone, when invoked from the XI environment, the calling system is able to receive only the name of the Table Structure that is used in the FM for I/O.
    I am unable to comprehend the format the input comes into SAP when the FM is invoked. So I'm not able to exactly pin-point the place where the problem arises.
    Please suggest a solution.
    Any pointers in this regard will be helpful.
    Thanks in Advance.

    Hi Keerthivasan,
    My requirement also same,
    please send me the source code.Please help me urgent.
    Thanks.

  • SAP NCO 3 (Patch 3) - Problems with USE_SAPGUI and Function Module

    Hello,
    We are moving our code to use the new SAP .NET v3 connector and have run into a slight issue which works on v2 but doesn't seem to work the same way in v3.
    We are calling a function module in SAP that will invoke the SAP GUI allow the user to interact with it.  Once the user has completed their interaction and clicked the last button, the SAP GUI is meant to disappear.  With v3 this is no longer the case.
    We are forcing the USE_SAPGUI value to 2 but this has no effect on the problem.
    In V3, the last dialog box stays on the screen and control returns to our application.  The dialog box is not active anymore and cannot be clicked.  It seems the SAP GUI will stay open with this frozen dialog box until we invoke another RFC that brings up the SAP GUI.
    My questions are:
    1) Is this a bug or is there something more I need to do to achieve this functionality?
    2) Is there anyway to forcibly close the SAP GUI connection for a RFCDestination?  The connection is closed when we close our application but I can't find a way to close all connections which would hopefully close the dialog box.
    Thanks in advance for any help on this matter.
    Thanks,
    Tim

    I can't be sure but most of the dota2 output looks "normal" to me (I get the same yet it works fine).
    eurotrucks is clearly crashing. You could try to force the resolution it uses in its config files?
    Or maybe it's missing a lib (you may need to install 32bit versions):
    ldd /path/to/eurotrucks
    to see if that's the case. If not, you might have to take it up with the eurotrucks developers.
    And you could try using fluxbox/openbox just to see what happens. A lot lighter than KDE.
    Have a good look though: https://wiki.archlinux.org/index.php/Steam
    and remember to check for missing 32bit libs.

  • Urgent help in function modules

    Hi Gurus,
    Please send me the names of the related function modules of ISU.also if possible send examples or tutorials of FM creation and the coding involved in it.
    My email is [email protected]
    All Replies will be rewarded.

    Check the links below for details about creating Function Modules:
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://www.erpgenie.com/abap/functions.htm
    Check this link for how to create the function module exit..
    http://sap.niraj.tripod.com/id62.html

  • Required help on Function Modules and Bapis

    Web portal publishing of ERS invoice letters. This involves modification in the BAPI screens to show the invoice PDF instead of printing??
    can anyone help me in fixing this issue.

    hi Anjaneyulu,
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    selct the tree structure----in the left side the includes screen and function module everthing will show..
    or
    open the t-code --> and go to menu system->status-->select the program and open the program-->
    go to attributes and select the Package..
    next----
    go to se80--> enter the package --> and dispalay it shows the list of Program , include transaction function modules and bapi's under the pakage
    Regards,
    Prabhudas

  • Problem with Time stamp function module for converting US to Japan

    Hi All,
    I need standard function module for converting US Timestamp to Japan, Can any one let me know is there any standard function modules.
    thanks in advance!
    Regards,
    Kalidas.T
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:29 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM

    Try this way:
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    <tst> is of type P(8) or P(11) with 7 decimal places
    <tz> of type C(6)
    Refer to help.sap.com for more details.

  • Help for function module

    hi all,
    I want to know whether the standard price for a material is released during costing run or not.
    so can anyone tell me where this information (std price released or not)is available .
    if some one know the field name please tell that and if anyone know any function module to get the status of releasing please help me
    points will be rewarded!!!!!!

    hi all,
    I want to know whether the standard price for a material is released during costing run or not.
    so can anyone tell me where this information (std price released or not)is available .
    if some one know the field name please tell that and if anyone know any function module to get the status of releasing please help me
    points will be rewarded!!!!!!

  • Help on function module

    hi all,
    I want to know whether the standard price for a material is released during costing run or not.
    so can anyone tell me where this information (std price released or not)is available .
    if some one know the field name please tell that and if anyone know any function module to get the status of releasing please help me
    points will be rewarded!!!!!!

    Hi,
    Create a table type in SE11 for the parameter and the same in the importing parameter..This will it will allow multiple values for the function module..
    Check the table type SD_WERKS_RANGES in SE11...
    You might have to create a similar one for your parameter..
    Thanks,
    Naren

  • Hi help in function module

    hi,
    what are the function modules do we use for the conversion of currency and units.
       1) i want to convert currency(US$) to INR.
       2) and to convert from one unit to another unit.
    before using these function modules what we have to do in bdcs.
    regards
    vivek

    Hi,
    Check this sample code,
      CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
        EXPORTING
    *     CLIENT                  = SY-MANDT
          DATE                    = pdate
          FOREIGN_AMOUNT          = p_amt1
          FOREIGN_CURRENCY        = p_curr1
          LOCAL_CURRENCY          = p_curr2
    *     RATE                    = 0
    *     TYPE_OF_RATE            = 'M'
    *     READ_TCURR              = 'X'
        IMPORTING
          EXCHANGE_RATE           = w_rate
          FOREIGN_FACTOR          = w_fact1
          LOCAL_AMOUNT            = w_amt
          LOCAL_FACTOR            = w_fact2
    *     EXCHANGE_RATEX          =
    *     FIXED_RATE              =
    *     DERIVED_RATE_TYPE       =
        EXCEPTIONS
          NO_RATE_FOUND           = 1
          OVERFLOW                = 2
          NO_FACTORS_FOUND        = 3
          NO_SPREAD_FOUND         = 4
          DERIVED_2_TIMES         = 5
          OTHERS                  = 6.
      IF SY-SUBRC <> 0.
        write: / 'Conversion to loc.curr. failed:',
                 p_curr1, '->', p_curr2, 'err.code=', sy-subrc.
      ELSE.
        write: / 'to Loc.curr:', p_amt1 currency p_curr1, p_curr1, '->',
               w_amt currency p_curr2, p_curr2,
               '(', w_rate, ')', w_fact1, w_fact2.
      ENDIF.
    http://www.geocities.com/victorav15/sapr3/examples/currconv.txt
    Check this
    CONVERSION_FACTOR_GET
    <b>Measurement unit conversion:</b> Get measurement unit conversion factor  Not for Dimensionless Units of Measure 
    UNIT_CONVERSION_SIMPLE  Measurement unit conversion by table T006, with rounding 
    UNIT_OF_MEASURE_SAP_TO_ISO 
    UNIT_OF_MEASURE_ISO_TO_SAP
    MATERIAL_UNIT_CONVERSION  Material quantity conversion from Base Unit of Measure to Alternative Unit of Measure and vice versa.  For Dimensionless Units of Measure (Each, Piece, Box etc.) conversion depends on the given Material (see table MARM). For other Units of Measure (Length, Weigth etc.) conversion can be calculated from the T006 table or via CONVERSION_FACTOR_GET.
    CONVERSION_EXIT_CUNIT_INPUT  Conversion exit for commercial (3-char) measurement unit INPUT 
    CONVERSION_EXIT_CUNIT_OUTPUT  Conversion exit for commercial (3-char) measurement unit OUTPUT 
    CONVERSION_EXIT_LUNIT_INPUT  Conversion exit for technical (6-char) measurement unit INPUT 
    CONVERSION_EXIT_LUNIT_OUTPUT  Conversion exit for technical (6-char) measurement unit OUTPUT 
    UNIT_OF_MEASUREMENT_HELP  Input help for measurement units of a predefined dimension 
    http://www.geocities.com/victorav15/sapr3/abapfun.html

  • Problem while working with function module RFC_READ_TABLE

    Dear Experts,
                     I am facing a problem while working on the FM RFC_READ_TABLE, in which there is a tables parameter options which is of table type, to which I am passing the condition of selection.  In the debugg mode I found the select quiry in the source code of function module is not executing the condition passed in the options parameter.
    My actual requirement is to fetch all the custom programs in a remote server, the code I have written is below.
    TYPES :
             BEGIN OF ty_tadir,
               pgmid  TYPE pgmid,
               object TYPE  trobjtype,
               obj_name  TYPE  sobj_name,
             END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
            wa_tadir TYPE ty_tadir.
      data: stmp_dokhl  like TAB512       occurs 100000 with header line.
      data: options1    like rfc_db_opt occurs     10 with header line.
    data: wa_options1 like line of options1.
      data: nametab1    like rfc_db_fld  occurs     10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5)  TYPE C,
           W_VALUE1(20) TYPE C.
    W_VALUE1 =  'OBJ_NAME like'.
    W_VALUE = 'z*'.
    CONCATENATE 'OBJ_NAME LIKE' ' ''' W_VALUE '''' INTO OPTIONS1-TEXT.
    CONCATENATE W_VALUE1 W_VALUE INTO wa_OPTIONS1-TEXT SEPARATED BY SPACE.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
        call function 'RFC_READ_TABLE'
             destination                'zard'
             exporting
                  query_table          = 'TADIR' "'ZBANK_GUARANTEE'
             tables
                  options              = options1
                  fields               = nametab1
                  data                 = stmp_dokhl
             exceptions
                  table_not_available  = 1
                  table_without_data   = 2
                  option_not_valid     = 3
                  field_not_valid      = 4
                  not_authorized       = 5
                  data_buffer_exceeded = 6
                  others               = 7 .
    Please give me some inputs on this,
    With warm regards,
    Murthy.
    Edited by: pr murthy on Sep 18, 2008 1:49 PM
    Edited by: pr murthy on Sep 18, 2008 2:14 PM

    Hi
    I have tried this and with small change this is working fine.
    TYPES :
    BEGIN OF ty_tadir,
    pgmid TYPE pgmid,
    object TYPE trobjtype,
    obj_name TYPE sobj_name,
    END OF ty_tadir.
    DATA : it_tadir TYPE STANDARD TABLE OF ty_tadir,
    wa_tadir TYPE ty_tadir.
    data: stmp_dokhl like TAB512 occurs 100000 with header line.
    data: options1 like rfc_db_opt occurs 10 with header line.
    data: wa_options1 like line of options1.
    data: nametab1 like rfc_db_fld occurs 10 with header line.
    START-OF-SELECTION.
    DATA : W_VALUE(5) TYPE C,
    W_VALUE1(20) TYPE C.
    W_VALUE1 = 'OBJ_NAME LIKE ''Z%'''.
    wa_options1-text = w_value1.
    APPEND wa_OPTIONS1 to OPTIONS1.
    CLEAR wa_OPTIONS1.
    call function 'RFC_READ_TABLE'
    *destination 'zard'
    exporting
    query_table = 'TADIR' "'ZBANK_GUARANTEE'
    tables
    options = options1
    fields = nametab1
    data = stmp_dokhl
    exceptions
    table_not_available = 1
    table_without_data = 2
    option_not_valid = 3
    field_not_valid = 4
    not_authorized = 5
    data_buffer_exceeded = 6
    others = 7 .

  • Help in Function module

    Hi All,
    I want to add FILE NAME  option in import parametsr in function module. I want to download the RFC FM  interface Output in excel format.
    Please give any sample programs.
    regards,
    Ajay reddy

    PROGRAM  ZSV_TEST.
    Data : IT type table of kna1 initial size 0.
    Select * from kna1 into table IT up to 10 rows.
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
      I_FIELD_SEPERATOR          =
       I_LINE_HEADER              = 'X'
        I_FILENAME                 = 'C:\TEST.XLS'
       I_APPL_KEEP                = 'X'
      TABLES
        I_TAB_SAP_DATA             = IT
    CHANGING
      I_TAB_CONVERTED_DATA       =
    EXCEPTIONS
      CONVERSION_FAILED          = 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.
    The Headings wont be downloaded. if needed then declare a internal table with character fields append the titles and then the values and call this function.
    Reward if it helpful
    Thanks & Regards
    Senthilvel Murugesan

  • F4 help for function module

    Hi experts
    Is it possible to place F4 help for the function module import parameter like If we excute the FM from se37 the input box should need the F4 help.
    if possible , let me know the sample code
    thanks
    sai

    yes you can do that..
    in side the source code ..
    write the select statement according to requirement and pass the internal table to below function moduel and return field to yor help field..
    call the below  fm inside the function module..
    'POPUP_WITH_TABLE_DISPLAY'   or   'REUSE_ALV_POPUP_TO_SELECT'
    see the sample code...
    FUNCTION Z_MFG_PLANTS_F4 .
    "*"Local Interface:
    "  IMPORTING
    "     REFERENCE(W_WERKS) TYPE WERKS OPTIONAL
    "  IMPORTING
    "      REFERENCE(W_MATNR)    TYPE MANTR OPTIONAL
    * Alv popup display
    DATA : gc_selfield     TYPE slis_selfield,
           gt_fieldcat_drd TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    p_werks = W_WERKS.
    data : begin of t_marc occurs 0,
                werks type werks,
                matnr type matnr,
            end of t_marc
    select matnr werks from marc into table t_marc where werks = p_werks.
      IF t_disp[] IS NOT INITIAL.
      gt_fieldcat_drd-seltext_m = 'Material'.
      gt_fieldcat_drd-fieldname = 'MATNR'.
      APPEND gt_fieldcat_drd.
      CLEAR : gt_fieldcat_drd.
      gt_fieldcat_drd-seltext_m = 'WERKS'.
      gt_fieldcat_drd-fieldname = ''WERKS'.
      APPEND gt_fieldcat_drd.
      CLEAR : gt_fieldcat_drd.
    * Allow the user to select the required plant
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title               = 'Material Selection for Plant'
          i_selection           = 'X'
          i_screen_start_column = 5
          i_screen_start_line   = 5
          i_screen_end_column   = 70
          i_screen_end_line     = 20
          i_tabname             = 'T_MARC'
          it_fieldcat           = gt_fieldcat_drd[]
        IMPORTING
          es_selfield           = gc_selfield
        TABLES
          t_outtab              = t_MARC
        EXCEPTIONS
          program_error         = 1
          OTHERS                = 2.
      IF sy-subrc <> 0.
      ENDIF.
      READ TABLE t_MARC INDEX gc_selfield-tabindex.
      IF sy-subrc = 0.
            w_matnr = t_matnr-matnr.
      ENDIF.
    ENDIF.
    ENDFUNCTION.
    Prabhudas
    Edited by: Prabhu Das on May 21, 2009 7:35 PM

  • Need Some help on Function Module

    Hello;
        Hello i want to put some data in BAPI's Function Module hard codedly..can anybody give some suggestion..
    Thanks and Regards,
         Omkar..
    Moderator message: please search for available information before asking, do not ask basic or generic questions, warning #4 (this is the last one from my side)
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    locked by: Thomas Zloch on Sep 28, 2010 9:53 AM

    hI!
    I mean coding like this in :
    IF fieldname = project definition
    select value  by     'F4IF_FIELD_VALUE_REQUEST'
    save it in global variable
    IF fieldname = 'DATE'.
    select dates with saved project definition and show values with HELP_VALUES_GET_WITH_TABLE
    but it no good solution.
    Another  way - create seach help with import export parameters and assign to tables fields.
    Look at example:
    REPORT  z_popup                               .
    DATA: BEGIN OF fields OCCURS 1.
            INCLUDE STRUCTURE sval.
    DATA: END OF fields.
    CLEAR fields.
    MOVE 'T001L' TO fields-tabname.
    MOVE 'WERKS' TO fields-fieldname.
    APPEND fields.
    CLEAR fields.
    MOVE 'T001L' TO fields-tabname.
    MOVE 'LGORT' TO fields-fieldname.
    APPEND fields.
    CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP'
      EXPORTING
        popup_title = 'test'
      TABLES
        fields      = fields.
    it works as you need it.

Maybe you are looking for

  • Enterprise Portal Log off Issue for External User

    Hello We are facing a Enterprise Portal log off issue for one of our external users. User is logged in and clicks on the "Log Off" link . User is prompted as seen below: Are you sure you want to logg off? Choose Yes or No Click on Yes and popup windo

  • Accounting object to Asset under construction?

    Please, Question: Is it necessary to set an accounting object (ACSET) to asset under construction? (I think we should define an internal order) Thank you

  • Hi everyone please help me out!!!

    Last week i bought new mac book pro when i installed a game i heard some sound from the processor . i reinstalled it again , again the processor is getting sound its seems . What i have to do now?  please guys help me out

  • Recovery partition disappeared

    Hello everybody, I'm using "HP G62x-400 CTO Notebook PC". Yesterday I installed "Powerquest Partition Magic 8.0". As it was incompatitable, uninstalled it. After that, I found my Recovery partition disappeared. I found the partition in Disk Managemen

  • Help: Problem Inserting CLOB-data with ODBC

    Hello, I have searched this forum for my problem and found only one similar message, unfortunately without reply. I hope there are some wizards present here today who can help me. I use Perl and the ODBC driver for 8i (v8.1.5., WinNT) to insert and q