Skip to Content
0
Oct 05, 2017 at 12:10 PM

Regarding LSMW PO upload

537 Views Last edit Oct 10, 2017 at 07:56 PM 3 rev

Dear SAP world

My query is using BAPI option with IDOC I am creating Purchase order where I have used external number range for PO. in additiion to that PO will contains multiple line item with account assignment P or Q with WBS element per line item also I am having three or multiple condition types and three or multiple condition rates per line item meaning

PO number -4100000000

Pur Org - XXXX you can use your own

Pur Group - XXX you can use your own

Company Code - XXXX you can use your own

your reference

Our reference

line iem 00010

account assignment category P

Material number 13/1001

Qty 1000

UOM EA

Order price unit EA

Price per unit 1

Price 120

Currency INR

Plant - XXXX you can use your own

Storage location - XXXX you can use your own

requisitioner say any number you can use

agreement number - XXXXXXXXXX

Agreement line item number - XXXXX

WBS element - DB- CNB1-13-51-01-01 fourth level WBS from Cj20N

GR receipt yes

GR non valuated - Yes\

Invoice receipt - yes

Tax code - XX you can use your own

condition 1 - surcharge

condition 1 rateor value - 2 %

condition 2 - discount

condition 2 rate or value -3 %

condition 3 - discount

condition 3 rate or value -3%

then line item 20 and line item 30 with same data

I want to upload this much data using BAPI/ IDOC with Po external number range I was able to create PO with multple line item using this LSMW BAPI/IDOC option but the issue here is multiple conditions are not appearing in line item 10 20 30 and price is getting copied incorrectly for line item 20 and 30

in addition to that we wanted to copy deleted items from PO as it is in next system

meaning PO 4100000000 has line 10 20 30 40 out of which line item 40 is deleted now in backend table LOEKZ fields gets updated for line item 40

if we do this manually meaning if we create a PO manually by ME21N with line item 10 20 30 & 40 and at the same time if we put deletion indicator at line item 40 , PO gets created but line item 40 still appears with deleted sign. we wanted to have exactly the same case to be happened through LSMW PO upload.

Right now if I put X in LOEKZ fied in my template LSMW ignores that line item and PO gets created with line item 10 20 & 30 only

Can any one help me please