2013 Sep 24 11:33 AM
Hello ,
I want to extend material master from storage location to another storage location managed warehouse and WH views.
We have huge list of material master so we want the fastest way to upload material master. Which will be a faster way to extend material master for storage location and WH views:
1. Bapi - BAPI_MATERIAL_SAVEREPLICA. For bapi I understand we can't run in background. We only want to run background due to lot of materials. Even creating variant will not help as we have to upload materials with different bins.
2. LSMW Standard batch input method - Can i use it to extend material master view for storage location and WH views only
regards
Anand
2013 Sep 24 12:08 PM
Hi Anand,
Where is your Source data , is it from file(.txt or .xls) or "?".
Using BAPI , Call the above standard BAPI into "Z" or 'Y" Custom program , and Run that Custom Program(i.e. "Z" or 'Y") in background mode with data .
Regard's
Smruti
2013 Sep 24 12:28 PM
Hi,
I understand from my ABAPer that BAPI can't run in background mode, it can only execute in foreground. We would use .txt file for upload.
2013 Sep 24 12:31 PM
Hi Anand,
You can use BDC( Call Transaction or Session Method) or In LSMW u can use BDC Method.
It will helpful for u. i have done same requrement using BDC.if u use BDC Session method u can do in Background mode.
Regards,
OmChandra
2013 Sep 24 12:38 PM
Hi,
1. Direct input method: Using this method, its not possible to run in background. Because it doesnt create any session in SM35. The program name is RMDATIND. It directly posts the data to data base.
2. BAPI: Use the below method in LSMW:
Business Object BUS1001006
Method SAVEDATA
Message Type MATMAS_BAPI
Basic Type MATMAS_BAPI03
It creates and process IDOC's.
Since you have huge number of records i recommend 2nd option. creating IDOC's and processing is faster when compared to direct input method.
2013 Sep 24 12:41 PM
Hi,
BDC session is very slow to upload, even background is very slow.
regards
2013 Sep 24 12:50 PM
2013 Sep 24 1:34 PM
Hey Anand,
Mailed you the code and corresponding file format. See if it helps. Ask questions whenever unclear.
BR.
2013 Sep 24 1:59 PM
hello Ankit,
Thanks alot. Can you let me know what is the way or option to upload material in background if i use BAPI. We have 500,000 material master to be extended to Warehouse view.
BR
2013 Sep 24 6:41 PM
Hi Anand,
I am not telling that we dont get error log using direct input method. But only thing i told is by using BAPI method, the process will be fast when compared to direct method. By using BAPI method, IDOC's will be generated and then we just process, upload the data.
Please check the below links where we have complete documentation how to implement the BAPI lsmw for material master:
Regards,
Revanth
2013 Sep 25 4:28 AM
Hi Anand,
Call this "BAPI_MATERIAL_SAVEREPLICA" into SE38 - Z Program and run this Z Program in background mode with data .
Regard's
Smruti
2013 Sep 27 5:39 PM
I agree with Smruti--wrap the BAPI in an ABAP program and schedule/execute in background. That'll be the fastest and least error prone. Additional functionality can be added to generate load status/log spools for post load recon/validation.
2013 Sep 25 5:16 AM
Hi Anand,
How many fields you want to add values during extension?
If it is 5 or 6 the easiest way is to go for recording method. That you can run in background and it doesn't matter how many records you have.
2013 Sep 25 10:30 AM
Hello,
Thanks everyone, I am uploading 6 fields, so we decided to use "BAPI_MATERIAL_SAVEREPLICA". Save the file in application server.
Can we save the flat file in desktop to upload? My abaper says we can't upload from our desktop if we want to run it in background.
Many thanks. regards
2013 Sep 25 12:29 PM
To run in background, you need to keep the noepad on application server
2013 Sep 30 11:40 AM
Hello,
I am unable to use BAPI_MATERIAL_SAVEREPLICA bapi to update storage bin. I am able to extend material to storage location, warehouse, storage type but not able to update bin.The field remains blank.
Please advise.
regards
Anand
2013 Sep 30 11:53 AM
about which bin field are you talking? can you tell the table and field name from material master screens, and the structure and field name that you are using in the BAPI?
2013 Sep 30 12:09 PM
Hello,
I was able to resolve thanks, i was not updating X for the field STGE_BIN (LGTYP) in STORAGETYPEDATAX, so system was not updating bin in material master.
Thanks for reverting back so soon.
regards
anand
2024 Jun 17 2:58 PM
Hi Anand,
Hope this message finds you hale and healthy!
I have a similar requirement to use LSMW for uploading attachments to material master. Could you please tell me which BAPI you used in your case.
Thank you,
Poongodi Elangovan.