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: 

Problems when creating a transfer order for moving storage units

john_nijburg
Explorer
0 Kudos

Hi,

When creating a TO for moving storage units with FM FU L_TO_CREATE_MOVE_SU i got problems when the storage unit consist of 2 items. The message 'Warehouse number does not exist (new selection required)'

is displayed. When i use the FM again after this message then the TO is created correctly.

When i debug the FM for 2 items is see that LEIN-LGNUM is empy en when performing:

PERFORM T300_LESEN(SAPML03T) USING LEIN-LGNUM. and the message E080 is raised.

The perform before this is determining the lein-lgnum (PERFORM LENUM_EINL_CHECK(SAPML03T) USING I_LENUM) but this value isnt passed to the calling program the first time (memory or something????)

Does anyone have a solution for this problem?

Thx in advance.

Kind regards,

John Nijburg

4 REPLIES 4

Former Member
0 Kudos

We too have the same issue. Any luck on this one?

Thanks & Regards,

Manoj

0 Kudos

Hi all,

i have exactly the same problem. Are there any resolutions for this problem?

Thanks Max

0 Kudos

Hello,

I had the same problem today and I've fixed it by calling the FM in a different task (asychronous) .. this way the fugr/internal variables will be loaded again and you won't get this stupid error anymore. 

CALL FUNCTION 'L_TO_CREATE_MOVE_SU' STARTING NEW TASK lv_task

In case you need it syncronous use PERFORMING clause together with WAIT UNITL

Hope this helps!

Cristian

sapwise
Explorer
0 Kudos

IF you want to call it synchronous, because there is benefits in that(control errors in creations, and the exact error), since the FM is classified as RFC, you can always call it with the sintax DESTINATION 'NONE'.

Best Regards,

Carlos Soares