About script

i am print the item details in main window. for this i can write the external subroutine using itcsy structure.
   but my problem is in which position i can call this subroutine in main window text editor.
(this script for rfq create , i was modify the Medruck layout set)

I am not sure about MEDRUCK ( I am a HR person).  But you can call this subroutine anywhere (any window) before you access the variable from the subroutine.
Please find the sample coding which I used in HR to get the benefit area passing Personnel number.
Calling the subroutine from the main window:
/: PERFORM GET_BENEFIT_AREA IN PROGRAM ZHBNF_BEN_ENROLL  
/: USING &P0001-PERNR&                                   
/: CHANGING &P_BAREA&&                                   
/: ENDPERFORM                                            
/: IF &P_BAREA& EQ 'H1'                                  
/: INCLUDE ZHEX-MACRO-H1LOGO OBJECT TEXT ID ST           
/: ELSEIF &P_BAREA& EQ 'H2'                              
/: INCLUDE ZHEX-MACRO-H2LOGO OBJECT TEXT ID ST           
/: ELSEIF &P_BAREA& EQ 'H3'                              
/: INCLUDE ZHEX-MACRO-H3LOGO OBJECT TEXT ID ST           
/: ELSEIF &P_BAREA& EQ 'U1'                              
/: INCLUDE ZHEX-MACRO-U1LOGO OBJECT TEXT ID ST           
/: ENDIF                                                 
Coding inthe external program:
*&      Form  get_benefit_area
      This subroutine is used to determine benefit area
FORM get_benefit_area TABLES intab STRUCTURE  itcsy
                             outtab STRUCTURE itcsy.
  DATA: l_pernr TYPE p0001-pernr,
        l_barea TYPE p0171-barea.
  READ TABLE intab WITH KEY 'P0001-PERNR'.
  CHECK sy-subrc = 0.
  l_pernr = intab-value.
  SELECT SINGLE barea INTO l_barea
                         FROM pa0171
                         WHERE pernr = l_pernr
                           AND begda <= sy-datum
                           AND endda >= sy-datum.
  READ TABLE outtab WITH KEY 'P_BAREA'.
  CHECK sy-subrc = 0.
  IF sy-subrc = 0.
    outtab-value+0(2) = l_barea.
    MODIFY outtab INDEX sy-tabix.
  ENDIF.
ENDFORM.                    "get_benefit_area

