2010 Jun 10 1:29 PM
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
2010 Jun 10 1:54 PM
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.
2010 Jun 10 1:58 PM
Unfortunatly the modification is still not written into the database.
2010 Jun 10 2:04 PM
Hi
Try this...
Data wa_position_table like position_table .
wa_position_table-ablad = 'XX'.
MODIFY position_table FROM wa_position_table
2010 Jun 10 2:08 PM
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.
2010 Jun 10 2:14 PM
2010 Jun 10 2:16 PM
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.