2009 Aug 17 11:57 AM
Hi all,
I have made an implementation of MB_DOCUMENT_BADI for MB1B and have to submit the data of this BADI to a Z prog using JOB_SUBMIT.
this Badi has an internal table XMSEG , I am not able to pass the values of this itab to the Z prog
EXPORT xmseg = GT_MSEG to memory id 'ZMSEG' .
import xmseg = GT_MSEG from memory id 'ZMSEG'.
But I am getting sy-subrc fail .
Please help .
Thanks
Supriya
Hi all,
I have made an implementation of MB_DOCUMENT_BADI for MB1B and have to submit the data of this BADI to a Z prog using JOB_SUBMIT.
this Badi has an internal table XMSEG , I am not able to pass the values of this itab to the Z prog
EXPORT xmseg = GT_MSEG to memory id 'ZMSEG' .
import xmseg = GT_MSEG from memory id 'ZMSEG'.
But I am getting sy-subrc fail .
Please help .
Thanks
Supriya
2009 Aug 17 12:16 PM
Hi,
Try like below:
itab[] = GT_MSEG []
EXPORT (itab) TO MEMORY ID id
Regards,
Himanshu
2009 Aug 17 1:13 PM
Hi ,
While doing EXPORT it is giving sy-subrc 0 , while import it is 4
Your inputs required
2009 Aug 17 1:18 PM
Hi,
Try
IMPORT GT_MSEG from memory ID id.
It could be becuse you are using 'equal to' to a importing parameter in the BADI.
Regards,
Himanshu
2009 Aug 18 4:55 AM
hai supriya
when exporting if it is giving sy-subrc 0 means it is exportign properly
and while imporitng if it is sy-subrc = 4 then the statement u have used is in correct
just check once the statement
m.a
2009 Aug 19 11:41 AM
Hi all
my query has been solved .
Instead of passing the internal table, i created a variant of the Z program programattically and passed my document no to the Z program .
Thank you for all your help .
2009 Aug 17 12:25 PM
hai supriya ,
instead use
set paramter statement
did u check wether ur code do not give any syntax error
m.a