Run time error due to custom function module in a program

Hi,
I  have created one program using custom function module ZIN_COMEV_CUSTDETAILNOTIF_OUT .The program is showing runtime error
"Incorrect parameter with CALL FUNCTION."
I have tested the FM using same set of parameter as in program it is working.It is throwing error while executing in program help.
Regards
Datta

Hello Nagraj or harish
I think you may be right.There is date  field in my function module ,when I am testing function module I am giving it as
Y_DATE = 01.01.2011,but in program the field is DATS type and I have to give 20110101.If this is the problem how I can solve it.
CALL FUNCTION 'ZIN_COMEV_CUSTDETAILNOTIF_OUT'
  EXPORTING
    Y_SENDER              = gv_g_sender
    Y_RECEIVER            = gv_g_reciever
    Y_PARTNER             = GV_V_PARTNER
    Y_BASIC_PROCESS       = GC_BASIC_PROCESS
  Y_SWITCHNUM           =
  Y_SEN_LOAD            =
    Y_INTUI               = GV_V_INTUI
  Y_TRANSACTIONID       =
    Y_DATE                = GV_V_DATE

Similar Messages

  • How to debug  a run time error encountered while executing ZFunction Module

    Hi all,
    My requirement is to create a ZFunction Module that Generated a sales order
    for multiple line items and works for both Variant Configurable material and a Normal Material.
    I am using BAPI_SLSTRANSACT_CREATEMULTI in my Zfunction Module to create a
    Sales order
    My ZFunction Module works well if I give normal material as input.
    It also works well and generates a sales order if I give all Variant Configurable materials as input.
    But if I give both Variant Configurable material and a normal material it throws a run time error.
    Can some one tell me what is wrong? can some one suggest me how to debug this run time error
    Termination occurred in the ABAP program "SAPLCRM_CONFIG_OW" - in                            
    "CONFIG_TO_CBASE".                                                                          
    The main program was "RS_TESTFRAME_CALL ".                                                                               
    In the source code you have the termination point in line 63
    of the (Include) program "LCRM_CONFIG_OWF02".                                                
    Source Code Extract                                                                               
    Line SourceCde                                                                               
    |   33|                                       LT_CUXI_CUPRT                                       
    |   34|                                       LT_CUXI_CUVAL                                       
    |   35|                                       LT_CUXI_CUVK                                        
    |   36|                                       LS_CUXI_CUCFG.                                      
    37
    |   38|  PERFORM CREATE_PRICING_CSTIC USING IS_CONFIG-CUCFG-CFGINFO.                              
    39
    |   40|* set config to cbase                                                                      
    |   41|  CALL FUNCTION 'COM_CUXI_SET_SINGLE_CFG'                                                  
    |   42|       EXPORTING                                                                           
    |   43|            I_CFG_HEADER          = LS_CUXI_CUCFG                                          
    |   44|            I_ROOT_INSTANCE       = CV_INT_OBJ_NO                                          
    |   45|            I_LOGSYS              = LV_LOGSYS                                              
    |   46|       IMPORTING                                                                           
    |   47|            E_ROOT_INSTANCE       = CV_INT_OBJ_NO                                          
    |   48|       TABLES                                                                               
    |   49|            I_TAB_INSTANCES       = LT_CUXI_CUINS                                          
    |   50|            I_TAB_PART_OF         = LT_CUXI_CUPRT                                          
    |   51|            I_TAB_VALUES          = LT_CUXI_CUVAL                                          
    |   52|            I_TAB_VAR_KEYS        = LT_CUXI_CUVK                                           
    |   53|            I_TAB_RESTRICTIONS    = LT_CUXI_CURES                                          
    |   54|       EXCEPTIONS                                                                          
    |   55|            INVALID_INSTANCE      = 1                                                      
    |   56|            INTERNAL_ERROR        = 2                                                     
    57
    OTHERS                = 3.                                                        58
    |   59|  IF SY-SUBRC <> 0.                                                        
    |   60|    if sy-msgno is initial.                                                      
    |   61|      MESSAGE X010 WITH 'COM_CUXI_SET_SINGLE_CFG'.
    |   62|    else.                                                                             
    |>>>>>|      MESSAGE ID SY-MSGID TYPE 'X' NUMBER SY-MSGNO
    |   64|              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    |   65|    endif.                                                                               
    |   66|  ENDIF.                                                                               
    67
    |   68|ENDFORM.                               " CONFIG_TO_CBASE                                   

    Hey Amit...
    Can I Create a Sales order for VC and Non VC items using BAPI_SLSTRANSACT_CREATEMULTI
    Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI
    I am trying to create a Sales Order using a Zprogram. I have used BAPI_SLSTRANSACT_CREATEMULTI. If I give the input as Normal material I am able to generate a sale order. If I give the input as VC material I am able to generate a sales order. But if I give both VC and Normal material as input, I get a run time error as follows.
    Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI that we cannot create a sales order with both VC and Non-VC items or am I missing some data which I need to pass when I give both VC and Non VC items? I get this error only for my Zprogram. But if I try to create an order on screen manually I donu2019t get any error. This happens only if I create an order with my Zprogram.
    Some one please help me u2026I am just stuggling to get this doneu2026
    I dint find any posts that gives me information about this error.
    CUX1 034 u201CNo root instance found in header datau201D                                                                               
    In the source code you have the termination point in line 63                                   of the (Include) program "LCRM_CONFIG_OWF02".

  • Portal Run time error after deploying custom logon page par file in portal

    Hi Experts,
       We have customized the standard portal logon par file for client XYZ and imported it with the same name (com.sap.portal.runtime.logon.par)  in portal.
       It is working fine for XYZ . And another client ABC wants the same customization for them also. So we took the par file from XYZ and imported it in ABC system. But in ABC system, we are getting Portal Run time Error. When we checked the logs, it is showing error in LogonBean class.Wwe have included the necesary jar files. Could anyone help us in identifying what is missing?
    Thanks
    VJ

    Hello Vijay,
    Please paste or attach the error log.
    Regards,
    Haseena

  • How to fix "run time error R6025 pure virtual function call"

    I instaled ITUNES 10.6.1.7 on W7 at first the program worked ok but after 6 or 7 times that opened it, just when was searchir for a music title the program crashed with the msg above.
    I applied instructions in Apple support page about eliminate plug-in files. it worked again but In same way, about 6 or 7 times I opened the program and searched for a title the same problem  was shown
    Thanks

    Hi I have been getting the same "Microsoft Visual C++ Runtime Library ERROR: R6025 - Pure virtual function call" every
    now and then in windows 7 operating system. then i have to wait for some time. The only thing thi sappears when i open My computer (the issue not prevails at times!). The above reply is not clear enough!. Can any one give a better/clear resoln for me!!

  • Run time error: Incompatible argument to function

    I user JDeveloper 9.0.3.2, JDK 1.4.1_02, deployed to stand alone OC4J 9.0.3.0.0
    when I run my client, get the following error:
    java.lang.VerifyError: (class: com/ses/nucleus/bc4j/base/BaseViewObjectImpl, method: getMaxMinValue signature: (II)Ljava/lang/Object;) Incompatible argument to function
    any suggestions?
    Thanks a lot in advance!
    Frank
         

    does the problem persist if you use JDK 1.3 for running your OC4J 9.0.3 container?

  • Code Inspector / Extended Check - Error  in Inbound Custom Function Module

    I have created a new cutom FM for Inbound IDOC Application Posting.
    In the  TABLE   Parameter of FM  the following Tables difined.
    IDOC_CONTRL                     LIKE     EDIDC
    IDOC_DATA                     LIKE     EDIDD
    IDOC_STATUS                     LIKE     BDIDOCSTAT
    RETURN_VARIABLES     LIKE     BDWFRETVAR
    SERIALIZATION_INFO     LIKE     BDI_SER
    while checking with Code Inspector Tool I got an Error for  BDI_SER.(  Last Table Parameter of the FM)
    Syntax check warning
    "BDI_SER" can be enhanced. After a structure enhancement, the semantics of the
    parameter transfer may change.
    Internal Message Code: MESSAGE G_B
    (The message can be hidden with "#EC ENHOK)
    Type "BDI_SER" or the type of one of its subcomponents can be enhanced. The semantics of the parameter transfer may change after a structure enhancement.
    For the execution of a Remote Function Call (RFC), the actual parameter and formal parameter do not have to be of the same type. In the case of structure types, the actual parameter and formal parameter can contain additional components at the end. These additional components are set to their initial values.
    Check whether the enhancement category of the relevant type correct is set or whether the category "cannot be enhanced" should be used.
    How to fix this error?  other wise how to supress the Message by adding "#EC ENHOK
    where I have to add the Comment "#EC ENHOK.
    please help to give details .
    Thanks in advance.
    Shar

    In the source code you will have this in comment right, use the "#EC ENHOK.

  • Run time error with exception 'EXTRACT_RESOURCEHANDLER_FAILED'

    Runtime Errors        EXTRACT_RESOURCEHANDLER_FAILED
    Short text
         Internal error: Error when logging on to delete the extract file.
    What happened?
         Error in the SAP kernel.
         The current ABAP "RAKOPL02" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note which actions and input led to the error.
         For further help in handling the problem, contact your SAP administrator
         You can use the ABAP dump analysis transaction ST22 to view and manage
         termination messages, in particular for long term reference.
    Error analysis
         An external file is required for the extracts. This can only be deleted
         at the end of the transaction. The logon for the deletion failed with
         the return code: "-4".
    How to correct the error
         The internal system error cannot be fixed by ABAP means only.
         You may be able to find a solution in the SAP note system. If you have
         access to the SAP note system, try searching for the following terms:
          "EXTRACT_RESOURCEHANDLER_FAILED" " "
          "RAKOPL02" or "RAKOPL02_FORM"
          "EXTRACT_DATEN"
         If the error occures in a non-modified SAP program, you may be able to
         find an interim solution in an SAP Note.
         If you have access to SAP Notes, carry out a search with the following
         keywords:
         "EXTRACT_RESOURCEHANDLER_FAILED" " "
         "RAKOPL02" or "RAKOPL02_FORM"
        "RAKOPL02" or "RAKOPL02_FORM"
        "EXTRACT_DATEN"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
    Hi All,
    There was a run time error due to the 'EXTRACT' statement in the code in the standard program 'RAKOPL02'.
      EXTRACT daten.
    Can you please let me know the possible causes and necessary corrections to the system (at basis level) if any?
    Thanks in advance,
    RAVI
    Edited by: Maruvada Ravi Kishore on Jun 4, 2009 6:01 AM
    Edited by: Maruvada Ravi Kishore on Jun 4, 2009 6:01 AM

    Hello,
    Refer this link
    https://www.sdn.sap.com/irj/scn/advancedsearch?query=extract_resourcehandler_failed&cat=sdn_all

  • C++ run time error

    I am running Lightroom 5.3 on a Windows 7 machine, and I am receiving a "C++ Run time error" message that requires me to exit the program. In researching this problem, I found a post from several years ago on how to fix this in Lightroom 3, involving changing the "preferences" folder in Explorer. I am stuck however in that I cannot locate that file, either browsing in Explorer or using the "search programs and files" function in Start. Can anyone help?

    It should be here:
    The preference setting file is Lightroom 5 Preferences.agprefs, in C:\Users\[user name]\AppData\Roaming\Adobe\Lightroom\Preferences\
    Do you see C:\Users\[user name]\AppData  ? NOT C:\ProgramData !!!
    Frans

  • Error while activating the function module

    hi,
    am getting error while activating the function module i.e. program or report statement is missing.
    thank you in advance
    karthik

    hii vinu,
    hi there....
    make sure that the Processing type in Attributes tab is 'Normal function module'. Also chk the general data, it must be having some name in the Program Name and include name column.try checking the program names in se38, if the program is of type include or not. you can also chk by writting  a program call the function module and test it
    I hope this will solve the query. in my case, SAPLZ123 is the program name and LZ123U28 is the include name.
    or
    Its common prob with Function module.
    Goto SE80->Give Function group name->Right click on it->Activate.
    regards,
    Shweta

  • Help with Run Time Error Please....

    I got this Run Time error when I tried to execute a Swing program I was trying to run and I was wondering if anyone could explain what it meant and how I could go about fixing the situation. The program ran with no problem when I executed it yesterday but this morning, It failed for some reason .
    My Classes name is GUIcheck.java
    Exception in thread "main" java.lang.UnsupportedClassVersionError: GUIcheck (Unsupported major.minor version 49.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    I have posted the program below for your viewing ..
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GUIcheck
        public static void main(String args[])
        JFrame.setDefaultLookAndFeelDecorated(true);
        JFrame frame = new JFrame ("Student Data Sheet");
        //Frame.setDefaultLookAndFeelDecorated(true);
       //Create the top panel.  This panel will use the grid layout and
       //will contain two labels (name and Social Security Number) and
       //two text boxes (nameTextField and ssTextField)
       JPanel topPanel = new JPanel(new GridLayout (2, 2, 5, 5));
       JLabel nameLabel = new JLabel ("Name:");
       topPanel.add(nameLabel);
       JTextField nameTextField = new JTextField(10);
       topPanel.add(nameTextField);
       JLabel ssLabel = new JLabel ("Social Security Number:");
       topPanel.add(ssLabel);
      JPasswordField ssTextField = new JPasswordField(10);
      topPanel.add(ssTextField);
      //Place the topPanel on the North side of the frame
      Container contentPane = frame.getContentPane();
      contentPane.add (topPanel, BorderLayout.NORTH);
      //Create the center panel.  It will be placed in the center of the
      //frame.  It will contain two sub panels.  One sub panel will contain
      //labels (Select sources of news and information and Classification).
      //The second sub panel will contain check boxes and radio buttons)
      JPanel centerPanel = new JPanel (new BorderLayout ());
      JPanel centerTopPanel = new JPanel (new GridLayout (1, 2, 5, 5));
      JLabel sourceLabel = new JLabel
                 ("Select sources of news and information");
      centerTopPanel.add (sourceLabel);
      JLabel classLabel = new JLabel ("Classification");
      centerTopPanel.add (classLabel);
      centerPanel.add (centerTopPanel, BorderLayout.NORTH);
      JPanel centerBottomPanel = new JPanel (new GridLayout (1, 2, 5, 5));
      JPanel checkBoxPanel = new JPanel (new GridLayout (3, 1, 5, 1));
      JCheckBox newspaperCheckBox = new JCheckBox ("Newspaper");
      checkBoxPanel.add (newspaperCheckBox);
    JCheckBox tvCheckBox = new JCheckBox ("TV");
    checkBoxPanel.add (tvCheckBox);
    JCheckBox friendsCheckBox = new JCheckBox ("Friends");
    checkBoxPanel.add (friendsCheckBox);
    centerBottomPanel.add (checkBoxPanel);
    JPanel radioButtonPanel = new JPanel (new GridLayout (4, 1, 5, 1));
    JRadioButton freshmanRadioButton = new JRadioButton ("Freshman");
    radioButtonPanel.add (freshmanRadioButton);
    JRadioButton sophomoreRadioButton = new JRadioButton ("Sophomore");
    radioButtonPanel.add (sophomoreRadioButton);
    JRadioButton juniorRadioButton = new JRadioButton ("Junior");
    radioButtonPanel.add (juniorRadioButton);
    JRadioButton seniorRadioButton = new JRadioButton ("Senior");
    radioButtonPanel.add (seniorRadioButton);
    centerBottomPanel.add (radioButtonPanel);
    centerPanel.add (centerBottomPanel, BorderLayout.SOUTH);
    contentPane.add (centerPanel, BorderLayout.CENTER);
    //creation of button group deleted
    //buttonPanel will contain buttons and will be placed at south side
    //of the frame
    JPanel buttonPanel = new JPanel(new GridLayout (1, 2, 5, 5));
    JButton submitButton = new JButton ("Submit");
    buttonPanel.add (submitButton);
    JButton exitButton = new JButton ("Exit");
    buttonPanel.add (exitButton);
    contentPane.add (buttonPanel, BorderLayout.SOUTH);
      }//end main
    }

    I do have the 1.5 at the moment and I still get the same error. I have removed other instances of JRE from my computer and retried but it still persists... What else can I do?
    Java Newbie

  • ALV GRID Display function module giving Run time error

    Hello Experts,
    I have ALV report, In which I am using ALV grid dispaly FM to display the report.
    But when my out table which I am passing to FM is empty that time ALV grid display shows blank ALV report. but when out table is not empty that time  I am getting the Run time error, which shows message "Field symbol has not yet been assigned".
    Can any one please help me out in this.
    Thanks

    TYPES: BEGIN OF type_out,
            col00    TYPE   ytlet-rzzyyproduct,
            col01    TYPE   ytlet-kslvt,
            col02    TYPE   ytlet-kslvt,
            col03    TYPE   ytlet-kslvt,
            col04    TYPE   ytlet-kslvt,
            col05    TYPE   ytlet-kslvt,
            col06    TYPE   ytlet-kslvt,
            col07    TYPE   ytlet-kslvt,
            col08    TYPE   ytlet-kslvt,
            col09    TYPE   ytlet-kslvt,
            col10    TYPE   ytlet-kslvt,
            col11    TYPE   ytlet-kslvt,
            col12    TYPE   ytlet-kslvt,
            col13    TYPE   ytlet-kslvt,
            col14    TYPE   ytlet-kslvt,
            col15    TYPE   ytlet-kslvt,
            col16    TYPE   ytlet-kslvt,
            col17    TYPE   ytlet-kslvt,
            col18    TYPE   ytlet-kslvt,
            col19    TYPE   ytlet-kslvt,
            col20    TYPE   ytlet-kslvt,
            col21    TYPE   ytlet-kslvt,
            col22    TYPE   ytlet-kslvt,
            col23    TYPE   ytlet-kslvt,
            col24    TYPE   ytlet-kslvt,
            col25    TYPE   ytlet-kslvt,
            col26    TYPE   ytlet-kslvt,
            col27    TYPE   ytlet-kslvt,
            col28    TYPE   ytlet-kslvt,
            col29    TYPE   ytlet-kslvt,
            col30    TYPE   ytlet-kslvt,
            col31    TYPE   ytlet-kslvt,
            col32    TYPE   ytlet-kslvt,
            col33    TYPE   ytlet-kslvt,
            col34    TYPE   ytlet-kslvt,
            col35    TYPE   ytlet-kslvt,
            col36    TYPE   ytlet-kslvt,
            col37    TYPE   ytlet-kslvt,
            col38    TYPE   ytlet-kslvt,
            col39    TYPE   ytlet-kslvt,
            col40    TYPE   ytlet-kslvt,
            col41    TYPE   ytlet-kslvt,
            col42    TYPE   ytlet-kslvt,
            col43    TYPE   ytlet-kslvt,
            col44    TYPE   ytlet-kslvt,
          END OF type_out.
    DATA: t_fieldcat   TYPE slis_t_fieldcat_alv,   "Field catelog table
          w_fieldcat   TYPE slis_fieldcat_alv,     "Field catelog Work area
          w_layout     TYPE slis_layout_alv,       "Layout structure
          w_event      TYPE slis_alv_event,        "Event structure
          t_event      TYPE slis_t_event,          "Event structure
          t_sort       TYPE STANDARD TABLE OF slis_sortinfo_alv,
          t_callback_main_user_command  TYPE  slis_formname,
          v_selfield TYPE slis_selfield.
    FIELD-SYMBOLS: <ksl>.
    FORM DISPLAY_REPORT .
    *Prepare Field Catlog
      PERFORM  creat_field_catlog.
    *Set layout
      PERFORM  set_layout.
    *Get Event
      PERFORM get_event.
    *Display Report
      PERFORM display_alv_report.
    ENDFORM.                    " DISPLAY_REPORT
    FORM creat_field_catlog .
      PERFORM add_fields_catlog USING:
           '01'    'RZZYYPRODUCT'     'IT_OUT'    'MPMs' ' ',
           '02'    'KSLVT'     'IT_OUT'    'License Fee' ' ',
           '03'    'KSLVT'     'IT_OUT'    'Ad Sales' ' ',
           '04'    'KSLVT'     'IT_OUT'    'Promo Fees' ' ',
           '05'    'KSLVT'     'IT_OUT'    'Total Ad Sales/Promo' ' ',
           '06'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '07'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '08'    'KSLVT'     'IT_OUT'    'Dom Station' ' ',
           '09'    'KSLVT'     'IT_OUT'    'Basic Cable/Free VOD' ' ',
           '10'    'KSLVT'     'IT_OUT'    'License Fee' ' ',
           '11'    'KSLVT'     'IT_OUT'    'Ad Sales (incl Internet)' ' ',
           '12'    'KSLVT'     'IT_OUT'    'Promo Fees' ' ',
           '13'    'KSLVT'     'IT_OUT'    'Ad Sales & Promo Fees' ' ',
           '14'    'KSLVT'     'IT_OUT'    'Foreign' ' ',
           '15'    'KSLVT'     'IT_OUT'    'Pay TV' ' ',
           '16'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '17'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '18'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '19'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '20'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '21'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '22'    'KSLVT'     'IT_OUT'    'Total Revenue' ' ',
           '23'    'KSLVT'     'IT_OUT'  'PV Net Down & Producers Share' '',
           '24'    'KSLVT'     'IT_OUT'    'Total Net Revenue' ' ',
           '25'    'KSLVT'     'IT_OUT'    'Development Expense' ' ',
           '26'    'KSLVT'     'IT_OUT'    'SOP Deficits' ' ',
           '27'    'KSLVT'     'IT_OUT'    'Amortization' ' ',
           '28'    'KSLVT'     'IT_OUT'    'Other COS ' ' ',
           '29'    'KSLVT'     'IT_OUT'    'Total COS' ' ',
           '30'    'KSLVT'     'IT_OUT'    'Profit Before Releasing' ' ',
           '31'    'KSLVT'     'IT_OUT'    'Gross Profit %' ' ',
           '32'    'KSLVT'     'IT_OUT'    'SPT' ' ',
           '33'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '34'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '35'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '36'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '37'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '38'    'KSLVT'     'IT_OUT'    'Gross Profit' ' ',
           '39'    'KSLVT'     'IT_OUT'    'SPT' ' ',
           '40'    'KSLVT'     'IT_OUT'    'Home Entertainment' ' ',
           '41'    'KSLVT'     'IT_OUT'    'SPTI' ' ',
           '42'    'KSLVT'     'IT_OUT'    'All Other Divisions' ' ',
           '43'    'KSLVT'     'IT_OUT'    'Other' ' ',
           '44'    'KSLVT'     'IT_OUT'    'Total' ' ',
           '45'    'KSLVT'     'IT_OUT'    'Net Margin' ' '.
    ENDFORM.                    " CREAT_FIELD_CATLOG
    *&      Form  ADD_FIELDS_CATLOG
          Filling of field Catlog
    FORM add_fields_catlog  USING    p_colpos
                                     p_fildname
                                     p_tabname
                                     p_fildtext
                                     p_ndisplay.
      w_fieldcat-row_pos       = '1'.
      w_fieldcat-col_pos       = p_colpos.
      w_fieldcat-fieldname     = p_fildname.
      w_fieldcat-tabname       = p_tabname.
      w_fieldcat-reptext_ddic  = p_fildtext.
      w_fieldcat-no_out        = p_ndisplay.
      APPEND w_fieldcat TO t_fieldcat.
      CLEAR: w_fieldcat.
    ENDFORM.                    " ADD_FIELDS_CATLOG
    *&      Form  SET_LAYOUT
          Set Layout
    FORM set_layout .
      w_layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    FORM get_event .
      w_event-name = 'TOP-OF-PAGE'.
      w_event-form = 'F_TOP-OF_PAGE'.
      APPEND w_event TO t_event.
    ENDFORM.                    " GET_EVENT
    *&      Form  TOP-OF-PAGE
          Top of Page
    FORM top-of-page.
      DATA : t_list_commentry   TYPE slis_t_listheader,
               w_header           TYPE slis_listheader,
               lv_text(90)        TYPE c,
               l_text(90)         TYPE c,
               lv_rundate(10)     TYPE c,
               lv_runtime(10)     TYPE c.
      CONSTANTS: c_space(2) TYPE c VALUE '  ',
                 c_space2(6) TYPE c VALUE '      '.
      w_header-typ  = 'S'.
      w_header-key  = 'Program:'.
      w_header-info = sy-repid.
      APPEND w_header TO t_list_commentry.
      WRITE: sy-datum TO lv_rundate MM/DD/YYYY.
      WRITE: sy-uzeit TO lv_runtime USING EDIT MASK '__:__:__'.
    CLEAR w_header.
    w_header-typ  = 'S'.
    w_header-key  = text-021.
    w_header-info = lv_rundate.
    APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'User Id'.
      w_header-info = sy-uname.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'Run Date'.
      w_header-info = lv_rundate.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'S'.
      w_header-key  = 'Run Time'.
      w_header-info = lv_runtime.
      APPEND w_header TO t_list_commentry.
      CLEAR: w_header.
      w_header-typ  = 'H'.
      w_header-key  = 'order'.
      w_header-info = 'MCR Report'.
      APPEND w_header TO t_list_commentry.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_list_commentry.
    ENDFORM.                    "TOP-OF-PAGE
    FORM display_alv_report .
      CONSTANTS : gc_save TYPE c VALUE 'A'. "Save Layout
    t_callback_main_user_command  = c_user_command.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
        i_callback_user_command           = t_callback_main_user_command
         i_callback_top_of_page            = 'TOP-OF-PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = w_layout
         it_fieldcat                       = t_fieldcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
         i_save                            = gc_save
      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
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = it_out
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
       ENDIF.

  • Inconsistent Errors when processing  IDocs using custom Function Module

    I am encountering a most perplexing error. Here is the situation.
    We have a custom function module to update data in the EH&S system. We are having a bizarre error occurring. This is the basic processing of the function module:
    1. IDoc data is read and loaded into an internal table.
    2. Data is run through a series of checks to determine if the data is valid for entry into the system.
    3. After validation we use function module  C1F2_SUBSTANCES_READ_WITH_REF to read  characteristic data for the  substance. This data is used to validate whether current data exists to allow for loading of the IDoc data. (This is the step where the IDoc is receiving an error even if the data is valid. This only occurs if we are processing a large amount of Idocs and one IDoc contains valid data and another invalid data for the same substance. It occurs even if the Idocs are not processed in sequence.  If individually processed or reprocessed after initial failure they pass. This is what is so confusing!) If it exists, a flag is set and  the data is loaded using function module BAPI_BUS1077_CHANGE to modify the data.
    4. If the flag is set to allow further processing, the function module C1F2_SUBSTANCES_READ_WITH_REF is used again to select different characteristic data for the substance. A similar validation process occurs and if it passes, data is loaded using BAPI_BUS1077_CHANGE to update and BAPI_BUS1077_CREATE to create new data.
    Here is the situation:
    When processing one valid record for one substance, the record loads successfully.  When processing multiple valid records (all are valid) for one substance, they all load successfully.  The problem occurs when attempting to load valid and invalid records for the same substance.  Some times the program successfully loads the valid data (as expected).  Other times, it will not load any records.  It is not consistent!
    The order of IDoc processing does not have an impact on the success of the load.  Whether the valid or invalid record processes first does not have an impact on the success of the valid substance load.
    Does anyone have ANY Idea of what is going on? I am clearing all fields in the function module before processing occurs. I cannot find what is causing the error to occur.
    HELP!
    Jim Hardy

    I have some further information. It seems that if data for a substance is sent in two separate Idocs, one with valid and one with invalid data, As long as the two IDocs are processed consecutively, they process correctly. If they are separated by IDocs containing other substance information, they fail.
    thanks
    Jim

  • ABAP Run time error when display the Customs Export declarations

    Hi,
    I'm receiving ABAP Run time error when display the Customs Exp. Declarations Under SAP Customs Processing -> Customs Processing - Import / Export -> Monitoring.
    Error messaging point to Function Module - /SAPSLL/CUHD_LOAD_SELECTION.
    While debugging we found that Primary Key of the below structures are not the same
    lt_corpar                              type      /sapsll/corpar_t
    lt_corpar_ht       type      /sapsll/corpar_k02_ht
    Does anyone has the SAP Notes or solution to this issue other than changing the structures manually. I'm not sure about the impact if i change manually
    Error message short details
    Termination occurred in the ABAP program "/SAPSLL/SAPLCUHD_SELECTION" - in
         "/SAPSLL/CUHD_LOAD_SELECTION".
        The main program was "/SAPSLL/CULO_DISPLAY_CUS_EXP ".
        In the source code you have the termination point in line 144
        of the (Include) program "/SAPSLL/LCUHD_SELECTIONU01".
    We are on GTS Release 8.0 and Support Package SAPK-80014INSAPSLL (Support pack level 14).
    Regards,
    Pradeep Maddi

    Hi,
    I have implemented SAP Note 1531799, but it hasn't resolved the current issue.
    For Our GTS instance, there are 2 Feeder Systems (ECC) attached, but document transfer in one of the system has not been activated. Both having the same partner functions ( We copied the sandbox into 2 different instances for different business Testings and now these 2 instances attached to GTS for testing). These feeder systems have different Logical system names and Logical system groups.
    Recently i have implemented SAP Corrections manually for one the issue, Please see below thread for the detail information
    Proforma Invoice not transferred to GTS
    After implementing the corrections, i have created Pro-forma invoice in ECC system. When i tried to display, i'm facing the ABAP Dump issues.
    Error details
    Runtime Errors         ITAB_DUPLICATE_KEY
    ABAP Program           /SAPSLL/SAPLCUHD_SELECTION
    Application Component  SLL-LEG
    You tried to insert an entry into table  "\FUNCTION=/SAPSLL/CUHD_LOAD_SELECTION\DATA=LT_CORPAR_HT". However, updating the unique table key "PRIMARY_KEY" resulted in a duplicate entry. The key concerned may be either the primary key or a secondary key.
    Regards,
    Pradeep

  • Error in Custom Function Module

    Hi,
    I am working on implementing General Ledger Business content in financial Accounting.
    We had a requirement of creating a Custom Virtual cube similar to 0FIGL_V10. Hence, we had copied the standard function module RS_BCT_FIGL_DATA_GET_VC10 and created a custom function module. Before doing that, we had copied the function group RS_BCT_FIGL and created a custom function group for the custom function module.Both were activated subsequently. Then, we had created a custom virtual cube (ZFIGL_V10) using the custom function module.
    The queries on the Standard virtual cube were migrated to ZFIGL_V10 using the RSZC transaction code. when the queries are executed in RSRT, we get an error message "**An exception with the type CX_SY_DYN_CALL_ILLEGAL_FUNC occurred" and the ABAP debugger is started post that error.
    Has anyone faced this problem before?could any of you provide some pointers to it.
    Regards,
    Sainath

    You cannot use the standard function module which is used for standard cube for another cube.
    You should not change the function module.
    Instead you can make a copy of the function module you are using aand use this copy in ur virtual cube which will work in the same way the actual Fm used to work and it will make you perfrom the changes.
    Follow the below steps:
    1) Goto SE37 and In the top tool bar click on the copy button which is on right side of delete button.
    2) in fr FM give the name of the actual FM and in to Fm give the name of the function module you want to copy.
    3) Then click on copy.
    4) Now open this new function in edit mode and goto the import/export parameters and check. it will have all the same parameters as the actual FM. Here you can make the changes you want.
    5) Now use this FM in your virtual cube and it will be working as per your requirement
    https://forums.sdn.sap.com/click.jspa?searchID=9605118&messageID=4999763
    Hope it Helps
    Chetan
    @CP..

  • Break execution after custom run-time error handler callback

    I am using Teststand 2010 SP1 and have written a custom runtime error handler based on the ErrorHandlerExample example that ships with TestStand. It has been implemented as a StationPostStepRuntimeError callback in my Station Callbacks folder.  I have modified the example as follows:
    (1) Added code to turn off the UUT transmitter if it was on.
    (2) Added a call to an executable that sends an email to the currently logged in user.
    (3) Calls the standard TestStand run-time error dialog using the Engine DisplayRunTimeErrorDialog method.
    (4) Processes the user's selection, then turns on the UUT transmitter for any option other then Abort.
    The callback also checks the status of the Break and "Don't Show again for this execution" options selected by the user.  If the user selects Break then the only option I can find is to call the API Execution.Break() method which breaks the execution right there in my callback. The user then has to single step there way out of the callback.   Is there a way of instructing TestStand to complete the callback execution and break immediately after completing the callback (i.e.at the step following the error)?  I've zipped up and attached my modified sequence.
    Alternatively, is there a better way of doing this?
    Regards,
    David
    Solved!
    Go to Solution.
    Attachments:
    StationCallbacks.7z ‏13 KB

    Didn't have a chance to try it yet but maybe StepOut is your solution?
    From the TS Help:
    StepOut Method
    Syntax
    Execution.StepOut
    Purpose
    Resumes the execution from a suspended state and then suspends the execution again after execution of the current sequence completes.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

