Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW - problems with BAPI

Former Member
0 Likes
765

Hi guys,

I want to use LSMW with certain BAPI that I found using transaction BAPI (object type BUS1006 for example). However I am not able to use it in LSMW - I get message "No interfaces could be found".

Do you have any ideas how to make this BAPI available for LSMW?

5 REPLIES 5
Read only

Former Member
0 Likes
654

Hi

After the step ‘Display Converted Data’ the exact content of the next steps may differ, depending on the import technique that you have chosen in step 1. The steps displayed by the program for the different import techniques are

BAPI or IDoc:


Start IDoc creation
          Start IDoc processing
Create IDoc overview
Start IDoc post-processing

example


Using BAPI in LSM Workbench



We now go through a step by step process of realizing LSMW through a BAPI

Details of BAPI used:
- Business Object: BUS2012
- Method: CreateFromData 

Details of Message Type and Basic IDoc Type:
- Message Type: PORDCR
- Basic IDoc Type: PORDCR02 

Step 1 : Go to transaction LSMW

Step 2 : Enter project, subproject and object and click on Create

Step 3: Enter the descriptions for Project, Subproject and Object as prompted

Step 4: Now select Settings  IDoc Inbound Processing

Step 5 :“IDoc Inbound Processing” screen appears. Enter the required details as shown below:

Step 6 :Click on “Activate IDoc Inbound Processing”.

Step 7 : Click on “Yes” when prompted for “Activate IDoc Inbound?”

Step 8 : Hit on “Back” to return to the main screen

Step 9: Click on Continue (F8). Following Screen appears

Step 10: Select the Step 1 “Maintain Object Attributes” and select “Execute”

Step 11 : Select the radio button “Business Object Method” and enter the following details:

Business Object: BUS2012
Method: CreateFromData

Step 12: Save and click on BACK button. Following information message is displayed

Step 13: Maintain Source Structure

Step 14:Create source structure ‘HEADERDATA’ and a lower level structure ‘ITEMDATA’

Save and go back to main screen

Step 15 : Maintain source fields
Enter the fields as shown below:

Step 16:Maintain Structure Relations

Maintain structure relations:
- Select ‘E1PORDCR’ in previous fig. and click on CREATE Relationship. Following screen appears:
- Select HEADERDATA and hit ENTER. Do the same for other
structures

Step 17 :Maintain Field mapping and conversion rules. Maintain field mapping as shown:-

Step 18 : Specify File
Provide the link for the test file. Maintain the same structure of the test file as defined before

Step 19: Select ‘Assign Files’ & execute

Step 20: Read Data

Step 21: Display read data

Step 22: Return to main screen and select ‘Convert Data’ followed by ‘Display Convert Data’

Step 23: Return to main screen and select “Start IDoc generation”

Step 24 : Process Idoc through the step ‘Start Idoc Processing’ on main screen

Step 25: Click on ‘Create Idoc Overview’ on the main screen. Here the data record and status record of the Idoc can be viewed

Reward if usefull

Read only

Former Member
0 Likes
654

Hi,

it seems that this is the problem with ALE interface. Could someone recommend some manual where I can find out how to "Generate ALE interface for BAPI" using transaction BDBG?

Thanks in advance.

Read only

Former Member
0 Likes
654
Read only

Former Member
0 Likes
654

leave ur id .

i will send u the documents with screen shots.

Thanks

Read only

0 Likes
654

Hi,

send it to ve231@yahoo.com.

Thanks