VBAP-ANZSN not getting updated when writing serial number to order
Hey ABAP,
i got some Problem with serial numbers.
We have a rental process, where user gives in serial number at time of delivery.
Since we need to create orders based on original order, we need to take the serialnumber from the delivery and write it back to the order, so when order is copied, serial number will be copied as well.
I use following Code to write that serial number into the order, and it works:
code -> next post
FYI: This coding is in a rouitine which is called by perform on commit, in an own update task function module which is beeing called in MV50AFZ1.
So where is the Problem?
The order gets correctly updated with the serial number which got input in the delivery.
When looking at it through VA02 all if fine. You can see the serial number, and you also can see that there is 1 serialnumber of 1 serial numbers.
BUT when having a look at the corresponding VBAP record for this order, VBAP-ANZSN stays empty.
in copy routines, serialnumbers will only get copied as well if VBAP-ANZSN > 0.
Cause if its 0 the system thinks: "yikes there are no serial numbers i got nothing to do".
any ideas?
Edited by: Florian Kemmer on Sep 30, 2009 12:43 PM
DATA: lt_ser01 TYPE TABLE OF ser01,
ls_ser01 TYPE ser01,
lv_equnr TYPE equnr,
lv_sernr TYPE sernr,
lv_matnr TYPE matnr,
lt_riwol TYPE TABLE OF riwol1,
ls_riwol TYPE riwol1,
lv_vbeln TYPE vbeln,
lv_posnr TYPE posnr,
lt_serxx TYPE TABLE OF rserxx,
ls_serxx TYPE rserxx,
ls_lips TYPE lips,
ls_likp TYPE likp,
ls_vbak TYPE vbak,
ls_vbap TYPE vbap.
break fis-kemmer.
" Lieferdaten besorgen
SELECT SINGLE *
FROM likp
INTO CORRESPONDING FIELDS OF ls_likp
WHERE vbeln = gv_vbeln_vl.
SELECT SINGLE *
FROM lips
INTO CORRESPONDING FIELDS OF ls_lips
WHERE vbeln = gv_vbeln_vl
AND posnr = gv_posnr_vl.
" Serialnummer aus der Lieferung besorgen
SELECT SINGLE *
FROM ser01
INTO CORRESPONDING FIELDS OF ls_ser01
WHERE lief_nr = gv_vbeln_vl
AND posnr = gv_posnr_vl.
SELECT SINGLE equnr
FROM objk
INTO lv_equnr
WHERE obknr = ls_ser01-obknr.
SELECT SINGLE sernr
FROM equi
INTO lv_sernr
WHERE equnr = lv_equnr.
CHECK NOT lv_sernr IS INITIAL.
" Matrialnummer aus der Lieferung besorgen
SELECT SINGLE matnr
FROM lips
INTO lv_matnr
WHERE vbeln = gv_vbeln_vl
AND posnr = gv_posnr_vl.
CHECK NOT lv_matnr IS INITIAL.
SELECT SINGLE vbelv posnv
FROM vbfa
INTO (lv_vbeln, lv_posnr)
WHERE vbeln = gv_vbeln_vl
AND posnn = gv_posnr_vl
AND vbtyp_v = 'C'.
" Auftragsdaten besorgen
SELECT SINGLE *
FROM vbak
INTO CORRESPONDING FIELDS OF ls_vbak
WHERE vbeln = lv_vbeln.
SELECT SINGLE *
FROM vbap
INTO CORRESPONDING FIELDS OF ls_vbap
WHERE vbeln = lv_vbeln
AND posnr = lv_posnr.
ls_riwol-sernr = lv_sernr.
ls_riwol-matnr = lv_matnr.
APPEND ls_riwol TO lt_riwol.
ls_serxx-anzsn = ls_ser01-anzsn.
ls_serxx-vbtyp = ls_ser01-vbtyp.
ls_serxx-sdaufnr = lv_vbeln.
ls_serxx-lief_nr = gv_vbeln_vl.
ls_serxx-posnr = gv_posnr_vl.
ls_serxx-kunde = ls_likp-kunnr.
ls_serxx-obknr = ls_ser01-obknr.
ls_serxx-datum = ls_ser01-datum.
ls_serxx-letznr = ls_ser01-letznr.
ls_serxx-vorgang = ls_ser01-vorgang.
ls_serxx-uzeit = ls_ser01-uzeit.
ls_serxx-vbtyp = ls_ser01-vbtyp.
ls_serxx-bwart = ls_ser01-bwart.
ls_serxx-vkorg = ls_ser01-vkorg.
ls_serxx-vtweg = ls_ser01-vtweg.
ls_serxx-spart = ls_ser01-spart.
ls_serxx-ltsps = ls_ser01-ltsps.
ls_serxx-sd_auart = ls_vbak-auart.
ls_serxx-sd_postyp = ls_vbap-pstyv.
ls_serxx-werk = ls_vbap-werks.
break fis-kemmer.
APPEND ls_serxx TO lt_serxx.
CALL FUNCTION 'IWOL_WV_ADD_OBJECTS'
EXPORTING
i_sdaufnr = lv_vbeln
i_sdposnr = lv_posnr
to_type = 'SD'
TABLES
t_riwol1 = lt_riwol
t_ser02 = lt_serxx
EXCEPTIONS
no_object_list = 1
entry_exists = 2
invalid_material = 3
invalid_serialnr = 4
invalid_equipment = 5
invalid_location = 6
invalid_assembly = 7
status_not_allowed = 8
equi_foreign_key = 9
equi_system_failure = 10
customer_exit_error = 11
OTHERS = 12.
IF sy-subrc = 0.
CALL FUNCTION 'IWOL_WV_POST_OBJECT_LIST'
EXPORTING
i_sdaufnr = lv_vbeln
i_sdposnr = lv_posnr
EXCEPTIONS
no_object_list = 1
other_errors = 2
OTHERS = 3.
ENDIF.
Edited by: Florian Kemmer on Sep 30, 2009 12:46 PM
Similar Messages
-
Item description not getting updated when material description is changed
Hi,
In a contract, line item description gets copied from material master. However, when material master is updated line item description does not get updated in a transaction. Is there a way to update this?
Thanks,
DeepakHi Deepak,
Line item description is not changed as when you enter the material in order and save, description is saved in table CRMD_ORDERADM_I along with other details. now if you change the material master description it is pretty obvious that CRMD_ORDERADM_I contents will not automatiically change. if you enter the same material again in order as new line item system will read from material master whereas for existing line items will be read from CRMD_ORDERADM_I . you can change the description using FM CRM_ORDERADM_I_MAINTAIN_OW
i hope it clarify your concern.
Thanks
sudhir grover -
Short/Exc. Rcpt not getting updated when all OPIDs confirmed for partial qty
Hi Friends,
I need your inputs about 'Short/Exc. Rcpt' updation in the Production order once partial confirmation is done.
Example :
Order qty 10
I have OPID 0010 confirmed yield 4 confirmed scrap is 1
OPID 0020 Confirmed yield 4
I gone through the F1 on this field it will be get updated only after the final confirmation, i tested that its updating only after final confirmation status
on the order/operation.
My client seeing problem that even though scrap confirmed, but in MD04 this quantity shown as open pproduction order qty as 6 (excluding scrap confirmed it should be 5).
Please let us know what setting needed for this field 'Short/Exc. Rcpt' updation even after PCNF, PDLV status.
Thanks in advance for your quick response.
NagHi Arnab Banerjee,
In Sechedule line item posnr give the posnr value intead of 'X'.
wa_order_schedules_in-sched_line = wa_salesschedu-etenr.
wa_order_schedules_in-itm_number = wa_salesschedu-posnr.
wa_order_schedules_in-req_date = wa_salesschedu-edatu.
wa_order_schedules_in-req_qty = wa_salesschedu-wmeng.
APPEND wa_order_schedules_in TO it_order_schedules_in.
wa_order_schedules_inx-sched_line = 'X'.
wa_order_schedules_inx-itm_number = wa_salesschedu-posnr instead of u2018Xu2019
wa_order_schedules_inx-req_date = 'X'.
wa_order_schedules_inx-req_qty = 'X'.
APPEND wa_order_schedules_inx TO it_order_schedules_inx.
and do follow for all posnr = posnr value instead of X.
Cheers,
Naveen. -
Material Description is not getting updated in IC-WebClient ERP Sales Order
Hi Experts,
The issue is with ERP Sales Order in IC web client.
Scenerio:1
While creating the Sales order, If we enter a product in Line Item 10 , which is mapped (Product Type) in both the systems(CRM&ERP) . It will take the description for that product correctly. If we enter another product in Line Item 20 , which is not mapped (Product Type) in CRM system (only available in R/3) the description of the previous line Item product (Item 10) inherited to Item 20 instead of taking the description of Item 20.
Scenerio:2
If we enter a product in Line Item 10(as a first Item) , which is not mapped (Product Type) in CRM system (only available in R/3) It will take the correct description for that product . And there is no problem for Second line Item, even though the Second line Item is not mapped (Product Type) in CRM system (only available in R/3)
Technically speaking :The Product which is mapped in both the systems is entered as first line item , this product description is copied for all the line items below (i.e 20,30,40) which are not mapped in both the systems. As and when we entered a mapped product in line Item 50 , It is taking the correct description of Item 50
Kindly advise.
Thanks in Advance,
Raja
Edited by: Raja Parasa on Feb 26, 2010 5:23 AM
Edited by: Raja Parasa on Feb 26, 2010 5:24 AMHi Raja,
This looks like a bug.
sorry for not answering ur question.
However, since you are using ERP sales order, i request you to look at my issue in the below thread and answer if you had similar issue.
let me know if i can speak to you in person.
GATP (APO) Check results in ERP Sales order.
thanks
shree -
Taxes are not getting updated in PO
Dear All,
I have done some changes in pricng and tax calculation procedure.
But for old POs the calculations are not getting updated when i sees at invoice tab in PO. To make affect the same I need to unrelease the PO, SAVE and again release the PO.
Is there any other way for updating the tax calculations at invoice tab in PO.
Regards,
Rakesh>
Rakesh Shelar wrote:
> Dear All,
>
> I have done some changes in pricng and tax calculation procedure.
>
> But for old POs the calculations are not getting updated when i sees at invoice tab in PO. To make affect the same I need to unrelease the PO, SAVE and again release the PO.
>
> Is there any other way for updating the tax calculations at invoice tab in PO.
>
> Regards,
> Rakesh
Only other way possible is abap script to be made to change Po data without changing the release. Otherwise you need to unrelease the Po's first, then change the data and then save for your changes to get affected. -
Contact person Rel.ship Data not getting updated in B2B Web User Mngt
Hi CRM Gurus,
Need some help on Web User Management functionality.
Sub: Contact person Relationship data not getting updated when we change the company (to wich contact person belong to) in ISA CRM 5.0 Web User Management.
we are currently on CRM ISA 5.0 and using Web User Managment for our B2B scenario. New creation of users is working fine. But when we want to change the company (Sold to pary) for the existing contact person, the relationship data in CRM is not getting updated and the below are the details.
Contact person No: XXXX (has a Relationship: "Is contac person for YYYY company in CRM)
Company/Sold to Party: YYYY (has a relationship "Has contact person XXXX in CRM).
When I chage the contact person's (XXXX) company from YYYY to ZZZZ,
- Relationships of the new assignment for ZZZZ in CRM not getting updated.
- Old Records in YYYY is not getting deleted (i.e. relationships.
- There is No relationship data appear in XXXX.
Appreciate any inputs on the same.
Thanks,
Rahul >>>Hi Rahul,
I'd suggest you running a session trace / ABAP debugging to see if some information is not getting passed from the Java stack onto the ABAP stack. An alternate move would be to create a new OSS customer message.
Cheers,
Ashok. -
File does not get updated in document library
I'm encountering weird behavior which I hope you can suggest on how to further troubleshoot. There are some document libraries that whenever I upload a new version of a file, the file's contents do not get updated (when I open the file after check-in,
it still shows the old content) but the Modified By and Modified fields get updated.
Remote Blob Storage is turned on for our site; could it be RBS-related? However, only a few document libraries exhibit this kind of behavior.Hi Kev,
There's no particular pattern in the differences between libraries exhibiting the behavior and those that do not. If it matters, the Style Library is experiencing this kind of behavior. We also have a document library renamed to "Images" (its URL
is /Images) that also exhibits this behavior. I also tried disabling and enabling versioning, still the same behavior. I even tried deleting the file and reuploading with the same file name, still the same behavior! -
Backend document number not getting updated
Hi ,
Shopping cart is not getting updated with backend document number in follow on document section
I am getting graphic display but no backned doc number
I am on EBP 5.0
Has anybody come acroos such issue any solution?
Thanks in advance
DiwakarHI Diwakar,
Check in table BBP_DOCUMENT_TAB if any follown on document available wrt to SC...
also you can do one thing...open SC in BBP_PD transaction...select line item & check for Follow-On Document Object ID in Backend in table BBP_PDBEI...
also meka esute that this document is created in R/3..if follow on document is available in R/3 then it's a problem with BBP_GET_STATUS_2..
Let me know ur findings..
BR
Bharat M -
The currency is not getting updated in the table VBAP
Hi ,
The currency is not getting updated in the table VBAP. The currency was suppossed to be copied from the header table VBAK for a Sales Order. When the user creating a Sales Order the currency WAERK is not shown in VBAP table. VBAK-WAERk is in EUR . Does anyone know why is this happenning?
Currency is maintained in the Customer Master, Material Master and Sales Org. Any suggestions?.
Also it is happened for only one line item in a set of line items , Other line items did display the currency field.
The net Value has data in it .
The system is ECC 5.0
Regards,
SenthilDear Senthil,
Please apply the following notes (if they apply to your support pack level) and retest:
1460621 VBAP-WAERK is deleted after the sold-to party is changed
1426441 VBAP-WAERK deleted for subitems
1493998 VBAP-WAERK deleted for subitems
This should resolve the issue. I hope this helps.
Best regards,
Ian Kehoe -
Serial number is not getting updated in GR
Problem: Serial number in not getting updated GR document (in stock) while going GR for production order.
We are using u201CBAPI_GOODSMVT_CREATEu201D to do production order GR in one development. And we have used serial number profile in which we kept GR as optional. Please fine details of serial number profile as below. We have a restriction that we can not make GR mandatory in serial number profile.
MMSL Maintain goods receipt and issue doc. 02 02
PPAU Serial numbers in PP order 02 01
PPRL PP order release 04 01
PPSF Serial nos in repetitive manufacturing 03 01
QMSL Maintain inspection lot 02 01
SDAU Serial numbers in SD order 01 01
SDCC Completness check for delivery 02 01
SDCR Completion check IR delivery 02 01
SDLS Maintain delivery 02 01
SDRE Maintain returns delivery 02 02
As we are passing serial number in BAPI while doing GR but still is not getting updated in GR document. When we check stock in MMBE, it is not showing any serial number.
Please suggest solution.
Thank you.Hi Chetan,
Since your MMSL procedure is optional, you cannot carry assignment of Serial Numbers against goods Movement. Though you are passing serial numbers during GR, but Serial Numbers are linked only upto Production Order Level, not upto the Stock. The only option to display the Serial numbers against Stock can be done using MMSL procedure as 3. We also faced the similer situation, whenever ur doing automatic goods movement with MMSL as 02 [Auto GR], One possible solution, is to create a custom program to complete ur GR like using Call Transaction BDC -MB32, not as standard SAP Auto GR, & need to make MMSL as 3...so that both purpose gets served [ Serial number linking to stock & Automatic GR using custom program]
Please share, if you get any better idea
Krishna Kulkarni -
Delta Records is not getting updated in delta queus when changes done
Hi All,
In Quality system , when a user makes a change to an order's ship-to address, the changes are "triggering" a delta record into the delta tables for BI to extract. This can be seen via tcode rsa3's delta tester.
In Productionn System, when the user makes the exact same change, nothing is added to the delta table and the changes never come over to BI unless a full extract is request for the order.
Why changes not getting updated, please give your inputs.
Thanks & Regards,
Venkat Vanarasi.Do you have your V3 update job active and running? THis job wites changes to the delta queue. Of course your datasource has to been initialized and a delta queue should be setup. You can check it in RSA7.
Regards,
Juergen -
Material text is not getting updated in the VBAP table
Hi All,
There is an customized field in the sales order which picks up the addition material information maintained for a material. When we create the sales order the text appears. After we save the sales order, when we open the sales order(VA01/VA02), the text does not appear. If you check the VBAP table, the field which stores this text is blank. It will not update when we save the sales order.
Could someone please let me know how can we check this problem.
Regards,
SwathiHi
Usually, this fields (zzfield) are populated with the subroutine userexit_move_field_to_vbap in include MV45AFZZ.
I hope this helps you
Regards
Eduardo -
Future price is not getting updated as current price when period changed
Hi all,
We follow the following procedure to update standard price in material master. Our organization is a manufacturer of pharma products. ( System is not live yet)
We have BoM's for all FG's and all FG's & SFG's are having Price control indicator as "S". Rest other materials are valuated for Moving Average price.
> Run T-code CK11n for the FG.
> Check whether costs of utilities and final product is as per the cost sheets prepared manually (10-20% difference acceptable)
> Do not save it and goto CK40n tcode. Mark and release price of FG's & SFG's for the current date (eg: 16.01.2008). Now as 10th period of year 2008 was not open at that time and only 9 th period of year 2007 was open, the prices were updated as "FUTURE PRICE" in costing-2 view of material master.
> Now that when i am opening 10th period (both financial period and inventory period), my future price is not getting updated as my CURRENT PRICE in material master as my standard price.
Pls. reply to this urgently.Hi,
I am sure about it that when CK40n was done for a future date when some n-1 period was open, the costs released would get updated as future price.
When the period for which future price was updated is opened as current period, the future price automatically gets updated as current price and is also set as standard price in accounting 1 view.
But i m unable to identify why is not working. -
When PO is cancelled PR is not getting updated.
Hi all,
I have written a condition for pending pr.
COMPUTE pending pr qty = EBAN-MENGE - EBAN-BSMNG .
But in case if the po is cancelled the quantitiy is not getting reverted.
When PO is cancelled PR is not getting updated.
Is there any other condition to check or any solution please.
Regards,
PriyaHello Sivapriyaramesh,
Link: [http://www.finance.utoronto.ca/fast/qrg/purch/po/finalizecancel.htm]
Please check the link. hope this solves your problem.
Cheers,
Suvendu -
New problem! When I sync my iPhone 5s to Outlook the events entered in my phone Calendar do not get updated to my outlook calendar on my laptop yet entries on entered on my outlook calendar do get updated to my phone??
iPhone 5s
Software - IOS 8.1
iTunes - v12
I have been using sync on all previous phones to date without issue, I have had the 5s since Nov 2014 and no issue, on Sunday without warning or changes to my phone or Outlook sync now has this error.
I have restored my phone but still has same problem.Your IT person is an idiot.
http://lmgtfy.com/?q=how+to+sync+iphone+with+outlook
Maybe you are looking for
-
Error while deploying an apache ant script in Jdeveloper for webcenterspace
Hi, I am trying to deploy the ExtendWebCenterSpaces project in Jdeveloper. I right clicked the build.xml -> Run Ant Target -> clean stage. This was successful. However, when I right-click build.xml -> Run Ant Target -> deploy-shared-lib, I get the fo
-
Hi everyone. I am encountering a problem with Adobe forms within the HCM Processes and Forms framework. I am not able to press the check and send button because of the never ending hour glass symbol. The form just seems to hang. This is not related t
-
I'm trying to create a C++ CIN using MSVC 6. The CIN is fairly simple: // multab.cpp #include "extcode.h" CIN MgErr CINRun(float64 *A, float64 *B, float64 *C); CIN MgErr CINRun(float64 *A, float64 *B, float64 *C) *C=*A * *B; return noErr; This compil
-
Photoshop crashing at initzializing. Any ides why?
Since yesterday, when I try to open my Photoshop it's crashing. Since yesterday it worked just fine. I tried to reboot, still not working. Any help?
-
Is there a way to set the start of a project? You know how you can set the marker to mark the end of the song? Well, basically I want that, just at the start instead.