Statement Not Accessible for a FM

Hi i am getting Statement not accessible syntax error at the Call Function Statement,(bold line) for the following code. Can somebody clarify me why this is happening. Thanks in advance.
PROGRAM ZHR_FEATURE_RLPGR .
TABLES : PERNR.
TABLES : T74HG,  PSKEY, T5UB3, T5UB9, T5UBT, T5UBA .
infotypes:0001,0021.
CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'    
  EXPORTING
    _PERNR                 = PSKEY-PERNR
    _BEGDA                 = PSKEY-BEGDA
    _ENDDA                 = PSKEY-ENDDA
    _BAREA                 = T5UB3-BAREA
    _BENGR                 = T5UBT-BENGR
    _BSTAT                 = T5UB9-BSTAT
    _BPLAN                 = T5UBA-BPLAN
    _SUBTY                 = PSKEY-SUBTY
    _OBJPS                 = PSKEY-OBJPS
IMPORTING
   _RLPGR                  = T74HG-RLPGR
   EXCEPTIONS
   EVALUATE_FEATURE       = 1
   CUSTOMER_ERROR         = 2
   OTHERS                 = 3

Hi,
Try with as below.
CALL FUNCTION 'EXIT_SAPLHRBEN00FEATURE_029'
  EXPORTING
    _pernr                 =
    _begda                 =
    _endda                 =
    _barea                 =
    _bengr                 =
    _bstat                 =
    _bplan                 =
    _subty                 =
    _objps                 =
    iscobra              =
    _nontx                 =
IMPORTING
  _RLPGR                 =
EXCEPTIONS
  EVALUATE_FEATURE       = 1
  CUSTOMER_ERROR         = 2
  OTHERS                 = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Ram.

