‎2006 Dec 11 5:34 PM
Hi folks!
I'm having a little problem with a table control. The thing is that for some reason when I move from the table control to a work area at the PAI, it's moving a wrong value of a field (it's an indicator field).
For example:
In my table control I have:
Item Flag
1
2
3 X
4 X
When I modify something in my item #2, at the PAI it should move flag value = ' '.
Instead i'm getting flag value = 'X'.
I've checked if the table control is filled with the correct data and it is being filled correctly. I am missing something here. I'm not having this same trouble with another table controls.
In my PBO I have the following:
LOOP AT G_POSADJ_ITAB
INTO G_POSADJ_WA
WITH CONTROL POSADJ
CURSOR POSADJ-CURRENT_LINE.
MODULE POSADJ_MOVE.
MODULE POSADJ_GET_LINES.
ENDLOOP.
In my PAI I have the following:
LOOP AT G_POSADJ_ITAB.
CHAIN.
FIELD ZADJUDICA-FIRME.
FIELD ZADJUDICA-EBELN.
FIELD ZADJUDICA-EBELP.
FIELD ZADJUDICA-STATU.
FIELD ZADJUDICA-ANGNR.
FIELD ZADJUDICA-LIFNR.
FIELD ZADJUDICA-MATNR.
FIELD ZADJUDICA-KTMNG.
FIELD ZADJUDICA-MEINS.
FIELD ZADJUDICA-NETPR.
FIELD ZADJUDICA-WAERS.
FIELD ZADJUDICA-DIFCA.
FIELD ZADJUDICA-BRTWR.
FIELD ZADJUDICA-BANFN.
FIELD ZADJUDICA-BNFPO.
FIELD ZADJUDICA-MENGE.
FIELD ZADJUDICA-MEINS_S.
FIELD ZADJUDICA-BRTWR_S.
FIELD ZADJUDICA-DIFWR.
FIELD ZADJUDICA-DPRES.
FIELD ZADJUDICA-DPWRT.
FIELD ZADJUDICA-EBELN_P.
FIELD ZADJUDICA-DATUM.
FIELD ZADJUDICA-IHREZ.
FIELD ZADJUDICA-VEDAT.
FIELD ZADJUDICA-KDATB.
FIELD ZADJUDICA-KDATE.
MODULE POSADJ_MODIFY ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP
In the module posadj_modify when I move from ZADJUDICA to a work area the field for the flag isn't correct.
Thanks for your help.
Kind Regards,
Gilberto Li
‎2006 Dec 11 5:42 PM
Hi,
i guess you forgot to clear the work area.
try clearing work area.
THANKS
‎2006 Dec 11 5:42 PM
Hi,
i guess you forgot to clear the work area.
try clearing work area.
THANKS
‎2006 Dec 11 5:45 PM
Hi, already did. Still getting this problem.
The strange thing is that next statement at posadj_modify:
MOVE-CORRESPONDING ZADJUDICA TO posadj_wa.
Is not moving the correct value for the field flag to posadj_wa.
Hope someone can help me through this. Maybe it's a little thing that i'm missing.
Kind Regards,
Gilberto Li
Message was edited by:
Gilberto Li
‎2006 Dec 11 6:00 PM
‎2006 Dec 11 6:05 PM
Hi again, this is the posadj_modify module.
MODULE posadj_modify INPUT.
DATA: ekko_aux LIKE ekko,
ekpo_aux LIKE ekpo,
poad_aux LIKE g_posadj_wa.
DATA: msol LIKE g_posadj_wa-brtwr_s.
MOVE-CORRESPONDING zadjudica TO g_posad_wa.
...
ENDMODULE.
When I check the g_posadj_wa, the flag value is incorrect, the strange thing is that the other values are ok.
Thanks again.
Regards,
Gilberto Li
‎2006 Dec 11 6:12 PM
Hi,
TRY THIS
WA-matnr = zABC-matnr.
WA-menge = zABC-menge.
HOPE THIS MAY HELP.
Have you used the wizard or the normal thing to build t c.
Thanks
‎2006 Dec 11 6:13 PM
Hi ,
IN ADDITION TO THAT CAN YOU CHECK THE TC-CURRENT_LINE
AND TC-TOP_LINE.
THANKS
VENKI
‎2006 Dec 11 7:30 PM
Hi, I've found the reason of the problem. It was a pretty dumb mistake. The field flag, wasn't in the Table control, and that's why it didn't bring the correct value when moving it to the work area.
Thanks for your help.
Regards,
Gilberto Li
Message was edited by:
Gilberto Li