Problem in Sales document change

Hi all,
while changing the sales order, i am getting this error.
"Field header_inx-updateflag is not an input field."
This error is not coming always, only sometimes. But as this error is coming in the production environment i am not able to debug also.
Here is the code.PLease help out.
Build order header structure
  wa_order_header_inx-updateflag = 'U'.
Build the item table
  MOVE: wa_items-new_item TO wa_item_in-itm_number,
        v_matnr           TO wa_item_in-material,
        wa_so_lines-posex TO wa_item_in-po_itm_no.
    MOVE: wa_vbkd-posex_e TO wa_item_in-poitm_no_s,
          c_flag          TO wa_item_inx-poitm_no_s.
    MOVE: wa_vbkd-sdabw   TO wa_item_in-s_proc_ind,
          c_flag          TO wa_item_inx-s_proc_ind.
      MOVE: wa_vbkd-bstdk   TO wa_item_in-purch_date.
    MOVE:  c_flag          TO wa_item_inx-purch_date.
  APPEND wa_item_in TO i_item_in.
  CLEAR wa_item_in.
Build Schedule lines table
  MOVE: wa_items-new_item  TO wa_schedule_in-itm_number,
        wa_so_lines-kwmeng TO wa_schedule_in-req_qty.
  APPEND wa_schedule_in TO i_schedule_in.
  CLEAR wa_schedule_in.
Build Schedule linex table
  MOVE: wa_items-new_item TO wa_schedule_inx-itm_number,
        'I'               TO wa_schedule_inx-updateflag,
        c_flag            TO wa_schedule_inx-req_qty.
  APPEND wa_schedule_inx TO i_schedule_inx.
  CLEAR wa_schedule_inx.
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
      EXPORTING
        salesdocument    = la_it_ato_data-sap_order
        order_header_inx = wa_order_header_inx
      TABLES
        return           = i_return
        item_in          = i_item_in
        item_inx         = i_item_inx
        schedule_in      = i_schedule_in
        schedule_inx     = i_schedule_inx.

Hi Robin,
I see that in your code
wa_order_header_inx-updateflag = 'U'.
But check if by any chance the value gets cleared or changed while passing to the function module, can cause the error you have mentioned.
Just check the function module in SE37
Suppose you give ORDER_HEADER_INX-UPDATEFLAG = 'A' , which is invalid value
You will get error message as
>Field header_inx-updateflagA is not an input field   " Note A at end of error message which is your input
If the value is cleared by any chance then the error message will be
Field header_inx-updateflag is not an input field
Check if the value is passed properly when it is passed to the function module
Regards
Edited by: Rob Burbank on Jun 29, 2010 1:55 PM

