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

BAPI or FM for Source List (ME01 TCode)

Former Member
0 Likes
8,265

Hello,

I have a requirement to upload master data for Source List which is T-Code ME01. Now, as there is a Table Control in it, we are having trouble using LSMW because when there is more than 1 record for the given Material Plant Combination, it fails to handle the 2nd Record. There is a table Control in the T-Code ME01 in which if we go by the Recording in LSMW, we would have the 2nd Record overwrite the 1st Record when we actually try to upload the Data.

So, is there a BAPI by which we can achieve this requirement? Please let me know.

Thanks and Regards,

Venkata Phani Prasad Konduri

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
4,669

check this.

ME_MAINTAIN_SOURCE_LIST

10 REPLIES 10
Read only

GauthamV
Active Contributor
0 Likes
4,670

check this.

ME_MAINTAIN_SOURCE_LIST

Read only

Former Member
0 Likes
4,669

HI

there is a standard IDOC present in LSMW.jus check this

Message Type->SRCLST

Basic Type-> SRCLST01

hope this helps

regards

Aakash Banga

Read only

viquar_iqbal
Active Contributor
0 Likes
4,669

<Ignore>

Read only

Former Member
0 Likes
4,669

Hi,

try this FMs

ME_MAINTAIN_SOURCE_LIST

WV_GENERATE_SOURCE_LIST

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
4,669

Issue resolved.

Thanks and Regards,

Venkata Phani Prasad K

Read only

0 Likes
4,669

Hi

How u resolved the issue. have u used BDC or BAPI ?

Read only

0 Likes
4,669

Hello Manjunath,

I have neither used BDC or BAPI Method to upload SourceList but used the LSMW-IDOC method using;

IDoc Type : SRCLST01

Message Type : SRCLST

Process Code : SRCL

Inbound Posting Program : IDOC_INPUT_SRCLIST

It worked fine for me. Try this out.

Thank You,

Venkata Phani Prasad K

Read only

0 Likes
4,669

H Prasad,

Could you please provide some screen shots of your LSMW regarding steps 2, 3, 4 and 5?

Due to I am using that Idoc type and I still have the issue that only update the last record.

Thanks in advance!

Alex

Read only

0 Likes
4,669

Hi Venkat,

I have requirement for to create source list with Multiple records can you help me in this regard.

can you let me know thre structure of the input file and the LSMW steps 2 to 5.

Thanks and regards

Venkat

Read only

Former Member
0 Likes
4,669

Hello,

there's a problem in standard IDOC inbound processing - it can handle only INSERT entries into the source list. Not modify, not delete entries.

If you are ok with only inserting new entries, I'd suggest you to go th IDOC way.

Otherwise you can use BDC, but here you can face issues with adressing the correct row with its index (e.g. you can't modify line item on 50th row)

But I managed to create a code to manipulate with source list items via FM ME_DIRECT_INPUT_SOURCE_LIST - you can check at my blog oprsteny.com