Generate Function But Can't Call It? --Reload

hi all,
I have program like below, but the SAP system tell me "Call Function NOT FOUND" when lv_idx = 2.
How to make it work?
*& Report  Z_TEST_DYN
REPORT  z_test_dyn.
DATA fname TYPE rs38l-name.
DATA:
      lt_code TYPE TABLE OF rssource,
      lv_idx TYPE n LENGTH 3 VALUE 0.
APPEND 'write: /''test''.' TO lt_code.
DO 10 TIMES.
  ADD 1 TO lv_idx.
  CONCATENATE 'Z_TEST_' lv_idx INTO fname.
  CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT'
    EXPORTING
      funcname                      = fname
      function_pool                 = 'ZIF_FGDYN'
*     INTERFACE_GLOBAL              = ' '
*     REMOTE_CALL                   = ' '
      short_text                    = 'TEST'
*     SUPPRESS_CORR_CHECK           = 'X'
*     UPDATE_TASK                   = ' '
*     CORRNUM                       = ' '
*     NAMESPACE                     = ' '
*     SUPPRESS_LANGUAGE_CHECK       = 'X'
*     AUTHORITY_CHECK               = 'X'
*     SAVE_ACTIVE                   = 'X'
*     NEW_SOURCE                    =
*     EXCEPTION_CLASS               = ' '
*     SUPPRESS_UPGRADE_CHECK        = ' '
*   IMPORTING
*     FUNCTION_INCLUDE              =
*     CORRNUM_E                     =
   TABLES
*     IMPORT_PARAMETER              =
*     EXPORT_PARAMETER              =
*     TABLES_PARAMETER              =
*     CHANGING_PARAMETER            =
*     EXCEPTION_LIST                =
*     PARAMETER_DOCU                =
     SOURCE                        = lt_code
   EXCEPTIONS
     double_task                   = 1
     error_message                 = 2
     function_already_exists       = 3
     invalid_function_pool         = 4
     invalid_name                  = 5
     too_many_functions            = 6
     no_modify_permission          = 7
     no_show_permission            = 8
     enqueue_system_failure        = 9
     canceled_in_corr              = 10
     OTHERS                        = 11
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  CALL FUNCTION 'FUNCTION_EXISTS'
    EXPORTING
      funcname                 = fname
*   IMPORTING
*     GROUP                    =
*     INCLUDE                  =
*     NAMESPACE                =
*     STR_AREA                 =
   EXCEPTIONS
     function_not_exist       = 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.
  CALL FUNCTION 'SBUF_SYNCHRONIZE'
    EXCEPTIONS
      c_func_error = 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.
  CALL FUNCTION 'FUNCTION_EXISTS'
    EXPORTING
      funcname                 = fname
*   IMPORTING
*     GROUP                    =
*     INCLUDE                  =
*     NAMESPACE                =
*     STR_AREA                 =
   EXCEPTIONS
     function_not_exist       = 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.
  CALL FUNCTION fname      <<<<<<<<<< Error when twice here
    TABLES
      et_table = lt_a.
ENDDO.
regards,
jkchen
Edited by: jkchen on Nov 26, 2010 7:13 AM
Edited by: jkchen on Nov 26, 2010 7:15 AM

Hi,
check the value from fname after
CONCATENATE 'Z_TEST_' lv_idx INTO fname.
It could be better to go on with the last fuba, only if the fuba before is succesfully.
CALL FUNCTION 'FUNCTION_EXISTS'
    EXPORTING
      funcname                 = fname
  IMPORTING
    GROUP                    =
    INCLUDE                  =
    NAMESPACE                =
    STR_AREA                 =
   EXCEPTIONS
     function_not_exist       = 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.
if sy-subrc eq 0. 
CALL FUNCTION fname      <<<<<<<<<< Error when twice here
    TABLES
      et_table = lt_a.

