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

Modify Data in user exit EXIT_SAPLCOBT_001

Former Member
0 Likes
3,017

Dear all

I try to modify position_table-ablad in user exit EXIT_SAPLCOBT_001 which is called when you save a PP Order.

loop at position_table.

position_table-ablad = 'XX'.

modify position_table.

endloop.

But after that, there is no data written into the table. What do I do wrong?

thank you

Dear all

I try to modify position_table-ablad in user exit EXIT_SAPLCOBT_001 which is called when you save a PP Order.

loop at position_table.

position_table-ablad = 'XX'.

modify position_table.

endloop.

But after that, there is no data written into the table. What do I do wrong?

thank you

6 REPLIES 6
Read only

Former Member
0 Likes
2,132

Hi,

Try with this....

Data wa_position_table like position_table .

loop at position_table into wa_position_table .

wa_position_table-ablad = 'XX'.

MODIFY position_table FROM wa_position_table

TRANSPORTING ablad .

endloop.

Read only

0 Likes
2,132

Unfortunatly the modification is still not written into the database.

Read only

0 Likes
2,132

Hi

Try this...

Data wa_position_table like position_table .

wa_position_table-ablad = 'XX'.

MODIFY position_table FROM wa_position_table

Read only

0 Likes
2,132

this even dumps with an exception TABLE_ILLEGAL_STATEMENT

because of illegal cursor.

I'm not sure if the user exit is really foressen to modify something like this. Because the data is will in the table written when I got out of the ueser-exit, but it's finally not written into the database.

Read only

0 Likes
2,132

can u explan more clear

wht is ur requirement?

Read only

0 Likes
2,132

When I save the order, I like to fill in a fix value into the field afpo-ablad. Tried alread PPCO0007 but this field is not available in the structure.