Dear colleagues,
Having recently been converted to the joys of LSMW I prefer using this tool to writing ABAP code when developing a new interface. Another preference is to use (inbound) IDoc processing, for various reasons.
I am trying to define a project to post accounting documents from an external system but have reached what seems to be an insurmountable problem: outputting multiple copies of a sequence of segments from one input record. The input file contains more than 1000 detail records.
From one input (detail) record we need to create one IDoc, containing the following sequence of segments:
E1BPACHE01 Header
E1BPACGL01 GL account details
E1BPACKECR CO-PA acct assignments
E1BPACCR01 Amount & currency
E1BPACGL01 GL contra-account details
E1BPACCR01 Contra posting amount etc.
I have seen (and used) the method of creating the same segment multiple times from one input record, but am at a loss as to how I can accomplish the above requirement. My searches of the whole of the SDN have returned no useful results.
A useful addition to LSMW would be to copy segments at random in the mapping stage, but this is not possible yet. We are using LSMW version 1.8 on SAP R/3 4.6C.
Can someone help me?
Much obliged,
Marius Page