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

PM_ORDER_DATA_READ - dumps second time

Former Member
0 Likes
1,314

hi

am trying to use the fm PM_ORDER_DATA_READ to read the operations for an order..but strangely when it's called for the second time in the loop, it goes to dump raising ITAB_ERROR exception...even it does the same when executed for the second time giving order number as input in se37...what could be wrong? the FM is not released..any corrective measures to be taken to use this fm for the second time...i saw a similar thread related to this, but not many replies...am on 4.7

regards

Sathish. R

4 REPLIES 4
Read only

martin_renardy
Explorer
0 Likes
997

Hallo,

most likely the ITAB definition is defined something like Sorted tab. So during the second loop it tries to insert a duplicate record.

What is the exact ITAB error message?

Regards

Martin

Read only

0 Likes
997

hi

thanks for the answer...but no..this is my declaration

TYPES : BEGIN OF IAFVGD.

INCLUDE STRUCTURE AFVGD.

TYPES END OF IAFVGD.

DATA: MY_IAFVGD TYPE STANDARD TABLE OF IAFVGD,

WA_MY_IAFVGD LIKE LINE OF MY_IAFVGD.

i even tried initializing the work area and iafvgd...still same result...any thoughts?

Sathish. R

Read only

Former Member
0 Likes
997

any thoughts on this friends? still am getting the same result

Sathish. R

Read only

Former Member
997

Try FM 'CO_EXT_ORDER_RESET' and/Or 'CO_IT_SET_FLG_ITAB_NEW'  Before PM_ORDER_DATA_READ