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

problem calling same RFC twice


i have called my RFC init() for the firsttime

which populates the data in the itemlistboxes

next time iam calling the same RFC in a button

after the RFC is called second time

data in the itemlistboxes are gettig blank or invalidated

is that this problem is due to calling the same RFC

twice or may be problem with any code

Zlgs_Car_Data carData= new Zlgs_Car_Data();









can any one help me out ?

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 May 27, 2008 at 05:54 AM


    The code you have given is in Init method or button?

    If on button click then the problem is when you execute a function module second time,it removes its first instance.

    For this you will have to again pass values for itemlistboxes (means you will have to set same inputs again which you have set in Init() method along with which you want to set on button action) and execute function module.

    This will help.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2008 at 05:54 AM

    Hi kishore,

    When we are calling same RFC twice, then this problem was come.

    After importing the model, you generated the executeZlgf001_Outfit_Match_Input() in component controller, by right clicking controller, and click on the Apply Template.

    Do the same process once agaign, while doing you get the error as already context is there.Just rename the context variables.Suppose you rename Zlgf001_Outfit_Match_Input as executeZlgf001_Outfit_Match_Input2, then you get two execute methods for your RFC in controller.Call one method for itemlistbox and another for button.Bind context variables with corresponding UI elements.So, selecting one UI element will not effect another UI element.

    I think this will help you.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      thanks for the response

      so i have to create other model in the

      MVC (open modeler )

      then create other executable method

      executeBAPI_Input1 then call this method in the

      button .

      is that so .

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.