Similar Messages

  • Table that stores sales document changes...

    Hello Experts,
    I need to get changed date and time for a given sales document. For example,
    I need to show to the user the credit release date and time. Presently, I can only
    show the credit release date which can be fetched from VBAK-CMFRE.I need to get also
    the credit release time just like when you display the changes of a given sales
    document via VA02.
    Hope you can help me out here guys. Thank you and take care!

    Table CDHDR - Change document header &
    Table CDPOS - Change document items
    are the tables u need to look for the change history.
    Its regardless of a sales order or a purchase order.....all the changes are stored in this table
    Regards
    Gopi

  • Billing problem(RAS Sales Document)

    Hi all,
    I have created service selling(order type RAS) and when billing it I get error as:
    "Sales document type RAS cannot be invoiced with billing type F2". I have changed order billing type like FS,F2 via trcode VOV8 but I am still getting the same error.
    What should I do?
    Thanks&Regards

    Hi..
    If it is Order related billing check in VTFA -item-correct Item cat is there or not..(I guess as ur itm cat would be TAO..)
    Also check if you have assigned correct billing type to ur sdoc type.
    Also check in VOV7/8  that all billing data (billing relevance) is corrcetly maintained or not..
    AWARD points if U finds this as useful..
    Regds
    MM

  • Multiple UOM Problem In sales Document

    Dear All,
    Plz Tell me how i manage the multiple uom in SAP Sales Doc.
    For Example - Inventory Uom = KGS
                          Sales Uom     = NOS
      An user wants to book the order in  pound..
    plz give me solution..

    You can only have 2 UOM to use for sales document. In your case, apply most used UOM for your sales UOM. I assume it is NOS.  For the less used sales UOM such as lb, you may create UDF to print out document.  However, the inventory keeping will be a big problem in this case.
    If your sales has equaly weighted 2 or more UOM to use, you have to consider add-on or SDK.
    The other work around would be creating additional item to get the right quatities through BOM to sell. Sales BOM item will only keep track of inventory on component level.
    Thanks,
    Gordon

  • Sales document change management

    Hi,
    In sales documents you can list the changes of a particular sales document (eg va43 > Environment > changes).  General question : Can this functiopnality be customized or is it just active by standard.  Are the fields for which the changes are tracked changeable ?  Is the change management on sales docs depending on eg document type ?   How ?
    Thanks for help

    hi,
    this is to inform you that,
    if you go to particular documetn in changable mode then you can find out that how many fields are changed as you said in environmetn changes.
    these fields will go and replace with the old information.
    so they are not traceable in think so.
    regards,
    balajia

  • Problem in sales order change - output types

    hi,
    my output types is not displaying after i saved my output type
    i assigned the Output message and saved it thru
    Menu path : Extras->Output->header->Edit     
    when i viewed my thru Initial Screen from Menu Select : Sales Document->Issue output to...
    my output types is not proposing .
    Ganesh

    check out the outtype determination in
    SPRO->SALES & DISTRIBUTION->BASIC FUNCTION->OUTPUT CONTROL->OUTPUT DETERMINATION.
    PLEASE REWARD IF USEFUL.

  • Problem in sales order change via BAPI

    We are in AFS system and we try to reduce a quantity in sales order via BAPI.
    We recive back an error 8w 280. We are not able to find wich is and where is a problem.
    Does anyone have experince on that problem/error message
    Thanks in advance
    Andrea

    Hi Andrea,
    Since BAPI invloves more programming stuff, I adivce you to post this thread in the ABAP forums also.
    Regards,
    Senthilkumar SD

  • Sales Document change record tracking

    Hi Experts,
    I have a scenario from SD, where data is getting loaded from DSO to Cube and here the the description,
    sales doc.   item     created on     changed on    qty amount
    1000            10       01-12-2011                            10    100
    Now,
    1000             11      01-12-2011      12-01-2011    11    110
    So, for jan 2011 Booking amount should be +10
    so i have to record this difference in my DSO and then in cube.
    How can i achieve this.
    Thanks in advance

    You can achieve this using Delta DTP, where only Deltas will capture from DSO to IC.
    In your case , when you run DTP, then only +10 will updated to IC.

  • Shipping point determination......   problem in sales documents..........

    hi   SAP    GURU s
    in pricing, im getting error
    document is incomplete
    shipping point is not determined
    please help me
    we have assigned shipping point to plant
    but in shipping point determination,  that particular shipping point is not able to assign..................
    what to do now?????

    thanks   sudhir     but  we have maintained   transport group, loading group,  shipping  conditions  in   CMR
    then  we tried to assign  those  shipping conditions,  transport group, loading group  to  specific  plant and shipping point in shipping point determination
    but  it is saying that  particular shipping point is not specified to that plant
    wat to do
    plz help me
    thanks  n  regards
    raaj

  • Problems in Sales Document Exchange between CRM 7.0 and ECC 6.0

    Hello,
    we updated our CRM system to CRM 7.0 and the ERP to ECC 6.0 .
    Now I am trying to fix the dataexchange again. However salesdocuments from the ERP are stopped in the inbound queue of the CRM system.
    The error from the SMW01 is :
    At least one entry could not be found in object buffer
    Message no. CRM_ORDER_MISC106
    I think that there is some configuration missing in the CRM or the ERP system. However I did not know where.
    Does someone knows the error or is able to give me a hint?
    I maintained the table CRMPAROLTP in ERP:
    CRM_MAX_QUEUE_NUMBER_INITIAL     MATERIAL                              CRM     5
    CRM_MAX_QUEUE_NUMBER_INITIAL     SALESDOCUMENT                              CRM     2
    CRM_NO_BEFORE_IMAGES     SALESDOCUMENT     CRM                                                                               
    CRM_RELEASE                                                                                  701
    CRM_SCENARIO     INT_CHANGE_ORDER     YJB4                    A
    CRM_SCENARIO     INT_CHANGE_ORDER     YJC4                    A
    CRM_SCENARIO     INT_CHANGE_ORDER     YXIA                    A
    CRM_SCENARIO     INT_CHANGE_ORDER     YXIG                    A
    and the table SMOFPARSFA in CRM:
    R3A_COMMON     CRM_AUTO_DELTA_EVENT_ACTIVATION                                                                        X
    R3A_COMMON     CRM_DEFAULT_DESTINATION     CRM_R3MATERIAL_AVAIL                                               K90CLNT001
    R3A_COMMON     CRM_R3OLTP_ACTIVE                                                                        X
    R3A_COMMON     MAX_PARALLEL_PROCESSES                                                                        5
    R3A_COMMON     WAIT FOR UPDATE     RESPONSE_DLV                                               X
    R3A_COMMON     WAIT FOR UPDATE     SALESCONTRACT                                               X
    R3A_COMMON     WAIT_FOR_UPDATE     SALESDOCUMENT                                               X
    R3A_SALES     BEHAVE_WHEN_ERROR                                                                        R
    R3A_SALES     INT_CHANGE_ORDER     YJB4                                               A
    R3A_SALES     INT_CHANGE_ORDER     YJC4                                               A
    R3A_SALES     INT_CHANGE_ORDER     YXIA                                               A
    R3A_SALES     INT_CHANGE_ORDER     YXIG                                               A
    R3A_SALES     INT_NUMBER_ASSIGNMENT
    R3A_SALES     PRICINGTYPE                                                                        G
    Best regards,
    Nils Kloth

    Can you bump up the trace level (to detailed) via SMWT transaction and then re-submit this bdoc ? check if you get additional details about the error.

  • Sales order Change document user exit

    A colleague of mine has been asked if there is a way of inserting a different username to the standard one when a change document is created for the sales order header.  Is there a userexit that would suffice?
    Thanks in advance
    Ian

    You have only one option as far as I know:
    All change document creation occurs in function
    CHANGE_POINTERS_CREATE centrally.
    The only option would be to apply a repair to this function to set the username (CDHDR-USERNAME) to the value you want. You would do this only for sales document change docs - object class is VERKBELEG I think. This is also held on CDHDR.
    Hope this helps.
    Cheers
    Colin

  • Delta changes in R/3 sales document are not coming into CRM

    Hi Middleware experts,
    We are on CRM 5.0 SP 005 with ECC 5.0 SP 007 and using the scenario X for sales documents replication.
    Now the order is created in CRM and successfully transfered to R/3. I can see 3 Bdocs in SMW01 with green lights. First Bdoc says 'R/3 adapter is called', second Bdoc says 'the order is successfully saved' and displays a warning 'The sales document is not yet complete: Edit data' and third Bdoc has no messages. Also I do not see any struck queues in CRM and in R/3
    I am able to edit the sales document in both the systems as per the scenario X. Now I have completed and saved the document in R/3. Surprisingly these changes are not coming into CRM and no new entries in SMW01. Also R/3 SMQ1 and CRM SmQ2 doesn't show any entries. I am also not able to debug, since I do not see any Bdocs in SMW01.
    Now, if I changes the document in CRM and these changes are coming into R/3.
    Also all documents created in R/3 are successfully going into CRM including delta changes in R/3.
    I do not have any clue on what is happening? Highly appreciated, if you can help me.
    Thanks,
    PK

    Hi PK,
    In R3AC1 only we put the filter. So if you do not have any other filter then make sure that you are changing the order which was created not before the date mentioned.
    I would recommend you to just deregister the CRM system in R/3 Transaction SMQS and do some changes in the orders and check any queues are getting created corresponding to that order, If yes that means filter is not an issue. Then debug the queue and find the exact problem. Also make sure that the order you are changing in R/3 is of the same order type what you have mentioned in the filter.
    Make sure to registor back the CRM other wise all the queues will get stuck in R/3 outbound.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.
    Message was edited by: Vikash Krishna

  • Error while changing CRM Sales Document in R/3

    Hi All,
    I have done the download of customizing, condition & business objects in CRM 4.0.
    Now when I create a sales order in CRM, it gets replicated in R/3. I can see the order in tcode VA03.
    But when I try changing the same sale order in R/3 using tcode VA02, I get the following error:
    "Sales document &1 (5001169) is currently being processed (by user RFCUSER)"
    Would appreciate help from the group.
    Many thanks !

    Hi Krishna,
    The middleware user is locking the order so the document has not distributed through the system properly. 
    Try looking at the inbound queue (transaction SMQ2) and outbound queue (SMQ1) for errors.  Also look at the BDocs in error (SMW01).
    When CRM sends an order to R/3 it waits for a confirmation to be returned, looks like the problem is here, maybe in your delta downloads not being set correctly.
    Cheers
    Andrew

  • Change the condition type based on sales document type

    Dear ALL,
    I have created a condition Zxxx which is a fixed calculation type for the documents created by the upload from external tool to SAP.  I created this condition because external tool is using a 15 place decimal which SAP doesn't allow and if the normal condition type Zyyy is used SAP calculates once in SAP and there are rounding issues.  What the Zxxx condition type does is accept whatever value is sent up from external tool to SAP, regardless of the quantity.  The problem is that whenever they create a credit with reference, in SAP and they want to do a partial credit, the Zxxx doesn't take the partial quantity into consideration and doesn't change the value. 
    Is there a way to force SAP to change the condition type from Zxxx to Zyyy based on sales document type without recalculating the whole document because that would again, cause rounding issues.  We would need to have the calculation done only on quantities changed in the credit memo request .
    please advice me. your inputs are highly appreciated.
    TIA
    KOGI

    Dear ALL,
    someone please help me with this issue. your inputs are higly helpful.
    TIA
    KOGI

  • Changing Item Description in Sales document through programmatically.

    Hi
    How to change the sales document Item Description programmatically.  I have one customization form, this will open when ever the user tabbed out from Quantity column. In that user form , user might be change the item description. I want to replace the sales document item description with the new one. if i manually replace it , the standard Item CFL will be automatically popup.
    How can i resolve this?
    Regards
    Senthil

    Hi petr,
    Thanks for suggestion, I have already tried this, first of all i have change the Lines description and call the Ctrl+Tab functionality using sendkey method, but problem is after assigning the new description the system will open the CFL immediately.
    Thanks
    Senthil

