BAPI BAPI_REQUISITION_CREATE with LSMW
Hi!
We try to create PRs using BAPI BAPI_REQUISITION_CREATE. Can someone explain, how to make Automatic Source Determination to work?
Hi,
you mean Auto field mapping.....
1. fill the attributes.
2. create source structure
3. Maintain Source fields
here you can do in many ways..
i.create field
ii. copy
iii. table control
i suggest you to use copy option
here create a tab delimited text file in your PC, the file order should be like this..
fieldname <tab> fielddesc <tab> type <tab> length
example..
Bukrs Company code c 4
ekorg Purchasing Org c 4
ktokk Vendor accountgroup c 4
anred title c 15
name1 name1 c 35
sortl sort field c 10
land1 country c 3
spras language key c 2
akont reconcilation c 10
fdgrv planning group c 10
waers purchase order currency c 5
4. maintain the structure relation ships by choosing the relevant structures.
5.field mapping
Auto field mapping CTRLSHFTF3
and now check any fields left (unmapped) using Unassigned fields CTRLSHFTF2
and then forcefully Assign it to the field you want.
here you have to assign TCODE also select the TCODE field and then click on constant. then Give TCODE in the popup.
and once all mapping etc over then click on Check Syntax SHFT+F2 this will generate conversion program...
and rest of the steps are simple...
get back if you have any issues ...
Regards
vijay
Similar Messages
-
WITH LSMW USING BATCH INPUT/DIRECT INPUT/BAPI/IDOCS
IN WHAT SCENARIOS CAN WE USE BATCH INPUT/DIRECT INPUT/BAPI/IDOCS WITH LSMW.WHICH IS THE BEST ONE.PLEASE TELL ME THE SCENARIOS OF USAGE.
It really depends on what you are doing. There are a lot of "standard" LSMW objects for different business objects, for example, there is a std object for Creating Material Masters, in this case, it is a direct input program. So, the best choice here would be to use the standard program which has been provided, it just so happens that it is a direct input program. Creating Bill of Materials is another one, but this one is a batch input program, so you have no choice but to go with that. Of course if there is a BAPI for your business object that would be the next best thing, if a standard object does not exists.
REgards,
Rich Heilman -
LSMW with bapi BAPI_REQUISITION_CREATE
Hi
I'm creating an LSMW for create purchase requisition with Bapi (BAPI_REQUISITION_CREATE)
I'm trying to upload 2 items for a PR but the LSMW is creating 2 PR with each item.
How can I tell to the LSMW that I have to item for the same PR?
Remember this bapi doesn't has header.Hi,
you need to define hierarchy in your in put file to merge required lines into one BAPI call. You can find some examples how to create order with multiple items (for example [this one|http://www.scribd.com/doc/6646673/Lsmw-With-Bapi]). So you can easily adapt it to your BAPI.
Cheers -
Problem with BAPI BAPI_REQUISITION_CREATE
Hello,
I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
Thanks®ards,
JirkaNot sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated -
hi all,
Any one has step by step procedure BAPI with LSMW.
BAPI with BDC.
sriHi Sri,
Please Go through this Link ,
BAPI And LSMW
Regards,
Ramganesan K. -
Bapi BAPI_REQUISITION_CREATE : how to populate data for sevices tab
Hi all,
I am creating a purchase requisition through bapi .I am using bapi BAPI_REQUISITION_CREATE
For creating purchase requisition. The bapi is creating PR.
I need to add item level services details also through bapi.i am Using structure BAPIESLLC to populate data. But the data is not getting populated in the services tab.
For header data i am populating the following data.
itab_bapiebanc-preq_item = '10'.
itab_bapiebanc-doc_type = 'NB'.
itab_bapiebanc-short_text = 'Blinding'.
itab_bapiebanc-quantity = '1'.
itab_bapiebanc-unit = 'AU'.
itab_bapiebanc-deliv_date = '20081027'.
itab_bapiebanc-plant = '1000'.
itab_bapiebanc-pur_group = '001'.
itab_bapiebanc-preq_name = 'tracking no'.
itab_bapiebanc-trackingno = '2/C/1B'.
itab_bapiebanc-mat_grp = '007'.
itab_bapiebanc-acctasscat = 'P'.
itab_bapiebanc-ITEM_CAT = '9'.
itab_bapiebanc-GR_IND = 'X'.
itab_bapiebanc-IR_IND = 'X'.
itab_bapiebanc-FIXED_VEND = ' '.
APPEND itab_bapiebanc.
itab_bapiebkn-wbs_elem = 'E-2004'.
itab_bapiebkn-g_l_acct = '0000417000'.
APPEND itab_bapiebkn.
itab_bapiebantx-PREQ_ITEM = '10'.
APPEND itab_bapiebantx.
when i am adding the above data the p,r is creating sucessfully in the system.
I need to add data in the item level services tab also.
I am populating for services tab .
*----- this part is not working
itab_bapiservices-SERVICE = '100217'.
itab_bapiservices-PCKG_NO = '0000000001'.
itab_bapiservices-LINE_NO = '0000000001'.
itab_bapiservices-EXT_LINE = '0000000010'.
itab_bapiservices-short_text = 'BREAKFAST CNTR TOP; AS PER SPECS'.
itab_bapiservices-QUANTITY = '680'.
itab_bapiservices-BASE_UOM = 'M2'.
itab_bapiservices-GR_PRICE = '23.00'.
itab_bapiservices-MATL_GROUP = '007'.
itab_bapiservices-PRICE_UNIT = '1'.
append itab_bapiservices.
I am populating data for service tab like given above.But the value is not get updaing in purchase requisation.
Please let me know how to populate the data for service tab.
with regards,
ambrose
itab_bapiebantx-text_line = 'Test for Purchase requisiton'.
APPEND itab_bapiebantx.Hello
Try this:
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'SERVICE'
IMPORTING
NUMBER = pacno
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
OTHERS = 8.
itab_bapiservices-PCKG_NO = pacno + 1.
Also Note 499626 - FAQ: BAPIs in the service -
BAPI_REQUISITION_CREATE/ with services and Contract
Dear Experts,
i must create with the BAPI "BAPI_REQUISITION_CREATE'" an REQUISITION with services and relation to an existing contract.
I fill the import table
t_bapiesucc-con_number = '00482321732' " existing Contract number.
t_bapiesucc-con_item = '10'. " order item
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
IMPORTING
number = lv_number
TABLES
requisition_items = it_bapiebanc
requisition_item_text = it_bapiebantx
requisition_account_assignment = it_bapiebkn
requisition_limits = it_bapiesuhc
REQUISITION_CONTRACT_LIMITS = it_bapiesucc
requisition_services = it_bapiesllc
requisition_services_text = it_bapieslltx
requisition_srv_accass_values = it_bapiesklc
extensionin = it_bapiparex
return = lt_return.
But the conecting of the contract does not works.
Greetings
FrankWhat are the messages returned in the RETURN table?
Mathews -
Hi all,
Please guid me how to work on LSMW using BAPIs.If any of u have an example please explain me step by step process and also where we can do the validation part.If any of you have any material forward to my mail .
[email protected]
Regards
PavanHi,
is step by step process .
Step-by-Step Guide for using BAPI in LSMW
Note! The screen prints in this article are from ECC 5.0. They may differ slightly in other versions.
Introduction:
This document details the usage of BAPI in LSMW. We have used the example of migration of the purchase order data into SAP.
Pre-requisites:
It is assumed that the reader of this article has the minimum knowledge required on the Business Object, BAPI, Message Types and IDoc Types.
Step-by-Step Procedure:
Details of the BAPI used in this scenario:
Business Object: BUS2012
Method: CreateFromData
Details of Message Type and Basic IDoc Type:
Message Type: PORDCR
Basic IDoc Type: PORDCR02
Lets have a look at the BAPI first, before proceeding to the LSMW:
1. Go to Transaction BAPI
2. Click on Search Button
3. Enter the value BUS2012 and select Obj.type(Technical Object Name
4. Press ENTER
5. Following screen appears:
6. On the left side of the screen, Expand the PurchaseOrder.
7. Select PurchaseOrder and double-click on the same for details.
Building LSMW using BAPI:
1. Go to Transaction LSMW.
2. Enter the Project, Subproject and Object information and click on CREATE.
3. Enter the descriptions for Project, Subproject and Object as prompted.
4. Now select Settings à IDoc Inbound Processing
5. IDoc Inbound Processing screen appears. Enter the required details as shown below:
6. Click on Activate IDoc Inbound Processing.
7. Click on Yes when prompted for Activate IDoc Inbound?
8. Hit on Back to return to the main screen.
9. Click on Continue (F8). Following Screen appears:
10. Select the Step 1 Maintain Object Attributes and select Execute.
11. Select the radio button Business Object Method and enter the following details:
Business Object: BUS2012
Method: CreateFromData
Hit ENTER
12. Save and click on BACK button. Following information message is displayed.
13. Now select step 2 Maintain Source Structures and click Execute.
14. In this step, we need to maintain the source structure. In our example, lets consider the example of a file with 2 structures Head and Item data as shown below:
Click on Create and name the source structure as HEADERDATA. Now select HEADERDATA and click on Create again to create the child structure. Following popup appears:
Select Lower Level and click on Continue. Enter the Item data structure name.
Click Save and hit BACK button to go to the main screen.
15. Select step 3 Maintain Source Fields and hit execute.
16. Enter the fields as shown below:
17. Click SAVE and return to main screen.
18. Select step 4 Maintain Structure Relations and click Execute.
Select E1PORDCR and click on CREATE RelationShip. Following screen appears:
Select HEADERDATA and hit ENTER
Similarly do the same for the structure E1BPEKKOA, E1BPEKPOC and E1BPPEKET.
Click Save and return to main screen.
19. Select the step Maintain Field Mapping and Conversion Rules and click on execute. Maintain the Field Mapping as seen below:
20. Select step 7 Maintain Source Files and provide the link for the test file created. (Create a test file with the same structure as defined earlier).
Save and return to main screen.
21. Select the step Assign Files and click on Execute.
Assign the file provided to the source structure. Here the same file is provided for both the structures.
Save and return to the main screen.
22. Select the step Read Data and click on Execute.
Click on Execute.
Return to the main screen.
23. Select the step Display read data and click on execute.
Click on the structure name to get the field level values.
24. Return to main screen and now select Convert Data.
25. Return to the main screen and select Display Converted data.
26. Return to main screen and select Start IDoc generation.
27. Now select the step Start IDoc Processing on the main screen.
28. Return to main screen and click on Create IDoc overview. Here the data record and status records of the IDoc could be viewed:
Please Go through these Links ,
BAPI with LSMW
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
For document on using BAPI with LSMW, I suggest you to visit:
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
http://myweb.dal.ca/hchinni/sap/lsmw_home.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
Regards -
Need help with LSMW fro specific case
Hello,
I am going to create project on lsmw for data migration from legacy system. In this specific case it is not just migration of the data to SAP system but its processing the data an dthen creating objects in SAP system. Hence its very perfomarmace critical.
I amn using Idoc and BAPI in lsmw.
My question how to improve performance here .
My options:
1. Call the API(which is processing the data) in side the BAPI with new task for each independent set.
2. No need of (1) if I am doing parallel processing in step idoc processing. Here lsmw itself provides parallel processing of Idoc.
3. Use FPP . but since FPP can be integrated only for data in database, I would need to first store the incoming data in a temp tables and then call API in FPP run where API reads data from temp tables .
Can you please suggest from your experience which is the best technique to improve the perfromance in this situation ?Hello Suresh,
Thank you so much for resply.
My proiblem with lsmw is that I cannot call API in background job but it wil run in dialog process.
That was one reason to think of storing it temporarily and tehn processing it in FPP.
But just today I came across what is called as data transfer workbench help document where it says that you can process job in background . Can anyone confirm this ?
If yes then my next question is how to enable parallel processing using workbench -
Problems after transfering Cost centers with LSMW
Hi,
I have a problem after transfering Cost Centers with LSMW.
The first Batch input run created all cost centers in one CC Group erroneously - cause they should be placed in different CC groups.
I changed LSMW settings and made another batch input run - now the Cost centers were created in proper groups. I think that I deleted all CC's created in previous batch input run, but now I am not too sure, because there is a problem...
Cost centers exist both in their proper groups and in the one group mentioned by me before. So there is such situation that Cost center appears in Standar hierarchy twice at the same time.
When I delete cost centers - they are removed from their proper groups but the CC entry remains in that one group - all CC are there inactive.
How can I get rid of them. I tried deleting them - but it's impossible - the system doesn't see them.
When I run the batch input again - the same cost centers appear in proper groups and at the same time they become active in the one group. The standard hierarchy group is not UNIQE.
Please advice me how to delete these entries from standard hierachy.
Best wishes,
KarolHi,
Always recommended before loading into live system: upload in test system and check. check again just to make sure all is correct before real load.
In your case you probably would have been best to do a group change after incorrect upload.
Do Ambiguity check in stadnard hierarchy to explore all incorrect entries. Depending on your version yo ucan change in that function (ECC6) ore need to run a report. Before running the report check that CC master records have correct entry. The report is RKCORRH1
Again, try in QA first and run in Test Run
Good luck
Hein -
Problem with LSMW - G/L Account Centrally for 2 or more Company Codes.
Hi,
I have a problem with an LSMW G/L Account Centrally Master Data.
I used the Object: 0010 GL A/C Master Record, and the Method: 0001 Hier. structure.
I can create massives Accounts but I can't create Same Accounts with differents Company Codes.
Please, somebody can explain me, how create Same Accounts with differents Company Code in masive form with LSMW?
Thanks and Regards!Try this report RFBISA10: "Copy General Ledger Account Master Data: Send"
or RFBISA20: "Copy G/L Account Master Data in Target Company Code: Receive"
Bye. -
Extended Purchase Info Record using with LSMW
HI guru's,
How to extend purchase infor record using with LSMW programm.. what is the T.Code and important fields.
regards
JKHi,
You will need to create an LSMW programme for this, the source fields will be as below
LIFNR Account Number of the Vendor
MATNR Material Number
EKORG Purchasing Organization
WERKS Plant
MAHN1 Number of days for first reminder/urging letter (expediter)
MAHN2 Number of days for second reminder/urging letter (expediter)
MAHN3 Number of days for third reminder/urging letter (expediter)
APLFZ Planned delivery time in days
UNTTO Underdelivery tolerance limit
EKGRP Purchasing group
NORBM Standard purchase order quantity
MWSKZ Tax on Sales/Purchases Code
NETPR Net price in purchasing info record
WAERS Currency Key
LTEX1_02 Long Text
LTEX2-02 Long Text
LTEX3-02 Long Text
LTEX4-02 Long Text
LTEX5-02 Long Text
LTEX6-02 Long Text
LTEX7-02 Long Text
Regards
Merwyn -
Customer master (XD02) with LSMW
Hi All,
I am trying to update customer master (XD02) with LSMW. But i the First step i.e. Maintain Object Atrributes... when I clic batch input recording & try to give a recording name in th second line... it throws an error saying "Enter a vali Value"... It does not accept a recording name & does not allo me to click Recording : Overview button .
Has this error to do anything with the settings??... The sandbo in which I am working has the component version "SAP R/ Enterprise"(found out by System --> Status) ... Please HelphI,
You will have to create recording first & then select from drop down box of "Batch Input".
To create recording pls follow this:
Go TO T code : LSMW
Create Project, Subproject & objects.
In Maintain Attributes - press F8
In menu bar
Goto---> recording overview
Now you can create your recorindg which wil be avaliable for selection.
rgds, -
Material master Upload with LSMW
Hi
When I make Material master Upload with LSMW, I could not find any entry in planning file.
Please explain.Mayuresh,
Not all LSMW transactions properly update Planning file.
You can run transaction MDAB to set up planning file in Background
You can run transaction MDRE to detect and correct Planning file inconsistancies in Background.
It is probably a good idea to run these jobs periodically, say, weekly, in most production environments.
Regards,
DB49 -
Data upload with LSMW in special period
Dear Experts,
I encountered an error message saying "Posting period 003 2007 is not open" when i tried to upload data with LSMW in specail period 13 2007.
The system kept on picking period 03 even i changed it to 13. I changed many times and press enter enter...error.
Finally i changed the posting date from "31/03/2007" to "31/12/2007", this time entry posted successfuly.
1.) Can anyone explains to me why I only can post these entries in period 13 2007 with posting date 31.12.2007?
I2.) Is that possible to post in period 13 2007 with posting date 31.03.2007 because my company's Statutory Audit is April 06 - Mar07 and we prefer to post with posting date 31/03/2007?
Thanks.
JackHi jack,
Actually you are facing the error in case of postings rather than LSMW.
Every company has it's fiscal year (accounting year), like April-March.And at the start of every month we have to open the period.
For any kind of such problems,
OBY6 - Check the fiscal year
OX18 - Remove the assignments of plant & company code
OMSY - Make month as current month ( like sept or octomber)
OX18 -Make assignment of plant & company code
OMWD - Give 0001 to plant
Also for periods opening and closing follow the following:-
IMG->Financial Accounting->Financial Accouting Global Settings->Document->Posting Periods->Open and close posting periods.
OB52
MM posting periods:
Logistics->Materials management->Material master->Other->Close period
MMPV (to open current period)
Logistics->Materials management->Material master->Other->Post to prev.period
MMRV (shows what is open)
Also check OB52 for type M
Thanks & Regards,
Savita Nevade.
Maybe you are looking for
-
I cannot to download from the mac app store (There was an error in the App Store. Please try again later. (20)) I traied to remove cookies and still don't working.
-
Which Macbook Pro is better for me?
I bought the 13" version with the 2.4 GHz i5 processor. I know that I definitely don't want anything bigger, because I prefer smaller laptops. Now I'm kind of having doubts, though - should I have gone for the higher-end model of the 13"? Is the 2.
-
Google says I need to update my browser to 7.1 I have OS x Safari 5.1.10
Google says I need to update my browser to 7.1
-
When I am in LR and want to open the file in Photoshop, nothing happens.
I have uninstall and intalled again, but still, nothing
-
I can't send pictures using iMessage from my iPod (iOS 6)
Before updating to the new update (iOS 6) iMessage was working perfectly but since I installed the new update I can't send pictures from iMessage anymore, sonebody please help me I don't what to do anymore