Skip to Content
0
Former Member
Dec 11, 2006 at 05:34 PM

Problem with table control

34 Views

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