Skip to Content
0
Former Member
Jan 05, 2007 at 10:47 AM

Get Input Parameters BAPI

24 Views

Hi,

In my Component Controller > Implementation >

in the method executeBapi_MYBAPI_Input( )

i write this code:

String s_nom_deb = "BT*"
			String s_nom_fin = "BV*"
			
			nom_deb.setUname(s_nom_deb);  
			nom_fin.setUname(s_nom_fin);
			
			wdContext.currentBapi_MYBAPI_InputElement().modelObject().setNom_Start(nom_deb);
			wdContext.currentBapi_MYBAPI_InputElement().modelObject().setNom_End(nom_fin);
			
			wdContext
				.currentBapi_MYBAPI_InputElement()
				.modelObject()
				.execute();
				
			wdContext.nodeOutput().invalidate();

and IT WORKS.

but i want value "BT" and "BV" became from inputfield,

but when i replace by:

wdContext.nodeNom_Start().currentNom_StartElement().getUname();

and wdContext.nodeNom_End().currentNom_EndElement().getUname();

it doesn't work.

how can i retrieve the value from my 2 inputfields ?

what sould i verifie in "mapping" ?

Regards,

Phoenix