Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM SERIALNUMBER_LIST_UPDATE doesn't work

lemoreno
Participant
0 Kudos

Hi ABAPers

I'm looking for a FM that let me to activate the Equipment View (t-code IQ02).

I tried with SERIALNUMBER_LIST_UPDATE but it doesn't work for me. This is my code:

REPORT  zupdate_equi_fm.


DATA: gt_iequi  TYPE STANDARD TABLE OF riequi,
gs_iequi 
TYPE riequi,
gt_imase 
TYPE STANDARD TABLE OF mase,
gs_imase 
TYPE mase.

gs_iequi
-matnr  = '000000000000017200'.
gs_iequi
-sernr  = '40586307601015'.
gs_iequi
-aedat  = sy-datum.
gs_iequi
-aenam  = sy-uname.
gs_iequi
-equnr  = '000000000047036700'.
gs_iequi
-eqtyp  = 'E'.
gs_iequi
-s_equi = 'X'.
gs_iequi
-herst  = 'HITRON TECHNOLOGIES INC'.
gs_iequi
-dbknz  = 'X'.
gs_iequi
-equpd  = 'X'.
gs_iequi
-begrui = 'E'.

APPEND gs_iequi   TO gt_iequi.
CLEAR: gs_iequi.

gs_imase
-matnr  = '000000000000017200'.
gs_imase
-lsernr = '40586307601015'.

APPEND gs_imase   TO gt_imase.
CLEAR: gs_iequi.

BREAK-POINT.

CALL FUNCTION 'SERIALNUMBER_LIST_UPDATE'
*   EXPORTING
*     is_master_data = space
TABLES
iequi         
= gt_iequi
imase         
= gt_imase.


Where is the problem?

Thanks!

1 ACCEPTED SOLUTION

lemoreno
Participant
0 Kudos

Hi again!

I couldn't use this FM for my purpouse, it didn't work. After a couple of hours looking for BAPI or FM to complete my requirment i found this one! ITOB_SERIALNO_MODIFY_SINGLE.

It allows me to activate the equipment view with the field ITOB-S_EQUI = 'X'.

But now i have another problem. I have to update the fields ITOB-GWLDT and ITOB-GWLEN. These fields are the warranty dates. I fill them in this way: YYYYMMDD but it doesn't work.

Any idea?

Thanks!!!

3 REPLIES 3

lemoreno
Participant
0 Kudos

Hi again!

I couldn't use this FM for my purpouse, it didn't work. After a couple of hours looking for BAPI or FM to complete my requirment i found this one! ITOB_SERIALNO_MODIFY_SINGLE.

It allows me to activate the equipment view with the field ITOB-S_EQUI = 'X'.

But now i have another problem. I have to update the fields ITOB-GWLDT and ITOB-GWLEN. These fields are the warranty dates. I fill them in this way: YYYYMMDD but it doesn't work.

Any idea?

Thanks!!!

0 Kudos

I had to use the FM WARRANTY_ASSIGNMENT_RFC to update the fields ITOB-GWLDT and ITOB-GWLEN.


I hope this information helps somebody else.


Regards.

0 Kudos

Hola Luis

tengo el mismo caso, necesito activar la vista de Equipo en IQ02.

mencionas que lo resolviste con esta función ITOB_SERIALNO_MODIFY_SINGLE.

por favor puedes compartir que parametros son requeridos

gracias