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: 

Module pool programming..

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

naveen_inuganti2
Active Contributor
0 Kudos

Hi.....,

You are validating the fields with CHAIN and END CHAIN operater in PBO event...!!

May be that error regarding to PBO declaration.

Are you sure the field which is giving error assigning before the screen...

Try in this way...

( And Also send optimized code to under stand ur logic simply..., )

Get back to you If I had any further moves on this problem.

Thanks,

Naveen.I

1 REPLY 1

naveen_inuganti2
Active Contributor
0 Kudos

Hi.....,

You are validating the fields with CHAIN and END CHAIN operater in PBO event...!!

May be that error regarding to PBO declaration.

Are you sure the field which is giving error assigning before the screen...

Try in this way...

( And Also send optimized code to under stand ur logic simply..., )

Get back to you If I had any further moves on this problem.

Thanks,

Naveen.I