Application Development and Automation 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: 
Read only

Help needed in FM

Former Member
0 Likes
1,787

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

5 REPLIES 5
Read only

former_member189059
Active Contributor
0 Likes
1,091

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.

Read only

0 Likes
1,091

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

Read only

0 Likes
1,091

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

Read only

varma_narayana
Active Contributor
0 Likes
1,091

Hi..

Try Performing WHERE USED LIST on these FMs.

So that you can find how these functions are called from Std programs.

regards.

Read only

0 Likes
1,091

I tried searching for the where used list on ME_MAINTAIN_SOURCE_LIST

It only returned my demo program and nothing else