Application Development and Automation 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: 
Read only

Problem with table control

Former Member
0 Likes
952

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
918

Hi,

i guess you forgot to clear the work area.

try clearing work area.

THANKS

7 REPLIES 7
Read only

Former Member
0 Likes
919

Hi,

i guess you forgot to clear the work area.

try clearing work area.

THANKS

Read only

0 Likes
918

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

Read only

0 Likes
918

hi,

can you post your module code

thanks

Read only

0 Likes
918

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

Read only

0 Likes
918

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

Read only

0 Likes
918

Hi ,

IN ADDITION TO THAT CAN YOU CHECK THE TC-CURRENT_LINE

AND TC-TOP_LINE.

THANKS

VENKI

Read only

0 Likes
918

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