Can not pass value to the program symbol

Hi gurus,
i've developed a script form whereas the value can not be transported from ABAP program into script form. only the system envoirment variables can be displayed in the FORM.
any ideas? thanks

here is my printing program:
the varable A whose value is 4 can not be printed out in the form preview. on the other hand, if i use the same form in the report in stead of output type ME, the value 4 CAN BE displayed.
PROGRAM  sapmztest.
DATA: A VALUE '4'.
*&      Form  ENTRY
      text
     -->ENT_RETCO  text
     -->ENT_SCREEN text
FORM entry USING ent_retco ent_screen.
  CALL FUNCTION 'OPEN_FORM'
   EXPORTING
    APPLICATION                       = 'TX'
    ARCHIVE_INDEX                     =
    ARCHIVE_PARAMS                    =
    DEVICE                            = 'PRINTER'
    DIALOG                            = 'X'
     FORM                              = 'ZCNMMF017_GR_1'
    LANGUAGE                          = SY-LANGU
    OPTIONS                           =
    MAIL_SENDER                       =
    MAIL_RECIPIENT                    =
    MAIL_APPL_OBJECT                  =
    RAW_DATA_INTERFACE                = '*'
    SPONUMIV                          =
  IMPORTING
    LANGUAGE                          =
    NEW_ARCHIVE_PARAMS                =
    RESULT                            =
  EXCEPTIONS
    CANCELED                          = 1
    DEVICE                            = 2
    FORM                              = 3
    OPTIONS                           = 4
    UNCLOSED                          = 5
    MAIL_OPTIONS                      = 6
    ARCHIVE_ERROR                     = 7
    INVALID_FAX_NUMBER                = 8
    MORE_PARAMS_NEEDED_IN_BATCH       = 9
    SPOOL_ERROR                       = 10
    CODEPAGE                          = 11
    OTHERS                            = 12
  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 'START_FORM'
   EXPORTING
    ARCHIVE_INDEX          =
     FORM                   = 'ZCNMMF017_GR_1'
    LANGUAGE               = ' '
     STARTPAGE              = 'FIRST'
    PROGRAM                = ' '
    MAIL_APPL_OBJECT       =
  IMPORTING
    LANGUAGE               =
  EXCEPTIONS
    FORM                   = 1
    FORMAT                 = 2
    UNENDED                = 3
    UNOPENED               = 4
    UNUSED                 = 5
    SPOOL_ERROR            = 6
    CODEPAGE               = 7
    OTHERS                 = 8
  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 'WRITE_FORM'
   EXPORTING
     ELEMENT                        = 'DATA'
    FUNCTION                       = 'SET'
    TYPE                           = 'BODY'
    WINDOW                         = 'MAIN'
  IMPORTING
    PENDING_LINES                  =
  EXCEPTIONS
    ELEMENT                        = 1
    FUNCTION                       = 2
    TYPE                           = 3
    UNOPENED                       = 4
    UNSTARTED                      = 5
    WINDOW                         = 6
    BAD_PAGEFORMAT_FOR_PRINT       = 7
    SPOOL_ERROR                    = 8
    CODEPAGE                       = 9
    OTHERS                         = 10
  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 'END_FORM'
  IMPORTING
    RESULT                         =
  EXCEPTIONS
    UNOPENED                       = 1
    BAD_PAGEFORMAT_FOR_PRINT       = 2
    SPOOL_ERROR                    = 3
    CODEPAGE                       = 4
    OTHERS                         = 5
  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 'CLOSE_FORM'
  IMPORTING
    RESULT                         =
    RDI_RESULT                     =
  TABLES
    OTFDATA                        =
  EXCEPTIONS
    UNOPENED                       = 1
    BAD_PAGEFORMAT_FOR_PRINT       = 2
    SEND_ERROR                     = 3
    SPOOL_ERROR                    = 4
    CODEPAGE                       = 5
    OTHERS                         = 6
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    "ENTRY
Edited by: Stephen Xue on Oct 29, 2009 11:52 AM

