Application Development 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: 

LSMW - BAPI

Former Member
0 Kudos

Hi,

Im Migrating data using LSMW with BAPI which has ALE / IDOC interfaces.

Here it creates separate Idoc's for each record.

Is there is any option to have all the records into a single Idoc that is generated.

Plz tell me if possible? ifpossible plz give me some examples.

Thanks and Regards,

Vimal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

This settings needs to be done in the Basic Type of your IDOC. You can change this setting if you are using Z Basic Type and Message Type. You can not change if Standard Idoc type is used.

Go to Txn WE30.

There Give the basic Type. and double click on the segment.

There in the popup you can See "Minimum Number " Maximum Nunber.

There increase the value of Maximum Number to the number of records you want in single Idoc.

While doing this take care of Your Parent and Child Segment.

Regards,

Lalit

5 REPLIES 5

Former Member
0 Kudos

Former Member
0 Kudos

Hi,

This settings needs to be done in the Basic Type of your IDOC. You can change this setting if you are using Z Basic Type and Message Type. You can not change if Standard Idoc type is used.

Go to Txn WE30.

There Give the basic Type. and double click on the segment.

There in the popup you can See "Minimum Number " Maximum Nunber.

There increase the value of Maximum Number to the number of records you want in single Idoc.

While doing this take care of Your Parent and Child Segment.

Regards,

Lalit

0 Kudos

Hi Lalit,

This Setting is already available in the basic type. The Basic type and the segments are generated by the system. Any other Suggestions that I can try.

Regards

Vimal.

0 Kudos

Hi Vinod,

Which setting is already there in your Basic type. Is it of the multiple records in one idoc?

Regards,

Lalit

Former Member
0 Kudos

Hi this may be of some help 4 u.

see this and do accordingly

http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt

Go through the steps

Hi please go through the following steps for IDOC method

Step 1. Run the transaction ( /nlsmw ) you will reach to the screen

Here you have to specify

Project : 060_BUS_TRANS

Subproject : SERVICE_TICKET

Object : SRV_TICKET_ZSVT

click on the execute button .you will reach the screen :

The screen shows the 15 steps to Run the lsmw

Step 2) select the first step ( Maintain object attributes) and click the execute button.After clicking on the execute button you will reach at. the screen

Here you have to specify ( MEssage type and basic type)

click on the BACK button

Step 3) select the 2nd step ( Maintain source structures) and click the execute button

Here you have to specify the source structures.

Step 4) Select the 3rd step ( Maintain source fields) and click on the execute button :

Here you have to specify the fields present in the source structure

Step 5) select the 4th step ( Maintain structure relationship ) and click on the execute button :

Here you have to specify relationship between source and target structures

Step 6) select the 5th step ( Maintain field mapping ) and click on the exécute button :

Here you have to map the fields between source and target structure. Also you have to apply conversion rules here if any

STEP 7) select the 6th step and click on the exécute button

Here you can define any fixed value or user define routines

Step 😎 select the 7th step ( Specify files) and click on the exécute button :

At This screen we have to specify the files for This we should be in change mode .So please click on the button shown in the above screen. After clicking on This button you will be in change mode and will be able to specify the files :

Step 9) select the 8th step ( Assign files) and click on the exécute button

For assigning files yoy should be in change mode do the same thing click on the button as shown in the above screen :

Then assign the files to different structures.

Step 10 ) select the 9th step ( Read Data) and click on the exécute button :

After clicking on the exécute button you will reach to the screen

Again click on the exécute button . After clicking on the exécute button you will reach to the next screen

Here you will see data is read.

Step 11) select the 10th step ( Display read data) and click on the exécute button :

Here you can see your test data present in test files assign to source sturcture

Step 12 ) select the 11th step ( Convert data) and click on the exécute button :

After clicking on the exécute button you will reach to the screen

Click on the exécute button as shown on the : After click on the exécute button you will reach to the next screen

Data is converted

Step 12th ( Display converted data is same as Display read data )

Step 13 ) select the 13th step ( Start idoc generation) and click on the exécute

button :

At this step Idoc is generated using converted data

Step 14) select the 14th step ( Start idoc processing ) and click on the exécute button :

After clicking on the exécute button you will reach to the screen :

And then click on the exécute button : After clicking on the exécute button you will reach to the final processive screen

If data is processed correctly you will see ( 53 Status message with green sign)

with regards,

HEma SUndara.

pls reward points if u find it needful.