on 07-21-2008 4:28 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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.
For you scenario try SCAT.
Regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Irene
Yes certainly you can change in LSMW, provided the recording created is correct.
thanks
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.