Valution Class
Dear all
I have create a new valution Class for service and maintained OBYC settings ,But for GR/IR posting (WRX)
its not picking assigned G/L account.Pl. suggest if any other setting needed or correct the existing one
Regards,
Hi,
Check the logic of FM COPCA_GSBER_MM_SET.
(1) when the stock line BSX exists, the Business Area (gsber) is set
as per the material (OMJ7).
(2) When no BSX line exists the Business Area is determined from the
CO accounting object.
Because services do not have stocks and there are no materials,
for the determination of the Business Area (gsber) in the
GR/IR the WRX key is crucial: In this case, there is the CO object
cost center and there is no stock line BSX exists, so the
Business Area of GR/IR line WRX in MIGO is from cost center.
regards,
Ashwini.
Similar Messages
-
DBM Creation of New Vehicle and the relationship with Valuation Class
HI SAP,
I'm having problem when creating new vehicle in /DBM/VM. The Valuation Class that i use for VEHI is 4010. when i click
on save the system show valuation class 3200 not allowed for material type vehicle config. i already check my valution class
configuration, My Materia Type VEHI does not link with 3200. how do i resolve this issue ?Commander Sauk,
From the error message it appears that valuation class tied up with your vehicle model is 3200.
Is it a very new model for which no vehicles created so far?
Can you please post accounting 1 view of material too showing valuation class as well as valuation category settings?
Please also check split valuation is correctly setup for plant you are selecting for vehicle.
check and reply with findings.
Thanks
Ritesh -
Valuation class in service master linked with G/L accounts
Dear Experts,
In service master what is the significance of Service category & service group? Is it required to assign G/L account like material type is required in material master? Is it necessary to hv 1:1 relationship in valuation class & G/L account in service master? Is their any way that we can see the G/L account in service master? Pls help to clarify my doubts.
Regds
Prashant B.Hi Manish
I assigned valuation class in service master and using same service master for service PO creation, but while doing GR system picks WRX account without valuation class but not the GL account assigned to the valuation class in service master?
I tried with assigning service group/ material group at PO item over view to same valution class in OMQW but still not able to post to separate GL account in OBYC. Is there anything missing?
As far as my understanding service PO WRX entries will be posted to the GL account witout valuation class.
Thanks -
Material groups, valuation classes and GL acccounts
HI Gurus,
I need to setup new material groups with descriptions, valuaiton classess and their related GL accounts. What steps do i nned to follow.
PLease explain '
Thanks
AnushaGo to transacition OMSF to define the material group
Go to transaciotn OMSK to define the valuation class
here you can define or use existing A/C ategory reference than create valuation calss and assign the A/C category to that valution class and next step you can assign the material type
G/L account you can define in FS00 transaciotn and you can assign them to the valution class in OBYC transcation. -
Mass change of valuation class
Hi Folks,
We need to change Valution class for almost 150 materials.
I'm referring SAP note:-160970 for this.
So,please guide me from where should I start?
I think I need to first check any open POs or stocks are there or not...right?Anything else?
But,if suppose I found a lot of POs and stocks for this material,then how would I clear this?
What are the transactions for Mass deletion od POs and production orders.
Please assist step by step as this will have huge impact on FI.
Thanks in advance....Hi
You can change the valuation class of the material if
NO Valuated stocks in the current period or in the previous period
No Open purchase orders or delivery schedule linesn
No Production orders for which a goods movement has already taken place
If valuated stocks already exist, you can change the valuation class only as follows: a) Post the stocks of the material to an interim account.
b) Change the valuation class in the material master record.
c) Post the stocks of the material back to their original account.
If open purchase orders already exist, you can only change the valuation class if you first flag the corresponding purchase order items for deletion.
If production orders exist for which a goods movement has already taken place, you can only change the valuation class if you first set the status of the production orders to Deleted.
MEMASSPO - Mass Maintenance of the Purchase order
More details refer to SAP note 160970
Edited by: sunny on Dec 8, 2008 2:21 PM -
Price control indicator and valuation class
All SAP Gurus,
Is there any relationship between price control indicator (V and S) and valuation class?
We want to change the price control for certain materials from V to S and for certain materials from S to V.
Regards,HI ,
There is no direct releation between valution class and the Price control.
Yes but a indirect relation.
it is by the maeterial Type .
in OMS2--we define the default Price control indicator.
in OMSK -we define the Material type and the Valution class linkage.
Know the Price control Indicator always triggers your value .and the way it has to be posted.(on a default value or a Purchase value on a weighted average basis)
and valuation class triggers ..where it has to be Posted.( GL account)
so it is how.
But there could some other implication of the chase of the Price control..becoz.your Previous period price and current period would implact.
you stock valution would impact.
so check all these before you Proceed
hope so it helps
Regards
Anjanna. -
Two Valuation Class for one material type which is split valuated
hi , I have a material number which is split valuated like Capital & Revenue. There are seperate inventory GL accounts for both Capital & Revenue. So whenever material is procured based on the nature either Capital or Revenue , Corresponding Inventory GL account gets debited. How t
It is very much possible. Material type is linked with Valution class by account category reference and has many to many relationships. Valution type is linked with account category reference.
1 You create the material at valuation category level in MM01
2 Extend the material for Val type 1 with Val cls 1 in accounting view
3 Extend the material for val type 2 with val cls 2 in accounting view
for example
If you have valution type IN & EX linked with ROH material type via account category reference then you have the option to selecte valution classes 3000, 3001, 3002, 3003 in Std SAP. You have to make sure that Automatic account determination setting are correct for the valustion classes selected in OBYC.
Hope it helps
Karthi -
Stock value and qty on particular date.
Hi All.
Could you you guide me in which transcation I will get the report of existing stock value and qty for a particular valution class on particular date like 15 Apr 2009.There is a transaction MB5B similar to my requirement but there is no Valuation class as selection.
Thanks in Advance
Regards
kattaHi,
You can get valuation class data thru MC.9 or MC.1 but problem is it is for month only
If you want to go for particular material analysis than use MB51 from go live to till date or MB5b with storage location selection
Regards,
Chetan Mistry -
Unit of measure error in BAPI_MATERIAL_SAVEDATA
Hi Guru's,
i am trying to upload the material master data using BAPI...while uploading ia m getting beloow error ..please guide me anyone you..where i am doing mistake.....
1st this error i am getting while executing:
internal unit HR ,language EN is not maintained.
and afetr execution in gs_return i am getting below error:
Unit of measure ****** is not defined; check your entry
error number :490
dont get tence for code and all the values ae moving properly into BAPI...and
here i am consider the unit of mesure as HR (hour)..
here i am caliculating like ex: for employe (material) generating bill in hour basis.that is per 1hour $100.
please let me know if my question is not clear..
thanks in advance and will full points to reply....
*& Report ZERP_MATERIAL_CREATE_UPLOAD
REPORT zerp_material_create_upload.
DATA:gs_bapimathead TYPE bapimathead,
gs_clientdata TYPE bapi_mara,
gs_clientdatax TYPE bapi_marax,
gs_plantdata TYPE bapi_marc,
gs_plantdatax TYPE bapi_marcx,
gs_forecastparameters TYPE bapi_mpop,
gs_forecastparametersx TYPE bapi_mpopx,
gs_valuationdata TYPE bapi_mbew,
gs_valuationdatax TYPE bapi_mbewx,
gs_salesdata TYPE bapi_mvke,
gs_salesdatax TYPE bapi_mvkex,
gs_storagelocationdata TYPE bapi_mard,
gs_storagelocationdatax TYPE bapi_mardx,
gt_materialdescription TYPE STANDARD TABLE OF bapi_makt,
gwa_materialdescription TYPE bapi_makt,
gt_taxclassifications TYPE STANDARD TABLE OF bapi_mlan,
gwa_taxclassifications TYPE bapi_mlan,
gt_prtdata TYPE STANDARD TABLE OF bapi_mfhm,
gwa_prtdata TYPE bapi_mfhm,
gt_prtdatax TYPE STANDARD TABLE OF bapi_mfhmx,
gwa_prtdatax TYPE bapi_mfhmx,
gt_unitsofmeasure TYPE STANDARD TABLE OF bapi_marm,
gwa_unitsofmeasure TYPE bapi_marm,
gt_unitsofmeasurex TYPE STANDARD TABLE OF bapi_marmx,
gwa_unitsofmeasurex TYPE bapi_marmx,
gs_return TYPE bapiret2.
TYPES:BEGIN OF gty_itab1,
matnr(18), "material
mbrsh(1), "industry sector
mtart(4), "material type
vkorg(4), "sales org
vtweg(2), "distr chan
kondm(2), "mat prcing grp
ktgrm(2), "acc asgn grp
dwerk(4), "plant
meins(3), "base uom
tragr(4), "tarns grp
matkl(9), "mat grp
spart(2), "division
ntgew(13), "net weight
gewei(3), "weight unit
werks(4), "plant
ladgr(4), "loading grp
dismm(2), "mrp type
mtvfp(2), "available check
disgr(4), "mrp grp
dispo(3), "mrp controller
beskz(1), "procurement type
prmod(1), "forecasting mode
bklas(4), "valution class
stprs(11), "std price
vprsv(1), "price control
peinh(5), "price unit
lgort(4), "storage location
maktx(40), "mat description
taxkm(1), "tax class
planv(3), "task list usage
brgew(13), "gross weight
mtpos(4), "gen it gross grp
END OF gty_itab1.
DATA:gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
gwa_itab1 TYPE gty_itab1.
TYPES:BEGIN OF gty_itab2,
abc(178),
END OF gty_itab2.
DATA:gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
gwa_itab2 TYPE gty_itab2.
PARAMETERS:p_files TYPE string.
*START-OF-SELECTION.
START-OF-SELECTION.
*using call method uploading CSV file into internal table
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_files
filetype = 'ASC'
TABLES
data_tab = gt_itab2
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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_itab2 INTO gwa_itab2.
gwa_itab1 = gwa_itab2-abc(178).
APPEND gwa_itab1 TO gt_itab1.
ENDLOOP.
LOOP AT gt_itab1 INTO gwa_itab1.
SPLIT gwa_itab1 AT ',' INTO
gwa_itab1-matnr
gwa_itab1-mbrsh
gwa_itab1-mtart
gwa_itab1-vkorg
gwa_itab1-vtweg
gwa_itab1-kondm
gwa_itab1-ktgrm
gwa_itab1-dwerk
gwa_itab1-meins
gwa_itab1-tragr
gwa_itab1-matkl
gwa_itab1-spart
gwa_itab1-ntgew
gwa_itab1-gewei
gwa_itab1-werks
gwa_itab1-ladgr
gwa_itab1-dismm
gwa_itab1-mtvfp
gwa_itab1-disgr
gwa_itab1-dispo
gwa_itab1-beskz
gwa_itab1-prmod
gwa_itab1-bklas
gwa_itab1-stprs
gwa_itab1-vprsv
gwa_itab1-peinh
gwa_itab1-lgort
gwa_itab1-maktx
gwa_itab1-taxkm
gwa_itab1-planv
gwa_itab1-brgew
gwa_itab1-mtpos.
*header data
gs_bapimathead-material = gwa_itab1-matnr.
gs_bapimathead-ind_sector = gwa_itab1-mbrsh.
gs_bapimathead-matl_type = gwa_itab1-mtart.
gs_bapimathead-basic_view = 'X'.
gs_bapimathead-sales_view = 'X'.
gs_bapimathead-purchase_view = 'X'.
gs_bapimathead-mrp_view = 'X'.
gs_bapimathead-storage_view = 'X'.
gs_bapimathead-account_view = 'X'.
gs_bapimathead-cost_view = 'X'.
*sales data
gs_salesdata-sales_org = gwa_itab1-vkorg.
gs_salesdatax-sales_org = '8888'. "'X'.
gs_salesdata-distr_chan = gwa_itab1-vtweg.
gs_salesdatax-distr_chan = '88'. "'X'.
gs_salesdata-mat_pr_grp = gwa_itab1-kondm.
gs_salesdatax-mat_pr_grp = 'X'.
gs_salesdata-acct_assgt = gwa_itab1-ktgrm.
gs_salesdatax-acct_assgt = 'X'.
gs_salesdata-delyg_plnt = gwa_itab1-dwerk.
gs_salesdatax-delyg_plnt = 'X'.
*client data
gs_clientdata-base_uom = 'HR '. "gwa_itab1-meins.
gs_clientdatax-base_uom = 'X'.
gs_clientdata-trans_grp = gwa_itab1-tragr.
gs_clientdatax-trans_grp = 'X'.
gs_clientdata-matl_group = gwa_itab1-matkl.
gs_clientdatax-matl_group = 'X'.
gs_clientdata-division = gwa_itab1-spart.
gs_clientdatax-division = 'X'.
gs_clientdata-net_weight = gwa_itab1-ntgew.
gs_clientdatax-net_weight = 'X'.
gs_clientdata-unit_of_wt = gwa_itab1-gewei.
gs_clientdatax-unit_of_wt = 'X'.
gs_clientdata-item_cat = gwa_itab1-mtpos.
gs_clientdatax-item_cat = 'X'.
*Plant data
gs_plantdata-plant = '8888'. "gwa_itab1-werks.
gs_plantdatax-plant = '8888'. "'X'.
gs_plantdata-loadinggrp = gwa_itab1-ladgr.
gs_plantdatax-loadinggrp = 'X'.
gs_plantdata-mrp_type = gwa_itab1-dismm.
gs_plantdatax-mrp_type = 'X'.
gs_plantdata-availcheck = gwa_itab1-mtvfp.
gs_plantdatax-availcheck = 'X'.
gs_plantdata-mrp_group = gwa_itab1-disgr.
gs_plantdatax-mrp_group = 'X'.
gs_plantdata-mrp_ctrler = gwa_itab1-dispo.
gs_plantdatax-mrp_ctrler = 'X'.
gs_plantdata-proc_type = gwa_itab1-beskz.
gs_plantdatax-proc_type = 'X'.
gs_plantdata-period_ind = 'M'. "HARD CODED FOR PERKZ peroid indicator
gs_plantdatax-period_ind = 'X'.
gs_plantdata-inhseprodt = '0'. "hard coded for DZEIT inhouse production
gs_plantdatax-inhseprodt = 'X'.
*forecast parameeters
gs_forecastparameters-plant = '8888'. "gwa_itab1-prmod.
gs_forecastparametersx-plant = '8888'. "'X'.
gs_forecastparameters-fore_model = gwa_itab1-prmod.
gs_forecastparametersx-fore_model = 'X'.
*valution data
gs_valuationdata-val_area = '8888'. "gwa_itab1-bklas.
gs_valuationdatax-val_area = '8888'. "'X'.
gs_valuationdata-val_class = gwa_itab1-bklas.
gs_valuationdatax-val_class = 'X'.
gs_valuationdata-std_price = gwa_itab1-stprs.
gs_valuationdatax-std_price = 'X'.
gs_valuationdata-price_ctrl = gwa_itab1-vprsv.
gs_valuationdatax-price_ctrl = 'X'.
gs_valuationdata-price_unit = gwa_itab1-peinh.
gs_valuationdatax-price_unit = 'X'.
*storage location dat
gs_storagelocationdata-plant = '8888'. "gwa_itab1-lgort.
gs_storagelocationdatax-plant = '8888'. "'X'.
gs_storagelocationdata-stge_loc = gwa_itab1-lgort.
gs_storagelocationdatax-stge_loc = '8888'. "'X'.
*material discription
gwa_materialdescription-langu = 'E'.
gwa_materialdescription-matl_desc = gwa_itab1-maktx.
*tax classification
gwa_taxclassifications-taxclass_1 = gwa_itab1-taxkm.
gwa_taxclassifications-depcountry = 'US '. "HARD CODE FOR TAX
*prt data
gwa_prtdata-plant = '8888'. "gwa_itab1-planv.
gwa_prtdatax-plant = '8888'. "'X'.
gwa_prtdata-prt_usage = gwa_itab1-planv.
gwa_prtdatax-prt_usage = 'X'.
*unitsof measure
gwa_unitsofmeasure-alt_unit = 'HR '. "gwa_itab1-brgew.
gwa_unitsofmeasurex-alt_unit = 'HR '. "'X'.
gwa_unitsofmeasure-unit_of_wt = 'KG'. "gwa_itab1-brgew.
gwa_unitsofmeasurex-unit_of_wt = 'X'.
gwa_unitsofmeasurex-sub_uom = 'X'.
gwa_unitsofmeasure-gross_wt = gwa_itab1-brgew.
gwa_unitsofmeasurex-gross_wt = 'X'.
*appending workarea to table's
APPEND gwa_materialdescription TO gt_materialdescription.
APPEND gwa_taxclassifications TO gt_taxclassifications.
APPEND gwa_prtdata TO gt_prtdata.
APPEND gwa_prtdatax TO gt_prtdatax.
APPEND gwa_unitsofmeasure TO gt_unitsofmeasure.
APPEND gwa_unitsofmeasurex TO gt_unitsofmeasurex.
*calling FM BAPI for uploading the Material master data
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = gs_bapimathead
clientdata = gs_clientdata
clientdatax = gs_clientdatax
plantdata = gs_plantdata
plantdatax = gs_plantdatax
forecastparameters = gs_forecastparameters
forecastparametersx = gs_forecastparametersx
valuationdata = gs_valuationdata
valuationdatax = gs_valuationdatax
salesdata = gs_salesdata
salesdatax = gs_salesdatax
IMPORTING
return = gs_return
TABLES
materialdescription = gt_materialdescription
unitsofmeasure = gt_unitsofmeasure
unitsofmeasurex = gt_unitsofmeasurex
taxclassifications = gt_taxclassifications
prtdata = gt_prtdata
prtdatax = gt_prtdatax.
Check the return table.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE: / 'Error occured while creating material'.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'material',gwa_itab1-matnr,'created'.
ENDIF.
ENDLOOP.Hi Aparna..
even with HUR also i am getting same error.....
is there any changes required in the SPRO .......
i mean in BAPI had ..unitofmeasure we have around 21 fields( here extra fields is DEL FLAG)
but in unitofmeasurex has only 20 fields...
we need to anything in SPRO for avoiding DEL FLAG.....
sorry if i am confusing u.....
thanks for responce and send few more inputs for resolving the issuee.... -
Updation not happening once after the material has been extened
Dear Guru's,
I want to extend materials from one plant to another plant. I am using BAPI_MATERIAL_SAVEDATA.
every thing is doing good but the material was updated in the destination plant. I have used BAPI_TRANSACTION_COMMIT' also. ans not all getting any any error message. In the return table i am getting success message. please help me. I am sending my code also. please gothrough and give suggestion . it very urgent.
points will be given for solving the problem.
Thanks in advance.
REPORT ZMMR_MATERIAL_EXTENSION.
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC, "Plant Data for Material
MARD. " Storage location
DATA : INDEX LIKE SY-TABIX.
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_MARD1 LIKE BAPI_MARD, " STORAGE LOCATION
BAPI_MARDX LIKE BAPI_MARDX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
for material updation*******
*data:mara_data type bapi_mara,
*mara_datax type bapi_marax,
*wa_bapi_te_mara type bapi_te_mara,
*wa_bapi_te_marax type bapi_te_marax,
*wa_valuepart(960),
*wa_valuepartx(960),
*t_extin type table of bapiparex,
*t_extinx type table of bapiparexx,
*d_extin type bapiparex,
*d_extinx type bapiparexx,
*ret type bapiret2.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
MTART(4), "Material type
MATNR(18), "Material number
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
TRAGR(4), "Transportation group
EKWSL(4), "Purchasing Value Key
marc
EKGRP(3), "Purchasing group
MTVFP(2), "Checking Group for Availability Check
LADGR(4), "Loading group
PRCTR(10), "Profit Center
WEBAZ like BAPI_MARC-GR_PR_TIME, "Goods receipt processing time in days.
PERKZ(1), "Period indicator
AWSLS(6), "Variance Key
DISGR(4), "MRP Group
DISMM(2), "MRP Type
DISPO(3), "MRP controller
DISLS(2), "Lot size (materials planning)
BESKZ(1), "Procurement Type
DZEIT like BAPI_MARC-INHSEPRODT, "In-house production time.
PLIFZ like BAPI_MARC-PLND_DELRY, "Planned delivery time in days.
makt
SPRAS(2), "Language key
MAKTX(40), "Material description
***mbew
BKLAS(4), "Valuation Class.
VPRSV(1), "Price control indicator
VERPR like BAPI_MBEW-MOVING_PR, "Moving Average Price
STPRS like BAPI_MBEW-STD_PRICE, "Standard price
PEINH like BAPI_MBEW-PRICE_UNIT, "Price unit
****mard
LGORT(4), "Storage location
END OF INT_MAT.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
*& Form DOWNLOAD_DATA
text
FORM DOWNLOAD_DATA.
*IF MATLTYPE-LOW NE 'SFGD' OR MATLTYPE-LOW NE 'SPRS'.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR .
CHECK MATLTYPE.
IF MARA-MTART = 'SFGD' or MARA-MTART = '' or MARA-MTART = 'SPRS'.
clear : MARA,INT_MAT.
continue.
ENDIF.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
CLEAR MARD.
SELECT SINGLE * FROM MARD WHERE MATNR = MARC-MATNR
AND WERKS = MARC-WERKS.
WRITE:/ MARC-WERKS, "Plant
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARA-TRAGR, "Trasaction Group
MARA-EKWSL, "Purchase Value key
MARA-IPRKZ, "Period indi.for. SLED.
MARC-EKGRP, "Purchasing group
MARC-MTVFP, "Availability check
MARC-LADGR, "Loading grp.
MARC-PRCTR, "Profit Center
MARC-WEBAZ, "GR processing time
MARC-PERKZ, "Period Indicator
MARC-AWSLS, "Variance key
MARC-DISGR, "MRP GROUP
MARC-DISMM, "MRP TYPE
MARC-DISPO, "MRP CONTOLLER
MARC-DISLS, "LOT SIZE
MARC-BESKZ, "PROCUREMENT TYPE
MARC-DZEIT, "IN-HOUSE PRD TIME
MARC-PLIFZ, "PLANT DELIVERY TIME
MBEW-BKLAS, "VALUATION CLASS
MBEW-VPRSV, "Price control indicator
MBEW-VERPR, "MOVING PRICE
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MAKT-SPRAS, "Language key
MAKT-MAKTX, "Material description
MARD-LGORT. "Storage location.
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-TRAGR = MARA-TRAGR. "Trasaction Group
INT_MAT-EKWSL = MARA-EKWSL. "Purchase Value key
INT_MAT-IPRKZ = MARA-IPRKZ. "Period indi.for. SLED.
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-MTVFP = MARC-MTVFP. "Availability check
INT_MAT-LADGR = MARC-LADGR. "Loading grp.
INT_MAT-PRCTR = MARC-PRCTR. "Profit Center
INT_MAT-WEBAZ = MARC-WEBAZ. "GR processing time
INT_MAT-PERKZ = MARC-PERKZ. "Period Indicator
INT_MAT-AWSLS = MARC-AWSLS. "Variance key
INT_MAT-DISGR = MARC-DISGR. "MRP GROUP
INT_MAT-DISMM = MARC-DISMM. "MRP TYPE
INT_MAT-DISPO = MARC-DISPO. "MRP CONTOLLER
INT_MAT-DISLS = MARC-DISLS. "LOT SIZE
INT_MAT-BESKZ = MARC-BESKZ. "PROCUREMENT TYPE
INT_MAT-DZEIT = MARC-DZEIT. "IN-HOUSE PRD TIME
INT_MAT-PLIFZ = MARC-PLIFZ. "PLANT DELIVERY TIME
INT_MAT-BKLAS = MBEW-BKLAS. "Valution class
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-VERPR = MBEW-VERPR. "Moving price
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
INT_MAT-LGORT = MARD-LGORT. " Storage location
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
*ENDIF.
ENDFORM. "DOWNLOAD_DATA
*& Form DOWNLOAD_FILE
text
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM. "DOWNLOAD_FILE
*& Form UPLOAD_FILE
text
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM. "UPLOAD_FILE
*& Form UPDATE_MM
text
FORM UPDATE_MM.
LOOP AT INT_MAT.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
BAPI_HEAD-MRP_VIEW = 'X'.
BAPI_HEAD-STORAGE_VIEW = 'X'.
BAPI_HEAD-QUALITY_VIEW = 'X'.
BAPI_HEAD-COST_VIEW = 'X'.
wa_bapi_te_mara-material = INT_MAT-MATNR.
wa_bapi_te_marax-material = INT_MAT-MATNR.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
sorage location.
BAPI_MARD1-PLANT = INT_MAT-WERKS.
BAPI_MARD1-STGE_LOC = INT_MAT-LGORT.
BAPI_MARDX-PLANT = INT_MAT-WERKS.
BAPI_MARDX-STGE_LOC = INT_MAT-LGORT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARA1-TRANS_GRP = INT_MAT-TRAGR.
BAPI_MARA1-PUR_VALKEY = INT_MAT-EKWSL.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
BAPI_MARAX-TRANS_GRP = 'X'.
BAPI_MARAX-PUR_VALKEY = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS . "PLANT-LOW.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARC1-AVAILCHECK = INT_MAT-MTVFP.
BAPI_MARC1-LOADINGGRP = INT_MAT-LADGR.
BAPI_MARC1-PROFIT_CTR = INT_MAT-PRCTR. " profit center and plant are same
BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
BAPI_MARC1-PERIOD_IND = INT_MAT-PERKZ.
BAPI_MARC1-VARIANCE_KEY = INT_MAT-AWSLS.
BAPI_MARC1-MRP_GROUP = INT_MAT-DISGR.
BAPI_MARC1-MRP_TYPE = INT_MAT-DISMM.
BAPI_MARC1-MRP_CTRLER = INT_MAT-DISPO.
BAPI_MARC1-LOTSIZEKEY = INT_MAT-DISLS.
BAPI_MARC1-PROC_TYPE = INT_MAT-BESKZ.
BAPI_MARC1-INHSEPRODT = INT_MAT-DZEIT.
BAPI_MARC1-PLND_DELRY = INT_MAT-PLIFZ.
BAPI_MARCX-PLANT = INT_MAT-WERKS . " PLANT-LOW.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-AVAILCHECK = 'X'.
BAPI_MARCX-LOADINGGRP = 'X'.
BAPI_MARCX-PROFIT_CTR = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARCX-PERIOD_IND = 'X'.
BAPI_MARCX-VARIANCE_KEY = 'X'.
BAPI_MARCX-MRP_GROUP = 'X'.
BAPI_MARCX-MRP_TYPE = 'X'.
BAPI_MARCX-MRP_CTRLER = 'X'.
BAPI_MARCX-LOTSIZEKEY = 'X'.
BAPI_MARCX-PROC_TYPE = 'X'.
BAPI_MARCX-INHSEPRODT = 'X'.
BAPI_MARCX-PLND_DELRY = 'X'.
Accounting
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-VAL_CLASS = INT_MAT-BKLAS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-MOVING_PR = INT_MAT-VERPR.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-VAL_CLASS = 'X'.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
************for testing purpose
*wa_valuepart = wa_bapi_te_mara.
*d_extin-structure = 'BAPI_TE_MARA'.
*d_extin-valuepart1 = wa_valuepart(240).
*d_extin-valuepart2 = wa_valuepart+240(240).
*d_extin-valuepart3 = wa_valuepart+480(240).
*d_extin-valuepart4 = wa_valuepart+720(240).
*wa_valuepartx = wa_bapi_te_marax.
*d_extinx-structure = 'BAPI_TE_MARAX'.
*d_extinx-valuepart1 = wa_valuepartx(240).
*d_extinx-valuepart2 = wa_valuepartx+240(240).
*d_extinx-valuepart3 = wa_valuepartx+480(240).
*d_extinx-valuepart4 = wa_valuepartx+720(240).
*append d_extin to t_extin.
*append d_extinx to t_extinx.
remove up to here only.
*WRITE:/ BAPI_HEAD, BAPI_MARC1.
call function 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
STORAGELOCATIONDATA = BAPI_MARD1
STORAGELOCATIONDATAX = BAPI_MARDX
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT.
extensionin = t_extin
extensioninx = t_extinx.
IF BAPI_RETURN-TYPE = 'S' .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = ''.
ENDIF.
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN-NUMBER,
BAPI_RETURN-MESSAGE.
ENDIF.
ENDLOOP.
ENDFORM. "UPDATE_MM
please give me reply
PrashanthWe have encountered the same problem at our company, and the following thread help us to resolve our problem:
Thanks to KevinCur.
Error while saving a .PDF File to a mapped drive
"It has to do with Protected Mode being turned on. I don't know if it was off by default & now it is on with the update but turning it off changes Adobe Reader's behavior back to what the users expect - a prompt warning you if you want to overwrite the existing file & then selecting Yes to overwrite.
To disable Protected Mode:
Start Adobe Reader
Edit - Preferences - Security (Enhanced)
Uncheck Enable Protected Mode at Startup
Close Preferences & Close Reader"
We unchecked the "Enable Protected Mode at startup" box --> Yes --> OK. Our users are happy now. ^_^ -
PO for Material not exixting in material master
Hi all,
I am creating a po for a material that is not exixting in material master.
I have taken document type NB, Given vendor no, Entered Material No, acc assigment as "X All Aux.acct.assgts".
Material Description, Quantity, Price, Currency, Plant, Material Group, GL Account. and saved the PO.
I done GR and When i am Saving system is Shooting an error "Account Determination for Entry 1200 WRX not possible"
Is the procedure done by me is Correct What is the acc assigment key to be taken.
Is it necessary to maintain a Material Group for this type of Material?
Any settings to be done in transaction event key?
Need to define any Vacluation class for this type of materials?
Regards,Dear,
This type of error is display at that time when you valuation class is not map with any G/L in OBYC for particullar transaction key.
So go in bellow direction.
Enter T-code OBYC.
Select WRX Transaction Key, Double click on it.
Enter your chart of accout.
Enter your valution class which is display in your error - 1200 than enter your G/L.
Than click on save button.
If it is useful for u, Please revert back.
Regards,
Mahesh Wagh -
Account are not hitting the sepearte G/ l accounts
Hi
we are working with account assigned Purchase order ( P) projects where the system is picking the G/L account thru valution class from the OBYC and we are giving the WBS element.In my PO we have different conditions for base price , frieght and others.
my goods reciept is nonvaluated and when i doing the invoice my conditons are appearing as seperate line items but the account is same as what is in PO.
My requirement is that i wanna to post Material cost and fright to sepearte G/L acount .
To me it seems that it should to that G/L account.
I wanna to post material cost and freight cost to sepearte ..........
Please suggest me how i should move so that my requirement can be meet.
Thanks and regards
DharThanks for your reply
See i tried to make PO for account assignment category K where i have to keen in the Cost center and if i do invoice for this PO then it is hitting the G/L account i want .But this is not the case when i make PO for account assignment P i.e is project where the system auto matically pickes the G/L account from the( valution class-Material & obyc setting).i have to assign the WBS element .When i am giving the G/L account here at the time of PO then how it is possible to Post the material cost and Frieght seperately to different G/l account.
regards -
Process order convertion problem
Hi All
When I am converting the Planned Order to Process Order I am getting a error message Not able to determine the consumption account.
Can anybody tell me how this problem can be solved.
Is there anything I have to do in customizing
Rregards
DhananjayHi Dhananjay,
check your material is been assigned to valution class in accounting view in MM02
if it is assigned then check GL account is given properly to that valution class.
take help of MM and FI consultant
Thanks
Bala
IF useful reward -
Why there is no account entry in GL account which link to VBR and GBB.
Hi,
I am trying to understand about transaction event key GBB. As per my knowledge, GBB is offsetting entry for Inventry BSX. There are many general modifier VBR, AUF, BSA etc under under GBB.
GL account '400082' has been assign to VBR for the material valution class ZVL1 and valution grouping code 0001.
I have issued material with movement type 201 for consumption (Cost Center) from stock. Hence there should be some account entry to GL account 400082 which link to VBR under GBB. I can see the accounting entry in inventry account and consumption accountm, but I can not see any entry in GL account that link to VBR. I am checking accounting entry in transaction code - FBL3N.
Please let me know why there is no entry to GL account that link to VBR and GBB. Appreciate if you can give some input about GBB concept with example.
Thanks in advance.
Regards,
sp sahuHi,
General modification key (Account modifier ) VBR is used for for 201 movement type where goods issue to cost center.You can also cross check in OME9 t.code where VBR Acct modification is assigned with cost object K.After posting goods issue with 201 movement type, you can cross check the accounting document ( by proper setting layout) where you can find
Account description...............................Transaction
Inventory A/C: ..................Cr.................BSX
Consumption A/C: ..............Dr................GBB
NOTE: In t.code:FBL3N, you will get document type of accounting document(WE,RE,ML,KZ,KE,UP etc) in main screen, but you can view all details by clicking document number and in next screen press F9 button.( by proper setting layout)
Regards,
Biju K -
Accounts not hitting sepearte G/L account
Hi
we are working with account assigned Purchase order ( P) projects where the system is picking the G/L account thru valution class from the OBYC and we are giving the WBS element.In my PO we have different conditions for base price , frieght and others.
my goods reciept is nonvaluated and when i doing the invoice my conditons are appearing as seperate line items but the account is same as what is in PO.
My requirement is that i wanna to post Material cost and fright to sepearte G/L acount .
To me it seems that it should to that G/L account.
I wanna to post material cost and freight cost to sepearte ..........
Please suggest me how i should move so that my requirement can be meet.
Thanks and regards
DharHi Dharmender,
When we are using pricing procedure with frieght condition , both value i.e basic value + freight value gets debited to material inventory account.
If you want to make it seperate, assign the account Key to freight condition and maintain G/L account for that acount Key.
IMP- Assign the subtotal ' 6 ' to freight condition so as only frieght value not added in net amount and it separetly posred to req G/l acct through Account Key.
OR Maintain the frieght condition at Tax procedure.
Rewards if issue gets resolved.
Maybe you are looking for
-
I have tried to: sync the songs, organize the library and consolidate files, copy and paste songs Nothing has worked so far. Also when my ipod comes up in my computer, the songs are not present there. Any help is much appreciated.
-
How can I get *computer* to use external DVD drive? (1.8 GHz PowerPC G5 Version 10.3.9)
-
Windows doesn't detect Zen V Plus he
I've just purchased the Creative Zen V Plus 4gb for my girlfriend but windows doesn't want to detect it, I have followed the?online suggestions with no?luck. It shows in my device manager but with an exclamation mark next to it, I've tried re-install
-
I NEED HELP QUICK! Its about SYSTEM PREFRENCES!!! :O
Well i downloaded a dock app the last week (btw im a mac newbie) anyway i downloaded and didnt want it. So i found it and deleted it. Not knowing i had deleted the wrong one and i only found out the other day that i had deleted it because i clicked d
-
PowerPoint Shuts Down When View Slide Show
I am using Office 2004 and when I try to View Slide Show, the program shuts down. It just started doing this. Have had it 2-1/2 years. I used Disk Repair. I Removed Office and Reinstalled. And, it still is doing that. Any suggestions?