VA02: Sales order Issue.

We have upgraded the SAP system from 4.6C to ECC6, a piece of BDC code which was working before in 4.6C has stopped functioning. When run in FOREGROUND mode, program executes fine and changes the sales order, but when the program is executed in BACKGROUND with the same inputs, it fails to function. i.e. Sales order is not changed.
I had tried to see the SQL Trace and it seems like in background mode the order processing is going through some extra checks based on fields SY-BATCH and SY-BINPT. (Seems like in background mode ECC6 is not changing the pricing data).
Here is my code, it has few fields taken from Z tables, but the logic of screens flow is all there.
Expect full points on reply.
form update_va02_qw.
if nobill = space and x_nobill = space.
refresh bdcdata.
clear bdcdata.
perform bdc_dynpro using 'SAPMV45A' '0102'.
perform bdc_field using 'VBAK-VBELN' i8c-vbeln.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
if i8c-edatu i8c-compl or x_pn00 = 1 or
x_tek05 x_aek05 or x_tek06 x_aek06.
perform bdc_field using 'BDC_OKCODE' '=POPO'.
perform bdc_dynpro using 'SAPMV45A' '0251'.
perform bdc_field using 'RV45A-POSNR' i8c-posnr.
perform bdc_field using 'BDC_OKCODE' '=POSI'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
if i8c-edatu i8c-compl.
write i8c-compl to x_datex dd/mm/yy.
perform bdc_field using 'RV45A-ETDAT(01)' x_datex.
endif.
if x_pn00 = 1 or x_tek05 x_aek05 or x_tek06 x_aek06.
perform bdc_field using 'RV45A-VBAP_SELKZ(01)' 'X'.
perform bdc_field using: 'BDC_OKCODE' '=PKO1'.
perform bdc_dynpro using 'SAPMV45A' '5003'.
clear: x_cnt.
if x_ek05 = 1 and x_tek05 x_aek05.
perform bdc_field using 'RV61A-SELKZ(09)' 'X'.
x_cnt = 1.
endif.
if x_ek06 = 1 and x_tek06 x_aek06.
x_cnt = 1.
if x_ek05 = 1.
perform bdc_field using 'RV61A-SELKZ(10)' 'X'.
else.
perform bdc_field using 'RV61A-SELKZ(09)' 'X'.
endif.
endif.
if x_pn00 = 1.
x_cnt = 1.
if x_ek05 = 1.
if x_ek06 = 1.
perform bdc_field using 'RV61A-SELKZ(12)' 'X'.
else.
perform bdc_field using 'RV61A-SELKZ(11)' 'X'.
endif.
else.
perform bdc_field using 'RV61A-SELKZ(10)' 'X'.
endif.
endif.
if x_cnt = 1.
perform bdc_field using 'BDC_OKCODE' '=V69A_KOLO'.
endif.
perform bdc_dynpro using 'SAPMV45A' '5003'.
perform bdc_field using 'BDC_OKCODE' '=V69A_KOAN'.
perform bdc_dynpro using 'SAPMV45A' '5003'.
perform bdc_field using 'KOMV-KSCHL(02)' 'EK05'. "Metrix Cost
write: x_tek05 to x_amntx.
perform bdc_field using 'KOMV-KBETR(02)' x_amntx.
perform bdc_dynpro using 'SAPMV45A' '5003'.
perform bdc_field using 'BDC_OKCODE' '=V69A_KOAN'.
perform bdc_dynpro using 'SAPMV45A' '5003'.
perform bdc_field using 'KOMV-KSCHL(02)' 'EK06'. "Metrix Cost
write: x_tek06 to x_amntx.
perform bdc_field using 'KOMV-KBETR(02)' x_amntx.
perform bdc_dynpro using 'SAPMV45A' '5003'.
perform bdc_field using 'BDC_OKCODE' '/EBACK'.
endif.
endif.
perform bdc_dynpro using 'SAPMV45A' '4001'.
if vbak-lifsk space.
perform bdc_field using 'VBAK-LIFSK' ' '.
endif.
if vbak-faksk space.
perform bdc_field using 'VBAK-FAKSK' ' '.
endif.
perform bdc_field using: 'BDC_OKCODE' '=KBES'.
perform bdc_dynpro using 'SAPMV45A' '4002'.
perform bdc_field using 'VBKD-IHREZ' x_ihrez.
perform bdc_field using: 'BDC_OKCODE' '/11'.
if x_batch = 'X'.
perform bdc_insert using 'VA02'.
else.
opt-dismode = 'E'.
call transaction 'VA02' using bdcdata options from opt
messages into itab.
sort itab.
loop at itab where msgtyp = 'E'.
if nodel = space.
message id itab-msgid type 'E' number itab-msgnr with
itab-msgv1 itab-msgv2 itab-msgv3 itab-msgv4 into x_emsg.
write: / 'Update VA02 Error - zs8c', reqid, x_emsg.
endif.
endloop.
if sy-subrc = 0.
endif.
endif.
endif.
endform.

