Skip to Content
0
Former Member
Jun 05, 2009 at 12:11 PM

FM MB_AMPL_UPDATE uses global itab?

181 Views

Hi!

I have problems using the FM MB_AMPL_UPDATE. It is used to maintain the table AMPL in SAP. The problem is that I can't update table entries. Adding new entries works ok.

I think, the problem is the import table YYAMPL, which is passed into the function. The first line of code calls a Form "SICHERN_VORBEREITEN" and this Form checks if this table contains any entries using the statements:

READ TABLE YYAMPL INDEX 1.

IF SY-SUBRC = 0.

...

Since this table is not passed directly to the function, it must be some kind of global variable mechanism, right? But why is it always empty and sy-subrc = 4 when I test this function using SE37?

Any ideas?

Thanks,

Konrad