cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW ( For sales order item)

Former Member
0 Kudos

Dear all,

I have a question, can LSMW batch change some data in sales order line item?

For example, there has a sales order with 20 items. I have to change the material group in item 10 and 50, can i achieve this by LSMW?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use BAPI_SALESORDER_CHANGE.

The Structure BAPISDITM and BAPISDITMX are used for updating any line item.

Remember to update the schedule lines along with the item (BAPISCHDL & BAPISCHDLX) when you change the order quantity and to change conditions use BAPICOND and BAPICONDX structures as well.

Former Member
0 Kudos

Dear all,

I still cannot found item in my recording. In my recording just show below information:

I am not sure if " BDC_OKCODE =ITEM" means item?

SAPMV45A 0102

BDC_CURSOR VBAK-VBELN

BDC_OKCODE /00

VBAK-VBELN 17380

SAPMV45A 4001

BDC_OKCODE =ITEM

BDC_SUBSCR SAPMV45A

VBKD-BSTKD 1

BDC_SUBSCR SAPMV45A

KUWEV-KUNNR 211011

BDC_SUBSCR SAPMV45A

BDC_SUBSCR SAPMV45A

RV45A-KETDAT 2008.06.23

RV45A-KPRGBZ D

VBKD-PRSDT 2008.06.23

VBKD-ZTERM 0001

VBAK-AUGRU 002

BDC_SUBSCR SAPMV45A

BDC_SUBSCR SAPLV45W

BDC_SUBSCR SAPMV45A

BDC_CURSOR RV45A-KWMENG(01)

BDC_SUBSCR SAPMV45A

SAPMV45A 4003

BDC_OKCODE =T\02

BDC_SUBSCR SAPMV45A

BDC_SUBSCR SAPMV45A

BDC_CURSOR RV45A-KWMENG

RV45A-KWMENG 2

VBKD-PRSDT 2008.06.23

SAPMV45A 4003

BDC_OKCODE /00

BDC_SUBSCR SAPMV45A

BDC_SUBSCR SAPMV45A

BDC_CURSOR VBAP-MATKL

VBAP-PRODH 50...510..5100

VBAP-MATKL 730

VBAP-SPART 10

VBAP-KONDM 11

VBKD-KDGRP 12

VBKD-KONDA 11

VBKD-PLTYP 11

Former Member
0 Kudos

Hello Irene,

VBAP-MATKL 730

VBAP-SPART 10

VBAP-KONDM 11

indicate item level data.

Let us know, what exactly is your problem? You are not able to change ur item data?

Rgds,

Raghu.

Former Member
0 Kudos

Hi,

If you are not getting the required feild then once you do your recording for VA02 and come back to recrded screen with all values, then click "Add Screen Feild" under SAPMV45A 4003 and give the feild name as VBAP-POSNR and then save your recording.

It will serve your purpose.

Cheers !!

Imzo

Former Member
0 Kudos

Dear Imran,

When i press the button "add screen field", i just can see below information, but cannot see any field can give me put "VBAP-POSNR", is any mistake with my option?

TAXI_TABSTRIP_CAPTIONS-TAB01 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB02 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB03 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB04 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB05 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB06 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB07 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB08 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB09 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB10 Character field of length 40

TAXI_TABSTRIP_CAPTIONS-TAB11 Character field of length 40

Former Member
0 Kudos

Dear Irene,

To insert the desire field to recording, please follow the following steps :

1.After recording of VA02 on data recorded screen ,

2.Please put your curser on - SAPMV45A 4003

3.Then on Menu click Edit - > Add Screen Feild (Extended)

4.Select Screen Field option and there you give your field name - VBAP-POSNR

Hope now you can do it.

Cheers !!!

Imzo

Former Member
0 Kudos

Dear Imran:

Thank you very much for your help. I have test the way you told me and i got the result i wanted !!

By the way, i have found another way to solve this problem. When recording in VA02, i use the function "ITEM TO TOP" (the 4th button in the below), then it can help me record the item number too.

Share this way to you . Thanks again.

Former Member
0 Kudos

Dear Irene,

Thank you very much for sharing your experiance.

Regards...

Imran

Former Member
0 Kudos

Dear Irene,

I am not getting "ITEM TO TOP" function in recording screen, can you please let me know where exactly it is available.

Just bit curious to know

Cheers !!!

Imzo

Answers (5)

Answers (5)

Former Member
0 Kudos

For you scenario try SCAT.

Regards,

Kiran.

Former Member
0 Kudos

Dear all,

I have test in LSMW, in the recording, there is no item view to let me choose. Can i upload a attachment here to show you?

Former Member
0 Kudos

Hi Irene,

While doing recoring for VA02 you will find the feild - VBAP-POSNR, this is for Sales Document Item Number. In this feild if you pass you respective Item number then your problem will get resolve.

Cheers !!!

Imzo

Former Member
0 Kudos

hi,

The best option is to go with MASS maintenance

tcode: MASS-> enter object name=BUS2032->execute & execute---> enter salesorder no ---> here u can chnage the details which u want

Note: If the sales order to be changed are huge in nos (more than 50k) the best option is LSMW.

regards,

Arun prasad

Former Member
0 Kudos

Hi Irene,

Yes through LSMW you can do the required changes in existing Sales Order like changes in Material Group in line Item (Field - VBAP-POSNR)

To do this you have to go to give recording Transaction as VA02 in "Batch Input Recording".

Cheers !!!

Imzo

Lakshmipathi
Active Contributor
0 Kudos

Dear Irene

Yes certainly you can change in LSMW, provided the recording created is correct.

thanks

G. Lakshmipathi