Similar Messages

  • HT201412 My 4s is not picking up phone signal I do not no how to sort this out I have tried resetting it and its not working still I do receive messages and can send them but can not call as it just says call fail

    My 4s is not picking up phone signal I do not no how to sort this out I have tried resetting it and its not working still I do receive messages and can send them but can not call as it just says call fail

    Try resseting the network settings in settings>general then go to reset a the bottom.
    Then reset NETWORK settings.

  • My iphone 5 for some reason can receive calls, send & receive texts but can not call out

    My iphone 5 for some reason can receive calls, send & receive texts but can not call out

    I am not sure if this issue is going to help you but lets give it a try.
    I know that where im from, which is the Netherlands, I am not able to sent e-mails from my iPhone or any other mobile device by using 3G or a random WIFI acces point. The provider only allowes you to sent e-mails when you are connected to a network of there own. Which means if you have provider "101" and your email settings are set up for this provider in your iPhone but your using the network of a friend of yours which is provider "202" you cannot sent emails from his network. Though you can receive them you may not sent.
    As I said, I am not aware if this issue is the same for you totaly depents on the country and provider your using.

  • Can't make call but can receive call and send or receive msg

    I can't make call with my iPhone 3gs 16G ios 6.0.1 but can receive call, surf web, send&amp;receive msg. I restored it to its original setting but problem has not been solved. Also, I changed my sim card and used another sim with another service provider but i can't make call yet. I have Viber  on it too.
    Please let me know how can i fix this problem.
    Thanks to all.

    Hello 
    Welcome to the EE Community! Have you made sure you have roaming enabled on your device? Also, do you have access to the EE online account service? If you're on Twitter, you can tweet them @EE or if you can use another phone, you can dial EE Customer Service on +44 7953 966 250. The call will be charged the standard rate for where you are.
    Cheers,
    Titanium
    Was my post helpful? Please take 2 seconds to hit the 'Kudos' button below

  • HT1688 Iphone 4s Can Send Text, but can't call.

    I have one specific number where I can send a text message but can't call the number. I dial the number and it immediately drops or cancels. Doesn't even get to a ring tone. The bad thing is its my bosses number..All other numbers work fine. This person can call me just fine, and other iphones have no problem.

    Is this a recent development? I don't know where you are, but there was a major fiber cut in N.E. Ohio today that has been disrupting Internet connectivity, the 911 system throughout the State, and both digital and analog landline services throughout N.E. Ohio and beyond.

  • I cant call to a mobile number since yesterday, but can receive call from the same number. I am using iphone 4s. Is there any setting error?

    I can't call to a mobile number since yesterday, but still can receive call from the same number. I am using iphone 4s. Is there any setting error?

    you have to make sure that CFWD Bridge Mode under the Line tab of the SPA9000 where the SPA400 is registered is set to ALL...include VMSP Bridge and XFER Bridge Mode as well..power cycle then check if you are still getting one-way audio
    | isolate! isolate! isolate! |

  • I have credit, but can't call Polish mobiles from UK

    Hi! I've been trying to call mobiles in Poland from UK. I managed to get through only once, but other times I get an automatic reply that I can't call the numbers I'd chosen. I'm sure they're correct!The online guide to my problem suggests checking whether my subscription covers Poland (though I'm sure it does as I managed to call that one time). It says "Sign in to your account, click your existing subscriptions on the left, then click Settings next to your subscription. The information is displayed". I can't see any Settings in my subscriptions, it only suggests topping up credit, which I don't need... I find it very frustrating, so I'm hoping you'd be able to help me.  Thank you in advance, Aggi 

    Hello Norman! Thank you for answering.  I am sure that I'm using the right account, so the problem still remains.. Thank you in advance for further suggestions. Regards 

  • Can sign into account but can't call

    Hi, I can sign into account but can only edit profile. I cant see a way of getting online and making calls. never had problem in past but can't see how to make calls. It says its on the most up to date version so not that....
    any ideas anyone...please
    thanks

    i used facetime intead
    conclusion of the day is skype is **bleep**...

  • Can't receive calls on my mac but can make calls

    I have downloaded Yosemite and have the iOS8 software. I can make calls on my mac but will not receive them. All my iCloud accounts on phone and mac match. Are there any settings I need to adjust to allow incoming calls to come though? Please help!

    Same thing was happening to me.  I found that I had turned on Do Not Disturb 24 hours a day in Notification Center.  This feature works through sending Notifications.   Turning off Do Not Disturb fixed it for me.

  • Cannot Call on my Blackberry 8320 but can receive calls

    I was wondering if I could get some help.
    I recently purchased a Blackberry 8320 off of an ebay store from Japan. It is an unlocked phone GSM phone.
    I live in Canada and I cannot make calls, it just says "Call Failed" but I can recieve calls and I can send and receive text messages.
    Does anyone know what I can do to fix this?

    Hi and Welcome to the Forums!
    I suggest the following steps:
    1) Register HRT
    Homescreen > Options > Advanced Options > Host Routing Table > (it does not matter which line is current) > Register Now
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    3) Batt Pull Reboot
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you will need to contact your carrier for assistance.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Can't make calls but can receive calls

    can not make calls but can received calls

    According to your profile you have IOS 2.x? Strange!
    iPhone 4 came with IOS 4 in June 2010 not IOS 2.x
    Call your carrier and ask them why.

  • Purchased subscription for UK but can't call landl...

    I've purchased a monthly subscription for UK (120 min) as I am coordinating my business trip but I can't call landlines at all and skype keeps suggesting me that I should buy SkypeCredit or a subscription?!
    But the payment shows on my skype account and on my bank statement, so the money went through? I can't understand why it is not working - anybody have any ideas??

    Hello and welcome to the Skype Community.
    You haven't purchased any credit.
    Your account shows that you have used your full Subscription minutes allocation in your current billing cycle and your next minutes will be added to your account when your next billing cycle starts on July 16th 2015.
    Renewing your monthly Subscription before your billing cycle ends has no effect on the date upon which your minutes allocation will be added to your account.
    To continue calling until your next minutes allocation is applied to your account please purchase either a Subscription but with a different amount of minutes or Skype Credit.

  • Why can i not call out when in roaming but can recieve calls

    why can i not call out when roaming and my data shuts off but i can recieve calls

        rhondahuffman1,
    These are great question and we definitely want to help out! For starters, what model of device are we working with? Are you roaming outside of the country or is the device stating roaming within certain areas? What's your zip code? Happening in specific locations? Share some details, so that we may assist.
    AdamG_VZW
    Follow us on Twitter @VZWSupport

  • Have credit, but can not call mobiles and landlines to India.

    i have skype credit   but i can not call to mobile and landline to india, 10$ i used but not use to  me now  i can not able to resolve the issue,   i am in dubai-   connection setting  i canged but  no resulti dont know what is the plan  i just bought 10$ skype cridet,  can any one help me   how to set the skype for mobile and land line to india    Subject/topic amended to reflect post content.

    india38 wrote:
    i have skype credit   but i can not call to mobile and landline to india, 10$ i used but not use to  me now  i can not able to resolve the issue,   i am in dubai-   connection setting  i canged but  no resulti dont know what is the plan  i just bought 10$ skype cridet,  can any one help me   how to set the skype for mobile and land line to india    Subject/topic amended to reflect post content. 

  • Trial with wordwide subscription but can't call an...

    Hello,
    I recently activated my trial subscription for the free month of WorldWide unlimited calls and i simply can't call anyone with it. I also had a few cents remaining in my account, as i called someone i got taxed from that amount, as if i don't have a subscription. Same thing happens if i'm trying to call using skype on my mobile phone (android 4.4.4) 
    I have the latest version of skype installed on windows 8.1 .
    Solved!
    Go to Solution.

    black_death wrote:
    Hello,
    I recently activated my trial subscription for the free month of WorldWide unlimited calls and i simply can't call anyone with it.
    Hello
    You are attempting to call to cellphones in Romania. Only calls to landlines in Romania are covered by your Subscription. Please check your Subscription coverage.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

Maybe you are looking for

  • Loops there but not

    Why do loops appear in the browser, but don't play when I drag them into tracks?

  • How to find out the AI mode using traditiona​l NI driver and VC++ 6.0?

    Hello, the software I manage is written in VC++ 6.0 and utilizes the traditional NI driver. The board used is PCI6013/6014. The AI mode though may be either differential or nonreferenced single ended. By now we configure the board using Measurement a

  • Creative Cloud desktop app doesn't show apps/can't update

    Hello, I am trying to update my current Creative Cloud apps, specifically Premiere Pro CC to the latest release. I have installed the Creative Cloud desktop app which launches the Home tab but when I click on the Apps tab I don't get any apps listed.

  • Date field should be different

    Hi Iam creating an application in web dynpro.In that labels "From Date" and "To Date" labels are present. In that i created Context of type "Date". I written code like this. Date date=new Date();         java.sql.Date today=new java.sql.Date(date.get

  • How can I get BCC to present timestamps localized for the user

    I work on an ATG deployment has Internal users accessing a server located in Washington from all over the world. The users want to see all timestamps presented in their timezone (10/18/2011 09:30 Pacific Daylight Time is 10/19/2011 12:30 China Standa