Maybe you are looking for

  • AR aging basing on Invoice date

    Currently client gets AR aging based on Due Date. For audit purpose they need AR Aging based on Invoice Date. During SAP implementation they were instructed to use document date as invoice date and generate a dump from FBL5N and do the aging. However

  • Trying to install Arch on a SD card.

    I have an EEE PC 900 and was trying to install arch on a 32gb sd card. Every kernel I have tried so far boots then during bootup says it cannot find the root drive.  I tried changing the root delay but that didn't work.  So far I tried the defalt ker

  • Text problem with Galaxy s5

    My Galaxy s5 is randomly deleting sent and received texts.  I will receive notification of received texts, open it and before I finish reading, it is gone.  I will send a text and it will say sent and then be gone.  I have my settings to store 100 me

  • HT4623 software update is not in my itouch

    I need to update my iTouch to iOS 5 and I've read the instructions on how to but it' tells me to go to Settings>General>Softwear Update but my iTouch does not have software  update so I can't select it.

  • Firefox greys out McAfee with a ? beside it. running OS Windows 8 some programmes stop working

    I loaded the upgrade to windows 8 and 4 days later McAfee disappeared after I tried to open it, McAfee logged onto my computer and got it running again but the next day it happened again. The first time nothing would work I tried to down load McAfee