04-03-2007 4:35 AM
hi,
i m using function module 'MATERIAL_BTCI_SELECTION_NEW'' for selecting the single view automatically in bdc,its working fine..but for another scenario i have to select the multiple views so for this what sud i do i how cud i pass multiple views in single parameter 'selection'.
plz help me.
thnx in advance.
04-03-2007 5:01 AM
Hi..Ravi.
I think Yesterday also u faced the same prob...
i have sent u the solution..which works very fine for multiple views also..
just follow these steps..while recording...
1.Give the material no..in mm02..
2.select any view ( which you don't want...)
3.Enter the plant number and press enter..
4.Now..u will get screen with view which u selected earlier u don't want...
5. there are two scroll buttons to sccroll views like...< >
6.Beside them a button will be there...
7. click on that..u will get all the views which are COnstant and never change..
8. select the views u want and then continue...recording..
Hope it solves ur problem...
Ram
09-10-2007 11:20 AM
hi ravi,
cod u send me the coding how to define and call that FM.
bcoz me too have the same requirement now.very urgent.
Thanks in advance.
Senthil kumar
09-10-2007 2:12 PM
We had to make a BDC recently for multiple views. For most of them we used BAPI_MATERIAL_SAVEDATA, but there are some views which are not available (Accounting 2 for example).
For others there are some other BAPIs, as BAPI_MATINSPCTRL_SAVEREPLICA for Quality Management, or BAPI_OBJCL_CHANGE fo Classification.
Anyway, for those views that need to be filled using BDC, the better way we have seen is to select at the beginning of BDC the Basic Data 1 view (which is always at the top of the list and is not dependent of the views that are available for a particular material) and then navigate between views with the following OK_CODEs:
Basic data 1 = SP01
Basic data 2 = SP02
External Objects = SP03
Classification = SP04
Sales: Sales Org. Data 1 = SP05
Sales: Sales Org. Data 2 = SP06
Sales: General/Plant Data = SP07
Foreign Trade: Export Data = SP08
Sales and Distribution Text = SP09
Purchasing = SP10
Foreign Trade: Import Data = SP11
Purchase order text = SP12
MRP 1 = SP13
MRP 2 = SP14
MRP 3 = SP15
MRP 4 = SP16
Forecast = SP17
Work scheduling = SP18
Production resources and tools = SP19
General Plant Data / Storage 1 = SP20
General Plant Data / Storage 2 = SP21
Warehouse Management 1 = SP22
Warehouse Management 2 = SP23
Quality Management = SP24
Accounting 1 = SP25
Accounting 2 = SP26
Cost Estimate 1 = SP27
Costing 2 = SP28
Plant stock = SP29
Storage location stock = SP30