‎2005 Sep 26 6:40 AM
Hello,
I'm trying to use LSMW(IDoc) to create a PR. However the PR number is internally assigned. Is there any way to make the program recognise that the PR has multiple line items using just LSMW(without a separate ABAP program).
Regards
Gladys
‎2005 Sep 26 6:50 AM
‎2005 Sep 26 6:50 AM
‎2005 Sep 26 7:11 AM
Hi
There is no way in LSMW unless you have header records for segment E1PREQCR inserted into your file. The input file should have one line for this segment ( even though it may ne blank as it is optional ) and one or more line item lines after this.
If you already have a file with only item records you will have to insert the header lines at the desired place by another method or another ABAP program before passing it to LSMW. LSMW has capability of mapping / converting existing record lines but does not have the capability of adding lines.
Cheers
‎2005 Sep 26 8:09 AM
Hi Christian and Sanjay,
Thanks for your replies. I've taken your advice and created two source structures using the unique key as the link, and it works now.
Btw. How do I close this topic?
Cheers
Gladys