Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
226 views

How To Create LSMW With Bapi Method To Create Purchase Order

This document provides steps to create a purchase order using an IDOC setup in SAP with the BAPI method in LSMW. It outlines setting up a logical system and port, then creating an IDOC setup with partner profiles. It details creating an LSMW project with BAPI method and configuring IDOC inbound processing for purchase orders. The steps include creating header and item structures, mapping fields, assigning text files as data sources, and executing the various stages to generate and process the IDOC.

Uploaded by

Saumya Dwivedi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
226 views

How To Create LSMW With Bapi Method To Create Purchase Order

This document provides steps to create a purchase order using an IDOC setup in SAP with the BAPI method in LSMW. It outlines setting up a logical system and port, then creating an IDOC setup with partner profiles. It details creating an LSMW project with BAPI method and configuring IDOC inbound processing for purchase orders. The steps include creating header and item structures, mapping fields, assigning text files as data sources, and executing the various stages to generate and process the IDOC.

Uploaded by

Saumya Dwivedi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

How to create lsmw with bapi method to create purchase

order
For bapi method sap uses idoc concept

STEP 1. CREATE AN IDOC SET UP

STEP2. CREATE AN LSMW PROJECT WITH BAPI METHOD

IDOC WORKS AS A:-

IDOC: Receiver system configuration

Steps to create an idoc set up:-

1. Create Logical system-BD54/SALE

2. Assign logical system- SCC4/SALE

3. Create port-WE21

4. Create partner profile without giving any inbound parameter-WE20

IDOC SETUP
1.Go to tcode BD54
2.CLICK ON NEW ENTRIES

2.TYPE THE LOG.SYSTEM AND NAME AND


SAVE IT
3.CONTINUE AND CREATE A NEW TASK THEN
N SEND THE REQUEST

4.NOW GO BACK TO SCC4

5.CLICK ON CHANGE MODE AND SELECT


OUR CLIENT-DETAIL(HIGHLIGHTED)
5.TYPE THE NAME OF LOGIC SYSTEM

6.SAVE IT AND GO TO TCODE LSMW


7.CREATE A PROJECT
NOW GO TO SETTING AND THEN IDOC
INBOUNDING PROCESSING
GO TO EDIT PORT AND SELECT A PORT
FROM FILE

Cselect file and click on create button


ADD THE DETAILS AND SAVE IT NOW GO
BACK AND SELECT THE FILE PORT NOW GO
TO PARTNER TYPES AND SELECT LOGICAL

NOW SELECT THE PARTNER NUMBER


SELECT THE PARTNER TYPE LS AND CLICK
N CREATE
AFER SAVING IT GO BACK AND ACTIVATE
IDOC INBOUND PROCESSING
Here select the import method bapi and select
the purchase order as business object
Enter the details and save it.
Now click and execute and then create source
structure

CREATE HEADER

HERE CREATE AN ITEM NO BY SELECTING


LOWER LEVEL
CREATE ITEM
SAVE IT GO BACK AND EXECUTE MAINTAIN
SOURCE FIELD SELECT THE HEADER AND
THEN GO TO TABLE MAINTANANCE

NOW GO TO MAINTANANCE TABLE OF ITEM


NUMBER
AFTER SAVING EXECUTE ON CREATEING
STRUCTURE RELATION

MAP IT BY SELECTING RELATIONSHIPS


OPTION FROM MORE BUTTON
SAVE IT AND EXECUTE FIELD MAPPING

THERE GO TO EXTRAS AND AUTOFILL FIELD


DATA
Now make a text document for header file and
other for item file item nuber go to source file
and select legacy data and paste that
document

SAME FOR ITEMS


NOW GO BACK AND EXECUTE ASSIGN FILES

SELET ASSIGNMENT BUTTON

NOW GO BACK AND EXECUTE READ DATA

NOW GO BACK AND EXECUTE DISPLAY READ


DATA
GO BACK N CHECK FOR CONVERT DATA
CHECK FOR DISPLAY COVERTED DATA

NOW EXECUTE START IDOC GENERATION


AND EXECUTE

GO TO START IDOC PROCESSING AND


EXECUTE IT THERE IS A FOLLOW UP FOR
ANY ERROR CORRECTION .
Thankyou!

You might also like