Similar Messages

  • Hi I can not pay chart in the program Seapilot, ITray too buy charts Call Sweden

    Hi I can not pay chart in the program Seapilot, ITray too buy charts Call Sweden

    Contact the developer about how to use their app. And how to buy in app purchases.

  • I can not get on email the program continualy asks for my log in

    when i click on mail a screen opens asking for my pass word if i enter a password it opens a new screen asking for my pass word again. all other items on the home page work fine. if i use internet explorer i can get to my mail ok.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    -> click '''Firefox''' button and click '''Options''' -> Privacy -> History section -> '''Firefox will: select "Use Custom Settings for History"''' -> REMOVE Checkmark from '''Permanent Private Browsing mode''' -> place Checkmarks on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search and Form History 4) Accept Cookies from sites -> click '''Exceptions...''' button -> type the addresses of the websites from which you want to Allow Cookies to be stored e.g. '''login.live.com''' , '''hotmail.com''' , '''live.com''' , '''msn.com''' , '''mail.yahoo.com''' , '''yahoo.com''' , etc. -> click '''Allow''' for each, One by One 4a) Accept Third-party Cookies -> '''Keep Until : select''' '''They Expire'''
    -> REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES
    -> click '''Firefox''' button and click '''Options''' -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.
    -> When you use '''Clear Recent History''' make sure NOT to select '''Cookies, Forms and Search History, Active Logins, Site Preferences'''
    * https://support.mozilla.com/en-US/kb/Clear%20Recent%20History#w_what-things-are-included-in-my-history

  • I can not select clips in the program monitor?

    Normally I can double click on the sequence program monitor and select clips to scale and move about.. but for some reason this is not working? This happened to me once before but I forget how I fixed it.. I think it was a hotkey or something?
    Any ideas how to enable this feature again?

    Just position the playhead over the clip  double clicking in the PW should also work, at least it does for me.
    Selecting clip and clicking on the Transform Icon in the Effect Controls comes in handy when a clip is superimposed by another clip.

  • I use the browser Chrome OS Vista. I try to open a program that requires access to the microphone  but popup does not appear, I can not give permission to the program and can not start it .. can you help me?

    Can anyone tell me why not sign-up appears asking for permission?

    Chrome uses its own Flash Player. It's called PepperFlash, and it doesn't play well with NPAPI apps and pages, because it's a PPAPI plug-in.
    Go into your Chrome Settings. (chrome://settings in the address bar)
    Click "Show advanced settings" and go to Privacy.
    Click Content Settings...
    Check your Media settings and Unsandboxed plug-in access. Your camera should be allowed, and plug-ins should be too.
    If they are and it still gives you trouble, download the Flash Player Plug-in (All other browsers).
    Install it.
    Launch Chrome again.
    Type chrome://plugins in the address bar.
    Click the "+" for Details at the top right, and scroll to Adobe Flash Player.
    You'll see two (2) plug-ins listed; PepperFlash and the one you just installed.
    Disable PepperFlash.
    Close Chrome and relaunch it. This will force it to "fall back" on the standard plug-in which should work.

  • I can sent emails from my thunderbird account, but since 14 januari I can not open incoming emails. the program is asking for a password thar I do not have

    I use my other email adress for an answer <!--jjfloresse--> <name>@gmail.com, but the email that is not working is <!--jjfloresse--><name>@zeelandnet.nl
    Actual name removed from display; by a moderator; for privacy reasons. ~J99

    Contact your email provider's support about your passwords.
    They usually provide one or more methods for recovering or resetting passwords.
    This page may include the gmail login reset https://www.google.com/accounts/recovery/

  • My Iphone can not be synchronised as the program told me the computer is not authorised for article which are on the iphone? However my computer is authorised? I'm lost ...

    ...on my ipad everything works fine?!

    That is the only place that you need to authorise the account - and you have content from only one account on your phone, there aren't apps or music etc from another account on it ?
    And you've got all of your apps, music etc in that computer's iTunes library ?
    Syncing to a new computer : Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How to pass value to the  FM 'HR_MAINTAIN_MASTERDATA' .

    Dear Experts,
    How can I pass values to the FM 'HR_MAINTAIN_MASTERDATA' to create pernr?
    In the PROPOSED_VALUES tables I am passing the values for infotypes and subinfo types.
    The values are picked up for infotypes with no subtype , but for infotypes with more than one subtype the values are not getting passed.
    I am getting an error message 'Fill in all required entry fields' for the second subtype's mandatory field.
    I am trying to update Address (Infotype 6) with subtypes 1 and 5.
    Regards,
    Basavaraj Patil

    please try to create one manually with subtype 5 i.e second sub type
    Go to pa30
    select subty 5
    and try create record manually
    it will enable that what are the manual fields fill those fileds
    I belive you must missing city field or pin
    Please check make wht fields are needed and give those fields
    Best Regards

  • HP4275A can not pass self test after running the labview program

    I am using Labview to control HP4275A LCR meter. The Labview program is just the instrument driver for the HP4275A, and it works great. Before running the program, the instrument can pass both Open and Short test perfectly. But after running the program, it can not pass self test, neither Open nor Short. I don't know why?? Is it relative to my Labview program??
    Thanks

    Thank you so much for your help. Yes, the instrument is in Local after running the instrument driver. In normal Open self test, just choose Capactiance as the Display A, and leave the four output terminals open then press the Self Test button. The Open self test will start and "OP" will be shown in the DIsplay A window, after 2 seconds, the open test will be finished. If something abnormal, the number of the abnormal step is displayed in Display A. Similar with the Short test.
    The problem I had was: before running the instrument driver, the self tests pass; but after running the instrument driver, the Open and Short test show abnormal, Open test is abnormal at step 17, and Short test is abnormal at step 24.
    And the instrument driver is only write commands into the instrument and then read back measuring values from it. Nothing else. So I am not sure if the problem is my instrument driver.
    The weird thing is the problems happened several times and then if I do the Open and Short self test again after running the instrument driver, both pass. I am not sure whether the problem will come back or not.
    Ia there any help??
    Big thanks

  • LabVIEW 6.1 If For Loop count terminal is zero then value going through the loop is not passed on to the output of the loop

    Hello, one of our customers just encountered an execution error in a vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or 6.01. I have a simple vi that has two encapsulated For Loops. Two string arrays go in, one goes out of the outer loop. Inside the outer loop the first array is indexed. The string which results from this indexing is compared with all other strings from the second string array in the inner loop. If it matches one of the strings of the second array, it is not outputted, otherwise this string goes through the inner For Loop to the output of the inner loop and from there to the output of the outer loop. The count
    terminal of the outer/inner loop is connected to the Array Size of the first/second string array. If the second array is empty, that means that the element in test from the first arry cannot match anything from the second array, so the element in test is send to the output of the inner loop and from there to the output of the outer loop. This works fine in LabVIEW 5.1 and 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never executed if the count value is zero (which is correct), but the data line running through the loop is not executed either, which is different to what LabVIEW 5.1 and 6.01 do. There, the input string is sent to the output of the inner loop correctly even if the loop counter is zero. The solution is easy - I just have to connect the output of the outer loop to the data line BEFORE it enters the inner loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is supposed to be a feature, but it brings some incompatibility in programming between the
    different LabVIEW versions.
    Best regards,
    Gabsi

    Hi,
    When a for-loop runs zero times, all outputs are 'undefined' (and should
    be).
    Besides, how would LV know what the output of a not executed routine should
    be?
    It might be handled differently in LV5 and LV6, which is unfortunate. In
    both cases, the result is undefined.
    It's not a bug. It's just something that should be avoided in any LV
    version.
    > The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    In some cases this does the trick. But if the data is changed in the inner
    loop, this will effect the results if the N is not zero.
    Technically, I think the output in this construction is also 'undefined'.
    But LV handles this as expected / desired.
    Another solution is to use a shift register. If N is zero, the input is
    directly passed through to the output.
    Regards,
    Wiebe.
    "Gabs" wrote in message
    news:[email protected]...
    > LabVIEW 6.1 If For Loop count terminal is zero then value going
    > through the loop is not passed on to the output of the loop
    >
    > Hello, one of our customers just encountered an execution error in a
    > vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or
    > 6.01. I have a simple vi that has two encapsulated For Loops. Two
    > string arrays go in, one goes out of the outer loop. Inside the outer
    > loop the first array is indexed. The string which results from this
    > indexing is compared with all other strings from the second string
    > array in the inner loop. If it matches one of the strings of the
    > second array, it is not outputted, otherwise this string goes through
    > the inner For Loop to the output of the inner loop and from there to
    > the output of the outer loop. The count terminal of the outer/inner
    > loop is connected to the Array Size of the first/second string array.
    > If the second array is empty, that means that the element in test from
    > the first arry cannot match anything from the second array, so the
    > element in test is send to the output of the inner loop and from there
    > to the output of the outer loop. This works fine in LabVIEW 5.1 and
    > 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never
    > executed if the count value is zero (which is correct), but the data
    > line running through the loop is not executed either, which is
    > different to what LabVIEW 5.1 and 6.01 do. There, the input string is
    > sent to the output of the inner loop correctly even if the loop
    > counter is zero. The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    > supposed to be a feature, but it brings some incompatibility in
    > programming between the different LabVIEW versions.
    > Best regards,
    > Gabsi

  • Not able to print the text symbol value

    Hi All,
    I am using BTE 1040 for email dunning. In this BTE, I have called my custom FM in which I have written a code such that an editor comes up with the predifined message which we can edit it after dispaying.
    For example, my text is as below.
    test1
    test2
    test3
    &gv_sender_name&
    test4.
    Now in the above predefined message I have a text symbol &gv_sender_name& which holds the value. I have filled the baove text symbol with value.
    But the when editor comes up with that above message, the same text is printed. The value in the text symbol is not printed. I have defined the variable gv_sender name in my custom fm and also in BTE. But still it didnot work.
    I should the get the text as test1
                                               test2
                                                test3
                                                xyz
                                               test4
    The above predefined text is created in Text module.
    Can anyone help me out how to print the value of text symbol.?
    Points rewarded for helpful answers...!!
    Thanks and Regards,
    Karthik Ganti.
    Moderator message: Offering points is against the Forum RoE.
    Message was edited by: Suhas Saha

    Hi Klaus,
    Please find my requirement.
    I have created a text module with some text.
    Let me say  test1
                       test2
                       test3
                       &lv_user_name&
                       test4.
    I am filling the above text symbol &lv_user_name& with some logic. Let me say that variable has value XYZ.
    Now when I use that text module in the form layout. I should get the output as below.
    Correct Output : test1
                              test2
                              test3
                              XYZ
                              test4.
    But instead of above output, I am getting the below output which is wrong, because the value which is there in that variable should appear in the output.
                             test1
                             test2
                             test3
                            &lv_user_name&
                              test4
    How to print that value in the output ?
    Please let me know if you need any info on the above.
    Thanks and Regards,
    Karthik Ganti.

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • I have been using Elements 12 without a problem for 9 months.  Now when I try to open the program, I get an error message  "Adobe Photoshop Elements 12 quit unexpectedly" and it will not open at all.  What can I do to open the program?

    I have been using Elements 12 without a problem for 9 months.  Now when I try to open the program, I get an error message  "Adobe Photoshop Elements 12 quit unexpectedly" and it will not open at all.  What can I do to open the program?

    Thank you for responding.  Nothing actually worked!  After reading the posts online, I called Apple.  They indicated they have seen problems with some software after their upgrades.  The technician was able to fix the problem on my computer remotely, but I have no clue what he did!  But, it was definitely related to their recent upgrade to my computer.

  • HT201413 I am receiving a message saying the iPod "TRACER's iPod" can not be synched. The required file can not be found. I ran the iTunes program repair and restarted both the computer and the iPod. Any suggestions on what else to try?

    I am receiving a message saying the iPod "TRACER's iPod" can not be synched. The required file can not be found. I ran the iTunes program repair and restarted both the computer and the iPod. but still receive the same message. Any suggestions on what else to try?

    That can sometimes be caused by a damaged ipod photo cache.
    If you remove the current ipod photo cache, does that get you past the error?
    For instructions on where to find it, see the following document:
    iTunes: Understanding the iPod Photo Cache folder

  • I need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    i need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    Do you see a lightning bolt near the battery , Battery is charging (supposedly(  IF  not return to where  you purchased it  (also make sure that the charger is on)  if still not charging with lighting bolt bring it back

Maybe you are looking for

  • Java Classes in JSP

    I'd like to use some of my java classes from my JSP pages, how do I do           this?           ie: I have a class           public class Test           public static void uselessFunx()           //do nothing           How would I get access to the

  • Mac - projector link up

    Hi, I have a projector connected to a mac book pro. When I open a PowerPoint slide show to full screen on the mac it doesn't do the same on the projector screen, the slide show on the projector is shown in an editing screen. I have mirroring turned o

  • Can't Create Statement Object - Help

    Hi: I'm using NetBeans 5.0 which is pointing at: Java\jdk1.5.0_07 The IDE can't see the Statement object: 'cannot find symbol Statement'. It won't compile. I've included: import java.* at the top of the file. It's not having a problem creating the co

  • [Solved]Weird bar in Gnome log in screen.

    I have been running the Arch with Gnome3 for a while and I'm loving Arch. However, recently I'm seeing this weird bar under my name in log in screen. Any solution to that? Last edited by akshay2000 (2012-03-31 09:49:26)

  • Error 1406. Setup cannot write the value mlcfg32.cpl

    Hi to all. I am attempting to upgrade Office 2007 Standard to Office 2013 Pro. I have used the OCT tool to create a custom MSP. On some machine the upgrade fails. It is always the same error (see below). [quote] Error 1406. Setup cannot write the val