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 - posting AP

Former Member
0 Likes
808

I am using LSMW for a conversion. I am going to transaction FB01 wtihin it. Currently I have a text file and everything is going through fine, but the issue is the posting keys and account numbers.

I have them set as constants on step 5 under field mapping; however, the keys are different for the next line item...so they really aren't constant all the way through. I only see one field NEWBS and NEWKO in step 5, so am assuming I need to do something to those fields. Currently when running through both line items show up PK 40 and Account 900020. But the next line item should be PK 50 and Account 900030.

I am using LSMW for a conversion. I am going to transaction FB01 wtihin it. Currently I have a text file and everything is going through fine, but the issue is the posting keys and account numbers.

I have them set as constants on step 5 under field mapping; however, the keys are different for the next line item...so they really aren't constant all the way through. I only see one field NEWBS and NEWKO in step 5, so am assuming I need to do something to those fields. Currently when running through both line items show up PK 40 and Account 900020. But the next line item should be PK 50 and Account 900030.

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
704

are you using your own recording of FB01 (not recommended) or an SAP program/BAPI/IDoc?

usually I would expect posting keys and especially the account numbers to arrive in the text file, so you would just map them and not define constants. Why are those not contained in the file?

Greetings

Thomas

Read only

0 Likes
704

Thomas...talked to my superior we are going to go the route of using RFBILB00 to solve this issue rather than using the LSMW. Do you have any experience in this route?

Read only

0 Likes
704

Lindsey,

using RFBIBL00 is a good idea. Actually I would still recommend using LSMW with batch input object 0100 and method 0000. This will trigger that very RFBIBL00 program for the actual postings. LSMW is just a wrapper to help you map the source data to the target structures as expected by RFBIBL00 in this case.

Still I find it very unusual to not have the account numbers in the input file. Are you really posting to the same two accounts in each document?

Greetings

Thomas