LSMW using BAPI method for ME21N
Hi to all,
I am using LSMW BAPI method for the transaction ME21N Iam able to post a PO document successfully, But in my flat file I have a header and followed by item in the same line, while I was posting with same header for different line items its posting different PO's for different line items but suppose it has to post one document with multiple items.
My flat file fields are like this : (where as ABCD my header and rest are line items) I am using only one structure 'podata' in LSMW and I am not using any identifier.
header--Line items
A B C D S P Q W E X
A B C D 1 D 3 F K L
Business Object - BUS2012
Method - CREATEFROMDATA1
Message Type - PORDCR1
Basic Type - PORDCR101
As per my requirement if I have multiple line items for the same header then only one PO should be posted.
Could you suggest me, How can I achieve this.
Thanks,
Lahari
Hi Jurgen,
Thanks for your reply.
As poer your suggestion, I passed my flat file data into a single file and in the begin of transaction, I divided the data into 2 structures as Header & Item.
Still I am unable to achieve the desired results, can you please elaborate more on how SAP internally joins the structures again.
To be more clear my flat file data look like this :
217836 NB 1826162667 0127 00 1 LEAN SIX SIGMA PRIMER MRO Z 4.00 EA 60.00 1 EA
217836 NB 1826162667 0127 00 2 LEAN SIX SIGMA PRIMER MRO Z 4.00 EA 860.00 1 EA
217836 NB 1826162668 0127 00 1 LEAN SIX SIGMA PRIMER MRO Z 4.00 EA 160.00 1 EA
217836 NB 1826162668 0127 00 2 LEAN SIX SIGMA PRIMER MRO Z 4.00 EA 560.00 1 EA
The bold ones being header and the remaining Items, the underlined field is PO number.
In normal process this file is considered to have 4 records, and tries to create 4 PO's.But my requirement is to create only 2 PO's with 2 items each.
Thanks.
Lahari
Similar Messages
-
Working on LSMW using IDoc method for processing Open Sales Orders
We are currently in middle of creation of a new instance of production for a different Business SBU. We are looking to utilise the LSMW tool using IDocs for uploading / transferring the open orders to the new box. If some one has worked on LSMW using IDocs, please get in touch and if you could share any documents on the process of utilising the LSMW tool using Idocs for any kind of conversions, it would be great. The following is a sample case.
1. Each order will have multiple segments with different qualifiers under various segments.
2. Multiple line items would be available under each order.
Issues we are currently looking to solve :
1. How do you manage to loop through the qualifiers during processing for the same segment.
2. How do you prepare the tool to recognise the multiple line items of the same order.
3. What kind of strategy needs to be used to create the input data file(s). Like, splitting the header and detail level information ?
Note : The volume of data we are looking at is somewhere around 40-60 thousand orders worldwide.
Thanks in Advance.hI vikram check this link
and reward points if helpful
http://www.****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
http://www.jt77.com/system-dynamics/model-01395.html -
LSMW using IDOC method for scheduling agreement - MM
I am using LSMW IDOC method to create Scheduling agreement. i am using message type : PURSAG_CREATE. I have completed the field mapping and when i tried to process the idoc i am getting the following error.
No instance of object type PurchSchedAgreement has been created. External reference: # 1
There are no clue why this error is popping up.
please let me know if anyone faced similar issues.try entering the values in WE19 and do the posting for teting purpose, make sure you are passing all the values.
-
LSMW using IDOC method for scheduling agreement
I am using LSMW IDOC method to create Scheduling agreement. i am using message type : PURSAG_CREATE. I have completed the field mapping and when i tried to process the idoc i am getting the following error.
No instance of object type PurchSchedAgreement has been created. External reference: # 1
There are no clue why this error is popping up.
please let me know if anyone faced similar issues.Are you using external number range for scheduling agreement, then you have to pass the SA number too if not then check with your MM functional consultant to change the number range from external to internal provided it is agreed by your customer
-
Kindly help reg - LSMW using BAPI
Hi All,
I am using LSMW using BAPI method to upload data to create an Purchase order. I m getting this error.
" Identification specifications missing for source structure 'PSOURCE_HEAD' ".
Here are the steps I have followed.
1. Created an IDOC Inbound Processing.
2. Bussiness Object: BUS2012
Method : CreateFromData
Message Type : PORDCR
Basic Type : PORDCR05
3. Maintained Source Structure : PSOURCE_HEAD AND PSOURCE_ITEM
4. Maintained Source Fields for PSOURCE_HEAD AND ITEM
5. Maintained Structure Relations:
E1PORDCR=>PSOURCE_HEAD
E1BPEKKOC=>PSOURCE_HEAD
E1BPEKOC=>PSOURCE_ITEM
E1BPEKET=>PSOURCE_ITEM
6. MAINTAINED FIELD MAPPING:
E1PORDCR - E1PORDCR-HEAD_ADD_DATA_RELEVANT = 'H'.
E1PORDCR - E1PORDCR-ITEM_ADD_DATA_RELEVANT = 'I'.
7. specify files
8. Assign Files : assigned uploaded file to both PSOURCE_HEAD AND PSOURCE_ITEM
9. IMPORT DATA: I M GETTING THE PROBLEM " Identification specifications missing for source Structure 'PSOURCE_HEAD' ".
H 1001 1000 000
I 100-130 20 200 001 1000 28.06.2006
With Regards
VasuHi vasu
I have encountered the same problem with material BOM creation.
The reason you get this message is probably because you didn't define correctly the identification field in the source structures.
In step 'Maintain source fields' you should define the first field of every structure as identification field by creating char field of length 1. Then from the tree view of source fields, double click this field (in change mode) and give appropriate value in field 'Identifying Field Content', meaning 1 for header structure, 2 for items structure etc.
This should fix the problem.
Best regards -
LSMW/ BAPI method for Document upload (CV01N)
Hi All,
Could you please let me know if it is possible to use LSMW (BAPI method) for creation of document ?(using CV01N) and linking files.
If yes, what is the business object for doing the same?
I did came across a BAPI "BAPI_DOCUMENT_CREATE2", but in order to use it for mass upload , we will have to develop a program. SO I was trying to see of the LSMW method could be used.
Thanks and Regards,
NarendraHi Narendra,
LSMW is not supporting for attachements. Please check and confirm. If you have to upload bulk files then use BDC(Batch data collection) it's very useful for uploading thousands documents at a time. Ask abap'r to write a bdc program.
I hope this will resolve the query.
Regards,
Ravindra -
HELP NEEDED *Lsmw using bapi as import method*
Hi,
I am trying a n example implementing lsmw using bapi as inport method for the purchase order data. Here when i am trying to get the data i am getting an error "Ensure field sequence is correct for data for multiple source structures". I have single text file which has both header and the line item data.
IDENTIFIER VENDOR PURCH ORG PURCH GRP
H 100001 0001 001
IDENTIFIER MATERIAL QTY PRICE MATGRP PLANT DELDATE
I A 50 1000 YAS1 20/10/2007
Thank you,
MadhuHi madhu,
check the step where you assign the source structure in the LSMW and check whether it is in accordance with your flat file field sequence. I think that is cause for your error.
Reward points if useful.
Best Regards,
Sekhar -
LSMW help with DIRs by using BAPi method
Hi experts,
I am learning LSMW and I have been given exercise which I have to finish. The question is:
Create a LSMW object for creation of DIRs by using BAPI method (UPLOAD_DOCUMENT)???
Can anyone tell me how should I go forward and what DIRs stands for... ??
I really appreciate your help..
Regards,
-Ashok HansrajHello Ashok,
If you need a step - by - step approach for loading data using LSMW with various import techniques (like batch input, BAPI, IDOCS etc) you have to go thru this LSMW manual.
And the files with DIR information, you should receive those fields from your business. Because you should know the structure of the data in those files in order to maintain source and target structures.
Ask your business people over the format of the file you will be provided. In mean you can go thru this manual on this link.
http://www.sapgenie.com/saptech/lsmw.htm
Thanks,
Naren -
I want to upload material master (MM01) using LSMW with BAPI method
I want to upload material master (MM01) using LSMW with BAPI method and also later on I may need to change the updated data.
Which business object and Method I should use so that i can do both.
Thanks
kumar nHi,
The business object is BUS1001.
Thanks,
Murali -
Class data upload through LSMW using BAPI
Hi All,
Plz tell me how to upload class data through LSMW using BAPI.I also need some study material on BAPI.
Bye,
Mithilesh Tiwariits not possible with single file
for this you need to pass two files of data
1 ) Header data ZSOURCE_LIST_HEADER Source List Header
MATNR C(018) Material Number
Selection Parameter for "Import/
WERKS C(004) Plant
2) item data ZSOURCE_LIST_ITEM Source List Item
MATNR C(018) Material Number
LIFNR C(010) Vendor Number
EKORG C(004) Purchasing Organiz
WERKS C(004) Plant
VDATU C(008) Valid From
BDATU C(008) Valid to
for this use below LSMW IDOC method
Message Type SRCLST Source List
Basic Type SRCLST01 Source List -
Difference between lsmw using BAPI & lsmw using IDOC?
HI everybody
can anybody tell me difference between lsmw using BAPI & lsmw using IDOC?IDocs and BAPI are very different, so it should be easy to choose between them depending on your requirements.
IDOCS
Advantages
System can work even if target system not always online. The IDoc will be created and sending will just continue once you get connected to the other system.
No additional programming required. You just need to set up the configuration.
Disadvantages
Receipt/processing on the target system may not be immediate.
The sending system has no way to know whether the target system actually received what you sent (unless you use ALE).
If there is no SAP standard IDoc available for your requirement, it's harder to create a customized IDoc than a customized BAPI.
BAPIS
Advantages
You can tell if your sending was successful or not
Sending to/processing on the other side is immediate
Easier to create your own BAPI than your own IDoc
Disadvantages
Will only work if you have an active online connection.
Some programming required to call the BAPI.
Others interface methods you might also want to consider are ALE and RFCs. -
Requesting all to help me how to create lsmw using idoc method
hi
thanx for ur answer
requesting every body in the forum to help me how to create lsmw using idoc method.
regards,
balajiHi Balaji,
LSMW using IDOC is similar to using flat file method. Here you are getting data from IDOC container and mapping data with Idoc segments insted of flatfile column.
Hope this is what you are looking for. If helpful then dont forget to reward me for that
Darshan -
Uploading the Notes text pool using Conversion method for Dispute Cases.
Hi Everybody,
Please can anybody give the solution for uploading the Notes textarea in tab(Notes in dispute cases) using BDC method for transaction FDM_AUTO_CREATE(Dispute Cases).
Here, the problem is, Notes is text area which is not having proper reference.
We have tried few BAPI's like BAPI_DISPUTE_CREATE but did not worked.Hello! Anyones could resolve this?
Regards,
Federico -
Please can anyone send me a snapshot of lsmw using bapi
please can anyone send me a snapshot of lsmw using bapi
pointz wll b rewarded to the person who send a snapshot of the above query in my mail
[email protected]Hi,
Please check these links for step by step including snapshot.
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
Regards,
Ferry Lianto -
While LSMW with BAPI method doing is any prerequisite required.
Hi,
When i entered the business object in lsmw with bapi method.
i am getting the error messge is enter the valid value. when i press f4 its showing the object.but when enter the method its giving the error messge is enter the value. when i checked through BAPI tcode its avaliable.
Object name is BUSISM007.
method is CREATEFROMDATA.
if anybody knows it would be helpful.
regards
Divacheck it BUSISM007---->not found
Maintain the default values for IDoc inbound processing..
in initial screen of lsmw(project, subproject)..
setting--->idoc inbound processing
Maybe you are looking for
-
Bug in DBMS_METADATA.get_ddl?
If you create the functions: CREATE OR REPLACE FUNCTION testingit1 RETURN NUMBER IS tmpVar NUMBER; BEGIN tmpVar := 0; RETURN tmpVar; EXCEPTION WHEN NO_DATA_FOUND THEN NULL; WHEN OTHERS THEN -- Consider logging the error and then re-raise RAISE; END t
-
Phone Unable to Send or Receive Phone Calls
I searched around, there was a similar issue in January, but with texts. Looks like it was resolved. I have an iPhone here that when calls are made, it hangs up before the call can be established. And the user is unable to receive any calls. Text and
-
Audio sound distorted since 10.6.3 and Pro Apps 2010-01 - bug iTuneshelper
As of OS X 10.6.3 and Pro Apps Update 2010-01 (FPC 7.0.2) I was encountering in both video sound and music sound tracks odd and somewhat unpredictable audio distortion (wrong pitch and left and right stereo sound running out of sync). This problem se
-
Why can't I post a review of Iphone 4 Bumper case?
Why not? Is there something that users shouldn't be saying about this product?
-
Hi I have a scenario where sender is file. In file there is a field Total records. I need to validate Total records field with the total records in the file using UDF.. Can any suggest me the how to write the cod efor this.. venkat