2007 Jun 24 7:51 PM
Hi all,
Can any send me the piece of code to use any of the following FM
to maintain source list ME01
ME_MAINTAIN_SOURCE_LIST
ME_POST_SOURCE_LIST
ME_GENERATE_SOURCE_LIST
Thanks
Hi all,
Can any send me the piece of code to use any of the following FM
to maintain source list ME01
ME_MAINTAIN_SOURCE_LIST
ME_POST_SOURCE_LIST
ME_GENERATE_SOURCE_LIST
Thanks
2007 Jun 25 4:38 AM
ME_GENERATE_SOURCE_LIST
This fills up a 'orderbuch' internal table based on the matnr value passed
data: order type eord occurs 0 with header line.
data: comim like BQPIM.
comim-matnr = '0001'.
CALL FUNCTION 'ME_GENERATE_SOURCE_LIST'
EXPORTING
comim = comim
* SVDATU =
* SBDATU =
* ALLGEN =
* I_NO_MATERIAL_READ =
tables
orderbuch = order.
loop at order.
write:/ order.
endloop.ME_POST_SOURCE_LIST
This just seems to clear some internal tables, not sure of its use
ME_MAINTAIN_SOURCE_LIST
not sure of this one either
i tried this but it gave me en error saying that 'Transaction code SE38 not defined'
data: f11(18) .
data: DATA_HAS_BEEN_CHANGED(18).
data: werk like EORD-WERKS.
werk = '1000'.
CALL FUNCTION 'ME_MAINTAIN_SOURCE_LIST'
EXPORTING
i_matnr = '0001'
i_werks = werk
* I_MT06E =
* I_NO_MATERIAL_READ =
* ACTIVITY = 'V'
IMPORTING
E_F11 = f11
E_DATA_HAS_BEEN_CHANGED = DATA_HAS_BEEN_CHANGED
EXCEPTIONS
PLANT_MISSING = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2007 Jun 25 7:04 PM
Hi Kris,
I tried both the ME_GENERATE_SOURCE_LIST'--i don't see any source list being created
Actually i don't see where i need too pass the date and vendor
and when i tried this
'ME_MAINTAIN_SOURCE_LIST' iam getting an error
tried this but it gave me en error saying that 'Transaction code SE38 not defined'
let me know
thanks
2007 Jun 26 3:58 AM
hello suchitra,
as i had mentioned, even i am getting the same error in ''ME_MAINTAIN_SOURCE_LIST'
i was hoping that someone else would offer some suggestion
as far as 'ME_GENERATE_SOURCE_LIST' is concerned, go to transaction ME01 and check for some material
if that material gives you some data then the same data will be retrieved by the function
in many cases you will find that in ME01 itself the data is blank
try it for some material that gives one or two rows in the next screen
2007 Jun 25 4:47 AM
Hi..
Try Performing WHERE USED LIST on these FMs.
So that you can find how these functions are called from Std programs.
regards.
2007 Jun 25 4:53 AM
I tried searching for the where used list on ME_MAINTAIN_SOURCE_LIST
It only returned my demo program and nothing else
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |