Can we define a parameter within a subroutine?

Can we define a parameter within a subroutine?

Hi,
see first of all u cannt declare parameters in subroutine if u want u can declare variables locally that is by using the keyword DATA but u cant declare PARAMETERS locally ..
if it is helpfull plzz reward..
plzz dont forget to reward.....

Similar Messages

  • Can we define a constant within a subroutine

    Can we define a constant within a subroutine

    Hi,
    Yes, we can define a constant within a subroutine.
    perform f_check_company_code.
    form f_check_company_code.
    constant : lv_bukrs like bsis-bukrs value '1000'.
    loop at itab.
      if itab-bukrs = lv_bukrs.
        delete itab.
        clear itab.
      endif.
    endloop.
    Thanks,
    Sriram POnna.
    endform

  • What is use of defining SELECTION PARAMETER in MOVEMENT TYPE

    Hi All ,
    Can u pls tell me the reason of defining SELECTION PARATEMETER in MOVEMENT TYPE.
    REGARDS
    Sandeep

    May be I couldn't explain my question well , sorry for that.
    When I define a new Movement code using T code OMJJ ( in IMG) , there is a field for SELECTION PARAMETER.
    I wanted to know the impact of this field value.
    Pavan , you are right that value is like a searching criteria but I am just wondering how can I check whether system is working as per the SELECTION PARAMETER defined for a movement type.
    For example , in movement type 101 defined selection parameter is WE101 (Open Goods Receipts) , so where I should check (in which list ) whether system is taking it as default value or not.
    I know for you people might find it a stupid question but I have no other option than u people )
    Pls let me know if my question is still not clear
    REGARDS
    SANDEEP

  • How can I insert a parameter to the layout template?

    How can I insert a parameter defined in report to the layout template? just like insert a field. I wanna display the parameter in the output.

    If its Ebiz, concurrent program.
    Put this in your template in the starting,
    where the P_BUSINESS_GROUP_ID is one of the concurrent program parameters,
    <?param@begin:P_BUSINESS_GROUP_ID?>
    and then you can access the parameter in your rtf like <?$P_BUSINESS_GROUP_ID?>
    Upload the rtf template back into apps.
    and then rerun the conc pgm :)

  • Can you please tell me how can i change the parameter of Applet using Aspec

    Respect Members
    Can we apply Aspectwerkz on Applet? In our project we have to
    change the method parameters before its execution(Around Advice) , can we do this in applet using Aspectwerkz?
    Can you please tell me how can i change the parameter of Applet using Aspectwerkz or AspectJ ?
    I did it by for Java Application using the AspectJ And Aspectwerkz But not able to do for Applet.
    For Applet I Am setting the parameter in JAVA plug in for Aspectwerkz e.g. -Xdebug -Xrunaspectwerkz -Xbootclasspath & path for xml file in which pointcut is defined.
    If you any Friend working on it or any author who might be helpfull for me please Forward this mail to him/her
    THANKs in Advance
    [email protected]

    hello rodale, what you're seeing is probably a side effect of firefox not being able to save certain preferences into its profile folder.
    go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js'''.
    in case this didn't solve the issue yet please also refer to [[How to fix preferences that won't save]].

  • Report Builder: can i define a function in  the rdf file ?

    Hi All,
    About the report builder, can i define a function in the rdf file ? and then i want invoke it in the report SQL, just like :
    function Get_Ap_Prepay_Balance(p_Invoice_Id IN NUMBER, p_End_Date IN DATE) RETURN NUMBER IS
    l_Amount number;
    begin
    RETURN l_Amount;
    end;
    thanks.

    You can create functions in reports, but slightly different from doing it in PL/SQL
    function Get_Ap_Prepay_Balance return number is
    l_Amount number;
    begin
    assuming that you have invoice_id in your select statement and p_End_Date is a report parameter, you can refer to them in your function as :p_End_Date and :invoice_id
    for example select prepay_amount_remaining into l_Amount from ap_invoice_distributions where invoice_id = :invoice_id and accounting_date = :p_End_Date
    return(l_Amount);
    hope this helps

  • How to define a parameter in a method of type com.sap.tc.webdynpro.progmode

    Hi All,
    I want to define a parameter in a method, type of parameter is com.sap.tc.webdynpro.progmodel.api.IWDNode,
    But when I browse on type and tehn in local dictionary, I do not find this type of datatype, please suggest how to assign this data type to any method's parameter.
    Thanks in Advance.

    Hello Amit,
    Please include  webdynproprogmodel.jar to build path, which can be found at    /sap/eclipse/plugins/com.sap.tc.webdynpro.runtime/lib
    Then you could able to user datatype IWDNode in your code
    Let me know if you need the jar file 
    Regards,
    Madhu

  • Can we define alternate material in a BOM

    Dear All,
    Can we define alternate material in a BOM,If yes,How???
    pl. guide....
    Tushar Aute

    Hi,
    In BOM , alternative items are assigned to alternative item group on the general data tab page.
    In the production order in the general data tab page.
    We can define the alternative item based on priority , strategy and usage probability.
    Priority:
    This defines the priority of the item within the alternative item group.
    This determines the priority of planned withdrawls of items.
    EX Two items are assigned to alternative item group
    item A Priority 1
    item B Priority 2
    The system reads the item A first.
    Strategy:
    use the strategy to determine how the planned withdrawl is controlled
    within the alternative item group.
    The strategy should be same for all alternative items within a alternative
    item group.
    If the value 2( 100% check) is defined for the strategy the first material in
    the defined priority sequence for which sufficient quantities are available
    are reserved.
    Usage Probability:
    MRP Plans these alternative material components according to probability
    of use.Material requirements for BOM Components are planned according
    to usage probability.
    The planned withdrawls for the production order are based on the reservation lists.These lists are based on the priority and strategy.
    Regards,
    nandha
    Edited by: S.Nandakumar on Feb 21, 2008 7:21 AM

  • Can I define simple Developer 6i reports with XML?

    Hi,
    this may sound far fetched, but can I define report definitions
    in XML and convert it to RDF?
    My RDFs would have simple layout - one record of a table on of
    page, in form layout. It would be much easier - and this way I
    could redefine it any time - than to user the report wizard in
    Developer 6i.
    TIA,
    Tamas Szecsy

    Yes you can. You should look up the STYPE parameter of
    rwcon60.exe which one of its possible values is XML and as your
    DTYPE use the PDF. The report builders help has covered the
    details on this.
    Good luck,
    --PAYAM
    Hi,
    this may sound far fetched, but can I define report definitions
    in XML and convert it to RDF?
    My RDFs would have simple layout - one record of a table on of
    page, in form layout. It would be much easier - and this way I
    could redefine it any time - than to user the report wizard in
    Developer 6i.
    TIA,
    Tamas Szecsy

  • How to define IE-parameter EO_OUTBOUND_PARALLEL

    Hi,
    we are using PI 700, SP11.
    I have a file-receiver adapter in my scenario and I wanna define the IE-parameter
    EO_OUTBOUND_PARALLEL
    for this receiver with a value of "1".
    The reason is, that adapters of the j2ee-engine work serial and so a parallel outbound queue is not necessary.
    I read, that I have to define it in SXMB_ADM:
    Tuning / EO_OUTBOUND_PARALLEL
    with a subparameter = ???
    How can I define this subparameter?
    I tried to define it via sender/receiver-ID , but it doesn't work.
    Please help.
    Thanx
    Regards
    Wolfgang

    Hi Wolfgang,
    wollte nur Bescheid geben, dass ich das auch nicht weiss
    Gruss Mario

  • KM Search: How can I define a query for the user who currently logged on?

    Hello,
    I want to use the KM Search iView to display all documents from the currently logged on user in a certain sort order. The result should be some kind of report for the user...
    In the search option I can define a default sort order. And I can also define it for a special user with cm_modifiedby(value=username)
    But how can I define the predefined property value generically for the current user?
    I tried to insert following values in the parameter Predefined Properties of the search option:
    Predefined Properties (csv): cm_modifiedby(value=<user.id>)
    Predefined Properties (csv): cm_modifiedby(value=%user.id%) -> like in the predefined properties
    Predefined Properties (csv): cm_modifiedby(value=$sap_user) -> like in the xml forms builder
    But non of these 3 parameters worked. Has anybody an idea what the right variable is?
    Thanks a lot.
    Best regards
    Nicole

    Hi Nicole,
    1. First of all you need to use "<User.UserID>" to get the currently logged on user.
    2. You need to create an AppIntegrator iView (so based on com.sap.portal.appintegrator.sap.Generic) in order to be able to use this dynamical parameter. The parameter "URL template" should look like:
    <Request.Protocol>://<Request.Server>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch?layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=quick&rndLayoutSet=SearchResultLayoutSet&SearchCompsName=UISearchComponents&QueryString=*&SelectedCustomProps=cm_modifiedby(value=<User.UserID>)
    Best regards,
    Robert

  • Custome BAPI - declare ITAB and define the Function Module and Subroutine

    Hello Experts
    I want to create a Custom BAPI and it has the following scenario:
    1) a Function Module which collects some records into it internal table, say ITAB
    2) a Subroutine which moved the records from ITAB to BAPI table
    Now, I want to declare ITAB and define the Function Module and Subroutine.
    Where and How can I do this?
    Plz suggest.
    Regards
    BD

    Hi,
      1) Got to SE37 and create an RFC .
      2) Declare the ITAB directly in the TABLES tab of the FM.
      3) Inside the FM source Code tab, collect all the data using SELECT query and directly or by using logic, put the data into the
          ITAB.
      4) Since the data collected is directly put into the itab you dont need a subroutine to be written.
      5) If subroutine is a necessity, then just write PERFORM SUB ROUTINE NAME.
           AND DEFINE THE FORM ENDFORM OF THE SUBROUTINE AFTER THE ENDFUNCTION OF THE FM
       Let me know if any issues....
    Regards,
    Vimal.

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

  • Can viewObject get a parameter from sessionScope to binding variable?

    hello,
    using Jdev11g ADF Fusion application
    Can viewObject get a parameter from sessionScope and assign into binding variable ? without using executeWithParameter
    Thanks
    greenApple

    A. Safwat,
    As I said before, I was not trying to be offensive, but simply to explain some of the shortcomings of one solution over another. One of the reasons people give such short answers is that many questions (including this one) have been asked and answered many many many times before on the forum. As to my reasons:
    1). Overkill - overkill because you are writing code to do what the framework already provides for you.
    2). Not bind-variable friendly - you are gluing in literals into a SQL statement. That means that Oracle will have to hard parse the query for each new value of the filter clause, yielding to poor performance, particularly in a multiuser environment. It should ideally be done using bind variables.
    3). Insecure (think about what happens if you put "'xyz' or 1=1" into the filterValue there) - not using bind variables is a security hole. Think through what happens if a filter criteria comes through like the one I mentioned.
    4). Inflexible - because you are overriding executeQueryForCollection, this VO becomes inflexible and can only be used in this particular place. Using the declarative approach outlined by Timo is more flexible
    5). Bad (ok, that's my opinion there) - OK, perhaps this was a bit offensive ;)
    Please don't take a critique of a post as offensive, as I assure you it was not intended to be in that spirit. As I mentioned, I greatly appreciate when people point out issues/problems/etc with my ideas, as that is the best way for me to learn. I have in the past written applications that were not bind-variable friendly, and I learned the downsides the hard way (system was horribly non-performant) - I wish someone had reviewed my approach and told me "bad idea" before the application made it into production.
    Respectfully,
    John

  • How can I define Double Click Processing in SAP Query ?

    The first question is : How Can I define drill-down for SAP Query report ?
    The second one :  How can I program Double Click in SAP Query report for Different columns like ALV Grid processing ?

    you can attach a repot or at tcode etc in an SAP query using report assignment in SQ01 but as far as i remember you cannot attach multiple reports.
    regards,
    khusro habib

Maybe you are looking for

  • Microsoft Setup Bootstrapper Error during SharePoint 2013 install using Hyper-V on Windows 8.1

    Client Machine Windows Server 2008 R2 SP1 SQL Server 2012 (11.0.2100.60) Hosted on Windows 8.1 Hyper-V Doing a SharePoint Install and during the install (very near completion) I get: Error log shows the ugly: 2014/01/07   13:36:12:444::[3648] MSI(INF

  • Chnage Document

    Hi All, I'm using change pointer concept to generate IDOC for notification. I have problem in the case of Item level ( Such as Task info in notification). When User create new item there is no change document captured but when they modify or delete r

  • Is it possible to select a selection?

    I know the question sounds weird but I couldn't think of a better way of describing what I want. I'm setting up an Action in which I want to crop a series of images to a selection rectangle. I fool around with the position and size of the selection f

  • OS X Lion Video Encoder Not Working

    I don't know what the problem is. I was super excited for the video encoder that came standard with Lion because I have an Apple TV, and I figured it would make converting videos much less of a headache. I apparently thought wrong. I've been very fru

  • I can't install iCHAT

    I'm trying to set up ichat but the computer freezes in the final window. The curser converts to the color wheel and nothing happens. When I start over I get the same results.