go into VA02, go into detail of your item, goto the schedule tab
make sure you have a confirmed quantity there.
you see there as well the delivery date.
Make sure that the selection date in VL02N not smaller than your delivery date for your confirmed schedule line

Similar Messages

  • Serial numbers to generation at Sales Order Issue

    Hi someone knows about Serial Control
    Do use serial number at pick release is mandatory apply Installed Base?
    what´s different between serial numbers generation in reception and at Sales Orders Issue?
    thanks,

    Do use serial number at pick release is mandatory apply Installed Base?
    No it is not mandarory if you use this serial control (At Sales Order Issue). If you use serial number control at receipt then serial number is mandatory at the time of pick confirming.
    what´s different between serial numbers generation in reception and at Sales Orders Issue?
    At Receipt:
    You maintain serial numbers in inventory and transaction them in inventory for all transactions.
    At SO Issue:
    You enter the serial numbers only at the time of shipments.
    As IB knows the inventory controls it maintains the information accordignly. When in inventory serial numbers can be grouped into one instance as they do not have any serial number. Once shipped, the same instance will be split and is created as a different instance with the serial number.
    Thanks
    Nagamohan

  • Security object for shipping conditions (T-Code VA02-sales order)

    Hi
    I need to gray out filed-VSBED (shipping conditions) in T-code VA02 (sales order change) for users, what could be the security object to be used for this requirement?
    Regards
    sri

    The functional requirement till doesnt seem very clear to me , why would someone want to grey this field? (unless you have a strong case that you use different document types for normal orders, express deliveries, normal service, free of charge and a whole lot of possibilities)
    Your SD consultant should guide and let you know that:
    Shipping conditions are defined in customizing
    you can eithe assign particular shipping conditions to particuar sales document types to make it as a default
    (or) you can have the shipping conditions defined in the customer master
    the ones set up in SPRO take a preference, but as you rightly noticed - if a use wishes to change the shipping conditions proposed by the system he would be able to do that, and this CANNOT be controlled with authorization objects
    The only option you would have, is to find out if the users who are not suppposed to change the conditions beong to the same user group (or make a logical assesment on the common binding feature in the set of users)
    then evaluate if you want to make the program changes such that the changes affect only the particular set of users
    Note: Changes you make in ABAP do not necessarily apply to the complete user base - it depends on how well you analyse and plan the requirement

  • G/L account no missing in sales order-issue

    Hi Experts,
    I am getting error: G/L account missing while saving the sales order.
    It is available in incompletion log, when i choos that it is going to item conditions tab directly.
    It seems related to VPRS condition type, because that sales order related to free goods sales order.
    There is no pricing condition type, only VPRS condition type is thr.
    Please help us to solve this issue. What would be the reason, is there any costing assignment required?
    Regards
    Lakshmikanth

    Dear Lakshmikanth,
    To analyse the cause of the error:
    VA02 --> Key-in Sales Order No. and Hit "Enter" --> Double Click on to Sales Order Line-item --> Tab: Condition --> Sun-Tab: Analysis
    on to next screen, For your Condition Type, check what condition records are missing.
    This will help you to maintain Relevant Condition Record, to resolve error.
    For Example:
    In VKOA, G/L might not be maintained for Condition Type: KOFI/ KOFK.
    Best Regards,
    Amit
    Note: You may also post the Error-Analysis for our understanding.

  • Running a Invoice Form (VF00) through VA02 (Sales Order).

    Hi All,
    I am a little puzzled by our functional team. My SD Functional expert wants me to run the invoice form (Billing output type or V3) from VA02 (Sales output type or V1).
    Currently, we have the invoice print program tied to a invoice smartform. He wants all the functionality to be there on the invoice form, but to be able to run from VA02/VA03 (Sales order). So, run INVOICE from VA02. Currently we have a custom program modeled after RLB_INVOICE sap print program and our smartform is modeled after LB_BIL_INVOICE.
    Can anyone suggest if they have done something like this before?
    Regards,
    Salil

    Hello,
    I am having the same issue, How did yuo solve it?
    Thanks,
    Alex

  • Sale Order Issue

    Hi Experts !!!
    Below is the scenario where i am stuck up.
    Scenario:
    ==========
    1).I have created Sales order of 9 pieces of a particular item.
    Made delivery of 4 pieces.
    Balance left is 5 pieces.
    2).Again i made delivery of 4 pieces.
        Now balance left is 1 piece.
    3).Now i have made a Return of 4 pieces of second delivery through sales module.
    Problem :
    =============
    when i view my Sales Order again , then in " Quantity Coloumn " it is showing only 1 piece instead of 9 pieces.
    The problem is creating a havoc to my customer , to track the ordered pieces and how many are delivered.
    Because if ordered pieces were 9,then why it is showing only 1 piece.
    How can i solve this issue,
    Regards
    Krishna Vamsi .

    Hello Rahul Sir !!!
    I have checked it .
    its "Quantity Coloumn " and not "Open Quantity."
    How Ever " Open Quantity " is showing only 1 piece.
    But Even "Quantity " Coloumn is showing 1 piece
    Regards
    Krishna Vamsi

  • Settlement of Sale Order issue.

    Dear friends
    I am getting the following error while settling the Sale Order in VA88.
    Please guide me in this issue, how to handle?
    There are no accrued amounts; settlement is not possible.
    Message no. KD256
    Diagnosis
    The sender has a results analysis key, but no accrued values.
    Either the accrual was not yet started for the sender, or the values to be settled from the accrual equal zero.
    Note
    Actual costs are only settled once the sender is technically completed or finally delivered.
    This applies to
    Projects that cannot carry revenues
    In Service Management for sales order production to the indicator (Calculate WIP for orders in sales order production) set in the accrual version for
    Production orders
    Internal orders with no revenues
    Orders with no revenues
    In Service Management for engineer-to-order production to the indicator (Calculate WIP for orders in engineer-to-order production ) set in the accrual version for
    Internal orders with no revenues
    Orders with no revenues
    In Service Management to the indicator (Calculate WIP for internal and service orders with no revenues) set in the accrual version for
    Internal orders with no revenues
    Orders with no revenues
    To the indicator (Calculate WIP for production orders without settlement to material) set in the accrual version for
    Production orders without settlement to material
    Procedure
    1. If necessary, start the accrual calculation for the sender
    2. Restart settlement

    Now I am getting another error.
    Complete PA transfer structure ZR
    Message no. KD514
    Diagnosis
    There is no value field assignment for cost element 911400 / *_variance category COSR_* in PA transfer structure ZR, or
    PA transfer structure ZR has no assignments, or
    No "Origin" is maintained for the assignments in PA transfer structure ZR (cost element group and, if applicable, variance category)
    When I see the Variance Category I didnt find any Variance Category COSR?
    What could be the reason.
    Thanks in advance
    Kiran

  • Pricing condition in sales order-issue

    Experts,
    i am facing a very strange issue, functional consultant
    did some configuration ,such that when header of
    sales order have condition type ,let say some 'ZXX',
    this pricing conditon should be applicable to all
    the schedule line with pricing condition as 'ZXX' where material in schedule line is let say 'ZPP',that mean
    these should only be applicable for material type
    'ZPP',we are facing strange issue , when scheule line no
    10 is having material 'ZPP' ,then pricing conditon is
    working fine('ZXX'),but if scheule line no 10 is having
    material other than 'ZPP' and if scheule line no 20
    is having material 'ZPP' ,then for scheule line no 20
    pricing condition is not getting copied from header

    goto  tcode - <b>vk13</b>
    note that [A]--sequence for plant /material
    note that <b>--sequence for plant /material/cafgroup
    enter ur pricing condition type and
    for the <b>plant/material</b> combination etc.. [A]-
    may be in the access sequence ur consultant ave given it to a new sequence say <b>plant/material/caf group</b> .. --<b>
    like this 
    suppose say item 10 is for option [A] so access sequence is for this only ..cause material is now in plant/material
    now say item 20 is for option <b> so
    material at line item 2 will fall under this sequence ..
    cumulatively u need to get the total ..
    now if the material is same in line 10 20 , u will have to fetch the values from both the tables in sequence and not one table will store the values ..
    cause sequence pass for the material is now [A] and <b>
    rememebr that per classification the values are stored in diff table like a906 ,, a90*..
    in order to fetch that  u need to get it from the tables of classification
    and then cumulate it ..
    this is important ..
    regards,
    VIjay.
    Message was edited by: Vijay

  • Sales order issue

    hello SD gurus
    I have 2 issues:
    1) when the sales order value exceeds 1000000 system has to give the warning / error message . where should I have to do the settings
    2) if any customer enter wrongly like Qty : 1,0000,000 system has to give the warning / error message , where i have to do the settings
    Please  give me some light on this
    thanks and regards
    siva
    Message was edited by:
            siva narayana

    Hi
    goto Tcode FD32
    enter the customer number and credit control area and select the status check box
    to set the credit limit to the customer select goto control area data -
    status
    we can specify the credit limit of the customer in the field credit limit .
    In fd32. you can give the total and individual limit for that particular customer in that particular sales areas or all the sales areas. and also activate in sales document type which credit limit ie, simple or automatic and risk category. in the tcode OVA8. and also in the item category to check the credit for the line items in the order. and also give credit control area in the customer master record and dont forget to assign the credit control area to the company code and the sales area. and in pricing subtotal give A and recquirement 4 which all the credit data will be activated and stored in the table KOMP-CMPRE.
    Sail

  • Deleted Sales Orders Issue

    Hi,
    I have a typical issue with Sales Order deletion in R/3
    In R/3,the Sales Orders have been physically deleted due to which the sales orders are not available in the tables.
    In R/3 reports those Sales Orders are not reflected. But in BI, since they have already been loaded, they are showing in the results since the SOs at that time were loaded to BI. Once documents are deleted in R/3  those changes are not reflected  in to BI. This discrepency is not acceptable by the customer. Plz help in how to resolve the issue.
    Many Thanks
    Uday

    Hi Uday,
    It seems the same issue has been discussed sometimes back ,but no solutions were given.
    Deleted sales order items and delta direct
    As I said earlier,extractor will not capture those deleted items. Even enhancement may also not work for this case. Anyway,please check with OSS whether any solutions available for this problem .I convinced my users to go for the cancellation (not mark for deletion) of the items. 
    Below link will give you the info about why it is not a good practise to delete the item .
    deleted sales order
    All the best.
    Thanks.

  • User Exit - VA01 / VA02 Sales Order, using Variant Configuration Fields

    Hi,
    I'm doing a user exit for creating / changing a sales order (VA01/VA02), and in my program I'm trying to use the characteristic values in variant configuration: Extras -> Configuration.
    I know there's a whole bunch of data in SAPMV45A, but I can't seem to find what I need. Structure RV45A is the closest I can find, but the characteristic name / value fields appear empty during the execution of the user exit.
    Any help would be greatly appreciated.
    Thanks!

    R u creating your own user exit or using the ones which are available for VA01/VA02?
    If you can use existing ones, to get the more details abt them, please have a look at below link.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • VA01/VA02 - Sales Order Line items

    Hello SD Expert,
    When am creating Sales Order  (VA01) I noticed my transaction display only default of 2 line items and i need to scroll down in the event i have more that 2 line item to enter/key in.
    And I noticed that other SD user when they execute VA01 -Create Sales Order their initial screen default to almost 14 line items.
    I want my screen to have a default  multiple line item during my VA01/VA02 screen.
    Take note that both of user having the same font size use and our SAP screen are fully maximize.
    My question is - Is this user default setting? or configuration? Can someone advise how can i achieve this?
    Thanks in advance.
    Itsme.

    Hello Naren,
    Just a follow up question - is there any chance that this can also  made per User settings?
    I tried your suggestion in our development by changing the order type to UER2. and when i tried to create sales order i have the multiple line item.
    The other user who is creating the Sales Order in our production system use the same order type
    and in our production the set up is UER1 but still  her screen by default  has multiple line item.
    Thanks again.

  • VA02 - Sale Order Change Flag ?

    Hi All,
    Please help me with the following issue.
    Whenever there is a change made to the Sales Order, during the save event is there any flag that indicates, whether there was a change in the order.
    I mean before the order getting saved, i am having an exit, where in i want a flag which will tell me that some change was made to the Order.
    Regards
    Rakesh.

    Hi Rahul,
    That flag would have helped. But my req is little more specific.
    Its like I am making a change in Item Quantity - Press Enter and then going to
    EXTRAS-OUTPUT-HEADER-EDIT ... here is there my routine is getting triggered. That routine is nothing but one created from VOFM transaction, a routine for controlling output type.
    Now here is where i want to know whether any changes in Sales Order is made.
    The system flag you told me is blank here... T185F-DATALOSS this is another flag which can tell us whether any data change has happend or not. But this also is blank when it comes to this exit.
    Please help me.
    Regards
    Rakesh.

  • VA01/VA02-Sales Order-Sceen Enhancements

    Hi,
    I need to Include 2 Additional Tabs in Sales Order Header Data to accommodate Header Data related Z Fields Included in the Append Structure of VBAK. Each tab will have 2 - 3 sub screens. I am not sure, How to go ahead with this Task. I was told that this is possible in SPRO Configuration by adding additional tabs and adding Screens / Sub screens for that tab in SPRO. Can you please provide me with good documents if you have any? Is there any SAP Notes available to address this kind of tasks?
    Appreciate Your Help.
    Thanks,
    Kannan.

    Hi
    User exits in the screens for VA01/VA02
    Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.
    Fields which are also to be included in the sales document for a specific installation should be included on the Include screens for maintaining. If an application-specific check module is needed for the fields, this can be included in the Include MV45AIZZ. The module is called up in the processing logic of the Include screens.
    For field transports, you do not have to make changes or adjustments.
    Example
    A new field, VBAK-ZZKUN, should be included in table VBAK.
    If the check is defined via the Dictionary (fixed values or check table) the field must be included with the fullscreen editor in the Include screen SAPMV45A 8309. In this case, no change has to be made to the processing logic.
    Regards
    Anji

  • VA02 Sales order, shipping point

    Hi,
    I'm trying to save a sales order but there is in the Incompletion log that Shipping point has not been
    select.
    I tried to make a selection but I receive the message: "No possible entries exist for this field"
    I clicked on F1 in that field and then on the customizing button, system move to the customizing of the Shipping point and I can see the related customizing (there is a shipping point customizing) I try to save but system doesn't save the sales order
    Cannot understand why this
    Best Regards

    Hi,
    Please search this forum on how shipping point is determined for a particular sales order and see if your sales order meets the criteria for getting an automatic shipping point or allowed shipping point..if not, make the required configuration.
    Also, since you're saying its VA02--> some data might has been changed that doesn't allow a shipping point determination..so pls check the shipping point determination logic and analyze further.
    Regards,
    Raghu.

Maybe you are looking for