Skip to Content
0
Aug 13, 2009 at 06:01 PM

Error GETWA_NOT_ASSIGNED in ZIDOC_INPUT_REMADV

42 Views

Hello to all,

after an upgrade to ECC 6.0 I am receiving a dump that I do not understand.

We createdfunction module ZIDOC_INPUT_REMADV as a copy of IDOC_INPUT_REMADV

FUNCTION ZIDOC_INPUT_REMADV.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD

*" VALUE(MASS_PROCESSING) LIKE BDWFAP_PAR-MASS_PROC

*" EXPORTING

*" VALUE(WORKFLOW_RESULT) LIKE BDWFAP_PAR-RESULT

*" VALUE(APPLICATION_VARIABLE) LIKE BDWFAP_PAR-APPL_VAR

*" VALUE(IN_UPDATE_TASK) LIKE BDWFAP_PAR-UPDATETASK

*" VALUE(CALL_TRANSACTION_DONE) LIKE BDWFAP_PAR-CALLTRANS

*" TABLES

*" IDOC_CONTRL STRUCTURE EDIDC

*" IDOC_DATA STRUCTURE EDIDD

*" IDOC_STATUS STRUCTURE BDIDOCSTAT

*" RETURN_VARIABLES STRUCTURE BDWFRETVAR

*" SERIALIZATION_INFO STRUCTURE BDI_SER

*" EXCEPTIONS

*" WRONG_FUNCTION_CALLED

*"----


*{ INSERT TG1K925542 1

  • Initialisierungen..

CHECK SY-MANDT = '400'.

CLEAR: APPLICATION_VARIABLE,

IN_UPDATE_TASK, CALL_TRANSACTION_DONE.

REFRESH: RETURN_VARIABLES, SERIALIZATION_INFO.

WORKFLOW_RESULT = C_WF_RESULT_OK.

BATCH_INPUT_ONLY = 'X'.

  • Zwischenstrukturen zuordnen und evtl. umkodieren.

PERFORM ZZWISCHENSTRUK_ZUORDNEN_REMADV.

*} INSERT

ENDFUNCTION.

***************************************************************************************

The form ZZWISCHENSTRUK_ZUORDNEN_REMADV goes like this

***************************************************************************************

FORM zzwischenstruk_zuordnen_remadv..

  • Locale Variablen und Konstanten.

DATA: akt_belegzeile TYPE p, "Aktuelle Belegzeile

akt_unterposition TYPE p, "Aktuelle Unterpos

bk_vorhanden(1) TYPE c VALUE 'N', " N = NEIN

partner_vorhanden(1) TYPE c VALUE 'N', " N = NEIN

partner_kontonummer LIKE avik-konto,

partner_koart LIKE avik-koart,

sap_waehrung LIKE avik-waers,

idoc_bukrs LIKE avik-bukrs,

idoc_contrl_index LIKE sy-tabix,

idoc_data_index LIKE sy-tabix,

fehler_flag(1) TYPE c,

c_mem_idoc_in(20) TYPE c VALUE 'IDOC_NO_FI',

ls_exit_avik LIKE avik,

ls_exit_avip LIKE avip,

ls_exit_avir LIKE avir.

*>>>SAPAS--03.02.2009

DATA l_kunnr LIKE bsid-kunnr.

DATA l_belnr LIKE bsid-kunnr.

*<<<SAPAS--03.02.2009

*>INI

DATA v_aux_dif LIKE it_docs-nebtr.

*>FIN

CLEAR v_fecha_contab. "(INS) MAAC-161208

  • >>> 05/2008 mmg

CHECK sy-mandt = '400'.

CLEAR it_docs. REFRESH it_docs.

  • <<< 05/2008 mmg

LOOP AT idoc_contrl.

idoc_contrl_index = sy-tabix.

IF idoc_contrl-mestyp <> c_mestyp_remadv AND

idoc_contrl-mestyp <> c_mestyp_creadv AND

idoc_contrl-mestyp <> c_mestyp_creext AND

idoc_contrl-mestyp <> c_mestyp_debadv.

PERFORM statusfelder_fuellen

USING fehler_in_der_bearbeitung

**********************************************************************************************************************

the dump says that there is an error in form zzwischenstruk_zuordnen_remadv

IN statement LOOP AT IDOC_CONTRL the field "IDOC_CONTRL" is unknown, (??)

when double clicking on idoc_contrl the parameter does not seem to be declared in function module ZIDOC_INPUT_REMADV

Declaration Locations of Global Parameters IDOC_CONTRL

IDOC_INPUT_FINSTA

IDOC_INPUT_LOCKBX

IDOC_INPUT_REMADV

IDOC_INPUT_REMADV_CTR

To me the declaration of IDOC_CONTRL and the statement LOOP AT are directly copied from the standard modules.

Has anyone a clue what is happening?

Regards

Aude