Maybe you are looking for

  • Creating a share in 10.5 and connecting  with XP or Vista - My Experience

    Here was my situation. Client has a machine now running 10.5 on it that is sharing an external drive on the network for other mac users in the office to use as well as 3 Windows machines. I tested with an xp machine as well as a vista machine. The pr

  • Writing to dat using GUI

    Can someone please help me with my code as i am stuck, I have succesfully displayed the question i want to screen using the button find. Then and only then will the bottom panel be shown with the question and relevant answers displayed in text boxes.

  • How to create process code for idoc bank_create01 in testing client

    hi, I am using Idoc BANK_CREATE01 and BANK_CHANGE01  to post idoc to R/3 in inbound side. there is no standard process code available for this idoc But there is a function module idoc_input_bank_create which posts data to r/3 from the idoc. So i crea

  • Javax.resource.ResourceException: Failed to start the connection

    I have created the JMS bridge in Weblogic10.0 to connect with MQ server, I am getting error when startingup the weblogic server. Below the error ####<28-Mar-2009 10:56:25 o'clock GMT> <Info> <MessagingBridge> <clx25ao02> <aauat100-02> <[STANDBY] Exec

  • JRadioButton.setSelected(false) doesn't work?

    Hey there. I usually answer questions in this forum but this time I have a question myself. I'm trying to de-select JRadioButtons in a ButtonGroup but it's not working. I've searched the forum but didn't find anything. Here's the very simple code: im