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

Session problem in LSMW.

Former Member
0 Likes
1,473

Hi,

For uploading the FIXED ASSETS to system, i am using the Standard Batch input method with object 0160, method 0001 and program name RAALTD01.

The problem is with the create batch input session step. This step is directly processing the data without allowing the session to be processed later.

If the data is having error, it is creating session with those error records. But for the ones that are successfull we are not able to see the new no generated, which can cause problem in tracing the conversion process.

Any help on this will be greatly appreciated.

Thanks & Regards,

Sudheera K

Hi,

For uploading the FIXED ASSETS to system, i am using the Standard Batch input method with object 0160, method 0001 and program name RAALTD01.

The problem is with the create batch input session step. This step is directly processing the data without allowing the session to be processed later.

If the data is having error, it is creating session with those error records. But for the ones that are successfull we are not able to see the new no generated, which can cause problem in tracing the conversion process.

Any help on this will be greatly appreciated.

Thanks & Regards,

Sudheera K

5 REPLIES 5
Read only

Former Member
0 Likes
1,047

I see 2 options here:

1) Copy program RAALTD01 to a Z-program and use the batch input session method instead of a call transaction.

i.e. replace :

CALL TRANSACTION baltd-tcode USING ftab

OPTIONS FROM ls_opt.

with a bdc_insert statement ( + open session at the beginning and close session at the end of the program).

2 ) Use BAPI BAPI_FIXEDASSET_OVRTAKE_CREATE

3 ) Try direct input program RAALTD11

and see if this program returns you a complete log.

Overview of available tools :

http://help.sap.com/saphelp_46c/helpdata/en/2d/4b08b3a77611d195140000e82debf7/frameset.htm

Read only

0 Likes
1,047

Hi kris,

With direct input also the same problem exists. I am looking for a solution in LSMW.

Thanks & Regards,

Sudheera K

Read only

0 Likes
1,047

Go for the Z-program.

Register this program in LSMW. To do this:

Create entries in following tables SXDA0, SXDA1 and SXDA2.

( just copy the ones for RAALTD01)

Read only

Former Member
0 Likes
1,047

Hi Sudheera

When you execute the create batch input session what is the next screen you are getting?

Does it is creating any session or not? with out creating the session how it is getting processed and after that how it is creating the session with error records?

ok if it is the case you need to do some extra coding in field mapping and conversion step. First of all put a break point in the code and try to debug it and see where exactly it is going wrong?

Read only

0 Likes
1,047

Hi Naveen,

After double clicking on the create bach input session, i am getting a screen with title 'LEGACY DATA TRANSFER FI-AA'. And below it the selection screen is given for fields 1) input file name and 2) Error session name.

Below it 3 check boxes.

1) Test run without DB update.

2) Transaction run in foreground.

3) Structure of transfer formats.

When i click execute by giving the converted file name and the error session name, I am getting a screen which shows the no of records read, no of updated and no of error. Below that it is showing the error, if any any error record exists and a statement that the error session is created.

And on the status message it is showing the last asset number generated. For example if 45, 46 and 47 are the assets generated now. It will show in the status message that 47 is created.

Regarding the debugging, i will do that and let you know if i had any success.

Thanks & Regards,

Sudheera K