Similar Messages

  • I;m no longer able to use the Penn State ANGEL system (I teach on line) for my email and intead get messages about "script" problems.

    Question
    I'm no longer able to use the Penn State ANGEL system (I teach on line) for my email and instead get messages about "script" problems

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Need information about script libraries

    I need information about script libraries, any websites or documentation will be appreciated

    Can you clarify what you are asking for? What sort of scripts do you want? There are plenty of scripts posted in these forums. Tom Kyte generates numerous scripts a day (http://asktom.oracle.com).
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

  • I need some information about scripts

    hi,
    i need detailed information about scripts.tell me where it will available.
    bye
    sreenu.

    Hi,
    Posting in the ep forum,I believe you require Information on javascripts and client side eventing(EPCF).
    Here is the link that you need with regard to this:
    http://help.sap.com/saphelp_erp2005/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    (Or go to SAP NetWeaver Developer’s Guide->
    IT Scenario-Driven Enhancements to Applications->Running an Enterprise Portal->Core Development Tasks->Creating and Managing Content->Client-side Eventing)
    The below document can also be useful.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/enterprise portal client.pdf
    If you need an illustration of how epcf can be used , you can refer to this blog
    /people/arulraja.ma/blog/2004/12/18/how-to-include-loading-message-in-a-portal-iview-ep6-sp2
    Regards,
    Harish
    (Please award points for helpful answers)

  • Firefox stops responding when I try to play words with friends, eventually a box pops up about script

    First, let me say I have the latest version of Firefox and Adobe Flash Player and Java Script. When I click to play Words With Friends (on pc) my computer starts racing and sounds loud and every thing freezes. If I try to click on slider or anything else, it says Mozilla Firefox (not responding), then it takes several minutes and a box pops up that says something about a script, do I want to continue or ?(I can't remember), after I click continue, I can play the game, but, at any given time Firefox will stop responding again!! A box also pops up from AVG saying that Firefox is using too much memory. Just an aside, I can play Scrabble on Facebook without any problems whatsoever. Please help, it is driving me crazy. Thanks

    Sounds that you are missing the plugin that is used to play those videos embedded in Firefox.<br />
    Your system details list doesn't show any media player plugin, so you will either have to check if the plugin(s) are installed, but disabled or install missing plugins.
    *https://support.mozilla.org/kb/Popular+plugins
    You may need the new WMP plugin (np-mswmp.dll) because Flash always uses a dedicated player to play the videos and would never offer to save videos directly unless an extension is used.
    * https://support.mozilla.org/kb/Using+the+Windows+Media+Player+plugin+with+Firefox
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin

  • Question about scripts in repeatbel sub-form objects

    Hi,
      I am working on creating a form which has a sub-form that can be repeated as many times as the user wants to. There is an ‘Add’ button which creates an instance of the sub-form on the form, when clicked.
    On the sub-form I have 5 numeric fields say a1-a5 and 1 field say b1 which is the sum of all these 5 fields.
    On the Main form I have a 2 fields - say t1 and f1.
    The requirement is t1=f1+b1+(sub-form instance 2’s b1)+(sub-form instance 3’s b1)+ and so on …depending on as many sub-form instances there are that the user adds.
    I have created Actions using the Action Builder such that when any of a1 to a5 fields are exited, b1 will be updated with the sum of a1-a5. At the same time t1 will be updated with sum of f1 and b1.
    This works great for 1 instance of the sub-form. But when ‘Add’ is clicked and a second instance of the sub-form is added, then the script does not work as it did for the first instance of the sub-form. So for any instances of the sub-form added, when values are added to a1-a5 and the fields are existed, b1 does not get updated.
    How can I fix this?
    See attached form that I am creating for clarity.
    ‘Total Hours worked this week’ is the t1 I was talking about. See how it gets updated when values are entered in any of the hour fields. It works fine with the default instance of the T100/Strategic/Advantage Customer Information sub-form as well. But when I click on ‘Add Customer’ button to add another instance of the sub-form, it does not work as expected.
    Please let me know if it is still not clear and I can explain the issue.

    Vjay's solution works great! Essentially, take out all of your other programming on the individual fields, and hard script the field you want the sum to show on. By directly referencing the fields, Adobe is able to tell the difference between one instance and another and doesn't get them mixed up. (I have found for some of these dynamic functions, the Action Builder doesn't really work, so you need to code by hand)
    My only suggestion, would be to perhaps modify Vjay's code a little, and use Javascript instead of Formcalc. We have run into the problem where if a user is using the form from a webserver or something and hasn't actually been saved to the user PC, the Formcalc scripts won't run, only Javascript. But it all depends on how you are using your forms.
    Here is your line of code changed to Javascript, in case you want to make that change. (there's really not much difference at all)
    this.rawValue = sum(CustomerTimeBD.Row1.Cell1.rawValue + CustomerTimeBD.Row1.Cell2.rawValue + CustomerTimeBD.Row2.Cell1.rawValue + CustomerTimeBD.Row2.Cell2.rawValue + CustomerTimeBD.Row3.Cell1.rawValue + CustomerTimeBD.Row3.Cell2.rawValue + CustomerTimeBD.Row4.Cell1.rawValue + CustomerTimeBD.Row4.Cell2.rawValue + CustomerTimeBD.Row5.Cell1.rawValue);

  • Converting plug-in of CS2 into CS(About Scripting)

    Hi,all.
    About Converting pulg-in of CS2 into CS,
    I have a problem in scripting process.
    In CS2 pulg-in, I overrode
    RepresentScriptProvider::AppendNthObject() and
    RepresentScriptProvider::GetNumObjects().
    But in CS, the arguments of the method of above are different from CS2,
    and there is an error that says "cannot instantiate abstract class"
    due to AppendNthObject() and GetNumObjects() were not found
    when I compile the pug-in in CS.
    Can someone tell me how I should handle these two functions?
    BsetRegrade.
    Miya.

    Hi, Dirk.
    I checked my source, but I couldn't find where is wrong.
    My scripting process is very near to PersistentList sample in CS2.
    For converting to CS, I changed .fr file and MyScriptProvider.cpp file.
    In .fr file, I changed the following source.
    Class
    kMyListDataBoss,
    kInvalidClass,
    IID_IMYLISTDATA, kMyListDataPersistImpl,
    IID_ISUBJECT, kCSubjectImpl,
    IID_IPMPERSIST, kPMPersistImpl
    IID_ISCRIPT, kMyScriptImpl,
    IID_IAUTOMATIONREFCOUNT, kAutomationRefCountImpl,
    #if kMajorVersionNumber >= 4
    IID_IDOMELEMENT, kScriptDOMElementImpl,
    IID_IXMLFRAGMENT, kINXNoContentFragmentImpl,
    #else
    IID_IDOMELEMENT, kDOMElementImpl,
    IID_IXMLFRAGMENT, kXMLDocumentContentFragmentImpl,
    #endif
    #if kMajorVersionNumber >= 4
    resource VersionedScriptElementInfo(1)
    // Contexts
    kFiredrakeScriptVersion, kCoreScriptManagerBoss,
    kWildFS, k_Wild,
    #else
    resource ScriptElementInfo(1)
    kCoreScriptManagerBoss, kWildFS, k_Wild,
    #endif
    //Elements
    Suite
    Object
    kMyListDataObjectScriptElement,
    c_MyListDataItem,
    "My List data item",
    "My List data item",
    kMyListDataItem_CLSID,
    c_MyListDataItems,
    "My List data items",
    "My List data items",
    kMyListDataItems_CLSID,
    kUniqueIDBasedObjectScriptElement,
    kMySuiteScriptElement,
    #if kMajorVersionNumber == 3
    NoSampleScripts,
    #endif
    In MyScriptProvider.cpp, I changed the following methods declaration.
    #if kMajorVersionNumber >= 4
    int32 MyScriptProvider::GetNumObjects(IScriptEventData* data,
    IScript* parent)
    ErrorCode MyScriptProvider::AppendNthObject
    IScriptEventData* data,
    IScript* parent, int32 n,
    ScriptList& objectList
    #else
    int32 MyScriptProvider::GetNumObjects(IScript* parent,
    ScriptID objectType)
    ErrorCode MyScriptProvider::AppendNthObject
    IScript* parent,
    ScriptID objectType, int32 n,
    ScriptList& objectList
    #endif
    Are there any wrong with these codes?
    Or Should I have to add another method?
    BestRegard.
    Miya.

  • About script performance

    Is there any way of disabling the screen updating while a script is running? It slows the whole thing down tremendously when every single update to a document is shown on the screen.
    Other suggestions to improve performance are welcome (I know about the DoScript method to minimize the undo-history).

    Hey!
    Try this to disable redraw:
    app.scriptPreferences.enableRedraw = false;
    and at the end of script just don't forget to enable it again.
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/

  • Learning about scripting, XHMTL, etc.

    Hi. I've used bother GoLive and Dreamweaver to produce a
    couple of websites, but I'd like to understand more about the
    foundations of how a website works. Specifically, I'd like to know
    more about XHTML, PHP, ASP, scripting etc. I'd like to know
    specifically what all of these are, and when I might need to use
    what to create different functions.
    I'm not looking to become a full-blown web developer. My
    interest in this is primarily in being able to identify when I need
    what outside help, and in being able to communicate with 'real' web
    developers. I'd also be interested to know a bit of HTML, so I can
    go in the back end of Dreamweaver and GoLive to identify what the
    issue is, when problems arise. And hopefully to be able to fix them
    myself.
    My question is really in two parts - What do I need to know?
    And where is the best place to find user friendly,
    step-by-step guidance on whatever it is I need to know?
    Perhaps someone could recommend a good book on the subject?
    Possibly one that has supplementary publication, should I decide
    that I DO want to go into this further ...
    Thanks in advance
    Mira

    Hi Mira,
    I realize you've already gotten an excellent answer, but I'd
    like to mention one other book that I think may be of great help to
    you:
    Webmaster in a Nutshell by O'Reilly Media (ISBN:
    0596003579). I understand that you have no desire to become a web
    developer, but don't let the title discourage you—what it is
    is an overview of various technologies, with each one presented as
    a brief guided tour.
    It will help you understand the purpose of each technology,
    and give you the ability to identify them when you encounter them.
    I cut my teeth on O'Reilly books, and they have plenty of other
    in-depth books should you find yourself need of more than a bird's
    eye view.
    Other publishers that offer a good selection of accurate,
    useful books are: friends of ED, Peachpit Press (Visual Quickstart
    Guides), and PoguePress/O'Reilly (Missing Manual series).
    Regards,
    Bev

  • Beginner's question about scripting and deployment automation

    I am new to the SAP and BusinessObjects world.  I do production support for BusinessObjects XI R3.1.  One of my functions is to deploy Universe.unv and WEBI Report files from development into QA and production.  This is currently a manual process involving downloading files and lots of key strokes and mouse clicks using the BusinessObjects Client Tools.  My question ->:  is there a way to automate this process?  Can I do this with the SAP scripting wizard?  I am familiar with many different scripting and programming languages, I just need to be pointed in the right direction.
    Thanks for your help!

    I would take a step back and learn more about the fundamentals of Flash before going farther. In the Welcome Screen of Flash Profressional there is a "Learn" section. Here are some links from it:
    Introducing Flash: http://www.adobe.com/go/fl_learn1
    Symbols: http://www.adobe.com/go/fl_learn2
    Timelines and Animation: http://www.adobe.com/go/fl_learn3
    Instance Names: http://www.adobe.com/go/fl_learn4
    Simple Interactivity: http://www.adobe.com/go/fl_learn5
    ActionScript: http://www.adobe.com/go/fl_learn6

  • About script on form

    Hi  guru,
    I am building a interactive form, i got a problem about the script.
    I want to use javascript to control the visibility of a field.
    when I preview the form and set the form default preview property to dynamic form, I can see the right result.
    but when I deploy my application and run in server, I didn't get the expected result. anyway  the filed is visible. So is there any setting I have to make in the form?
    Best regards,

    I understood your problem.
    Yeah, you have to set the form as dynamic form.
    If you are using WebDynpro Java.. you have to write
    the following code in the WDDOModify function of the view.. then your java script will work fine
    public static void wdDoModifyView(IPrivateBP_CreationFormView wdThis, IPrivateBP_CreationFormView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
    *     if(firstTime){*
    *          IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("InteractiveForm");*
    *          iForm.setDynamicPDF(true);*
        //@@end
    Please contact me if you are facing any problem.
    Cheers
    Satya

  • I upgraded to version 5 and now cant open firefox due to error message about script

    When I try and open version 5 I get this message " A script on this page may be busy or may have stopped responding, you can stop the script now or you can continue to see if the script will complete"
    Error message
    Script: chrome://tavgp/content/libs/include.js:595. If I click the stop script button in the error message box firefox eventually opens, if I click the continue box it wont open. I have a fast computer with heaps of Ram and hard drive space running windows xp pro. I have uninstalled and reinstalled firefox, then rebooted even gone back to an earlier restore point but it still wont work. please please can someone help me as version 4 was perfect. really frustrating as I love firefox:-(

    If you use ZoneAlarm Extreme Security then try to disable Virtualization.
    *http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
    See also:
    *[[/questions/880050]]

  • When I first load Firefox, it comes up with an error message about "script". Can you help me?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/846741]]</blockquote>
    I just double click on the Icon, and it seems it takes forever to load.
    After this action, an error message comes up with a statement that it is trying to read some sort of script. Next it tells me to press continue to go ahead. At this time, it loads up normally. Can you help?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • About about scripting language

    I'm looking to getting some training on scripting language to use on SCCM.  Any advise which I should focus on?  VBscript or Powershell.  I need to create Configuration Baselines and most of the examples I've seen uses scripting.  
    Also can anyone suggest a good resource for training on Report Builder.  Thanks.

    would recommended to go with Powershell as it automates lot of things using builtin configmgr commands
    here you go with built-in Powershell commands in configmgr http://technet.microsoft.com/en-us/library/jj850100(v=sc.20).aspx
    Eswar Koneti | Configmgr blog:
    www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: Eskonr

Maybe you are looking for

  • How to make a JPanel containing buttons  take up the width of the window?

    I'm creating a GUI and I have a button group that I want to be the width of the window. I have another JPanel on the same window that doesn't have a button group in it and it takes up the width of the window. I don't think I'm doing anything differen

  • Navigating between applications on portal

    Hello Experts, My scenario consists of one portal page with a wide narrow layout.Each of the columns contains a webdynpro application.On click of a link in the narrow column, i want to call an application in the wide column. I have already tried usin

  • Stop Captivate from Resaving mp3 to wav

    How do I stop this? This is a huge flaw on the part of captivate. When I import an audio mp3 clip on a feedback caption it 90% of the time saves as a wav file and quadruples the size! Wav Audio is very large and makes my projects much larger than the

  • TS2446 still not able to fix my problem

    my iphone shows that my apple ID is disable, I did follow all steps tp fix it and still not working

  • I want to purchase Flash Builder 4.0.

        Hello, I want to purchase Flash Builder 4.0. But I find link only for 4.5. For the moment I want to purchase 4.0, pls provide me with a link for this? thanks Flexer