LSMW for uploading assets using BAPI
Hi.
I am trying to upload assets from a flat file into the standard table using LSMW with BAPI.
I could upload the assets by calling the BAPI from an ABAP report. But when I use the same BAPI in LSMW it gives an error while maintaining structure relationships.
I created different source structures for header segment, general data and for depreciation areas on same level. While assigning these structures to target structures it asked for maintaining hierarchy between them. After I created that hierarchy I could maintain the relationships properly. But the read program was not generated.
Please help me in this.
Thank you.
Hi Savitha.
Thanks for the reply.
The identification field need to be defined in case of data maintained for several source structures in one file. I am maintaining the data for each source structure in a separate file.
Still it is giving me the same problem that is not generating the read program.
If I dont maintain the hierarchy in source structures then it is generating the read program but then gives error while converting the data.
Don't know how to proceed.
Similar Messages
-
Upload the data for sales order using BAPI
hi experts,
how to upload the data for sales order using BAPI.
what is the FM?
it would be much helpful if i have the sample code as i am very new to BAPI.
thanks and Regards
ShyamHi Shyam
Its very useful for u
BAPISDORDER_GETDETAILEDLIST
BAPI_ACC_SALES_ORDER_CHECK
BAPI_ACC_SALES_ORDER_POST
BAPI_ACC_SALES_QUOTA_CHECK
BAPI_ACC_SALES_QUOTA_POST
Reward all the helpful answers..
With Regards
Navin Khedikar -
For transaction code MD61, I want to upload data using BAPI
Hi,
for transaction code MD61, I want to upload data using BAPI.
Which BAPi I ll call ?
Can anyone suggest me how to do it with any simple example program ?Refer the thread for details about coding-
BAPI_REQUIREMENTS_CREATE
Reards,
Amit -
Which method is easiest for uploading data using LSMW?
which method is easiest for uploading data using LSMW (Direct method or batch input method) bcs I am facing lot of problem using batch input method while recording.Even I cannot use direct method using standard program.can anyone tell me some other easiest way for uploading MM01.?
I personally used the direct input way 6 years ago and it was a little bit of a struggle cause I was very new to SAP at the time. But it worked out to be ok in the end. You just have to keep messing with it till the errors are clear and then you can upload for real. The test mode is a nice touch, you can get rid of all of the errors before actually uploading the data.
Regards,
Rich Heilman -
Hi All,
I am uploading data for fixed assets using LSMW with bapi -
business object - BUS1022
Method - FIXEDASSET_CREATEINCLVALUES
Message Type - FIXEDASSET_CREATEINCLVALUES02
According to project settings group asset and group asset subnumber are mandatory fields for depreciation area 15. When i am running the lsmw i am getting the error
"DEPRECIATIONAREAS-GRP_ASSET ("Group asset") is a required entry field in depreciation area 15. The field was not supplied with data when the BAPI was called."
Please help me how to solve the problem...
I am copying the lsmw for which group asset and group asset sub number were not included and i am adding those two fields in my lsmw and i am not able to upload the data because of the error. Previously these two fields were not mandatory and LSMW was working fine.
Thanks,
GovindaHi Govinda,
Please try with the following code , if it is useful then please allocate points to me
*& Report ZASSET_CREATE
REPORT zasset_create.
DATA:
input parameters to the bapi
input_key LIKE bapi1022_key,
gen_data LIKE bapi1022_feglg001,
gen_datax LIKE bapi1022_feglg001x,
posting_info LIKE bapi1022_feglg002,
posting_infox LIKE bapi1022_feglg002x,
posting_data LIKE bapifapo_gen_info,
acquis_data LIKE bapifapo_acq,
time_dep_data LIKE bapi1022_feglg003,
time_dep_datax LIKE bapi1022_feglg003x,
real_estate LIKE bapi1022_feglg007,
real_estatex LIKE bapi1022_feglg007x,
allocations LIKE bapi1022_feglg004,
allocationsx LIKE bapi1022_feglg004x,
extensionin TYPE TABLE OF bapiparex,
origindata LIKE bapi1022_feglg009,
origindatax LIKE bapi1022_feglg009x,
it_depreciationareas TYPE TABLE OF bapi1022_dep_areas,
wa_depreciationareas TYPE bapi1022_dep_areas,
occurs 0 with header line,
it_depreciationareasx TYPE TABLE OF bapi1022_dep_areasx,
wa_depreciationareasx TYPE bapi1022_dep_areasx,
occurs 0 with header line,
it_investment_support TYPE TABLE OF bapi1022_inv_support,
occurs 0 with header line,
output parameters from the bapi
asset_number LIKE bapi1022_1-assetmaino,
sub_number LIKE bapi1022_1-assetsubno,
out_return LIKE bapiret2,
out_return2 LIKE bapiret2.
input_key-companycode = 'CAT1'.
gen_data-assetclass = '00003000'.
gen_datax-assetclass = 'X'.
gen_data-descript = 'Testing BAPI'.
gen_datax-descript = 'X'.
gen_data-serial_no = '1111'.
gen_datax-serial_no = 'X'.
gen_data-base_uom = 'KG'.
gen_datax-base_uom = 'X'.
*Append the Depreciation keY VALUE EQUAL TO LINA to the internal table.
wa_depreciationareas-area = '01'.
wa_depreciationareas-descript = 'Book deprec.'.
wa_depreciationareas-dep_key = 'LINA'.
wa_depreciationareas-ulife_yrs = '2'.
wa_depreciationareas-ulife_prds = '3'.
wa_depreciationareas-exp_ulife_yrs = '5'.
wa_depreciationareas-exp_ulife_prds = '3'.
*wa_depreciationareas-EXP_ULIFE_SDEP_YRS
*wa_depreciationareas-EXP_ULIFE_SDEP_PRDS
*wa_depreciationareas-ORIG_ULIFE_YRS
*wa_depreciationareas-ORIG_ULIFE_PRDS
wa_depreciationareas-change_yr = '3'.
*wa_depreciationareas-dep_units = '3'.
*wa_depreciationareas-odep_start_date = '01012005'.
*wa_depreciationareas-sdep_start_date = '01012005'.
*wa_depreciationareas-INTEREST_START_DATE
*wa_depreciationareas-READINESS
*wa_depreciationareas-INDEX
wa_depreciationareas-AGE_INDEX
wa_depreciationareas-var_dep_portion = '200'.
wa_depreciationareas-scrapvalue = '20'.
*wa_depreciationareas-currency = 'USD'.
*wa_depreciationareas-currency_iso = 'USD'.
*wa_depreciationareas-NEG_VALUES
*wa_depreciationareas-GRP_ASSET
*wa_depreciationareas-GRP_ASSET_SUBNO
*wa_depreciationareas-ACQ_YR
*wa_depreciationareas-ACQ_PRD
*wa_depreciationareas-SCRAPVALUE_PRCTG
APPEND wa_depreciationareas TO it_depreciationareas.
CLEAR: wa_depreciationareas.
wa_depreciationareasx-area = '01'.
*wa_depreciationareasX-DESCRIPT = 'X'.
*wa_depreciationareasX-DEACTIVATE = 'X'.
wa_depreciationareasx-dep_key = 'X'.
wa_depreciationareasx-ulife_yrs = 'X'.
wa_depreciationareasx-ulife_prds = 'X'.
*wa_depreciationareasX-EXP_ULIFE_YRS = 'X'.
*wa_depreciationareasX-EXP_ULIFE_PRDS = 'X'.
*wa_depreciationareasX-EXP_ULIFE_SDEP_YRS = 'X'.
*wa_depreciationareasX-EXP_ULIFE_SDEP_PRDS = 'X'.
*wa_depreciationareasX-ORIG_ULIFE_YRS = 'X'.
*wa_depreciationareasX-ORIG_ULIFE_PRDS = 'X'.
wa_depreciationareasx-change_yr = 'X'.
*wa_depreciationareasx-dep_units = 'X'.
wa_depreciationareasx-odep_start_date = 'X'.
wa_depreciationareasx-sdep_start_date = 'X'.
*wa_depreciationareasX-INTEREST_START_DATE = 'X'.
*wa_depreciationareasX-READINESS = 'X'.
*wa_depreciationareasX-INDEX = 'X'.
*wa_depreciationareasX-AGE_INDEX = 'X'.
wa_depreciationareasx-var_dep_portion = 'X'.
wa_depreciationareasx-scrapvalue = 'X'.
*wa_depreciationareasx-currency = 'X'.
*wa_depreciationareasx-currency_iso = 'X'.
*wa_depreciationareasX-NEG_VALUES = 'X'.
*wa_depreciationareasX-GRP_ASSET = 'X'.
*wa_depreciationareasX-GRP_ASSET_SUBNO = 'X'.
*wa_depreciationareasX-ACQ_YR = 'X'.
*wa_depreciationareasX-ACQ_PRD = 'X'.
*wa_depreciationareasX-SCRAPVALUE_PRCTG = 'X'.
APPEND wa_depreciationareasx TO it_depreciationareasx.
CLEAR wa_depreciationareasx.
*Append the Depreciation keY VALUE EQUAL TO LINb to the internal table.
break mukherar.
CALL FUNCTION 'BAPI_FIXEDASSET_CREATE1'
EXPORTING
key = input_key
REFERENCE =
CREATESUBNUMBER =
POSTCAP =
CREATEGROUPASSET =
TESTRUN =
generaldata = gen_data
generaldatax = gen_datax
INVENTORY =
INVENTORYX =
POSTINGINFORMATION =
POSTINGINFORMATIONX =
TIMEDEPENDENTDATA =
TIMEDEPENDENTDATAX =
ALLOCATIONS =
ALLOCATIONSX =
ORIGIN =
ORIGINX =
INVESTACCTASSIGNMNT =
INVESTACCTASSIGNMNTX =
NETWORTHVALUATION =
NETWORTHVALUATIONX =
REALESTATE =
REALESTATEX =
INSURANCE =
INSURANCEX =
LEASING =
LEASINGX =
IMPORTING
COMPANYCODE = company_code
asset = asset_number
subnumber = sub_number
ASSETCREATED =
return = out_return
TABLES
depreciationareas = it_depreciationareas
depreciationareasx = it_depreciationareasx.
INVESTMENT_SUPPORT =
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
WRITE: / 'Asset Number:',asset_number. -
Material creation for All VIEW using BAPI Function modules
Dear All,
I want to create materials for all views using BAPI F.Ms. By using BAPI_MATERIAL_SAVEDATA i have extended materials for for only specified views. now my requirement is to create Material with All views including Classfication view also. For this i found BAPI_OBJCL_CREATEFM.
Tell me that shall i use both Fm's at time to create material.Will it work? According to my knowledge we need to create Characters first ,then we should assign this character to this class, then while creation of material we should select this class .
so pls guide me the procedure to follow for both FM's .
Note : Pls don't suggest me LSMW OR BDC procedure.
regards,
Prashanth Maturu.Hi prashanth,
U can use both the FM. using BAPI_MATERIAL_SAVEDATA u can create all the views and for classification view use BAPI_OBJCL_CREATE. before assigning class to material u hve to make sure that the characteristics are uploaded and is attched to the class using transaction CL03.
Regards,
Anil N. -
Problem while creating assets using BAPI
Use table enhancement BAPI_TE_ANLU
Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
Regards,
Shyam -
Change serial number in Asset using BAPI
Hello Experts,
I need change serial number in Asset using BAPI. Could You give me some FM and examples which can do this.
Thanks in advance,
MarcinHi,
Can anyone tell me whether there is any concept of "Serial Number" that is associated with Assets in Asset Accouting module? I know there is something called as "Serial Number Profile" for Material/Plan Maintenance etc. But I'm wondering if something similar exist for Assets too. Can you tell me what is the transaction code/path for the same, if any?
Thanks
Mahesh -
Creation of material Documents for RMPM adjustments using BAPI
Hi
can any one help me Creation of material Documents for RMPM adjustments using BAPI...
i should be grateful to you...
advance thank you
with regards
venkatYou can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.
-
LSMW for Vendor Master using Batch Input/Direct
Hi Folk,
I'm trying to create a LSMW for Vendor Master using Batch Input/Direct Input and in the step Create Batch Inout Session a error message appears:
Trans. 1 XK01: Acct already exists; general area not being processed.
Can somebody help me with this...........Hi,
Check manually create vendor. Check with recording steps means strucutre creadred while you choose BDC recording option. With same data r u able to create vendor.
Regards
Md.MahaboobKhan -
Error in doing LSMW for uploading in Sale order
Dear Sir,
While doing test run for LSMW for uploading 15 Sale order , first order saved with no error and from second order the following error is displayed.
Exchange rate of 1 in INR 2 for date 25.05.2009 3 could not be determined.
Kindly do the needfull.Sir,
If we manually enter, order getting saved for all the sale order.
Why it is not possible while doing LSMW.
Please clarify.
Regards
Sethuraman -
LSMW for HR infotypes, using HRMASTER Bapi
hi,
can some one tell me the procedure of updating the infotypes using BAPI in LSMW
thanks,
RajHi
Welcome to SDN
Better use the fun module HR_INFOTYPE_OPERATION for the data upload into infotypes instead of LSMW
if needed see the link for LSMW-BAPI
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
<b>Reward points for useful Answers</b>
Regards
Anji -
Master data Load for Substance Creation : Using BAPI in LSMW ?
Hi ,
Had any one did a Master data load for creating a Substance in SAP RM. If so please let me know the best possible option. I am beeing trying to figure out the option to load Substances and its IDENTIFIER / MATERIAL ASSINGMNET from my legacy system. But I am not geeting a clue to use LSMW. ( Direct or BatchInput )
I am not seeing any BAPI for uploading it through the LSMW except the one BUS1077 ( method SAVEREPMUL ) and I guess this is used along with IDOC.
Appreciate your help and suggestion.
DavidThanks John.
I will try this option what you have suggested. Even I told by business team to look for CG33. But they were been telling me some format issue. Probably they would meant the same what you have said. But they were not aware of work around for this. your information is intresting.
The other option given to me was to create a recording for each and every Tab like Substance header / Identifier / Material assignment etc. seperately. Technically I don't feel good to create in that way. Do you think that is alernate approach.?
With Respect & Regards
David -
Create a LSMW for abumn asset transfer upload
hi all
we have a requirement form the user to upload all the existing assets to new asset shells through ABUMN, we need to create the
lsmw recording for the same, iam doing the lsmw recording and each time i do the recording the system says cant save the recording
has anyone worked on ABUMN asset transfer upload LSMW. please suggest your views on the same.
kind regards
aman
sap ficoHi ,
Please see below docuemnt which will help you in creating LSMW
LSMW for Functional Consultants in simple step-by-step way
Please search before you post -
LSMW FOR UPLOADING INFO RECORD-ME11 USING RECODING METHOD
Hi Guys,
I am uploading inforecords using LSMW recording method.
While recording I entered net price and other things properly.
When I am running the lsmw, net price filed becoming gray(Non editable) filed and system shows error as "it is not an input filed". But if i try to execute the t-code sepeartely this filed is in editable mode.
Please let me know what is the priblem.
Thanks
DhanuHi Dhanu,
there is the easiest method to do that you can follow the Direct input method the object for info record id 0060 and program is RM06IBI0,
With this method you will not get any problems. it is SAP recommended method.
Bhima
Maybe you are looking for
-
I received an email from my power supplier,in it I must click on bill to view,it downloads and asks if I want to open it with internet explorer or something else,so I click on firefox.All it does is keeps opening loads and loads of tabs across the to
-
Problem in picking base value from PO while doing goods receipt for multiple POs
Hi, Our user is trying to post goods receipt for two purchase orders which have same vendor. After the materials of two POs are allocated in the item detail screen and checked the item ok, system throwing error as "Please check the base value of the
-
Can Cloud Control 12c be on the Exadata client network?
Hi, there, We’re trying to configure our brand new X3 machine but we’re having a problem with connecting our Cloud Control OMS to it (the install of the agents fails because it can't connect to the hostname we provided on the management interface). W
-
I've just changed from a bt home hub to a netgear router (to get a better wireless signal) but now I can't send emails from the mail function on my imac (can't connect to smtp server) - I can still receive messages though. I can send messages if I l
-
Unable to work n photo collage
Just downloade Photoshop Element 8 Premeire. In the Organizer file, I am having trouble working in the photo collage. When clicking on it it tells me that I have to download Photoshop Element 8 and gives me the option if i want the 30 day trial. I