cancel
Showing results for 
Search instead for 
Did you mean: 

PO update via LSMW

0 Kudos
1,319

Dear experts,

My requirement is to update PO/Contract via LSMW only.

Here, i have to update payment terms, delete unprocessed messages and maintain new version with specific reason and description. I tried doing this via recording transaction me22, but the version management part can not be recorded. But when i run the batch input session it throws an error to update the version.

Please suggest a way to handle this.

Many Thanks,

Nidhi

Accepted Solutions (0)

Answers (2)

Answers (2)

deependra_shekhawat3
Contributor
0 Kudos

Hi Nidhi,

If it is not getting possible via recording you can try to change PO via BAPI 'BAPI_PO_CHANGE'.

In LSMW go with business object 'BUS2012' . You need to enable inbound IDOC processing for LSMW.

Thanks

Deependra

0 Kudos

Hi Deependra,

With BAPI_PO_CHANGE, unprocessed messages can not be deleted. Its the BAPI's restriction.

deependra_shekhawat3
Contributor
0 Kudos

Hi,

There are some paramter so you can take a look on them like Import paramter  NO_MESSAGING, NO_AUTHORITY etc.

Deependra

0 Kudos

Hi Deependra,

My requirement is to update PO and Contract at one go. And the BAPI is for PO only. Is there any other way out then using BAPI, some FM which can be included in LSMW code.

deependra_shekhawat3
Contributor
0 Kudos

Hi Nidhi,

what do you mean by contract ? is it sales contract or any other ?

thangam_perumal
Contributor
0 Kudos

Dear Nidhi Kothiyal,

                                Whether  u have  checked manually ? what it shows?

Please Refer the below Thread

https://scn.sap.com/thread/1223714

With Regards.

          Thangam.P

0 Kudos

Hi Thangam,

BAPI_PO_CHANGE can be used for Docuement type 'F' only, other than this the requirement is to have a lsmw only. I tried executing this is foreground, it displays an error message to update PO version.

So how we can handle this in lsmw.

deependra_shekhawat3
Contributor
0 Kudos

Nidhi,

'F' stands for Purchasing Document Category. 'F' indicates purchase order itself so you can use this BAPI.

Deependra