Skip to Content
0
Former Member
Aug 21, 2006 at 02:16 PM

API_SEMBPS_VARIABLE_SET issues

32 Views

Hello all,

I am trying to set a variable value using FM API_SEMBPS_VARIABLE_SET. But it does not get set. The variable which i try to set is 0version. the variable is of type fixed. Can some one say if i am doing any thing wrong. If any one has used this function and had it worked... any reply is really appreciated....

  • CALL FUNCTION MODULE 'API_SEMBPS_VARIABLE_SET'...

g_version = request->get_form_field( 'version' ).

ls_varsel-opt = 'EQ'.

ls_varsel-sign = 'I'.

  • ls_varsel-chanm = g_version.

ls_varsel-seqno = '0001'.

ls_varsel-low = g_version.

APPEND ls_varsel TO lt_varsel.

CALL FUNCTION 'API_SEMBPS_VARIABLE_SET'

EXPORTING

i_area = 'PAB001'

i_variable = 'VARVER'

  • i_numvalue = 'B01'

  • IS_HIESEL =

IMPORTING

e_subrc = l_subrc

es_return = ls_bapiret

TABLES

itk_varsel = lt_varsel

  • ITK_HIEDEP =

.

CALL FUNCTION 'API_SEMBPS_POST'

IMPORTING

e_subrc = l_subrc

es_return = ls_bapiret.

Thanks

Message was edited by: Sathya Gnanavelu