Similar Messages

  • Statement not accessible error - Any ideas please.

    Hello all:
              We were using macro from TRMAC table in 4.6C version and it used to give a warning but after upgrading to ECC6.0 it is syntax error! Please look at the code below:
    *SELECTION SCREN / PARAMETERS                                          *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
    PARAMETERS: p_mode(1) TYPE c DEFAULT 'N' OBLIGATORY,
                p_grp     LIKE apqi-groupid DEFAULT 'SKF_POST' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN SKIP 1.
    unix_pc_path text-001 text-002 text-003.
    *Intialization                                                         *
    *INITIALIZATION.
    *At selection screen                                                   *
    AT SELECTION-SCREEN OUTPUT.
      PERFORM format_unixpath(yunixctrl) USING 'YHOME_UX' yhome_ux.
    AT SELECTION-SCREEN.
      IF ( rdb_pc = 'X' AND yhome_pc IS INITIAL ) OR
         ( rdb_ux = 'X' AND yname_ux IS INITIAL ).
        MESSAGE e000 WITH 'A filename is required'.
      ENDIF.
    AT USER-COMMAND                                                      *
    AT USER-COMMAND.
    *Start-of-selection                                                    *
    START-OF-SELECTION.
      IF NOT rdb_ux IS INITIAL.
        unix_getname yhome_ux yname_ux v_file_in.
        PERFORM upload_parse_unix_file.
      ELSEIF NOT rdb_pc IS INITIAL.
        v_file_in = yhome_pc.
        PERFORM upload_parse_pc_file.
      ENDIF.
      PERFORM skf_posting.
    *End-of-selection                                                      *
    END-OF-SELECTION.
    The program does not like the line "unix_pc_path text-001 text-002 text-003." and gives an error "Statement not accessible". I went through some discussion forums on this here but nothing related to macro. Could anyone please give me an idea how I could resolve this? All the answers will be rewarded.
    Thanks.
    Mithun

    You cannot put it in START-OF-SELECTION a you need the unix path in the
    AT SELECTION-SCREEN FOR OUTPUT event.. move the statement from the selection-screen block to the INITIALIZATION event.
    ~Suresh

  • Statement not accessible - Syntax error

    Hi all,
    There is a form within a standard include. The form has an include within it. Its a custom include. So its an exit i suppose. Now i have a problem in the custom include. There is "statement not accessible" error. Find below the code in the custom include.
    *&  Include           ZZIMOVEKVGR4                                     *
    DATA: r_vkorg TYPE RANGE OF vkorg.
    CONSTANTS: c_z_salesorg_zzkvgr4 TYPE rvari_vnam VALUE
                                                    'Z_SALESORG_ZZKVGR4'.
    * Get the values from variant Z_SALESORG_ZZKVGR4 of TVARVC tavle
    CALL FUNCTION 'Z_FILL_RANGE_TABLE_FROM_TVARV'
    EXPORTING
    name                 = c_z_salesorg_zzkvgr4
    *   INITLINE             = ' '
    *   LINE_SEPARATOR       = ','
    TABLES
    rngtab               = r_vkorg.
    * Check for the sales orgranisation in TVARVC table
    IF vbrk-vkorg IN r_vkorg.
    * Move field Customer group 4 to KOMPCV structure
      MOVE vbrp
    ENDIF.
    Please help me understand how to overcome the same. The function module called has a select query. Does it have something to do.
    Pasting here the form that calls this include.
    FORM USEREXIT_ACCOUNT_PREP_KOMPCV.
    *  KOMPCV-zzfield = xxxx-zzfield2.
    *{   INSERT         TSTK9B000H                                        1
    * TSTK9A05ZS-Begin of changes For scr 7060
    * Only for the sale organisation S096
        INCLUDE ZZIMOVEKVGR4.                                "TSTK9A05ZS
    * TSTK9A05ZS-End of changes
    *}   INSERT
    ENDFORM.
    Thanks & Regards,
    Selvakumar M.

    Hi,
    this form in RV60AFZZ is to modify KOMPCV fields.
    I can't see any attempts to change those fields in your include.
    You can either move your code directly into form routine USEREXIT_ACCOUNT_PREP_KOMPCV, or correct your code in your include to make it work (as Sudhi told before).
    Regards.
    Klaus

  • " Statement not accessible"

    Hi all
    there is an error  for the below statemnt
    APPEND 'Techn.Platz' TO it_fieldnames.
    " Statement not accessible"
    Thanks
    Protyusha

    Hi Protyusha,
    It seems that you are trying to append the complete line of a tabel with this 'Techn.Platz' . Instead you provide the field name that you are trying to append
    For ex:   it_fieldnames-fieldname.
    If still you are not clear then send me the complete code I will explain you in detail.
    Regards,
    Md Ziauddin

  • SQL Always On: not accessible for queries

    Hi forum!
    I'm monitoring SQL 2012 Always On Groups with the latest SQL MP. A couple of the database replicas are configured to not allow access. This is to avoid additional license costs for those minor important databases.
    However, I get the following events in the SQL log:
    Error 976, Severity 14
    The target database, '%.*ls', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended
    or the availability replica is not enabled for read access. To allow read-only access to this and other ...
    Of course, as soon as I configure read-only for those databases the events disappear.
    Is there any other solution?
    Has anyone identified already (all) the accessing workflows?
    Thanks in advance,
    Patrick
    http://www.syliance.com | http://www.systemcenterrocks.com

    Hi All, I am also experiencing this issue.  Having a look at the statements SCOM is issuing, it's actually checking whether the AG secondary allows connections but it ignores the value and tries to connect anyway.  I believe this is a minor bug. 
    See below for these queries. 
    You can vote to correct it through Microsoft Connect on: https://connect.microsoft.com/WindowsServer/feedback/details/1121330
    --SCOM/MP: is this database a replica and does it allow connections?
    SELECT d.name, d.database_id, CASE WHEN d.replica_id IS NULL THEN 0 ELSE 1 END AS is_replica, ar.secondary_role_allow_connections
    FROM sys.databases d JOIN sys.availability_replicas ar on d.replica_id = ar.replica_id JOIN sys.servers s ON s.name = ar.replica_server_name AND s.server_id = 0 /*local server*/
    WHERE d.database_id = x --current db id in sys.databases loop
    --SCOM/MP: let's look into that db (regardless of whether it allows connections)
    --EXCEPTION: The target database, 'x', is participating in an availability group and is currently not accessible for queries. Either data movement is suspended or the availability replica is not enabled for read access. To allow read-only access to this and other databases in the availability group, enable read access to one or more secondary availability replicas in the group. For more information, see the ALTER AVAILABILITY GROUP statement in SQL Server Books Online.

  • Statement not accessible in include called in a user-exit

    I am working on an upgrade project, and we receive an error 'Statement not accessible.
    In the following user exit:
    FUNCTION EXIT_SAPLZLWB_002.
    INCLUDE ZZLWBU02 .
    ENDFUNCTION.
    If I go to the include, I get an the error 'statement not accessible'.
    I tried to put all the code in the include between a form...endform statement,
    but then I get an incorrect nesting error because the form...endform is between a function...endfunction.
    How can I solve this?
    Thx!
    Edited by: christophe latinne on Jan 9, 2009 4:31 PM

    this seems to be a clone of a standard SAP function group, and thats why you can;t access the exits here.
    EXIT_SAPLZLWB_002
    you can create the exits starting with Z* in order to access those at runtime.

  • "Statement not accessible" error in Implicit enhancement - SAPMF05A

    Hi,
      I am trying to implement Implicit Enhancement in program SAPMF05A, in module transaktions_init. When I click on Edit -> Enhancement Option -> Show implicit enhancement, it displays implicit enhancement at end of module ( after ENDMODULE) statement. When I click " Enhancement" icon, write code and it gives error statement not accessible.
    Please suggest.
    Regards,
    Priya

    You will have to put the code in a module and then call that module.
    Rob

  • Statement not accessible error in Implicit Enhancement of  SAPMPE03

    ENDMODULE.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 ) Include MPMKMO00, End                                                                                S
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1 ZENH_PE03.
    MESSAGE 'hi' TYPE 'I'.
    ENDENHANCEMENT.
    *$*$-End:   (1)
    As shown above i added a line MESSAGE 'Hi' Type 'I' in the implicit enhancement portion. But it gives me error "Statement not accessible"
    Thanks

    Hi Amber,
    just in case you have to do something similar again: ABAP Code must always be between MODULE ... ENDMODULE or FORM ... ENDFORM. In the example in this post the statement
    MESSAGE 'hi' TYPE 'I'.
    is just after an ENDMODULE. statement and so this code can never be reached (or is not accessible ). The implicit enhancement option outside the existing modularization units is used to define completely new MODULEs or FORMs.
    Hope this helps!
    Regards
    Oliver

  • Statement not accessible error

    Hi, we have upgraded the project from 46c to ecc version.
    In one standard include MV45AFZZ , one statement is added  IMPORT itab1chk FROM MEMORY.
    In MV45AFZB , the value for itab1chk is getting exported.
    In 46c , we r not getting any error when we run the VA01 transaction.
    But in ECC, this transaction going for Dump giving error 'The statement is not accessible ' referring to the statement IMPORT itab1chk FROM MEMORY which is in MV45AFZZ include.
    I tried by adding ID <KEY> to the IMPORT AND EXPORT statement. But still getting same error.
    Can any one please suggest the solution.
    Thanks,
    laks.

    Hi,
    You get this Error normally when you are doing a syntax check on the Includes in which the code lines are not between FORM and ENDFORM.
    I dont think this is a serious error atleast till 4.7 as the system will allow you to activate the Include. May be the ECC is a bit more stringent on this issue.
    I think your problem will be solved if you try to include all the code lines only in the FORM and ENDFORM.
    regards,
    Mahesh

  • Photos visible in iPhoto application but not accessible for upload

    Any help anyone can provide with this is greatly appreciated. I took pictures of a friends wedding and have been trying to order a photobook as a gift. I decided to try to use iPhoto to make the book. I don't use iPhoto very often and at the start of this, my iMac was running on the Tiger OS and an old version of iPhoto (I think 5 or 6). After completing the  first version of my photobook, I tried to place an order, but got a message that my version of iPhoto wasn't supported any longer and I'd  have to upgrade.
    I called the Apple store and ordered the Mac Box Set to upgrade my operating system to Snow Leopard and my iLife to version 11. The woman at the Apple store had me check my system info., available space, etc. and she assured me that my system should be able to handle the upgrade. I went ahead with the upgrade, loading the new operating system first and then iLife. The install seemed to go just fine, I never got any error messages and all the applications appear to function properly. So, I used the new version of iPhoto to create a photobook. I then placed the order the first time. On my end the process went smoothly and the upload completed without interruption. However, I got an e-mail message 4 days later saying my order couldn't be completed because files did not upload properly. So, I tried to place the order again, following the instructions to make sure that all my other applications were closed, etc. Once again the process seemed to be completed without any issues. However, now a week later, I once  again got the error message that my order could not be completed because files did not upload properly.
    So, I decided to try to place an order through a different vendor. Now I have discovered that all my recent photos (despite appearing in the iPhoto) are not accessible when I try to access them for upload to the vendor's site. The icon for iPhoto library is grayed out and there is no longer an option to access my photo rolls through finder. So, now I am unable to place the order for the photobook.
    Can anyone help me figure out how to fix this? Any help you can provide is greatly appreciated.

    Nothing to be fixed. Just a little learning for you.
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Public content not accessible for guest user

    Hi,
    I have 2 environments with having Guest role (read on Public SecurityGroup).
    Ideally public content should be accesible by any guest/annonomous users.
    Environment 1)
    UCM with SSO(kerbarose based)
    When i access public content with any guest/annonomous user its not accessible
    Environment 2)
    UCM with out SSO
    When i access public content with any guest/annonomous user its accessible
    Did any one faced this problem.
    Any help is highly appreciable.
    Note: Accounts not enabled
    Thanks,
    Vijay

    It seems like your Kerberos SSO reject anonymous users, rather than give the 'Guest' role. Not sure if anything can be done about it at UCM side.

  • Sender JDBC adapter -- Update SQL statement NOT work for the last record

    I'm trying to use SAP XI to send records from Oracle database to As/400 using JDBC adapter.  I've defined the communication channel for sender
    (1)  The "Query SQL statement"  = select  a_bgn_dt,  a_end_dt from  PX_PXXD WHERE NOT CU_ACTION_CD='P' 
    (2)   The "Update SQL statement"  = update PX_PXXD set CU_ACTION_CD='P'  WHERE NOT CU_ACTION_CD='P' 
    Supposed that 3 records were retrieved from (1) and successfully updated to AS/400 but only the first 2 records in Oracle database are updated according to (2)
    Any advise.
    Pansy

    Hi Pansy,
    You select and update query is looking like wrong
    kindly check below query,If you are using oracle
    (1) The "Query SQL statement" = select a_bgn_dt, a_end_dt from PX_PXXD WHERE CU_ACTION_CD !='P'
    (2) The "Update SQL statement" = update PX_PXXD set CU_ACTION_CD='P' WHERE  CU_ACTION_CD !='P'
    Thank you
    Sateesh

  • Gather schema stats not running for custom schema's in EBS 12.1.1

    Hi All,
    We are running Gather schema stats program periodically in our EBS system with Schama name as "ALL", but it is not generating the statistics for the custom schema. We have custom schema registered in our EBS application. Can you please let us know if there is any issue with our setup or this is standard behaviour of Gather schama stats concurrent program.
    Thanks,

    Hi,
    At how much percent ur using with Gather schema stats program like 10%,20%(in Gather schema stats program form)...I think there are no updates on the tables of that custom schema thats why the gather schema progam ignored it..can u check were there updates?
    Regards

  • MediaPlayer.state - playing state not reported for live stream

    I am listening for the MEDIA_PLAYER_STATE_CHANGE event on mediaPlayer to control the display of a buffering graphic. When playing back a recorded video I catch a mediaPlayer.state equal to "buffering" followed by a state equal to "playing". However, when playing back a Live stream I get the "buffering" state but never see the "playing" state. The Live video is playing but the change event appears to not be sent.
    Both videos are streaming from FMS.
    Has anyone else seen this? Please let me know if there are additional details you would like to know to help track this down.
    Regards,
    - michael

    Thanks Michael for reporting this problem, a bug is already filed for this issue. You can listen to PLAY_STATE_CHANGE on PlayEvent with Live Stream as a workaround until bug is fixed.

  • User account is not accessible for login, but remains in Users folder. Can it be re-activated?

    My 18 mo old grandson hit a few keys on my wife's mid 2010 MbPro while she was logged in and eliminated her user login from the startup/login screen. I used resetpassword utility to reset p/w for System Administrator to access the machine and the user folder is intact. (The account also does not appear in the resetpassword pulldown list of users.) I have copied all of the folders except Library in her original account into a newly created account. Is there a procedure to (1) re-activate/re-access her original account, or (2) migrate her original Library information/settings to the new account?

    User Account - Rebuild
    User Account – Migrate Data
    User Account – Combine Two

Maybe you are looking for