Skip to Content
0
Former Member
Jul 16, 2008 at 12:33 PM

Module pool programming..

20 Views

Dear All,

In Mp-programming, I have 1 I/O field named as "*zcta_qm_pass-reason" whose value i need to display in output.

Now,I have written following code in FlowLogic

PROCESS BEFORE OUTPUT.

MODULE set_pfstatus.

CHAIN.

  • field : *zcta_qm_pass-mblnr,

*

  • *zcta_qm_pass-zeile,

FIELD : *zcta_qm_pass-prueflos MODULE serial_max_no,

*zcta_qm_pass-charg.

MODULE select_data.

ENDCHAIN.

*" with control tc1 cursor tc1-current_line.

LOOP AT itab WITH CONTROL tc1 CURSOR tc1-current_line.

MODULE pass_data.

CHAIN.

FIELD : *zcta_qm_pass-lnno MODULE lnno_cr,

*zcta_qm_pass-matnr,

makt-maktx,

*zcta_qm_pass-menge,

*zcta_qm_pass-meins,

*zcta_qm_pass-serge_tot,

*zcta_qm_pass-serge_start,

*zcta_qm_pass-reason,

*zcta_qm_pass-serge_end.

ENDCHAIN.

ENDLOOP.

MODULE status_1000.

PROCESS AFTER INPUT.

  • field head values ('APPROVED','ACCEPTED','RELEASED').

CHAIN.

MODULE pass_lnno.

  • FIELD : *zcta_qm_pass-mblnr,

*

  • *zcta_qm_pass-zeile,

*

  • *zcta_qm_pass-mjahr,

*

  • *zcta_qm_pass-charg.

FIELD : *zcta_qm_pass-prueflos,

*zcta_qm_pass-charg.

ENDCHAIN.

LOOP AT itab.

MODULE selection.

CHAIN.

FIELD : *zcta_qm_pass-serge_tot MODULE serge_tot ON CHAIN-REQUEST,

*zcta_qm_pass-serge_start MODULE SERGE_START ON CHAIN-REQUEST,

*ZCTA_QM_PASS-REASON MODULE REASON ON CHAIN-REQUEST,

*zcta_qm_pass-serge_end MODULE serial_nos.

ENDCHAIN.

ENDLOOP.

MODULE getitabrows.

MODULE fillitab.

MODULE exit AT EXIT-COMMAND.

MODULE user_command_100.

process on value-request.

field HEAD module get_heading .

In that coding look at to Bold letters i.e. for REASON

When i am checking this code it is giving me an error :

"Invalid field assignment:Field *zcta_qm_pass-reason is not assigned to this loop"

Please tell me what can i do..

Regards,

Ankur