Application Development 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: 

Dump for the second time when using FM PM_ORDER_DATA_READ

0 Kudos
1,125

hi all,

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

jayasankar

8 REPLIES 8

Former Member
0 Kudos
458

Hi,

Call that functionmodule in asynchronusly,

call function 'xxxxxxxxxxxxxxx' STARTING NEW TASK....

Thanks and Regards,

Edited by: chandra madapati on Jan 9, 2008 9:22 AM

0 Kudos
458

HI,

after using this

Call that functionmodule in synchronusly,

call function 'PM_ORDER_DATA_READ ' in update task

again it goes to dump and giving the error

Non-update function module called for update.

please correct me if i am wrong.

0 Kudos
458

Hi,

when I use STARTING NEW TASK with call function it is throughing an error that

Field "EXPORTING" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

but here in my function module i need to export some of the fields and how come i solve this problem can u guide me with detailed infromation.

Former Member
458

Try CALL FUNCTION 'CO_IT_SET_FLG_ITAB_NEW'  Before PM_ORDER_DATA_READ

former_member946717
Contributor
0 Kudos
458

Hi Jaya,

You have mentioned that the FM is not released. Then it is better to look out for another FM. If you specify your requirement maybe we can help you with an FM?

manuelhildemaro_ramossanc
Active Participant
458

Hi Jaya.

Use FM 'CO_EXT_ORDER_RESET' before to call FM "PM_ORDER_DATA_READ".

Regards,

Manuel H.

PD: This question was posted in Jan 9, 2008 9:12 AM :S

Former Member
458

Hello,

FM CO_EXT_ORDER_RESET  can help you or  try to add FREE MEMORY statement before  calling second time the above FM.

Thanks

Katrice

BillyV
Newcomer
0 Kudos
37

Use this code to refresh every loop, before calling your main FM

    CALL FUNCTION 'CO_ZF_DATA_RESET_COMPLETE'
      EXCEPTIONS
        OTHERS 0.
    CALL FUNCTION 'CO_BH_DATA_RESET'.