06-23-2005 4:24 PM
Hello,
I am pretending to use the FM 'MB_CREATE_GOODS_MOVEMENT',
as it would be used by MIGO.
I need to pass qty in KG and also additional qty in L.
When I run it manually in MIGO and debug, everything is OK, when trying to run it from the program, I got the error only when trying to pass the table t_ms2int to the FM.
Do you have any idea how to fill the table parameter: t_ms2int
and where to find any documentation about the other parameters of this FM?
Are there some other options for automatization of MIGO goods receipt.
At the moment I call
CALL FUNCTION 'MB_SET_BAPI_FLAG'
and then:
call function 'MB_CREATE_GOODS_MOVEMENT'
exporting
imkpf = s_imkpf
xallp = 'X'
xallb = ' '
xallr = 'X'
ctcod = g_tcode
oia_pass = 'X'
i_oib_calculate = l_oib_calculate
importing
emkpf = s_emkpf
tables
emseg = i_emseg
imseg = i_imseg
t_ms1int = i_t_ms1int
t_ms2int = i_t_ms2int.
Any tips would be appreciated!
Regards,
JOLA
06-23-2005 4:34 PM
Hi Jolanta,
If you are appending the table t_ms2int before passing it to the FM try running it without appending ie just pass the structure values instead of appending it. If did not get any luck try the other way, append the table t_ms2int and pas it to the FM.
Let me know if you still have any blocks,
Thanks,
Subhash
06-24-2005 10:21 AM
Hello,
my question is rather: if there are any rules describing values that <b>must</b> be passed to MB_CREATE_GOODS_MOVEMENTS in t_ms2int table or in others structures when passing this table.
Like e.g. qty in basic unit of measure for given material. Do you know?
Regards,
JOLA
06-24-2005 10:31 AM
06-24-2005 10:48 AM
Hi,
there is not enough information in that link:
There is only:
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
...
TABLES
EMSEG = I_MM2_EMSEG
imseg = i_mm2_imseg
...
I need also two other tables (and would like to know something more about them):
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
...
TABLES
EMSEG = I_MM2_EMSEG
imseg = i_mm2_imseg
t_ms1int = i_t_ms1int
t_ms2int = i_t_ms2int.
...
But thanks for your time,
Kind regards,
JOLA
06-24-2005 11:33 PM
06-29-2005 9:16 AM
Because it doesn't support the QCI - quantity conversion interface.
I am still in trouble
Please give some more sugestions.
Regards,
JOLA
06-29-2005 11:26 AM
I used BAPI_GOODSMVT_CREATE a lot of times and never have problems.
What do you mean by "quantity conversion interface" ?
Are you sure that it's not supported by BAPI ?
Krzys
06-29-2005 12:00 PM
I am sure I cannot use BAPI_GOODSMVT_CREATE. QCI is a module for oil products, that helps dealing with quantities in different temperatures. And I need to use it in this task.
I've been using MB_CREATE_GOODS_MOVEMENTS when using QCI and it's working fine (this one is also called from MIGO transaction).
This time I need to pass additional tables
t_ms1int = i_t_ms1int
t_ms2int = i_t_ms2int
and that creates a problem.
JOLA
06-29-2005 12:17 PM
You are likely using IS-OIL I assume.
Couple of info from OSS :
"When calling function module MB_CREATE_GOODS_MOVEMENT, it is possible to pass the additional quantities for an HIM material. Now, the system checks if these quantities are correct, if the indicator MANEN is set to the initial value when passing the additional quantity
table to the function module." OSS 430472
Check OSS note 607156 that talks about how to call this FM to pass additional quantities. (You will likely have to update table TOIBCALC_INTRN with your program details). This note explicitly talks about how to use this FM to post goods movement with these additional tables, so it might be what you are looking for.
cheers,
06-30-2005 12:08 PM
It was high time for me to check the oss notes, I haven't done that before.
Thank you!
Kind regards,
JOLA
06-29-2005 11:49 AM
06-29-2005 12:35 PM
At the moment it is:
UOM 'L12' not found in appendix table (material 52001071 plant 5331)
Why do I have to to pass it (I have already gone via missing L, KG, M15 and now it's missing L12.)
I would like to find some general rules describing passing the table t_ms2int.
Regards,
JOLA