Equipment number not saved in AS02
Hi All,
Client is trying to link equipment number to asset master via change asset AS02.
After saving the asset master they are not able to see the equipment number.
We did the below customization and also implementer OSS notes 1329249 but nothing seems to be working.Please note client does not want to create new equipment number he want to link existing equipment to asset (AS02)
If anyone has solution for this issue please share with me...
SPRO--> Financial Accounting --> Asset Accounting --> Master Data --> Automatic Creation of Equipment Master Records.
Edit asset master record
Create equipment NO SYNCHRONIZATION
Change equipment NO SYNCHRONIZATION
Edit equipment master record
Create asset NO SYNCHRONIZATION
Change asset DIRECT SYNCHRONIZATION AFTER SAVING
SPRO--> Financial Accounting --> Asset Accounting --> Master Data -->Assign master data fields of assets and equipment
5 BUKRS Company Code BUKRS Company Code
10 TXT50 Description SHTXT Equipment descriptn
15 INVNR Inventory number INVNR Inventory number
20 KOSTL Cost Center KOSTL Cost Center
25 WERKS Plant SWERK Maintenance plant
30 STORT Location STORT Location
35 GSBER Business Area GSBER Business Area
40 LIFNR Vendor ELIEF Vendor
45 HERST Manufacturer HERST Manufacturer
50 LAND1 Country of origin HERLD Country of manufact.
55 ANLN1 Asset EQUNR Equipment
Thank you in advance...
Cheers,
Blessy.
Dear:
Your question contains answer ... Please change "Change equipment NO SYNCHRONIZATION" into DIRECT SYNCHRONIZATION AFTER SAVING and also make sure that Synchronization button is on in AS02 for relevant assets in Allocation tab. Please do this and revert back. Please also refer to an excellent article about PM & AA synchronization. Hope it will help you solve your issue.
http://help.sap.com/saphelp_46c/helpdata/en/4f/71db54448011d189f00000e81ddfac/content.htm
Regards
Similar Messages
-
MIGO - GR - Others -- Serial Number Not saved for Movement Type : 561
Hello,
I am trying to post good receipt-other ( for movement type 561) using MIGO transaction. I have specified all required data.
Also depending on the item qty., I entered serial number in serial number tab.
Its creating document successfully. However if I try to display same document using MIGO, serial number is missing.
I tried to debug the code and I realized its not saving serial number itself.
For other movement type its creating document with correct serial number.
If I repeat same process using same data using transaction MB11 its posting successfully and I can see serial number using MIGO transaction as well.
One more thing which I've noticed is when I post document using MIGO, Account assignment details are missing. However with MB11 I can see account assignment data too.
Would be really appreciated if someone can help me on this. I dont know If I'm missing any configuration part here.
Thanks & Rgds,
NileshAny help Experts?
Nilesh -
Changes on equipment are not saved at the backend (MAM30_031)
Hi,
if I change some equipment data e.g. street and city on the client, this changes are not done at the equipment in the backend. Status of MAM30_031 is I-Finished which holds the correct changed data inside. But if I now look into the equipment at the backend, there's still the old data. Changes done at the backend are synchronized fine to the client, but not the other way.
Any idea why this doesn't work?
Thank you and regards,
FlorianHi Florian,
here is what I would do:
1. Check in "O-Sent" in a sequence which is a response for the change in equipment what is the status of your change. There should be something like, "All top updated successfully...", or "Conflict...", or "BAPI return...". That will give you and idea what happens with your change.
2. If you "Successful"... message or no message - that is garanteed BAPI problem. You should open OSS message to SAP (component XAP-MBA-MAM).
Which version of MAM3.0 SR3 you are running? There is Patch02 which I know for sure has some fixes for technical object change fucntionality. (If you are on the lower version: reintsallation will be required, there are SynBo changes either in Patch01, or Patch02, don't remember exactly which).
Cheers,
Larissa Limarova -
Equipment Number not showing after created through IE01
Hi,
We have created a Equipment through IE01...after it system shows a message - Equipment XXXXXXXX and asset XXXXXXX created...
But when we want to see it through IE03 or in master table EQUI (or in all equipment related tables), this is not showing...
Also system showing information - Express document "Update was Terminated" received from author "XYZ"...
Pleas guide..No....not using User Exit...
But in SM13, this is showing an Error in Status column...
After db click on it, showing like this...
1.. ITOB_CALL_BADI V1 Initial
2.. MCI1_STATISTICS_UPD_V2 V2 Initial
3.. CLVF_VB_INSERT_CLASSIFICATION V1 Error
4.. STATUS_UPDATE V1 Initial
5.. BG00_WARRANTY_LINK_UPDATE V1 Initial
6.. OBJECT_NUMBER_INSERT_GENERIC V1 Initial
7.. ITOB_BUF_EQ_SAVE_UPD_TASK V1 Initial
8.. ANLA_WRITE_DOCUMENT V1 Initial
9.. RA_ASSET_MODIFIKATION V1 Initial
As indicated on 3rd line, showing error...
and after db click on it, showing an popup..in which giving Error Details -
00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
If duplicate record exists, then where they are??? No Table updated....
Plz guide.. -
My friend recently switched from iphone to blackberry, but my messages to her are still sent as imessage. how can i send it as a normal message? she doesn't receive any of my messages. her phone number is saved in my phone under the phone tab, not iphone.
Sounds like your friend didn't disable iMessage on his/her iphone before switching. Have your friend do the following:
Go to: https://supportprofile.apple.com/MySupportProfile.do
Log in if not already logged in.
Click on "edit products"
Click on the "x" to the right of his/her old iPhone.
Click "unregister"
This should unregister it with the iMessage server, which will allow you to send texts as normal SMS.
On your iPhone make sure you have Settings>Messages>Send As SMS set to ON. -
hello...my questions is related to objective C..
Is it possible to display name of the person who is calling me whose number is saved in my local database but not in iphone contacts ?.ashish35,
No one from Apple here - we're just users like you. All I can tell you is that electronic fail and with MacBook Pros (and most notebooks) the components are so integrated as to make a repair to the logic board practically impossible, hence the high prices charged for repairs.
Only you can decide if you want to have your computer repaired or put the money towards the purchase of a new computer. If you do decide to purchase a new unit I would suggest that you also purchase the AppleCare Protection Plan which increases your warranty from one year to three years.
Sorry and good luck,
Clinton -
My iPhone 5 does not show caller name even though the number is saved with a name in contacts
My iPhone 5 does not show caller name even though the number is saved with a name in contacts
Contact your carrier. Caller ID is a carrier feature.
-
While creating import GR ,system is not saving commercial invoice number
Hi,
While creating import GR ,system is not saving commercial invoice number in database table.
Is there any enhancement or sap note to solve this isssue?
Regards,
Madhu.Hi,
please follow the process as told u will not have any errors.
1. create import PO with all the duties. But here there are some duties which are supposed to be paid to the customs. so we select the condition type and click on conditiondetail icon and here we enter the Customs vendor number and save the PO.
2. if release of PO is there release
3. then invoice is made with customs vendor by selecting planned delivery costs in the options on the right of the screen... The number generated here will be ur Commercial invoice number which you enter while doing J1IEX_C and GR
4.Then capture excise invoice J1IEX_C
5. Then do a GR with PO
6. Then post excise invoice J1IEX_P
7. Then again do a envoice with the same PO number but select Goods/Service Items on the right.
This is the procedure to be followed for import cycle in CIN
Thanks & regards,
Kiran
Edited by: Kiran. V on Apr 28, 2008 9:30 AM -
5800 not saving voicemail number
As I mentioned on another post - have had my 5800 changed (yet again - think I am up to my 5th now)
Realised that my voicemail number was wrong - So went into Settings, Calling, Call Mailbox and then in the options and chose Change Number.
Entered the new number, pressed ok - message came up saying voice mailbox number saved to phone memory. Exited all the menus. However, if I then go back into the menus the number was not saved - it always seems to default back to the one stored on my sim card and does not save or use the one on the phone memory.
Anyone else suffer this problem? or does anyone have a solution.
Many thanks. EonI had the same problem, and i think it was after updating to firmware 20......I also had the problem that most of my my incomming calls whent directly to my voicemail even though my phone havent made a sound, After several af calls to Nokia Servicecenter and my telephon company, provider (I don´t now what i is called but like Vodaphone) they suggested me to go to a Nokia Service center to get them to make an update. I did, and it solved the problem.
I was told that Nokia Service centers can make af more complete update which I wasn´t able to do by PC suite.
Message Edited by mceinar on 25-Apr-2009 11:35 PM -
would number automatically save an .xlsx file I opened and modified but not saved? I've lost a file with many edits...
kearly - thanks a million for posting both the question & the reply! I just unchecked that little box by accident, & couldn't figure out for the life of me how to fix it. Thanks again!!
-
Hi,
This may be a config issue but I'm trying to help our Business Analyst sort out a problem.
He has created a new Notification type Q7 and in config has set Screen Type Hdr = H500, Screen Type Object = 0100 (Functional Location + equipment +assembly).
Our problem is that the equipment number is not being saved in the Notification table (QMEL).
Can anyone point us in the right direction please? Either there is more to do in config or we need to use a Badi/Enhancement point?Hi Luke,
Thanks for that - I realised there was a typo, should have read VIQMEL (View)
Anyway, I've solved the problem using an enhancment point in the screen to save the equipment number using a parameter Id and then a Badi to retrieve it and populate the struture for saving. It all works fine now.
I would have thought this wasn't necessary tho if config is OK - we'll have to look into that more carefully at some point.
Jan -
Issue during Equipment Number through IE01
Hi,
When we create an Equipment Number through IE01, then An Asset number is also created with that...
Now issue is that automatically created Asset Number Description, is picking as Company Code number... How can we change the Asset Number Description during Equipment Number generation...
We don't want change description after Asset number generated through AS02...
Please guide...HI
Assignment of SHTXT(PM) to TXT50(AA) is also OK. However please check that the setting Specify Conditions for Synchronization of Master Data is set to synchronised or not.
Please go through the documentation
Assign Master Data Fields of Assets and Equipment
Use
In this IMG activity, you assign fields from Asset Accounting (FI-AA) to fields in Plant Maintenance (PM) for the synchronization of asset and equipment master data.
If you made appropriate settings in the Specify Conditions for Synchronization of Master Data IMG activity, then for example, when you create an asset master record, the system automatically creates an equipment master record, and sychronizes the fields of the equipment master record, based on the field assignments.
On the other hand, the system can also (depending on the settings you make) automatically create an asset master record when you create an equipment master record.
Example
You assign the cost center field of Asset Accounting to the cost center field of Plant Maintenance. When you create an asset, the cost center entered in the asset master record is automatically adopted in the equipment master record, which is created automatically.
Standard settings
SAP provides certain standard assignments for master data fields.
Activities
1. Deactivate assignments that you do not need. You can re-activate them easily at a later point if you need them, without having to set them up again.
2. You can make additional field assignments, by choosing additional fields from Asset Accounting and assigning them to fields in Plant Maintenance. The available Asset Accounting fields are found in the SAAPM1 DDIC structure, while fields for Plant Maintenance are found in the SAAPM2 DDIC structure.
3. Activate the assignments, if you have made new ones.
If you want to make your own, even more specific assignments, you can create an enhancement project for customer exit AAPM0001. Using this project, you can add additional fields to the SAAPM1 and SAAPM2 structures, for which you can then make your assignments.
Notes
The system does not perform a check on the assignments you make. You have to check to ensure that the assignments you make are logical.
For more information, refer to SAP Note 370884 (and possibly related SAP Notes).
Shakti -
Capturing of Equipment Number Listed in Objects Tab of PM Order
Hi All,
I wanna to use User EXIT IWO10009 for Checking Some Values prior to save a order. inOrder there are some equipmens are mentioned in Objects tab page. now prior to saving the Order , i want to check whether Asset number is available in Equipment Master for the Equipments mentiones in Objects Tab Page. If it found the value then it should allow to save the Order otherwise it should POP up a message showing " The Equipment &EQUNR& is Not Having Asset Number, Kindly Get it update First" Order Save is Not Possible."
Regards
RajHi,
Get the equipment number from importing parameters of the exit CAUFVD_IMP-EQUNR .....
now fetch the data from master data of euipment table EQUI ....wrt that equipment number ......
if for the same record does not exits pop up the message using ...
POPUP_DISPLAY_MESSAGE
function module .....
call function 'POPUP_DISPLAY_MESSAGE'
exporting
titel = 'This is a popup message'
msgid = '00'
msgty = 'E'
msgno = '001'
msgv1 = 'Message Variable 1'
msgv2 = 'Message Variable 2'
msgv3 = 'Message Variable 3'
msgv4 = 'Message Variable 4'.
Thanks,
Shailaja Ainala. -
Excise invoice is not saving and not showing datas
in erxcise invoice i ve made settings as per the sap best practices then also the excise invoice is not saved and not generated also
please help me to solve the problem
the error is coming like this
Error in allocating Excise invoice number Interval not found Number object J_1IEXCLOC
Message no. 8I336
i ve already maintainthe number range for this object in tool in tax in goods moment
please give some better advice for the excise invoice setting.Sub Transaction type determines the subcontracting attributes and determines the accounts for the posting while doing a sub contracting transaction.
Sub transaction type is also used for determining the accounts while
doing excise removals.
Within CIN the account determination is based on the transaction type.
So normally you can have a single set of accounts for Excise
utilization. In case you need alternate account determination for
handling various scenarios you can define sub transaction types. The
sub transaction types and corresponding account assignments needs to be
maintained in CIN customization
To make customization of Sub Transaction type, goto
<b>SPRO --> Logistics General --> Tax on Goods Movements --> India --> Account Determination and check whether you have assigned second and third one, viz. "Specify Excise Accounts per Excise Transaction and Specify GL Accounts per Excise Transaction".</b>
Check
<b>Taxes on goods mvnt--indiaaccnt determination---specify excise accnts for excise transaction...maintain the sub transction type , ip or 01,
against the appropriate ETT</b>
Message was edited by:
sam masker -
Storage location Data is not saving in table MARD using BAPI method.
Hi Experts,
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC, "Plant Data for Material
MARD. "Storage Location Data for Mate
DATA: BAPI_HEAD LIKE BAPIMATHEAD, "MATERIAL
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.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
LGORT(4), "Storage location
MTART(4), "Material type
MATNR(18), "Material number
MAKTX(40), "Material description
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
BKLAS(4), "VALUATION CLASS
VERPR TYPE VERPR_BAPI, "MOVING PRICE
BWTTY(1), "Valuation Catogory
MLAST(1), "Price determination
MLMAA(1), "Material Ledger
EKLAS(4), "Valuation Class for sales order stock
QKLAS(4), "Valuation Class for Project Stock
ZKPRS TYPE DZKPRS, "Future price
ZKDAT TYPE DZKDAT, "Valid From Date
BWPRS TYPE BWPRS, "Tax price 1
BWPS1 TYPE BWPS1, "Tax price 2
VJBWS TYPE VJBWS, "Tax price 3
ABWKZ TYPE ABWKZ, "Devaluatin indicator
BWPRH TYPE BWPRH, "Commercial price 1
BWPH1 TYPE BWPH1, "Commercial price 2
VJBWH TYPE VJBWH, "Commercial Price 3
XLIFO(1), "LIFO/FIFO revelant
MYPOL(4), "Pool no for LIFO
MMSTA(2), "Plant specific material status
AUSME TYPE AUSME, "Unit of issue
QMATA(6), "Material Authorization group
RBNRM(9), "Catalog Profile
WEBAZ TYPE WEBAZ, "Goods reciept processing time in days
PRFRQ TYPE PRFRQ, "Recurring Insepction
SSQSS(8), "QM Control key
QZGTP(4), "Certificate Type
QSSYS(4), "Required QM system for vendor
END OF INT_MAT.
DATA: V_MATNR TYPE MARA-MATNR.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
S_LGORT FOR MARD-LGORT MEMORY ID STL,
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.
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.
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 WERKS IN PLANT
AND LGORT IN S_LGORT.
WRITE:/ MARC-WERKS, "Plant
MARD-LGORT, "Storage location
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
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MBEW-BKLAS, "VALUE CLASS
MAKT-SPRAS, "Language key
MBEW-BKLAS, "Valuation Class
MBEW-VERPR, "Moving price
MAKT-MAKTX, "Material description
MBEW-BWTTY, "Valutaion Catogorey
MBEW-MLAST, "Price Determination
MBEW-MLMAA, "Material Ledger
MBEW-EKLAS, "Valuation class for Sales order stock
MBEW-QKLAS, "Valutaion Class for Project Stock
MBEW-ZKPRS, "Future Price
MBEW-ZKDAT, "Valid From Date
MBEW-BWPRS, "Tax price 1
MBEW-BWPS1, "Tax price 2
MBEW-VJBWS, "Tax price 3
MBEW-ABWKZ, "Devaluatin indicator
MBEW-BWPRH, "Commercial price 1
MBEW-BWPH1, "Commercial price 2
MBEW-VJBWH, "Commercial Price 3
MBEW-XLIFO, "LIFO/FIFO revelant
MBEW-MYPOL, "Pool no for LIFO
MARC-MMSTA, "Plant specific material status
MARC-AUSME, "Unit of issue
MARC-QMATA, "Material Authorization group
MARA-RBNRM, "Catalog Profile
MARC-WEBAZ, "Goods reciept processing time in days
MARC-PRFRQ, "Recurring Insepction
MARC-SSQSS, "QM Control key
MARC-QZGTP, "Certificate Type
MARC-QSSYS. "Required QM system for vendor
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-LGORT = MARD-LGORT. "Storage Location
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
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-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-BKLAS = MBEW-BKLAS. "VALVATION CLASS
INT_MAT-VERPR = MBEW-VERPR. "MOVING price
INT_MAT-BWTTY = MBEW-BWTTY. "Valutaion Catogorey
INT_MAT-MLAST = MBEW-MLAST. "Price Determination
INT_MAT-MLMAA = MBEW-MLMAA. "Material Ledger
INT_MAT-EKLAS = MBEW-EKLAS. "Valuation class forS.O Stock
INT_MAT-QKLAS = MBEW-QKLAS. "Valutaion Class for Project
INT_MAT-ZKPRS = MBEW-ZKPRS. "Future Price
INT_MAT-ZKDAT = MBEW-ZKDAT. "Valid From Date
INT_MAT-BWPRS = MBEW-BWPRS. "Tax price 1
INT_MAT-BWPS1 = MBEW-BWPS1. "Tax price 2
INT_MAT-VJBWS = MBEW-VJBWS. "Tax price 3
INT_MAT-ABWKZ = MBEW-ABWKZ. "Devaluatin indicator
INT_MAT-BWPRH = MBEW-BWPRH. "Commercial price 1
INT_MAT-BWPH1 = MBEW-BWPH1. "Commercial price 2
INT_MAT-VJBWH = MBEW-VJBWH. "Commercial Price 3
INT_MAT-XLIFO = MBEW-XLIFO. "LIFO/FIFO revelant
INT_MAT-MYPOL = MBEW-MYPOL. "Pool no for LIFO
INT_MAT-MMSTA = MARC-MMSTA. "Plant specific material
INT_MAT-AUSME = MARC-AUSME. "Unit of issue
INT_MAT-QMATA = MARC-QMATA. "Material Authorization group
INT_MAT-RBNRM = MARA-RBNRM. "Catalog Profile
INT_MAT-WEBAZ = MARC-WEBAZ. "Goods reciept processing
INT_MAT-PRFRQ = MARC-PRFRQ. "Recurring Insepction
INT_MAT-SSQSS = MARC-SSQSS. "QM Control key
INT_MAT-QZGTP = MARC-QZGTP. "Certificate Type
INT_MAT-QSSYS = MARC-QSSYS. "Required QM system for
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
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.
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.
FORM UPDATE_MM.
LOOP AT INT_MAT.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = INT_MAT-MATNR
IMPORTING
OUTPUT = INT_MAT-MATNR
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
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'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
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_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARC1-PUR_STATUS = INT_MAT-MMSTA.
BAPI_MARC1-ISSUE_UNIT = INT_MAT-AUSME.
BAPI_MARC1-QM_AUTHGRP = INT_MAT-QMATA.
BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
BAPI_MARC1-INSP_INT = INT_MAT-PRFRQ.
BAPI_MARC1-CTRL_KEY = INT_MAT-SSQSS.
BAPI_MARC1-CERT_TYPE = INT_MAT-QZGTP.
BAPI_MARC1-QM_RGMTS = INT_MAT-QSSYS.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-PUR_STATUS = 'X'.
BAPI_MARCX-ISSUE_UNIT = 'X'.
BAPI_MARCX-QM_AUTHGRP = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARCX-INSP_INT = 'X'.
BAPI_MARCX-CTRL_KEY = 'X'.
BAPI_MARCX-CERT_TYPE = 'X'.
BAPI_MARCX-QM_RGMTS = 'X'.
Accounting 1
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEW1-MOVING_PR = INT_MAT-VERPR.
BAPI_MBEW1-VAL_CLASS = INT_MAT-BKLAS.
BAPI_MBEW1-VAL_CAT = INT_MAT-BWTTY.
BAPI_MBEW1-ML_SETTLE = INT_MAT-MLAST.
BAPI_MBEW1-ML_ACTIVE = INT_MAT-MLMAA.
BAPI_MBEW1-VM_SO_STK = INT_MAT-EKLAS.
BAPI_MBEW1-VM_P_STOCK = INT_MAT-QKLAS.
BAPI_MBEW1-FUTURE_PR = INT_MAT-ZKPRS.
BAPI_MBEW1-VALID_FROM = INT_MAT-ZKDAT.
*ACCOUNTING 2
BAPI_MBEW1-TAXPRICE_1 = INT_MAT-BWPRS.
BAPI_MBEW1-TAXPRICE_2 = INT_MAT-BWPS1.
BAPI_MBEW1-TAXPRICE_3 = INT_MAT-VJBWS.
BAPI_MBEW1-DEVAL_IND = INT_MAT-ABWKZ.
BAPI_MBEW1-COMMPRICE1 = INT_MAT-BWPRH.
BAPI_MBEW1-COMMPRICE2 = INT_MAT-BWPH1.
BAPI_MBEW1-COMMPRICE3 = INT_MAT-VJBWH.
BAPI_MBEW1-LIFO_FIFO = INT_MAT-XLIFO.
BAPI_MBEW1-POOLNUMBER = INT_MAT-MYPOL.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
BAPI_MBEWX-VAL_CLASS = 'X'.
BAPI_MBEWX-VAL_CAT = 'x'.
BAPI_MBEWX-ML_SETTLE = 'X'.
BAPI_MBEWX-ML_ACTIVE = 'X'.
BAPI_MBEWX-VM_SO_STK = 'X'.
BAPI_MBEWX-VM_P_STOCK = 'X'.
BAPI_MBEWX-FUTURE_PR = 'X'.
BAPI_MBEWX-VALID_FROM = 'X'.
BAPI_MBEWX-TAXPRICE_1 = 'X'.
BAPI_MBEWX-TAXPRICE_2 = 'X'.
BAPI_MBEWX-TAXPRICE_3 = 'X'.
BAPI_MBEWX-DEVAL_IND = 'X'.
BAPI_MBEWX-COMMPRICE1 = 'X'.
BAPI_MBEWX-COMMPRICE2 = 'X'.
BAPI_MBEWX-COMMPRICE3 = 'X'.
BAPI_MBEWX-LIFO_FIFO = 'X'.
BAPI_MBEWX-POOLNUMBER = 'X'.
*Storage Locations
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.
WRITE:/ BAPI_HEAD-MATERIAL, BAPI_MARC1-PLANT ,BAPI_MARD1-STGE_LOC.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
<b> STORAGELOCATIONDATA = BAPI_MARD1
STORAGELOCATIONDATAX = BAPI_MARDX</b>
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN-MESSAGE.
ENDIF.
ENDLOOP.
ENDFORM.
<b>i am using this bapi method to copy materials from one plant to another plant using storage location so here what happenig is everyting is going correct but only the storage location data is not saving in table mard so any body faced this kind of problem please tell me.... and one more dbt
bapi_marcx-pur_status = 'x' what is 'X' here??? is that mandatory field or required field ???
points wil be rewarded.
reagrds,
sunil k airam.In the HEADDATA structure, STORAGE_VIEW should also be set as 'X' , in order to update storage location data
for example
BAPI_HEAD-STORAGE_VIEW = 'X'.
Also, PUR_STATUS corresponds to field MARA-MSTAE whose domain has value table T141, therefore values in the field are checked against T141
Edited by: Harris Veziris on May 12, 2008 12:37 PM
Maybe you are looking for
-
Lost Adobe trials during restore, help please
Two days ago I downloaded PS and Dreamweaver trials. I had to do a restore and when I looked; all new Adobe programs were gone. What should I do to get back to the trials I have already downloaded?
-
How do you make an expanadble text box in a pdf form?
How do you make a text box expand automatically in a pdf form?
-
Difference in functional modules
Dear all, What is the difference between functional modules FI_period_Determine and Period_day_Determine? Under which scenarios they are used? Thanks and Regards, vijay
-
Re: Using this site with the new IE9...
Apparently one needs to activate the compatability mode to be able to use this discussion forum correctly. A click on the little "torn page" symbol to the right of the url address/search bar is needed. Hope this is not considered too off-topic.
-
Hi, SAP Experts, compare to procedural abap object oriented progrming is much useful regarding to performance level. let me know abt information on that which i mentioned here.