Suppress Message in Funtion Module Call

Hello
I'm using FM 'L_TO_CREATE_MOVE_SU' in an RF program which works great.  But gives me a message "Transfer Order 0000001935 Created".  Is there a way to suppress this message?  This message appears on a seperate screen because it is on an RF Device, like to eliminate number of screens users have to view.
Thanks

Hi
Try to use the standard exception ERRO_MESSAGE, it should suppress the message:
  CALL FUNCTION 'L_TO_CREATE_MOVE_SU'
    EXPORTING
    EXCEPTIONS
      NOT_CONFIRMED_TO      = 1
      ERROR_MESSAGE         = 21  "<--------
      OTHERS                = 22.
Max

Similar Messages

  • How to suppress message popup during RFC call

    Hi  expert,
    I have a scenario where in my RFC i am calling a SAP Bapi. But while this BAPI calling few popups appear which should be clicked as YES and then it has to run further.
    This "Pressing Yes" in popup is a manual way , i want it to be done automatically so that during my RFC call there is no interruption.
    Is there any FM which can suppress this popup by saying YES and there is no stopping for my RFC.
    Regards,
    Abhishek

    Hi ,
    I am facing the similar problem. Let me know how did you solve this problem ?
    Thanks,
    Krupali

  • How do I suppress messages/loading bars from Import-Module and Import-PSSession?

    Hello,
    How do I suppress messages/loading bars from Import-Module and Import-PSSession?
    I am writing a script that will be using these commands and it makes the script look clunky/scary to novice users.
    Thank you for your time.

    Sorry to bring this back up, but it seems that the ProgressPreference worked for Exchange, but it didn't affect the Active Directory progress bar. Any ideas why?
    Strange, this worked just fine for me (no module loading indication):
    PS C:\Users\mike.admin> $ProgressPreference = 'SilentlyContinue'
    PS C:\Users\mike.admin> Get-ADUser mike.admin | Select Name
    Name
    mike.admin
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)
    I do run the Import-Module command inside a function, but I doubt that would do it because I assume the preference is set scriptwide.
    This will work anywhere.
    $global:ProgressPreference='SilentlyContinue'
    ¯\_(ツ)_/¯

  • Call BSP from a funtion module and use results of the BSP in the calling fm

    Hi BSP experts,
    I want to implement following scenario. But currently I've no idea how to realize step 4 of the process.
    1. An ABAP program calls a function module.
    2. The function module calls a BSP page.
    3. In the BSP users will fill out some fields (e.g. name).
    4. After pressing the submit button the BSP should transfer the values to the export parameters of the calling function module. 
    Thanks for your support & Regards

    within the FM code you should call a SAPGUI screen with embedded html viewer control, in which you will show the bsp page and user can enter value and hit submit. you can then collect the user entered value and set it as export value fo the FM. but why do you want to do this?
    Regards
    Raja

  • Function Module called in Update Task

    Hi Gurus,
    We are calling Sales Order Change in update task inside the user Exit MV50FZ1. We can see that the FM is called in update task after the commit work and the return of the FM shows the success message. But still the changes are not saved to the DB.
    Can any one help me out with this one.
    Rashit

    Hi,
    If two commit works are called in update task the update will end up with error. Check whether any Commit work is present in the funtion module? If so you may use it in some other method like at save or something like that.
    Regards,
    Renjith Michael.

  • Funtion Module in accounting document

    Hi All,
    Can someone tell what function module is called while creating the accounting document and what are its important import and export parameters?
    Regards
    Vijay

    Hi Vijay,
    The most important funtion module responsible to creating accounting documentt is RV_ACCOUNTING_DOCUMENT_CREATE . Below are its important import and export parameters:
    Import parameters
    CASH_SALE_ACCOUNT : contains the cash clearing account, if this is not to be posted to the customer 
    CPD_ADRESS: must be filled if you are posting to a one-time customer        
    DOCUMENT_OLD : contains the $000000x number of the billing document, as VBRK-VBELN already has the final value, XVBRP and so on still contain $000000x
    INVOICE_HEADER : Contains the billing header VBRK
    I_COMP : Control parameter, if only CO is to be posted            
    I_COMP_CHECK :   Control parameter if only CO is to be posted (check run)
    CHECK : Controlling for error messages (issue immediately or in log)            
    MODE : Change mode ( A = old, B = new)           
    MODE_TYPES  : Scope of change (1=rebate/2=VPRS)
    Differences can occur due to the update of cost price conditions or rebate conditions in billing documents that have already been posted. These two fields (MODE and MODE_TYPES) are required to enable the posting of those differences to CO-PA.
    RRREL: If this field is set, the billing document contains revenue recognition items             
    BOKRE  : If this field is set, the billing document is rebate-relevant
    These  two fields (RRREL and BOKRE) are required for the new cancellation function as of Release 4.6A. This is because the new cancellation procedure cannot be implemented for revenue recognition or rebate relevant billing documents.           
    Export parameters
    O_VBRK_RFBSK: This is set if an error has occured in account determination ( characteristic B)
    O_KONV_CHANGED: This is set if XKOMV is changed in account determination
    Regards
    Roop

  • How to create a funtion module as i need.

    How to create a funtion module, that which should  retrive mutiple data with out using data structure.
    i.e..using internal table i need to get only some data.
    Example:
                1)  Using MARC table, i need to get fields only with data  (werks, matnr, mmsta, pstat).
    i.e importing : werks.
         exporting: werks,
                        matnr,
                        mmsta,
                         pstat.
                2) Also i need coding to get data by without using internal table with the only fields i want.

    Hi,
    You can only create function modules and function groups using the Function Builder in the ABAP Workbench. For further information, refer to Creating New Function Modules. This section uses an example to illustrate how a function module is created from the point of view of ABAP programming.
    <u><b>Function Groups and Function Modules:</b></u>
    Firstly, we create a new function group DEMO_SPFLI to hold the function module. Then, we can create the new function module.
    <u><b>Parameter Interface:</b></u>
    You can specify the types of interface parameters in function modules in the
    same way as the parameter interfaces of subroutines. Since function
    modules can be used anywhere in the system, their interfaces can only contain
    references to data types that are declared systemwide. These are the elementary
    ABAP data types, the systemwide generic types, such as ANY TABLE, and types
    defined in the ABAP Dictionary. You cannot use LIKE to refer to data types
    declared in the main program.
    <u><b>Exceptions:</b></u>
    Our function module needs an exception that it can trigger if there are no entries
    in table SPFLI that meet the selection criterion. The exception NOT_FOUND
    serves this function.
    <u><b>Source Code:</b></u>
    Having defined the parameter interface and exceptions, we can now write the
    source code of our function module. To do this, choose Source code in the
    Function Builder. This opens the ABAP Editor for the include program
    L<fgrp>U<xx> (see Function Groups). This is the include that will
    hold the program code for the function module;
    <i><u><b>Data in Function Modules</b></u></i>
    You can use the TYPES and DATA statements to create local data types and
    objects. The interface parameters also behave like local data objects. In
    addition, you can access all of the global data of the main program. This data is
    defined in the include program L<fgrp>TOP. To open this include, choose Goto
      Global data. The global data behaves like the instance attributes of a class.
    The first time you call a function module in a particular function group, the data is
    loaded into memory. It can then be accessed and changed by all of the function
    modules in the group. The system retains the values until the next time a function
    module is called.
    <u><b>Calling Subroutines</b></u>
    You use subroutines for local modularization. Function modules can
    also use this technique. The function module that they call are defined in the
    corresponding main program.
    If you only want to call a subroutine from a single function module, it is best to
    define them in the same include program as the function module itself, directly
    after the ENDFUNCTION statement. These subroutines can be called from all
    function modules in the function group, but for clarity, they should only be called
    from the function module that precedes them.
    If you want to define a subroutine that will be called from several different function
    modules, you can define a special include program for it with the name
    L<fgrp>F<xx>.
    <b><u><i>Raising Exceptions</i></u></b>
    There are two ABAP statements for raising exceptions. They can only be used in
    function modules:
    RAISE <except>.
    and
    MESSAGE..... RAISING <except>.
    The effect of these statements depends on whether the calling program handles
    the exception or not. If the name <except> of the exception or OTHERS occurs
    in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is
    handled by the calling program.
    If the calling program does not handle the exception
      The RAISE statement terminates the program and switches to debugging mode.
      The MESSAGE ..... RAISING statement display the specified message. How the
    processing continues depends on the message type.
    If the calling program handles the exception, both statements return control to the
    program. No values are transferred. The MESSAGE ..... RAISING statement
    does not display a message. Instead, it fills the system fields SY-MSGID, SYMSGTY,
    SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION READ_SPFLI_INTO_TABLE.
    ""Local interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID = ID.
    IF SY-SUBRC NE 0.
    MESSAGE E007(AT) RAISING NOT_FOUND.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where
    the key field CARRID is equal to the import parameter ID and places the entries
    that it finds into the internal table SPFLI_TAB. If it cannot find any entries, the
    exception NOT_FOUND is triggered using MESSAGE...RAISING. Otherwise, the
    table is passed to the caller as an exporting parameter.
    Regards,
    Bhaskar

  • Why again funtion modules in ABAP OO ?

    if you look at the code inside
    cl_gui_frontend_services->gui_upload they use gui_upload function.
    there is no difference.
    internally the class also uses GUI_UPLOAD ..........
    there is conflict like data consistancy problem with function module ..
    why again sap is using funtion modules in class method ...
    Instead sap can develope method purely by coding in method  know ?
    Can any body explain what are the advantages and disadvantages ?

    Hi,
    I think the FM can be used by only one way, with the same calls way( depending for parameters ) and always with the same behavior.   
    But if you extends the class you can inherits the class's components and insert new attributes.
    This is one of the benefits of the OO.
    Each SAP's release, many FM are being modified to OO.
    Regards,
    Marcelo Ramos

  • Problem with function module calling

    Hi,
    I have two questions here
    i have a function moduel 'Z_GET_MATL_BALANCE'
    in my code it called in the below said way
    CALL FUNCTION 'Z_GET_MATL_BALANCE'
        DESTINATION 'NONE'
        STARTING NEW TASK 'A'
        PERFORMING f_back ON END OF TASK
        EXPORTING
          ref_dte    = s_datum-low
          str_dte    = s_datum-high
          end_dte    = s_datum-high
          i_werks    = p_werks
          i_past     = 'X'
          i_future   = 'X'
          verselem   = p_mrpver
          plscn      = p_scenar
          r_outrec   = r_outrec
          supstk     = p_supstk
          days_ahead = w_days_ahead
          shipnt     = p_shipnt
        TABLES
          mat_bals   = w_zmat_bals_a
          i_zdatum   = i_datum
          mat_movmts = w_mat_movmts_a
          mat_ship   = i_mat_ship_a.
      IF sy-subrc NE 0.
        MESSAGE e005(ZMIM) WITH
       text-009 text-166 text-054 sy-subrc.
      ENDIF.
    FORM f_back USING task.
      CASE task.
        WHEN 'A' .
          RECEIVE RESULTS FROM FUNCTION 'Z_GET_MATL_BALANCE'
         TABLES
              mat_bals                     = w_zmat_bals_a
              mat_movmts                   = w_mat_movmts_a
              mat_ship                     = i_mat_ship_a
           EXCEPTIONS
                call_material_lesen_fail     = 1
                call_t450n_fail              = 2
                call_t399d_fail              = 3
                call_aufbauen_mdpsx_fail     = 4
                call_mdezx_aufbauen_fail     = 5
                call_t001w_fail              = 6
                call_zmrpelem_failed         = 7
                call_aufbauen_mdpsx_sim_fail = 8
                OTHERS                       = 9.
          IF SY-SUBRC NE 0.
           RET_CODE1 = SY-SUBRC.
          ENDIF.
    now my first question is what is the difference between function modules calling normally and in the above said way
    and the second question is
    under tables parameter i have four internal tables defined where as while calling the same function module using recive results i have three internal tables. is this correct?
    i am asking this because i am getting an error message while using this funciton module
    please do not give generic answers, all the helpful answers will get a def reward

    Call function starting new task is used to make Asynchronus RFC Call. In this case your function module will be called in a NEW SESSION and it will exceute independently from the Main program which is calling the FM. Also, the main program will continue its own processing and it will not wait for the RFC FM to complete.
    Its not mandatory to have all the TABLES parameters in the RETURN Perform (..Receive results from ...)

  • How to Update  crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module

    Hi
    How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
    data:     lt_doc_flow          TYPE crmt_doc_flow_wrkt,
              lw_cust_h_com        TYPE crmt_customer_h_com,
              lw_input_field_names TYPE crmt_input_field_names,
              lt_input_field_names TYPE crmt_input_field_names_tab,
              lt_objects_to_save TYPE crmt_object_guid_tab,
              lw_guid TYPE CRMT_OBJECT_GUID.
    DATA : lv_process_type TYPE crmt_process_type.
    data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
    data: wa_customer_h type crmd_customer_h.
    *  Function module for retriving the Process type.
      CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
        EXPORTING
          iv_orderadm_h_guid     = iv_header_guid
        IMPORTING
          ev_process_type        = lv_process_type
        EXCEPTIONS
          admin_header_not_found = 1
          OTHERS                 = 2.
    if lv_process_type eq 'ZG01'.
    CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
    EXPORTING
       IV_HEADER_GUID                 = iv_header_guid
    IMPORTING
       ET_DOC_FLOW_WRK                = lt_doc_flow.
    read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
                if sy-subrc eq 0.                    "set flag for service order
                lw_cust_h_com-ref_guid       =  wa_doc_flow-objkey_a.
                lw_cust_h_com-ZZTRAIL_FLAG   = 'X'.
                 lw_cust_h_com-mode           = 'A'.
                lw_cust_h_com-ref_handle     = '0000000001'.
                lw_guid = wa_doc_flow-objkey_a.
                INSERT lw_guid INTO TABLE lt_objects_to_save.
         endif.
                  lw_input_field_names-fieldname = 'REF_GUID'.
                lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
              lw_input_field_names-changeable = ' '.
               INSERT lw_input_field_names INTO TABLE lt_input_field_names.
    Maintain Customer H
             CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
                  EXPORTING
                    is_customer_h_com    = lw_cust_h_com
                  CHANGING
                    ct_input_field_names = lt_input_field_names
                  EXCEPTIONS
                    header_change_error  = 1
                    header_create_error  = 2
                   error_occurred       = 3.
    ENDIF.
    *endif.
    *Clearing local variables
      clear: lv_process_type,
             lw_cust_h_com,
             lw_input_field_names.
    *Free internal tables
      free: lt_doc_flow,
            lt_input_field_names.

    Hi Faisal
    I think your not clear with what i am saying anyhow i will again explain you my requirement
    As per my requirement
    1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
    For above Field i added  using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
    2)When i  search with search criteria as  "Has trail order with No Follow up" with  "Yes"
    Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for  next document trail order  having any follow up then those service orders dont want to show in result list.
    For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
    The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
    3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
    4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
    if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
    Why bcoz we are doing above process is do show records in result list based on Flag values
    these flag checks are validating in the BADI Which we implemented for search logic.
    Please refer below Login for my requirement:-
    Proposal to have a custom “flag” field (background at table level,
         crmd_customer_h) linked to service order which gets flagged whenever at
         least one Trial order is created and saved from the Service Order.
    The flag value should be cleared when all the trial orders created and
    saved as follow up transactions are deleted from the system.
    Similarly for Trial Orders will use the same custom “flag” field
         which gets activated when at least one follow up is created and saved from Trial Order.
    The flag value should be cleared when all the follow up transactions from
    the Trial Order are deleted from the system.
    When the above search criteria “Has Trial order with no follow up”
         “is” “Yes” is applied then the logic derives all the service
         orders which satisfy additional search criteria applied in the search and
         for these Service orders checks if the custom flag field is checked to
         derive all Service orders which have Trial order. The custom flag values
         values are derived from crmd_customer_h table in CRM.
    4 )Further for all the Trial Orders determined in Step 3
    check if the Trial Order has a follow up by checking if the custom flag field
    is checked. The custom flag values are derived from crmd_customer_h table in
    CRM.
    5) If step 4 is not met populate the preceding Service
    Orders in the Result list

  • Inbound funtion module to process PORDCH02 IDOC

    Hi,
    I am getting a inbound purchase order PORDCH02 IDOC and i need to change the purchse order based on the idoc value , pls let me know the standard inbound purchase order funtion module attached to inbound process code.
    Thanks
    Ravi

    Hi,
    The message type and basic idoc type for the processing of purchase orders:
    PORDCH                 PORDCH01                -- For change
    PORDCR1               PORDCR101              -- For Create
    Regards,
    Ginu Litta Raj

  • Funtion Module to convet Date's month from numeric to words ???

    Hi guys,
    I have a requirement such that:-
    For Date:- 06.07.2007 (DD.MM.YYYY)
    i want it to display as 06-July-2007
    Is there any funtion module to do that.
    Regards
    Rahul

    Hi,
    Please use code as under :
    data : date(10),
            text1(26),
            num1(10),
            test_day(15),
            o_date(20),
            idate type sy-datum.
    data : Day(2), month(2), Year(4).
    data : ODay(2), Omonth(2), OYear(4).
    data : Ltext Type T247-LTX.
    date = '06.07.2007'.
    day = date+0(2).
    month = date+3(2).
    year = date+6(4).
    concatenate year month day into idate.
    CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
      EXPORTING
        idate                               = idate
    IMPORTING
       DAY                                 = oday
       MONTH                               = omonth
       YEAR                                = oyear
       LTEXT                               = ltext.
    concatenate oday '-' ltext '-' oyear into o_date.
    write : O_date.
    Reward points, if helpful,
    Sandeep Kaushik

  • Dynamic function module call

    Hi,
    I need to call few function modules dynamically.The exporting and importing parameters are also known only at run time.
    Can somebody help me out in this regard,
    Thanks and regards,
    Archna

    hi ,
    Create Function module according to your requirment  and call the same 
    such as
    Create functi0n module   where you are passing PLant  runtime   and get data related to Plant 
    write  code in function according to requirment  .
    FUNCTION zrfc_test.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(ZWERKS) TYPE  MARC-WERKS OPTIONAL
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    *"  TABLES
    *"      ZIT_DATA STRUCTURE  MARC
      IF zwerks IS NOT INITIAL.
        SELECT *
          FROM marc
          INTO CORRESPONDING FIELDS OF TABLE zit_data
         WHERE werks = zwerks .
      ELSE.
        SELECT *
          FROM marc
          INTO CORRESPONDING FIELDS OF TABLE zit_data.
      ENDIF.
      IF sy-subrc = 0 .
        MESSAGE ' Selected ' TYPE 'I' .
      ENDIF.
    ENDFUNCTION.
      Suppose  at runtime you get Plant  7100
    types : begin  of w_marc .
             include structure  marc  .
    types : end of w_marc .
    data : it_data type standard table of w_marc with header line  .
    p_plant  = 7100 .
    Call to function module 
    CALL FUNCTION 'ZRFC_TEST'
    EXPORTING
       ZWERKS         = 'p_plant 
    IMPORTING
      RETURN         =
      TABLES
        zit_data       =  it_data  .
    You will get result in it_data .
    Note : if you don't know how to create  Function Module then  search on SDN you will get lots of Forum  .
    Regards
    Deepak.

  • Idoc - Error Status 51: Incorrect function module called up

    Hi,
    In the receiver system for the custom message type, I got this error.
    Incorrect function module called up
    Can any one pls help me to solve this one.
    Regards,
    Bala Raja

    Hi Bala,
         Check the inbound function module attached to process code in receiving system. Generally in every inbound function module first check is coded for checking message type or for checking funciton module like below.In the receiving system go to WE20 and then select the partner and select inbound message type. in that double click on assigned process code.then you have to double click on displayed FM. In that fm check first few lines. You will find this error message.
    LOOP AT IDOC_CONTRL.
        IF IDOC_CONTRL-IDOCTP(6) <> 'DESADV'.
          MESSAGE ID 'E0' TYPE 'E' NUMBER '029'
          WITH IDOC_CONTRL-IDOCTP ' ' 'IDOC_INPUT_DESADV'
          RAISING WF_ERROR_PROCESS.
        ENDIF.
      ENDLOOP.
    Thanks & Regards,
    Kalyan.

  • How to get Documentation on Funtion Module

    hi Experts,
    I want to know where can we find the documentation of a FM like for a badi... you can get it from spro..srm...Business add in... where u can click on documentatio....
    But how to get documentation fo Funtion module , for example if want to get docs related to FM "BBP_PD_SC_GETDETAIL" how to get it....
    Thanks
    sameer

    Hi. If you go to SE37 and enter the FM name, then press display, there is a button top right called "Function Module Documentation".
    It is not maintained for every function though, if the button is greyed out there is nothing. If there is nothing there I do not know if there is anywhere else to look, apart from SDN of course....
    Regards,
    Dave.

Maybe you are looking for

  • Itunes not recognising ipod / ipad

    Since upgrading iTunes to 11.0.1.12 I have to shut down iTunes before connecting my ipod or ipad and then start iTunes up again. If I connect the device while iTunes is running it isn't recognised.

  • Creation of SIP Configuration fails on E52

    There are no SIP profiles in the at Connections->SIP. And Options->New->Standard doesn't create one. What can I do?

  • Adding artwork loops the audio

    So after pasting in album artwork I notice it doesn't take to all files and if i try to paste to those files on their own it messes up the audio i.e. a song will play the first 7 seconds and then start again so 1-7 and 8-15 are the same and the final

  • Custom Login screen - Yammer app webpart not working

    Hi Team, I have created windows login  website and configured Yammer . it is working fine. But I have created another website with custom login screen and If i check Yammer Feed app webpart nothing is opening.for few browsers got exception like "401

  • How to set a performance appraisal doc to approved status in portal

    Hi, I'm trying to create a new appraisal document where once the document is marked 'complete' it is then allowed to be marked approved.  I have configured the status flow tab to allow the pushbutton "approve" with a target status of "approved" to be