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 -- - - - - - - processes (deep study)

Former Member
0 Likes
561

Hello,

Can anyone highlight as to with the programming aspect how the process are taking place in lsmw and how are the files being process, how the data from the flat files get organized , how the validations carried out and at what stage the data from the files gets posted onto the database tables.

Can we trace programmatically at where and what place these things occur.

4 REPLIES 4
Read only

Former Member
0 Likes
528

yes, you can.

In LSMW screen, click Personal Menu, and choose the 'Display read program' and 'Display conversion program', then you can read program generate by SAP for your LSMW read and convert functionality.

Please remeber you can't change the code in it, as they are be treated as SAP program.

Read only

0 Likes
528

Hello zhenglin gu

I have seen those programs and the files on the application server. I am not sure as to how these files in an Header and details scenario gets picked up and formatted to give the inputs to the BAPI and then how are the Idocs created and what is the rest of the process.

I also tried to do debugging by '/h' on each step to figure out but no success as of now.

So if you have details on the working then please do let me know.

Thanks.

Sohail Mansuri

Read only

Former Member
0 Likes
528

hi, Sohail

The IDOC processing logic doesn't include in these two step, it is in Report RBDAPP01, which is a step in LSMW as 'Start IDoc processing'.

Actually this is not related to LSMW, but IDOC layer.

And about header and item structure read, you can use hierarchical file in LSMW.

Read only

0 Likes
528

Hello zhenglin gu,

My question is how these fields are mapped at runtime from the hierarchical file structure and how does the LSMW format these data . Eg

If the structure is HEADER1 -


fields1,fields2,fields3

TRANSACTION1- fieldsa,filedsb,fieldsc,fieldsd

TRANSACTION2-fieldsq,fieldsr,fieldst,fieldsu,fieldsv

Then at runtime I am intrested in knowing weather lsmw has all the HEADER FIELDS processed in one time or

will it first process one record from the header file and search for the relevant record in TRANSACTION1 and then in TRANSACTION2 file ? and the post the idoc?

How can I find this in LSMW programatically where is it stored?

Thanks for replying.

Regards,

Sohail Mansuri