07-28-2005 6:30 PM
Hello *,
can anybody tell how I would get the GR number back after I've created it with the function module 'MIGO_DIALOG'?
Thanks a lot for your input!
07-28-2005 7:34 PM
Hello!
This may work for you. It is not the best solution, but it does not appear that the function wants to return that value.
tables: mkpf.
get parameter id 'MBN' field mkpf-mblnr.
Cheers,
John
07-28-2005 7:34 PM
Hello!
This may work for you. It is not the best solution, but it does not appear that the function wants to return that value.
tables: mkpf.
get parameter id 'MBN' field mkpf-mblnr.
Cheers,
John
07-28-2005 7:43 PM
I think that this may be the only way to solve your problem safely. John's suggestion may work, but I'm not sure that its the safest way.
report zrich_0001.
data: messtab type table of bdcmsgcoll with header line.
data: bdcdata type table of bdcdata with header line.
data: mode(1) type c value 'E'.
call transaction 'MIGO' using bdcdata mode mode
update 'S'
messages into messtab.
read table messtab with key msgid = 'MIGO'
msgnr = '012'.
if sy-subrc = 0.
write:/ 'Your material document number is ', messtab-msgv1.
endif.
Regards,
Rich Heilman