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

How to capture the User input value to user exist function module.

Hi,

How can i capture user input value.Here i am using User exist in BPS variable.

Calculating days using user exist functin module and my input is another variable i.e user defined value.

How can i capture user defined vaule into my function module.

This is very urgent can you help me..

Thanks....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2008 at 07:49 AM

    Hi,

    Look into following guide it will help you.

    Use function module Z_VARIABLE_GET_DETAIL from this document for determining

    your variable values.

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/650ee690-0201-0010-4bb7-83c3e2a74039

    Regards,

    Malik

    If this reply is helpful. Please dont forget about points.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 01:59 PM

    Hi!

    You can get the instance using the method get_instance of the class cl_sem_variable, and call the method get_value with the return. Check the example:

    
          CALL METHOD cl_sem_variable=>get_instance
            EXPORTING
              i_area       = (planning area)
              i_variable   = (variable name)
            RECEIVING
              rr_variable  = lr_var
            EXCEPTIONS
              not_existing = 1
              OTHERS       = 2.
    
          CHECK sy-subrc IS INITIAL.
    
          CALL METHOD lr_var->get_value
            RECEIVING
              rto_value = et_value
            EXCEPTIONS
              error     = 1.
    
    

    After this, read the first line of the table et_value (it should be the value that the user choose on the screen).

    seeya!

    Robson

    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.