Mass upload of Fixed Bin Mappings
Hi All
Is there any way to define fixed bin mappings using CSV file etc? I know the transaction /scwm/binmat but here we can't upload for all fixed bins through csv etc.. or using the config where first posting will fix the product to bin. But I am looking for a csv file upload like we do for storage bins and stock uploads in EWM.
Thanks
Sasidhar Gupta
Hello,
i added an upload Button to the standard /scwm/binmat to read the csv file and i tried afterwards to parse and append data to the alv grid table.
But it doesn't really work and i still can't raise the check_data event to verify the inserted rows. Hier is my code...
WHEN '&FILE&UPLOAD'.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
MASK = '*.csv' "',*.*,*.'
MODE = 'O'
IMPORTING
FILENAME = P_FILE
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = P_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
READ_BY_LINE = 'X'
TABLES
DATA_TAB = lt_data
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
l_mode = cl_gui_alv_grid=>MC_STYLE_DISABLED.
LOOP AT lt_data INTO LV_RAW_DATA.
SPLIT LV_RAW_DATA
AT ';'
INTO
ls_bin_mat-lgnum
ls_bin_mat-entitled
ls_bin_mat-lgpla
ls_bin_mat-lgtyp
ls_bin_mat-matnr
ls_bin_mat-improv_fix
ls_bin_mat-datout
ls_bin_mat-maxqty
ls_bin_mat-maxqty_uom_dsp
ls_bin_mat-minqty
ls_bin_mat-minqty_uom_dsp
ls_bin_mat-rmmqty_fix
ls_bin_mat-created_at
ls_bin_mat-created_by.
Append ls_bin_mat to lt_bin_mat.
ENDLOOP.
IF me->mo_data_changed IS INITIAL.
CREATE OBJECT me->mo_data_changed
exporting
I_CALLING_ALV = g_grid " Rufender ALV
ENDIF.
CREATE DATA G_VERIFIER->MO_DATA_CHANGED->MP_MOD_ROWS LIKE LT_OUTTAB.
ASSIGN G_VERIFIER->MO_DATA_CHANGED->MP_MOD_ROWS->* TO <data>.
LOOP AT lt_bin_mat INTO ls_bin_mat.
CLEAR ls_outtab.
CLEAR ls_mod_rows.
CLEAR ls_mod_cells.
lv_index = sy-tabix.
REFRESH lt_celltab.
"'LGNUM'
ls_outtab-lgnum = ls_bin_mat-LGNUM.
ls_mod_cells-LGNUM = ls_bin_mat-LGNUM.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'LGNUM'.
ls_mod_rows-VALUE = ls_mod_cells-LGNUM.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'LGTYP'
ls_outtab-LGTYP = ls_bin_mat-LGTYP.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'LGTYP'.
ls_mod_rows-VALUE = ls_outtab-LGTYP.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'OUTCON'
ls_outtab-OUTCON = ls_bin_mat-IMPROV_FIX.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'OUTCON'.
ls_mod_rows-VALUE = ls_outtab-OUTCON.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'MAXQTY'
ls_outtab-MAXQTY = ls_bin_mat-MAXQTY.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'MAXQTY'.
ls_mod_rows-VALUE = ls_outtab-MAXQTY.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'MAXQTY_UOM_DSP'
ls_outtab-MAXQTY_UOM_DSP = ls_bin_mat-MAXQTY_UOM_DSP.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'MAXQTY_UOM_DSP'.
ls_mod_rows-VALUE = ls_outtab-MAXQTY_UOM_DSP.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'MINQTY'
ls_outtab-MINQTY = ls_bin_mat-MINQTY.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'MINQTY'.
ls_mod_rows-VALUE = ls_outtab-MINQTY.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'MINQTY_UOM_DSP'
ls_outtab-MINQTY_UOM_DSP = ls_bin_mat-MINQTY_UOM_DSP.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'MINQTY_UOM_DSP'.
ls_mod_rows-VALUE = ls_outtab-MINQTY_UOM_DSP.
APPEND ls_mod_rows TO LT_MOD_ROWS.
"'RMMQTY_FIX'
ls_outtab-RMMQTY_FIX = ls_bin_mat-RMMQTY_FIX.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'RMMQTY_FIX'.
ls_mod_rows-VALUE = ls_outtab-RMMQTY_FIX.
APPEND ls_mod_rows TO LT_MOD_ROWS.
ls_outtab-ENTITLED = ls_bin_mat-ENTITLED.
ls_mod_cells-ENTITLED = ls_bin_mat-ENTITLED.
ls_mod_rows-ROW_ID = lv_index.
ls_mod_rows-TABIX = lv_index.
ls_mod_rows-FIELDNAME = 'ENTITLED'.
ls_mod_rows-VALUE = ls_outtab-ENTITLED.
APPEND ls_mod_rows TO LT_MOD_ROWS.
ls_outtab-LGPLA = ls_bin_mat-LGPLA.
ls_mod_cells-LGPLA = ls_bin_mat-LGPLA.
ls_outtab-MATNR = ls_bin_mat-MATNR.
ls_celltab-fieldname = 'CREATED_AT'.
ls_celltab-style = l_mode.
INSERT ls_celltab INTO TABLE lt_celltab.
ls_celltab-fieldname = 'CREATED_BY'.
ls_celltab-style = l_mode.
INSERT ls_celltab INTO TABLE lt_celltab.
ls_celltab-fieldname = 'COUNT'.
ls_celltab-style = l_mode.
INSERT ls_celltab INTO TABLE lt_celltab.
ls_celltab-fieldname = 'DATOUT'.
ls_celltab-style = l_mode.
INSERT ls_celltab INTO TABLE lt_celltab.
INSERT lines of lt_celltab INTO TABLE ls_outtab-celltab.
APPEND ls_outtab TO gt_outtab.
APPEND ls_mod_cells TO me->MODIFIED_ROWS.
ENDLOOP.
PERFORM build_fieldcat CHANGING pt_fieldcat.
me->MO_DATA_CHANGED->MT_FIELDCATALOG = pt_fieldcat.
INSERT LINES OF LT_MOD_ROWS INTO TABLE me->MO_DATA_CHANGED->MT_MOD_CELLS.
INSERT LINES OF LT_MOD_ROWS INTO TABLE me->MO_DATA_CHANGED->MT_GOOD_CELLS.
INSERT LINES OF GT_OUTTAB INTO TABLE <data>.
CALL METHOD g_grid->refresh_table_display.
GS_LAYOUT-STYLEFNAME = 'CELLTAB'.
* Force the GridModified flag to on
CALL METHOD g_grid->IF_CACHED_PROP~SET_PROP
EXPORTING
propname = 'GridModified'
propvalue = '1'
EXCEPTIONS
others = 0.
DATA l_valid TYPE char01.
CALL METHOD g_grid->check_changed_data
IMPORTING
e_valid = l_valid.
CALL METHOD G_VERIFIER->HANDLE_DATA_CHANGED
exporting
ER_DATA_CHANGED = me->MO_DATA_CHANGED
CALL METHOD g_grid->refresh_table_display.
Similar Messages
-
I want to upload the values to one of the fields in material master. I have 70,000 materials. Is this possible through MM17 (Mass upload) ?
in MM17.
you select your materials for a change.
Then you enter the new value in the fields above and click the distribute button, this way all your selected materials will get this value as new value for the chosen field.
alternative to a fix value in the field above your records you can click the formula button, this way you can create a small formula to calculate the new field value. E.g. you can add 1 to your maximum stock level, means if you had 10 as maximum stock level then you will get 11, but if you had 1 then you will get 2...
but this formula button allows you as well to add some ABAP coding.
this way I can select on any other table and can then determine the new value based on your own conditions.
e.g. you lookup EORD table (source list) and if you find an entry there, then you write 111 in field X , if you dont find a source list, then you write 222 in field X. -
Mass upload of clauses in SAP Sourcing
Dear All,
Please let me know if we can do a mass uplod of clauses in SAP sourcing like we can do for the contract documents.
Requirement is customer wants to uplaod many number of clauses in clause library.
Thanks,
VinayHi,
I havent done this myself and there is no such workbook for performing this function. There is however a template.csv available which can be used for mass uploading Clauses. Here is how you can retreive it:
Goto Setup > Import Data > Create> In the Upload Import File, select any sample .csv for upload in the picker field. Then in the Object type field select Clause. Make sure you check the Preview Import checkbox. After clicking next, you can see the template.csv available there.
Once you download the CSV to your local machine, you can see the fields available there are fill out with a few Clauses to see if this works for you. The process for importing the CSV will remain the same as for any other template. The only caveat I see is that sometimes users try and fix the Content options with a word document and that may not be achievable via this option.
Hope this helps,
Vikram -
BDC for mass uploading Org Unit infotype
Hi,
I need do a mass uploading for one Org Unit Infotype via BDC. I created BDC batch loading file via SM35. I used PO10 to create Org Unit Infotype. After running TC "PO10", I need scroll down several Infotypes to reach the one that I need mass upload. But looks like BDC does not recognize the u201CScroll Downu201D, the batch loading file record by SM35 always selects the incorrect Infotype of Org Unit. Any suggestion to fix this? Thanks.
Regards,
Jimhere you go,
ABAP Development -
Mass Upload - ALE/IDOC or BAPI approch
Hi Guys,
I have to upload material master and we have options to do it by either ALE/IDOC or BAPI approach. The quantity of materials is quite huge. I tried to find some comparison about different approaches so as to know when to use what but not able to get exact information. Kindly suggest which one is usually preferred for mass upload and if possible provide some links for more references.
Thanks,
Brijesh SoniI have never seen such recomendations or benchmarks
SAP has a homepage for benchmarks: http://www.sap.com/solutions/benchmark/index.epx
the source is the same, then result is the same. all steps in LSMW are the same. you have to map the same fields in any method.
BAPI may have some more structures than IDOC or batch input. so just minutes more to assign the source structure to the target structure. .
it is a historical growth or development. It started with batch input to process SAP transactions en mass
then the IDOCs came to exchange data between 2 SAP systems.
and then we got the BAPIs to execute SAP transactions even from a non-sap system.
the result is in all three methods a created material master.
LSMW is a toolbox which gives you any of the available import methods.
there are other aspects to be considered in a migration.
What if you have errors? do you correct them yourself, or do you want the business people to fix them.
if you want business people to fix wrong data, then a batch import method may be the first option, as you can process it in foreground. It is too much complicated for a Non-IT-person to edit values in IDOCs. (even the performance may be better than a batch input) -
IProcurement - "mass upload" for non-catalog request
I want to find a way to do a "mass upload" when creating a non-catalog request.
Some back ground; I am not A DBA or a software developer; I am an engineering manager. I work for a large company and have responsibilities for creating Purchase Requisitions. I work from vendor quotes that contain many lines items, and always do non-catalog request because I often get special pricing or simply have non-catalog items. There are several fields on the requisition web page that need to be populated and it's quite cumbersome and time consuming to copy and paste 6 different data fields for 50+ line items. Since these are fields on a web page that correlate to some back end database there must be a way to populate them more quickly and easily, with an upload template, or via an API.
It is very, very difficult to find the proper internal resources to help me address this problem, and when I do find the right people I'm pretty sure I'll be told "it can't be done" I don't believe it can't be done. It may be difficult, it may require some work, it may require some development efforts, but from a purely technical point of view, populating multiple data fields with minimal user input is certainly doable. I want to be armed with solutions when I finally find the right people at my company. So, anybody out there figure this one out already? Once I do I'll be glad to share but hoping it's a know and fixed issue.
Thanks!!You are looking for the requisitions Open Interface.
Get this PDF from the documentation for release 11* and read chapter 6, it will guide you through the import process.
*For some reason this document is not available for newer releases (11i, 12), so you would rely on Metalink to look for notes. -
Hello!
I peform mass upload of BPs into CRM. I use FM BUPA_CREATE_FROM_DATA to create BP itself and BUPA_ADDRESS_ADD to save BP addresses and call these FMs in the same turn for each BP.
So, if I do that for 1-2 BPs, it works perfectly. All BP are saved in CRM with there addresses on COMMIT. As soon as the number of uploaded BP increases(between two commits), for example, up to 100, there is an error happens: E831(AM) in ADDR_MEMORY_SAVE.
As well as I understood, it happens because of address saving peformed before BP saving on commit. I tried first to save BPs only (with commit) and then their addresses, and it worked on mass upload without any error.
So, is there any idea about how to upload each BP with his address simultaneously without any error by mass upload?
Thank you.You can upload millions of records using these function modules.Infact I am doing the same.
Make sure that the data structures,tables which are passed to the Function modules are cleared for each time and FM's should be in the below mentioned order.
BAPI_BUPA_CREATE_FROM_DATA
BAPI_BUPA_ADDRESS_ADD
BAPI_TRANSACTION_COMMIT.
Thanks,
Thirumala. -
Hi,
we have to do mass upload of material master which includes lot of classification / characteristics for a plant. could you please let me know how do we do this and which is the best method? ( BAPI or BDC)
Thanks
Arun Vijay DHi,
Use direct input method using LSMW. The details are as:
For material master data:
Object: 0020
Method: 0000
Program: RMDATIND
For material classification
Object: 0130
Method: 0002
Program: RCCLBI03
Regards
Amit -
SAP WM-Fixed bin replenishment
Hi
While run replenishmnet for the fixed bin through LP21 ,system is generating individual Transfer orders for each Storage Bins.How to generate to single Transfer Order for all the bins selected in LP21.
Most urgent pls help
Regards
alagukumaranHi Aktar
Thanks for the reply
For the stoarge type if the user selects some 100 fixed storage bins to be replenished from the another storage bins ,currently system triggers 100 Transfer requirenment and will go to LB10 to convert TR to TO.
Need to generate one TO ,having replenishment details of all 100 fixed bins through LP21 ,How to proceed .kindly help me.
Regards
Kumar -
Mass upload of batch chracteristic Values using LSMW
Hi,
Is there any way from which I can mass upload the characteristic values of batch class.
LSMW- Bapi issue full in this case or have to go with recording or BAPI programming?
Please let me know the process.
Thanks in advance
Ravi KumarHi
Thanks For the help. I have used LSMW Direct input method.
I have used the below format in text file
Class/mat batch class char Char Value
023 Bunny 1011010 ZZ_COTTON_CLASS ZZ_BALE_QUANTITY 164.95
023 Bunny 1011011 ZZ_COTTON_CLASS ZZ_BALE_QUANTITY 164.61
023 Bunny 1011012 ZZ_COTTON_CLASS ZZ_BALE_QUANTITY 162.71
Its giving below error,
Error Changing Classification Data
Other
( CLAP_DDB_UPDATE_CLASSIFICATION: exception 13 )
023 Bunny 1011010 ZZ_COTTON_CLASS
Error Changing Classification Data
Other
( CLAP_DDB_UPDATE_CLASSIFICATION: exception 13 )
023 Bunny 1011011 ZZ_COTTON_CLASS
Thanks & Regards
Ravi Kumar -
Mass Upload of Photos in Portal
Hi,
I am trying to do mass upload of JPEG Photos.
I have tried using User Self Service and that works fine.
Reqmnt is that administrator needs to upload 100 photos as a bulk for each user.
I have read the document on help.sap.com and it certainly gave me few insights but if anyone has done this before, i would like to steps on how to go about doing this.
Regards,
DevHi;
Assign yourself to the role
pcd:portal_content/com.sap.pct/Collaboration/DemoRole
After that you will have the Link
"Collaboration Demo\People Centric"
This gives you the possibility to make a manual or
mass upload of user photos. -
Need to create a mass upload program for appraisal document creation for multiple employee
Hi Expertise,
I need to create a mass upload program for appraisal document creation for manager and his multiple employee
at a time using tcode appcreate.
Please help me out.
Best regards,
PriyaranjanHi Priyaranjan,
I think you can take the abap'ers help in creating the program. But u need to provide them the exact functionality and the required specifications in creating the appraisal document.
Even tcode also u can get it prepared by Abap'ers.
Thanks and Regards
Balaji -
Hi Expertise,
I need to create a mass upload program for appraisal document creation for manager and his multiple employee
at a time using tcode appcreate.
Please help me out.
Best regards,
PriyaranjanHi,
I have done appraisal document creation for bulk using txt file.
this fm used for single for creation in standard tcode (phap_prepare): 'WZ_HRHAP_0DOC_WZ01_START'.
So create ztcode usinh this fm for single form then record BDC for this tcode and called this tcode in that bdc for bulk creation .
While recording for single I have used manual option instead of automatic . -
Mass upload of commodity code VEU4
Hi,
While doing Mass uploading of commodity codes using VEU4 for Non European Clountry, for the Additional Info field NIHON , system by default generates =2 but our requirement it has to have a default value=0 which is to be used for both Import and Export.
How to make the field NIHON value=0?
Is it in the Text file or somewhere in the config?
Regards,
VengatHi Jurgen,
Thanks Very much, it helped.
Actual my requirement is to load the Commodity codes with the Field NIHON = 0 so that the commodity can be used for both Import and Export.
If I upload the text file in VIU4, by default system takes to NIHON = 1,
If I upload the text file in VEU4, by default system takes to NIHON = 2.
As mentioned in the OSS 1034696
If you confirm the dialog box with 'Yes', the system checks whether the 'Additional information' indicator of the old entry and the new entry are set differently. If this is the case, the system sets the 'Additional information' field to value 0 (Receipt / Import and Dispatch / Export).
Hence I have to execute the file in VIU4 or VEU4 for the first time to mass load of the commodity code ( by default it takes 1 or 2)
So to change the value from 1 or 2 to 0, need to execute the same file second time with YES in the dialog Box for the same data.
Note sure why SAP is so rigid here in this field NIHON as the same can be one of the Selection field.
Regards,
Vengat
Edited by: Vengata Raghavan on Aug 12, 2011 4:54 PM
Edited by: Vengata Raghavan on Aug 12, 2011 4:55 PM -
Hi everybody,
i am trying to upload user photos via mass upload iview. Therefore i create a folder (c:\photos). In this folder i have two files
a) mapping.properties.txt with the line: Anton=1011
b) 1011.jpg
I use the iView for Massupload from content provided by sap -> collaboration -> demo role -> iviews. I create a task with the following properties:
Task name: Mappupload
Upload from Folder: c:\photos
Photo type: NORMAL
Apply checked conditions: (no checked)
Use Mapping: (checked)
After starting the task the photo was not updated and there was nothing in the application log!?
What could be the problem? I can add the file manually but not through mass upload.
Has anybody use a mass upload?
regards,
Seed
Edited by: seed_mopo on Sep 26, 2008 11:04 AMHii
Pls Use these threads:
https://www.sdn.sap.com/irj/sdn/thread?messageID=48369#48369
https://forums.sdn.sap.com/click.jspa?searchID=16795891&messageID=4282098
https://forums.sdn.sap.com/thread.jspa?messageID=9087#9087
https://www.sdn.sap.com/irj/sdn/thread?threadID=257887
Thanks:
Hope it would be helpfull
Maybe you are looking for
-
Hi Gurus , When i upload the lockbox file in FLB2 , I am getting the following error message . Accounts receivable posting Error: (F5 263) The difference is too large for clearing No customer with MICR number . can you please tell me what i need to d
-
How to enable WPS on Westell 327W
I know I need to go into the router http://192.168.1.1/ but I have no idea what to do once I get there. I bought Netgear WNCE2001 Universal Wifi Internet adapter to connect my direct tv receiver to the internet...but I don't see how to enable the WP
-
Oracle Streams and Hetrogenous Enviornment
Hi, As we can use Streams in Heterogeneous environment, then let say we implemented streams for replication between MS SQL server and Oracle and data has to be replicated from Oracle to SQL server then on SQL server side what sort of configuration we
-
Why are my region lengths changing?
Doing takes for a guitar solo yesterday, I had all my take folders on the same track. When I was doing my comping I noticed that some of the region lengths of takes further along in the song were changed. At first I thought I may have accidendally se
-
TNS-12547 lost contact - listener log has TNS-12516??
OS: Win98 DB: Personal Oracle8i 8.1.6 Attempting to make connection from JDBC and eventually found out even TNSPING has problems. I have a listener configured on port 1521, using 127.0.0.1 as the host (I'm doing development on same machine). I do lsn