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

function module not clearing data

Former Member
0 Likes
1,325

Hi,

i am using function module hu_goods_movement_create.its generating material document successfully. again i am doing the goods movement with out comming out of the function module. even though i pass new data to function module. its picking the old data.once i come out the transaction and redo the same thing its working fine.i think function module is not clearing the buffer. can any body help me in this regard.

Rgds

siva

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
707

Hi,

i dont find such fm in my system.

There is a fm called HU_CREATE_GOODS_MOVEMENT ,

Try executing it in this test sequence in se37 or in your code

CALL FUNCTION 'HU_PACKING_REFRESH'

CALL FUNCTION 'SERIAL_INTTAB_REFRESH'.

CALL FUNCTION 'L_SAPLL03A_INIT_INT'.

CALL FUNCTION 'HU_CREATE_GOODS_MOVEMENT'

You can find the example in report /ISDFPS/STOCK_CHANGE_WERKS_LGO and in include LHUMOF04

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
708

Hi,

i dont find such fm in my system.

There is a fm called HU_CREATE_GOODS_MOVEMENT ,

Try executing it in this test sequence in se37 or in your code

CALL FUNCTION 'HU_PACKING_REFRESH'

CALL FUNCTION 'SERIAL_INTTAB_REFRESH'.

CALL FUNCTION 'L_SAPLL03A_INIT_INT'.

CALL FUNCTION 'HU_CREATE_GOODS_MOVEMENT'

You can find the example in report /ISDFPS/STOCK_CHANGE_WERKS_LGO and in include LHUMOF04

Read only

0 Likes
707

Hi Keshav,

Thanks for your reply.can i know what is the use of this function module L_SAPLL03A_INIT_INT.

Rgds

siva

Read only

0 Likes
707

Hi,

Just look into that fm it just clears and refreshes some variables.

It was used in the same sequesnce wherever the fm was called.

Read only

0 Likes
707

thanks kesav, it worked.