It is possible to get giving parameter field name in function module

i have one question like below .
at main report .
call funciton Fm1
  exporting
     var1 = W_A
     var2 = W_B
at function module i want to get  giving  parameter field name, in here  value was  "W_A" and "W_B"  .
plz give me some hints or any advise .

Only a hint:
If you have a fm with an unspecified parameter like
FUNCTION ZTESTBABLFM.
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(INPUT)
type-pools: sydes.
data: fieldinfo type SYDES_DESC.
  describe field input into fieldinfo.
ENDFUNCTION.
you can get some information from DESCRIBE FIELD  either using INTO as above or with other options as LENGTH, TYPE ...

Similar Messages

  • How to get a parameter without name in JSP?

    hi everyone, My question is how to get a parameter without name in JSP? I have two pages, 1.html and 2.jsp.
    in 1.html, I embeds some Javascript codes in HTML contents like below ( changed < to ( , > to )):
    function toSubWin( obj )
    window.open('test.jsp?'+obj.firstChild.toString(),'sw');
    (a onClick='toSubWin(this)'style="background:green")focus(/a)
    How can I get the parameter in 2.jsp?
    THANK YOU IN ADVANCE!!

    Does obj.firstChild.toString() evaluate to a "name=value" type of String ?
    Or better what does obj.firstChild.toString(),'sw' evaluate to ? It has to end up in a name=value format, else its just gibberish appended to the url.
    In the jsp, you have to obviously know the name to get the parameter. There's a getParameterNames() method which returns you a Collection of parameter names as Strings, you could probably use that to retrieve the param values.
    Then there's a getParameterMap() method which returns an immutable Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
    However to what ends you employ them in a program which doesnt know its inputs is a different story.
    cheers,
    ram.

  • Field Seperator in Function module TEXT_CONVERT_XLS_TO_SAP

    Hi All,
    Can anyone tell me the use of field seperator in
    Function module 
    TEXT_CONVERT_XLS_TO_SAP

    Hi
    i_field_seperator parameter ........which explains the separator in the uploading data ....
    if yes then place 'X'
    else leave it as space..
    Regards,
    vamsi.

  • How to add "CC" field in this function module SO_NEW_DOCUMENT_SEND_API1

    Hi,
    I have  a receiver field in this function module SO_NEW_DOCUMENT_SEND_API1.
    But i wanted to add a CC field also to this.. How do i do it???
    Thanks & regards,
    Aswin

    when you add the receiver entry in the receivers table, just make the parameter copy as 'X'. This will put the receiver in CC.
    And if you want to put it in BCC use the parameter Blind copy.
    Regards,
    Lalit Mohan Gupta

  • EMMA Log Error:  Incorrect parameter X_VSTELLE (X_EVBS) in function module

    Hi Experts,
    We have errors on our EMMA log for invoicing (EA29) of Incorrect parameter X_VSTELLE (X_EVBS) in function module ISU_ADDRESS_PROVIDE.  These errors are occuring on final invoices for customers that have been moved out of installations that are typically billed for the month ahead.  Since the periodic bills are for the month ahead, there are no dollars billed on the final.  It produces a Print Doc. number but says that Print Doc. does not contain any printed lines and will then display just the header.
    We need to get these off of our EMMA log as they just continue to build up.  Can we somehow do one of the following?
    Delete the entries off the Emma log?
    Print these "zero" bills?
    Suppress the Print Docs from being created?
    Thank you for any consideration you can give to this issue.
    Linda

    Linda:
    Generally speaking, the error message and process indicate that this is within your billprint custom logic, and maybe it is not anticipating the situation correctly.  First recommendation would be to debug one of them to find the problem and address it in the print logic.  If not then i am not sure what you want - billprint will still create these 'error' messages.  You can change your EMMA settings such that there is no case generated for them.  The messages would still be issued, but no cases would be created.  I would hesitate to implement that solution, since it would prevent legitimate errors from being captured and processed.  If you want to print them, then the underlying error needs to be resolved.  You could also suppress the printing of these bills using event R412 also - but you would need to know the situation up front.
    regards,
    bill.

  • Accessing all the fields of a function module in EWM

    Hi All,
    I have a requirement to prepare a report that pulls some fields of the Function module /SCWM/STOCK_INC_OUT_MON.
    This Fuction module is in EWM.
    I need result rows for multiple values(user inputs) of warehouse.
    Cant we access individual fields from this FM without using the structure?
    i need to pull the fields MATNR, NLPA PROC and GRDATE
    for all the user entries in Wahrehouse code
    Thanks, Arka

    Hi,
    You can use the work area to capture the output of the function module and then use the data (fields) which ever you require.
    The structure of the Work area (Data Types of the field) should be same as data types of output parameters of that Function Module.
    Hope this helps.
    Regards,
    Shweta Soragavi

  • Fields inclusion for Function Module Extractor

    Hi Gurus,
    I am planning to design a Function Module based extractor. This Function modules is supposed to extract data from approx 10 different tables. Most of the tables have 5 or more fields of it to be pulled in.
    However, there are also few tables, which have got just a single field or just 2 fields.
    As a design, is it a good idea to include the logic of extracting these fields in the Function module? or
    Is it recommended to have these fields included via a user exit, once the datasource is developed?
    I appreciate all the help

    Thanks Dash I have assigned the points.
    I guess you are recommending the User Exit approach as mentioned in my original post where few of my tables have got just a single field or just 2 fields.
    Let me know please.
    Other SDNers,
    Let me have your thoughts too

  • Possible to get application parameter in value help

    Hello colleagues,
    we developed a value help for business partner to use it in an wda-component . in this value help only those business partner should get supplied where the user has a relationship to . to make it really difficult we can not use the backend user (crm) but the portal user . in the component which uses the value help we achieve to get the user via application parameter from the containing iview but as soon as the user calls the value help this context is lost and we can no longer use the application parameter (which is in fact "out" of the iview) to retrieve the user of the application and therefore get a dump.
    Is there a possibility who to get application parameter of a component in a value help called by this component ?
    Thanks in advance
    Michael

    Hi,
    PLease refer to this link
    http://help.sap.com/saphelp_nw70/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm
    You can enter parameter values for certain screen fields for displaying a SAP transaction here.
    This field is optional.
    The parameter values are specified with the following syntax:
    <Screen_field1>=<Parameter1>
    &<Screen_field2>=<Parameter2>
    Thanks
    Pankaj

  • Get the parameter fields defined in crystal report

    I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
    Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
    I have a set of already created .rpt files.
    I have written a function in .net to export the crystal report.
    Its a generic function and will be called for multiple crystal reports.
    I am passing the parameter values to the report by making use of the following function :
         ReportDocument repDoc;
         repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
         repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
    Similarly I are setting other parameter values.
    The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
    They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
    field, then it gives error on setting parameters and subsequently fails.
    Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
    parameter fields?
    Please guide how can this be done.
    Thanks
    Sonam

    Not as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report.  I get a headache just thinking about this...
    Dim crSections As Sections
    Dim crSection As Section
    Dim crSubreportObject As SubreportObject
    'set the crSections object to the current report's sections
    crSections = crReportDocument.ReportDefinition.Sections
    'loop through all the sections to find all the report objects
    For Each crSection In crSections
    crReportObjects = crSection.ReportObjects
    'loop through all the report objects to find all the subreports
    For Each crReportObject In crReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    'you will need to typecast the reportobject to a subreport
    'object once you find it (***you'd go to setting the parameter here - or not...)
    crSubreportObject = CType(crReportObject, SubreportObject)
    'open the subreport object
    crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    'set the database and tables objects to work with the subreport
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Passing field name in function as parameter

    Hi
    I want to pass the fields name as in parameter in function and then return the value of that field.
    thanks
    pramod patel

    CREATE OR REPLACE FUNCTION demo
    (i_in IN number)
    RETURN NUMBER
    IS
    BEGIN
    RETURN i_in*2;
    END demo;
    Hope that helps ... also, remember you can't use precision and scale (in the case of NUMBER), or length (in the case of VARCHAR2) for the parameters but you can ANCHOR (%TYPE or %ROWTYPE)
    Good luck!

  • Is it possible to use internal table field name as variable?

    data : temp_string(10) type c.
    data : result type string.
    temp_string = 'field1'.
    loop at itab1 into str1.
      result =  str1-temp_string. "error here"
    endloop.
    HI.
    think this code not executable and actually fail to compile.
    is it possible to put structure field name with variable?
    anyone can help me ? please
    thank you.
    Regards
    Bae

    You may use of COMPONENT of your structure.
    FIELD-SYMBOLS: <F>.
    ASSIGN COMPONENT I OF STRUCTURE F TO <F>.
    To find index of component you may use
    DESCRIBE FIELD f INTO td.
    (But SAP beware us)
    Regards

  • How to get error's field name when execute sql error

    I want to get the error's field name when execute sql error,but SQLException is not provide corresponding function to get it.
    How can I do for it?

    user523110,
    I believe the "unique constraint" error message displays the name of the constraint, not the column name, as you have posted.
    As far as I know, the only way to extract the column(s) would be to query the data dictionary using the constraint name provided in the error message.
    Also, as far as I know, there is nothing in the JDBC API that can return the names of the columns associated with a given unique constraint.
    Good Luck,
    Avi.

  • Is it possible to get the caller object in a function call hierarchy ?

    Hi,
    I have a problem in hand for adding a new functionality to an existing code with MINIMAL code change. For this I need to get some extra information in a function call from its caller. And for this I do not want to change the signature of the method, as it requires a lot of code change. So I need to have a programming facility by which I can get the object from which the function was invoked. Some thing like "{code}this.CALLEROBJECT{code}".
    Please let me know whether we can achieve this in JAVA. I wonder if such a facility exists in any programming language...
    Thanks in advance.
    Regards
    Joby

    No.
    Youd have to buy it Germany or see if an Apple Authrorized reseller in Singapore could order you the keyboard.

  • Is it possible to get the main class name in a Thread context ?

    for example, i want to get the main class name (the first entry of the program).
    public class Test implements Runnable {
         public Test() {}
         public static void main(String[] args) {
              new Thread(new Test()).start();
         public void run() {
              try {
                   //Want to get the main class name (not the current class name)
                   throw new Throwable();
              } catch (Throwable e) {
                   e.printStackTrace();
    }

    Acutally, i wanna make clear about the concept of a "Thread"
    Is it true that ..
    the main() method is a thread , once I create another thread in the program , both of (or all of them) will contains it owns stack exception information ?
    My english is poor, please try to understand it. Thx

  • Get current attribute field name

    Hello,
    how can i read the attribut field name of the current attribute - like the F2 help.
    I need the attribute name within a event handler method.
    Thanks,
    TomSd
    Edited by: Thomas Strehle on Dec 7, 2009 7:26 PM
    Edited by: Thomas Strehle on Dec 7, 2009 7:27 PM
    Edited by: Thomas Strehle on Dec 7, 2009 7:27 PM

    Hi Prasenjit,
    i've the issue to read the attribute name to use a on_sell event methode dynamic for more than one field.
    Within that method i need the attribute name, to consider what to do.
    Regards,
    TomSd

Maybe you are looking for