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

Former Member
0 Kudos

Hi,

In my LSMW program i use FB01 tcode.

No my program creates a separate document for each and every record(from the source file).

I wanted only one document to be created for all the records?

Say for example if there are 5 records, using FB01, a single document has to be posted with all the 5 records or line items.

Pls help

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

For this case u need to go for direct input method.bcoz while using direct inout method in LSMW u can pass header level file and item level file at once.

madhukar

13 REPLIES 13

Former Member
0 Kudos

HI,

Use the Direct input method, There will be a field which will link the Header and the Line items fields. so here you need to create the file according to the Direct input method

Regards

Sudheer

0 Kudos

Hi,

I'm using BDC recording , can you help me out how to achieve this in BDC.

I'm suppose to use only BDC.

I'm strugling pls help

Thanks

Former Member
0 Kudos

normally LSMW is sued to upload Master data transactions.

in ur case it is transactional data, so the best method is to write a BDC program and upload the data so that it will create only 1 document.

0 Kudos

Hey Ramesh,

Thanks for reply. I'm using BDC and recordrd the trasaction Fb01.

But still it creates seaparte documents.

Can you pls help me out on this ?

Thanks

Former Member
0 Kudos

Hi,

Use the session method(i.e recording method). For more information check the follwoing link:

[Removed by the moderator.]

Regards,

Bhaskar

0 Kudos

Hey bhaskar,

Thanks for reply,

Can you pls help me out with an example.

What needs to be done for creating as one document.

I'm using BDC recording

Pls help

0 Kudos

you must be doing

loop at itab...

and calling ur full code + call transaction here...

endloop...

try to put the header details like.. dicument date.. posting date..reference, company code.. etc outsid ethe loop...,

then start the loop... and populate fields for posting key, account ... etc insid ethe loop.,...

look thru the code, which was generated by bdc,.. and find out where exactly to start the loop..

0 Kudos

Hi Sujamol,

Thanks fo rreply,

Can you pls explain more on this?

Where can i use the LOOP. U mean in Field mapping.

I'm using LSMW and BDC recording of FB01.

Thanks

Former Member
0 Kudos

after recording one line item use pageup option in menu and also use seperator for Header ANd item data

Former Member
0 Kudos

hi,

For this case u need to go for direct input method.bcoz while using direct inout method in LSMW u can pass header level file and item level file at once.

madhukar

0 Kudos

Hi Madhu,

Can you pls help me out with an example.

I'm new to direct input method.

Pls help

Thanks

former_member188685
Active Contributor
0 Kudos

Prabha,

Handling table control in LSMW-BDC Recording method is Difficult. So instead of that use the Object 0100 Financial documents, fot this object it uses Direct input method and program is RFBIBL00. It works in your case.

Regards

Vijay

0 Kudos

Can you pls help me with an example. I'm very new to Direct Input method.

Just need one clarification.

I need to post for both Credits & Debits. So for each record from Source file, i need to post 2 line item(credit & debit).

Is this possible? .Pls help with an example for "Field Mapping" alone.

Thanks