cancel
Showing results for 
Search instead for 
Did you mean: 

set flags true

Former Member
0 Kudos

Hello!

A Function Module at backend which is called like below shown

has also two flags. I intend to set those flags on true.

How is that working ?

This is the call of FM inside a method.

wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().execute();

wdContext.nodeOutput().invalidate();

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Murtuza I will do that.

I have still the problem with the input field.

Is there a possiblitiy to have look at my

code ? I dont care about the way how to inspect it.

Maybe with skype or messanger via Desktop Sharing etc.

Please reply I want to reward it as solved.

Reagrds

sas

Former Member
0 Kudos

ya, you can find me online on my alternate email address in the profile.

It would be better if you could send me the screenshots through mail on my gmail id for your context strucute and just paste your code over there.

Regards,

Murtuza

Answers (3)

Answers (3)

Former Member
0 Kudos

hello Murtuza on your business card is nothing to find.

Where else can I look for email adress

Regards

sas

Former Member
0 Kudos

Hi Erdam,

Check it now!!!

Regards,

Murtuza

Former Member
0 Kudos

Hello Murtuza!

This my current method. But it didn't work .

public void wdDoInit()
  {
    //@@begin wdDoInit()
    //$$begin Service Controller(-774299147)
    
wdContext.node__I_Rf02_Ial_Query_Input().bind(new __I_Rf02_Ial_Query_Input());
__I_Rf02_Ial_Query_Input input = new __I_Rf02_Ial_Query_Input();
wdContext.node__I_Rf02_Ial_Query_Input().bind(input);
		
input.setI_Incident_Selcrit(new __Is_Rfc_Iasel());
input.setI_Iepva_Selcrit(new Cciht_Ipeva());

input.setI_Flg_Filterinvolved(true);	
input.setI_Flg_Orghierarchy(true);
    //$$end
    //@@end
  }

Bye

Erdem

Former Member
0 Kudos

Hi Erdam,

The code seems to be fine. Write this line of code before execution so that you can see what all values are passed to the RFC. You can check there whether the values for your flag are passed or not:

wdComponentAPI.getMessageManager().reportSuccess(wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().toString());

Also, in the catch block of the execute method, print the exception so that you might get a hint for the failure

wdComponentAPI.getMessageManager().reportException(e.toString(),true);

Regards,

Murtuza

Former Member
0 Kudos

Hi Erdam,

Could you see those 2 flags under the node node__I_Rf02_Ial_Query_Input?

If yes then before writing the execute code set the values of those 2 flag for the object that you instantiated for the node__I_Rf02_Ial_Query_Input

Regards,

Murtuza

Former Member
0 Kudos

Hello Murtuza!

This is the method which is called within the onActionSearchIncidents method (for search button)

These flags are a part of the /I_RF02_IAL_QUERY .

The question is where exactly must I set the flags

CustomController

public void Ial_Query_Input( )
  {
    //@@begin Ial_Query_Input()
    //$$begin Service Controller(609296820)
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    try
    {
      wdContext.current__I_Rf02_Ial_Query_InputElement().modelObject().execute();
      wdContext.nodeOutput().invalidate();
    }
    catch(WDDynamicRFCExecuteException e)
    {
      manager.reportException(e.getMessage(), false);
    }
    //$$end
    //@@end
  }

This is the instance in the wdDoInit method which you talk about in the

Custom Controller too.

public void wdDoInit()
  {
    //@@begin wdDoInit()
    //$$begin Service Controller(-774299147)
    wdContext.node__I_Rf02_Ial_Query_Input().bind(new __Tdag__I_Rf02_Ial_Query_Input());


	__I_Rf02_Ial_Query_Input input = new __I_Rf02_Ial_Query_Input();
	wdContext.node__I_Rf02_Ial_Query_Input().bind(input);
	
	}

In the view

public void onActionSearchIncidents(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
  
  // call function module /I_RF02_IAL_QUERY 
		wdThis.wdGetIncidentRFCModelCustController().Ial_Query_Input();
		
}

Former Member
0 Kudos

Hi Erdam,

In your wdDoInit() method:

I_Rf02_Ial_Query_Input input = new I_Rf02_Ial_Query_Input(<modelattribute>);

Just below this you can set the value like this

element.set<falg1>(true);

element.set<flag2>(true);

Regards,

Murtuza

Edited by: Murtuza Kharodawala on Oct 10, 2008 2:29 AM

Former Member
0 Kudos

Hello Murtuza Ok I will try it out.

By the way there is another point I would ask you.

In my wdDoInit() I have created two instances for each Node element.

Because the FM I_Rf02_Ial_Query_Input is the RootChild

and below are two child element nodes for the both importparameter

of the FM. Therefore I have had created two different instances.

May I use the same created object (instance of I_Rf02_Ial_Query_Input ) for both ?

Bye

Erdem

Former Member
0 Kudos

Yes Erdam,

Use the same object. You need not instantiate a new one.

Regards,

Murtuza