Skip to Content
author's profile photo Former Member
Former Member

How to pass the date and its parameters to RFC on action of a button?

Hi,

Im having a button, on clicking that i have to pass the current date and some parameters like date category and date type of that button to the RFC.

Explain in detail about the procedures to be followed to pass the values.

Thanks & Regards,

Suresh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 06:36 AM

    Hi,

    As per your req., "to pass the current date and some parameters like date category and date type of that button to the RFC", since SAP Date field is of 8 chars length you can't store all info in that field.

    Approach can be creating data element of string(40) and sending all info concatenated and separated by :.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 06:40 AM

    Hi! Suresh,

    SAP has provided a very beautifull Tutorial to explain, how to call the RFC from your WebDynpro application.i am giving you the Link for that..

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15

    Once you get familiar with that you need to call one Controller method from the action event handler of the Button and in the Controller call the RFC.

    you need to get the system Current System Date using JAVA Api's and then pass these parameter to your RFC.

    regards,

    sahu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 06:41 AM

    Hi

    Can You Eloborate your querry little more in detail.....

    Regards

    Chandran S

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.