Problem in passing import parameter to SAP Widget

Dear experts,
I have a widget which shows me important information by passing date as a parameter
on eclipse plugin.
I am able to see data only if i give date as YYYYMMDD as standard SAP format.
I want to pass sysdate in this way ,what should i write.
Controller.showMain_View({"INPUT_DATE":               });
If input_Date is import parameter then how should i pass the value. ?
Thanx in advance.

hi,
First check whether you have any predefined functions in the widget library..else create a java script and call it in your widget...
you can use this  Java script code and modify the output according to your usage using string functions:
use date function to get the system date...
also include the js file in your .kon file...
thanks
jaideep srinivasan

Similar Messages

  • How to pass import parameter it_header_guid to FM CRM_ORDER_READ

    Hi,
    I have an internal table with only one field GUID of type CRMT_OBJECT_GUID.
    Now I need to pass this into the import parameter of the FM CRM_ORDER_READ.
    I tried in many ways but getting a type conflict error.
    <removed_by_moderator>
    Thanks,
    Madhurima
    Edited by: Julius Bussche on Sep 15, 2008 12:49 PM

    Hi Madhurima,
    Post CRM Technical or Functional related queries in "Customer Relationship Management (CRM) - General & Framework" available under SAP Solutions in Expert Forums.
    And regarding your question,
    Your guid should be of  "CRMT_OBJECT_GUID_TAB" type and not CRMT_OBJECT_GUID.
    Eg,
    DATA : IT_GUID TYPE CRMT_OBJECT_GUID_TAB.
    APPEND '488628CFB8C600B0E1008000C0090137' TO IT_GUID.
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          IT_HEADER_GUID       = IT_GUID
    Hope this helps.
    Thanks.
    Best Regards,
    Arun Sankar.

  • Passing importing parameter in  ABAP to  java script variable

    Hi Experts,
    I am calling a ABAP function module in javascript.Now how can I take importing parameter in  ABAP to java script variable. Because I need to give alert using the improting Paramter value...
    Thanks in advance..
    RR

    to pass ABAP variable value to javascript variable the syntax is
    var myjsvariable = "<%=abapvariable%>";
    Edited by: Durairaj Athavan Raja on Jul 29, 2009 2:39 PM

  • How to pass importing parameter of super class method to subclass method?

    hi all,
    i have defined  a class
    CLASS CUST_REPORT DEFINITION.
      PUBLIC SECTION.
        METHODS:DATA_RETRIVE IMPORTING  CUSTID_LOW  TYPE ZCUSTOMER-ZCUSTID
                                       CUSTID_HIGH TYPE ZCUSTOMER-ZCUSTID.
        DATA:IT_CUST TYPE TABLE OF ZCUSTOMER,
             WA_CUST TYPE ZCUSTOMER.
    ENDCLASS.                    "cust_report DEFINITION
    The method DATA_RETRIVE   in this class  has two importing parameters named CUSTID_LOW   and CUSTID_HIGH.
    then i have defined subclas of this clas.
    LASS CUST_ORD DEFINITION INHERITING FROM CUST_REPORT.
      PUBLIC SECTION.
        DATA:IT_ORD TYPE TABLE OF ZORDER.
        METHODS:DATA_RETRIVE  REDEFINITION,
               DISPLAY.
    ENDCLASS.                    "cust_ord DEFINITION
    Method DATA_RETRIVE   is redefined.
    So how to pass importing parameteres of super class method to sub class method with the same name.
    Thanks and Regards,
    Arpita

    Hi,
    I tried like this.
    METHOD DATA_RETRIVE.
    CALL METHOD SUPER->DATA_RETRIVE
          EXPORTING
            CUSTID_LOW  = I_CUSTLOW
            CUSTID_HIGH = I_CUSTHIGH.
    ENDMETHOD.
    But  parameters I_CUSTLOW and I_CUSTHIGH are not getting values after call to method.
    Thanks and Regards,
    Arpita

  • Problem in passing varchar2 parameter to Evaluate function in OBIEE

    Hi there,
    This is regarding an issue while passing parameter in EVALUATE function.
    I have to call a function with varchar parameters. parameter are nothing but my table column values.
    I've created session variables which holds value from my table column values.
    for eg:
    EVALUATE('REP1_FIRSTMONTH_F(%1)' AS  CHARACTER ( 30 ),  VALUEOF  (NQ_SESSION."month"))
    so whenever i call function using EVALUATE in OBIEE. i hve to pass ' ' (single quotes) for my varchar values. without this , i'm facing error stating :
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59015] The requested column PERIOD0 does not exist in this table. (HY000)*
    If i'll give parameter within single quotes in my dashboard prompt. it is working fine, but fails without the quotes.
    kindly help me in solving this issue.
    Thanks - Vijay
    NOTE: parameter are from column values.

    Hi
    Anyone has any input for the above issue??. Please share.
    Regards - Vijay

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • Smartform import parameter

    Hello all, I've created a new smartform with a new import parameter called TOTAL_DATA, which contains several fields. TOTAL_DATA is defined in the smartform global settings>form interface tab as an import parameter. I thought this would make this parameter data available within all smartform nodes. TOTAL_DATA is not a table but a structure.
    I've inserted some TOTAL_DATA field references, e.g. &TOTAL_DATA-1_6&, into text nodes within a template node. The smartform compiles correctly but when I test the smartform I get error 'Reference field TOTAL_DATA-1_1 unknown in form'. I inserted the field using the smartform field list window click and drag.
    Is there something I need to do to make the import paramter data available in the text node.
    Any help much appreciated.
    Thanks, Inde

    Thanks Subramanian, that's solved my problem. My import parameter was referencing a DD structure with currency fields. The DD reference currency field was not passed to the smartform...hence the error.
    I've defined the DD reference currency field as a global parameter for the smartform which fixed my problem. I could pass this in as another import parameter which would also fix my problem.
    Many thanks for your help, Inde

  • How to pass multi value selection parameter to SAP Function Module?

    Hi ,
    Anyone know how to pass CR multi value parameter - array to SAP Function module ?
    eg  multi selection of customer in CR
    and then pass to Function module
    in SAP FM,  the SQL select these customer only
    How should the import parameter / table of SAP Function module designed?
    and how should CR pass the data to SAP FM
    thx
    John

    Moved to Integration Kit forum

  • HOW TO PASS SELECT-OPTIONS AS IMPORT PARAMETER TO A CLASS

    Hi experts,how to pass select options value as a export parameters to a zclass.
    can  give me some idea.
    Thanks
    sai

    As Sachin already said, selection options are stored in an internal table. You can reconstruct the table type without the corresponding input fields using the type addition RANGE OF.
    So - assuming you have the following in your program:
    DATA: wa TYPE sflight.
            SELECT-OPTIONS so_car FOR sflight-carrid.
    you can create a publically-visible type in your class using direct type entry and the code
    TYPES: my_selectoption TYPE RANGE OF sflight-carrid.
    and use this to define the importing parameter of the method.
    The only other thing you have to remember is that select-options generates an internal table with header line. Thereore, to pass the table to the method, you would use (in the above example) so_car[], and not just the name of the select-option.
    Hope this helps.
    Regards
    Jon.

  • Passing an import parameter to a F.M

    Hi Experts,
    Could anyone resolve the issue below listed .
    I was passing a string consisting of both upper case and lower case letters as an input parameter to a function module, but the FM is taking the import value in upper case letter rather than mixed.
    Eg : I was passing a string consisting of 'DEmo' and it is taking it as 'DEMO'.
    In order to make the F.M take what i give to it as input what should i do.

    Hi,
    What is the import parameter type ?
    Regards,
    Madhukar Shetty

  • Problem with retrieving a value from the import parameter of a method

    Hi Friends,
    I have a problem accessing the field.
    I have a import paramter in the method of my Z class. The import paramter is of type ANY.
    In my method I get the value of this import paramter as
    . In this I have a field Catalog Id which is a z field.
    How should I retrieve the value of this catalog Id from this importing parameter?
    Regards,
    Raju

    Hi Friends
    Can anyone tell me whether this is a structure or a Class refernce, so that I can access the field in that.
    Regards,
    Raju

  • Create SAP RFC iView with a structure as import parameter

    Hello All,
    I'm creating a SAP RFC iView from Portal SAP 7.4.
    I try call a RFC that have as import parameter a structure with various fields, but the portal recognizes the structure as string field, then I cannot fill the fields values, and when  I do a preview the iview, the following error occurs:
    Function execution failed. Exception message: class java.lang.String:null incompatible with class com.sapportals.connectors.SAPCFConnector.execution.structures.RecordWrapper:sap.com/[email protected]MultiParentClassLoader@80d4ed6@alive
    And only is possible select a output object.
    Exists any way of receive a structure or a table as import parameter?, and as output parameters more of a element?
    Thanks for your collaboration.

    Hello All,
    I'm creating a SAP RFC iView from Portal SAP 7.4.
    I try call a RFC that have as import parameter a structure with various fields, but the portal recognizes the structure as string field, then I cannot fill the fields values, and when  I do a preview the iview, the following error occurs:
    Function execution failed. Exception message: class java.lang.String:null incompatible with class com.sapportals.connectors.SAPCFConnector.execution.structures.RecordWrapper:sap.com/[email protected]MultiParentClassLoader@80d4ed6@alive
    And only is possible select a output object.
    Exists any way of receive a structure or a table as import parameter?, and as output parameters more of a element?
    Thanks for your collaboration.

  • BAPI BAPI_GOODSMVT_CREATE import parameter problem

    Hi All,
    I am using BAPI BAPI_GOODSMVT_CREATE in function module ZQM06_FM_TASK_GOODS_MOVEMENT which is z copy of FM QM06_FM_TASK_GOODS_MOVEMENT. The FM get used in transaction IW52 i.e. Change Notification
    Now my query is the BAPI contain import parameter as GOODSMVT_CODE (Assign Code to Transaction for Goods Movement) and i don't know which value to pass to it.
    Could you please help me out?
    Thanks & Regards,
    Parag

    Hi,
    check the data element GM_CODE documentation for your requirement.
    Regards,
    Boobalan S

  • Problem with Plugin Installation of SAP widget Developement tool in Eclipse

    Dear All
    I am faceing problem while installation of SAP widget Developement tools in Eclipse. Please help me Out.
    I have Downloaded Eclipse and also SAP Widget Developement tools.zip
    When I try to Install the Plugin for SAP Widget developement I get an error saying "Install has encountered a problem.Cannot Complete the install because one or more required items could not be found". When I  click on Detail to see teh details following error log is displayed :
    +Cannot complete the install because one or more required items could not be found.
      Software currently installed: SAP Widget Development Tools 0.13.0.1376 (corp.sap.pal.gadgets.tools.widgetTools.feature.group 0.13.0.1376)
      Missing requirement: Structured Source JavaScript Model 1.0.101.v200706071955 (org.eclipse.wst.javascript.core 1.0.101.v200706071955) requires 'bundle com.ibm.icu [3.4.4,4.0.0)' but it could not be found
      Cannot satisfy dependency:
        From: SAP Widget UI Designer 0.13.0.1376 (corp.sap.pal.gadgets.tools.uidesigner 0.13.0.1376)
        To: bundle org.eclipse.wst.javascript.core 0.0.0
      Cannot satisfy dependency:
        From: SAP Widget UI Designer 0.13.0.1376 (corp.sap.pal.gadgets.tools.uidesigner.feature.group 0.13.0.1376)
        To: corp.sap.pal.gadgets.tools.uidesigner [0.13.0.1376]
      Cannot satisfy dependency:
        From: SAP Widget Development Tools 0.13.0.1376 (corp.sap.pal.gadgets.tools.widgetTools.feature.group 0.13.0.1376)
        To: corp.sap.pal.gadgets.tools.uidesigner.feature.group [0.13.0.1376]+
    I require your help in this .
    Regards,
    Nikhil

    Hi Nikhil,
    Looks like some problem in the eclipse version.
    Refer to the last point in this link - [Error while installing SAP Widget Developer tool.zip on Eclipse Java EE IDE; which says -
    "The newest and default version of Eclipse is Galileo which is version 3.5.x
    According to the Widget development guide, widget developer tool covers Eclipse 3.3.x (Europa) and 3.4.x (Galileo).
    The problem is solved by downloading one of those versions from http://wiki.eclipse.org/Older_Versions_Of_Eclipse and installing widget development tools."
    Hope this helps.
    Regards,
    Shilpa B.V

  • Problem with import parameter

    Our GetDetail function has an import parameter that we need to use to filter the returned dataset.  The parameter, MTRANTY, shows up correctly in the "Import" section of our GetDetail in the Mapping Screen of merep_sbuilder.  What I am not seeing is any reference to MTRANTY in the generated meRepMeta.xml file.  In the "Import" section of the mapping screen is does show "Link to Key Field of TOP: MTRANTY" in the Mapping Description.
    When I bring up the filtering criteria of our syncbo it shows another field, CUSTOMER, as "Filter Field 1", but I can't seem to be able to change it to MTRANTY as I think it should be.
    So, my question is, do the filter field and the import parameter have any connection?  Is there something else I need to do to make MTRANTY available in the meRepMeta.xml definition?  Or do I just set the key field of TOP (SYNC_KEY from the xml file) to my desired value and perform the synchronization?
    On a related note, in the xml file on the "SyncBO id" line, the parameter "reqDirectSync" is set to false.  Will this prevent me from initiating a synchronization using SyncManager.synchronizeWithBackend()?
    Thanks,
    Adam

    Hi Adam,
    The main thing here are ,
    <u>1)Metadata definition (XML file: Client view of SyncBO)</u>
    (meRepMeta.xml )
    The data structure used for the data exchange between  the mobile clients and the MI Server Component can be specified by defining the metadata for the SyncBO.
    This XML document will be used by the MI JAVA APIs to access and manipulate the local SyncBO data downloaded from Smart Synchronization.
    <b>A client application developer typically looks into the generated XML document for implementing the data access layer of a client application.</b>
    <u>2)Default value setting</u>
    It might not be necessary to expose some fields to the clients; how ever, the fields can be mandatory fields when the BAPI wrappers are called (mainly in create and change functions). In such cases, the field can be set as “default“ and its default value can be assigned. <b>The default values also need to be assigned for the selection criteria parameter(s) of the GetList BAPI
    wrapper function, which is used to pre-filter data being stored in the replica database.</b>
    <u>3)Filter setting</u>
    <b>To reduce the number of records on client devices, for example, to avoid downloading unnecessary data, the data filtering function can be used to filter the <b>data downloaded from the replica database</b></b>.
    Filtering is possible on these levels:
    a)At SyncBO level
    b)At Mobile ID level
    c) Mobile group Level.
        During synchronization,
    associated with each sync bo ...
    Getlist populate the Header Instances.
    --  for each Header instance getdetail is executed.
      so in the importing mapping part ,
    the mapped fields are only necessary for the  server at runtime.(here u can create value ids corresponding to each importing parameter and set values .)
    if u want to filter the header instances by means of user who is syncing .. then u ca directly give the default value of Value ID as ME-SYNC_USER against ur importing parameter.
    [In the client  we need only the header details and item details only].
       The relation bw  filtering of ITEM (Getdetail) is maintained  through the key fields in the ImportParam of Getdetail.(which are internally linked through the Header populated in Getlist ..)
    (Key fields of Getlist  is a subset of fields in the Header Structure).
    <<So, my question is, do the filter field and the import parameter have any connection? >>
    As i mentioned above  ,  Getlist is executed using the import params , and the replica BD is populated with the output from  getList. <b>Filters filter data from Replica DB to the Client  Device...</b>
                                   Regards
                                   Kishor Gopinathan

Maybe you are looking for

  • How to set a session variable

    Hi, I would like to know how to set a session variable for the following purpose. At the top of my application I have a "Welcome <username>" I'd like it instead to have "Welcome <firstname> <lastname>". So the concept would be after the user logs in

  • Selective data load and transformations

    Hi, Can youu2019ll pls clarify me this 1.Selective data load and transformations can be done in     A.     Data package     B.     Source system     C.     Routine     D.     Transformation Library-formulas     E.     BI7 rule details     F.     Anyw

  • My computer is telling me another device is using my ip address...

    I did search and found a discussion but it was not the exact problem. I really need help fixing it.

  • Tabbed Panel issue. Need to default to users last choice.

    My issue is that I can not seem to find the code to force the tabbed panel to default to that tab viewed by the viewer. So if you use this spry to navigate a larger website, on the refresh, the spry always defaults to the zero position. I need it to

  • Encender LEDS de mas capacidad

    Buen dia a todos Quisiera saber si es posible encender leds mas grandes con una DAQ USB-6002 ¡Resuelto! Ir a solución.