Insert XVBKD table during sales order create/change.

Dears,
My requirement is to insert into VBKD table for each item sof VBAP. If the Business is updating the business data manually for the line items, then VBKD gets updated with the line items also. Otherwise, it gets updated with item as '000000'. And in the items, the business data, i need to update using some user exit (automatically based on some custom table for each material in the line item). I tried using the form in MV45AFZZ. but getting termination error.
Please suggest.
Ram.

Hi Ram,
The update of VBKD table is quite strange in the standard system.
The same table has data for header (with position 00000) and for items that are different, but redundant positions don't get stored in the database.
I don't think it is a good idea to force SAP to create a VBKD entry for each line.
IMHO this is system modification and therefore your responsibility.
If you have problems afterwards and SAP finds out, you will be on your own!
Why don't you add the new field in VBAP table?
It is much easier and therefore more usual in implementation projects.
Best Regards,
Franck
Freelance Logistics SAP Consultant

Similar Messages

  • Modify shipping point in sales order create/change

    Hi,
    I want to modify/overwrite shipping point value while create sales order and change sales order. Is there any user exit or BADI available to fullfill this requirement.
    Thank you.
    -Pallavi

    Hi Palavi,
    You can modify or overwrite shipping point value while create Sales order or change Sales order. For this you have to modify field  VBAP-VSTEL in the FORM userexit_move_field_to_vbap of include MV45AFZZ.
    Regards
    Dillip

  • Credit block in Sales order create/change

    Hi Experts,
    while creation/change of sales order,If sales order net value is zero or 0.01 no credit checks.in other words greater than 0.01 netvalue of so, it shoud undergo credit checks.( Means Header->Status, Credit status = 'Not Approved". )
    Actually i am trying to write logic in routine 901 ( include RVKMP901).but i am unable to reach the requirment.Can anybody how i can reach above requirment.
    Regards
    Jaya Reddy

    Hello,
    you could use code similar to this:
      CHECK: xvbak-netwr < ls_zkredit-wert.
    else no credit check
      vbap-cmpnt = ' '.
      MOVE charx TO bypass-security.
      MOVE charx TO bypass-static_limit.
      MOVE charx TO bypass-dynamic_limit.
      MOVE charx TO bypass-documentvalue.
      MOVE charx TO bypass-critical_fields.
      MOVE charx TO bypass-reviewdate.
      MOVE charx TO bypass-open_items.
      MOVE charx TO bypass-oldest_op.
      MOVE charx TO bypass-dunning_level.
      MOVE charx TO bypass-user1.
      MOVE charx TO bypass-user2.
      MOVE charx TO bypass-user3.
    The ls_credit-wert is a local field which is set from a table according to Sales order Type/ Salesorg/ Payment-condition
    Regards Wolfgang

  • Sales order create/change line item with reference to contract - Open quantity not getting deducted for copied line item from the contract

    Hi friends,
    Please provide some valuable inputs for the following scenario:
    When a sales order line item is created(VA01) or changed(VA02) with reference to a Contract the open quantity is deducted in the contract which is a standard functionality. If the referenced line item is copied (custom enhancement to copy line item), then for the copied line item the open quantity is not getting deducted instead ATP quantity i.e. Available-to-promise is deducted.
    Any inputs on how we can fix this functionality i.e. deduct the open quantity from the contract for the copied line item?
    P.S. : Custom enhancement to copy line item is working fine, but open quantity is not getting deducted if the copied line item was referenced to a contract.
    Thanks,
    Sandeep
    Message was edited by: sandeep

    Sandeep,
    Yes, that was my original interpretation.  I was having a hard time believing that someone would ask such a question. 
    I guess, then, that you already know that you will have to add this logic to your enhancement. You should create your specifications and hand them off to a developer; ideally the one who created this enhanced solution in the first place.
    I do not provide advice in these forums about details of enhanced solutions.  Perhaps one of the other members will be more willing to do your work for you.
    Best Regards,
    DB49

  • Avoiding Z-table and having a global internal table during Sales Order

    Hi All,
    I have a requirement like this.
    1. In the R/3 system I am creating Sales order.
    2. For each line item, it will call APO system to check the availability of the materials and the informaiton is returned back to
    R/3 system.
    3. As the soon as the informaiton is recieved in R/3 system, we found one enhancement point and this informaiton is being captured now in a Z-table to do some processing while saving the order after processing all the line items
    4. I wanted to avoid the Z-table and want to have some global internal table which will be available till the end of the processing of the sales order.
    Solution I am thinking of:
    1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
    2. Export it to memory and import it when needed. But, how to update the informaiton in this intenal table(which is in memory) for every line item
    Please guide me. Any help on this would be highly appreciated.
    Thanks,
    Babu Kilari

    >
    Babu Kilari wrote:
    >  Solution I am thinking of:
    >
    > 1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
    >  Babu Kilari
    If you are updating this table in a FM, you can always add one tables parameter to the function ( if it is a custom function) and pass the globally declared internal table to the function call in the user exit update the table in the FM and when the end function is reached, you will have the updated internal table again at the user exit after the function call.
    Imp- Declare your internal table in MV45ATZZ.
    KR,
    Advait
    Edited by: Advait Gode on Aug 6, 2009 8:16 AM

  • System Variable or Process code for Sales Order create/Change

    Hi All,
          I have a wriiten custom routine (routine no 901) for Pricing in VOFM.Now the thing is the code is written in such a way that, the routine will be called only for transaction VA01 and VA02.But If i want the routine(901) to be executed also through BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE ,then what system parameter i should check in my routine.
    Currently the code is like this.
    form frm_kondi_wert_901.
    Check sy-tocde = 'VA01'  or sy-tcode = 'VA02'.
    *Process further'....
    Endform.
    I would appreciate for the valuable input....
    Thanks,
    Vigneswaran S

    Awesome stuff sudhir..It is really a great logic to use..Thanks for ur help..
    This is for future generation...
    One Note:The field symbol should be declared as type any instead of "standard table".Because the T181 is used as global workarea(strucuture) in SAPMV45A program rather than internal table.
    Here you go the modified code.
    FIELD-SYMBOLS:<fs_t180> TYPE any .
      DATA:wa_t180 TYPE t180,
           c_t180(15) TYPE c VALUE '(SAPMV45A)T180'.
      ASSIGN (c_t180) to <fs_t180>.
       wa_t180 = <fs_t180>.
    If wa_t180-tcode = 'VA01' or  wa_t180-tcode = 'VA02'.
    Endif.
    Thanks,
    Vigneswaran S

  • Sales order creating

    Hi friends,
    Please give the process for
    Sales Orders Creating/Changing by
    1)BAPI
    2)  Recording Methods
    With Regards,
    Sarath.

    Hi,
    Check this sample program for creating sales orders using the BAPI..
    PARAMETERS: p_auart TYPE auart OBLIGATORY.
    PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    PARAMETERS: p_spart TYPE vtweg OBLIGATORY.
    PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
    PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
    *ITEM
    PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
    PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
    PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    PARAMETERS: p_itcat TYPE pstyv   OBLIGATORY.
    DATA DECLARATIONS.
    DATA: v_vbeln LIKE vbak-vbeln.
    DATA: header LIKE bapisdhead1.
    DATA: headerx LIKE bapisdhead1x.
    DATA: item    LIKE bapisditem OCCURS 0 WITH HEADER LINE.
    DATA: itemx   LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return  LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    HEADER DATA
    header-doc_type = p_auart.
    headerx-doc_type = 'X'.
    header-sales_org = p_vkorg.
    headerx-sales_org = 'X'.
    header-distr_chan  = p_vtweg.
    headerx-distr_chan = 'X'.
    header-division = p_spart.
    headerx-division = 'X'.
    headerx-updateflag = 'I'.
    PARTNER DATA
    partner-partn_role = 'AG'.
    partner-partn_numb = p_sold.
    APPEND partner.
    partner-partn_role = 'WE'.
    partner-partn_numb = p_ship.
    APPEND partner.
    ITEM DATA
    itemx-updateflag = 'I'.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    item-material = p_matnr.
    itemx-material = 'X'.
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    item-target_qu = 'EA'.
    itemx-target_qu = 'X'.
    item-item_categ = p_itcat.
    itemx-item_categ = 'X'.
    APPEND item.
    APPEND itemx.
      Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000010'.
    lt_schedules_inx-sched_line  = '0001'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
    Call the BAPI
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
         EXPORTING
              sales_header_in     = header
              sales_header_inx    = headerx
         IMPORTING
              salesdocument_ex    = v_vbeln
         TABLES
              return              = return
              sales_items_in      = item
              sales_items_inx     = itemx
              sales_schedules_in  = lt_schedules_in
              sales_schedules_inx = lt_schedules_inx
              sales_partners      = partner.
    Check the return table.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
      EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
      WRITE: / 'Error in creating document'.
    ELSE.
      COMMIT WORK AND WAIT.
      WRITE: / 'Document ', v_vbeln, ' created'.
    ENDIF.
    Thanks,
    Naren

  • Change of Sold to Party in Sales order created with Reference to Contract

    Dear Gurus
    I want to change the sold to party in Sales Order created with reference to contract.
    When I create a Sales order with reference to contract the system copies all the partner functions- Sold to, Ship to, Bill to and Payer alongwith other data.
    However Sold to is marked as "Grey" and not changable, rest of the partners can be changed.
    There is no subsiquent document created with reference to this Sales Order.
    Please advice.
    Thanks a lot.
    Regards
    Raghu

    Hi ,
    Please follow the below mentioned step.
    1) Create a partner function letts say Authorized SP .
    2) Assign all the possible authorised  SP (customer) in the contract.
    3) When you create sales order with reff to Contract. Put the customer for whom you wish to create a sales order in release partner tab.
    Hop this will resolve our problem
    Regards,
    Krishna O

  • Issue while changing Item Category during Sales Order Creation

    Hi,
    Requirement:
    Requirement is to change the item category of Sales Order item while creating the sales order.
    Rule is: If item category is IRAT then it should be changed to IRLN.
    For this, I am using the user exit "USEREXIT_SAVE_DOCUMENT_PREPARE" available in the include MV45AFZZ.
    Issue:
    Using the above mentioned exit, Item category is getting changed to the desired value in the created sales order BUT value of Billing Status (VBUP-FKSAA) which is supposed to get changed is blank.
    For example, Sales order is created from VA01 and item category is changed manually to the value mentioned above, then for the sales order created we have VBUP-FKSAA = 'A'. But when value of Item category is not changed manually and it is changed from the exit, then value of VBUP-FKSAA is blank.
    I have to find a solution which would change the value of Billing Status according to the change in the value of Item Category.
    Please suggest a relevant solution.
    Thanks a lot for responding.
    Abhinav.
    Edited by: Abhinav Jain on Apr 9, 2010 6:47 PM

    Hi Abhinav,
    I have a simmilar problem. In my case I am changing Reason of Rejection in the user-exit, but net value is not getting updated. Did you solve your problem? Any other way to change a field of a sales order item?
    Thanking you in advance,
    Nisha

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Table for sales order change by field

    Dear Friends,
    I want to get the data @ table level for the list of sales orders with changed by field. Can you please tell which table/s for sales order change by field can be used?
    Thanks,
    pinky

    Hi
    You can get the changes for SALES ORDER item in CDPOS table
    Goto SE16 and find the changes.
    hope it will serve your purpose.
    thanks,
    santosh

  • Credit Check during Sales Order Change (VA02)

    Hi,
    We have implemented a credit management system, where the sales order will not get saved if the credit limit is exceeded. Now this check is working fine during sales order creation. But in VA02 during sales order change, the system is giving an information message that the credit limit is exceeded, but is allowing to save the order, which is not desirable. Could you all please help me in finding a solution to this problem..
    Thanks & Regards,
    Ritam Bera

    Hi
    Kindly check that you are using simple credit check or automatic credit check(Statis or Dynamaic) below settings
    If Automatic credit check then  go to  OVA8 -automatic credit control area with combination of Credit control area/Risk category /credit group,Check in the reaction field  you have mentioned the error or warning (B or A) .
    Prerequisites for credit management to work in Sales and Distribution:
    1.Assign credit control area to company code
    2.Maintain the credit limit in FD32 with details of risk category and the credit limit value
    3.Do the settings in OVA8 -automatic credit control area with combination of Credit control area/Risk category /credit group,Check in the reaction field  you have mentioned the error or warning (B or A) .
    4.Assign the credit groups to the sales and delivery document types.
    5.Maintain the Subtotal 'A' in the pricing procedure against which value the sytem should check the credit limit.
    If you have any further clarifications on above let me know
    Regards
    Damu

  • Purchase requisitions which created during Sales Order missing in MD04

    Hi Guys,
    I have an issue with MD04.
    Purchase requisitions which created during Sales Order missing in MD04 are not appearing in MD04, but these are showing in ME5A. After MRP Run only PRu2019s are showing in MD04.
    Requirement type used 511 during creation of Sales Order.
    Please advise me if any config/ Master data is missing OR If required any enhancement.
    Regards,
    Purna

    Did you checked for the Firming indicator in PR's?

  • Monitoring of Sales Order created during specified timeframe using BPMon

    Hi,
    There is a requirement from our customer to setup Monitoring Object for Sales Order in Business Process Monitoring:
    The details are as follows:
    Monitoring object should be able to fetch all the Sales Order created between a specified timeframe: (say 12:00:00 to 15:00:00) and give alert if the threshold is crossed.
    Say for eg: the Monitoring object should gather information of all the Sales orders created between the said time frame and give an alert. So the information of Sales Orders out of time frame is not required by the client. I could see that the standard monitoring object for (Sales Documents and Sales Document Items gives an option to select data from previous day or current day... but this is for the entire day whereas our requirement is for a said time frame.
    Is this feature available with standard monitoring object ?? Experts please advise.
    Thanks and Regards,
    Kavita

    Hi,
    There is a requirement from our customer to setup Monitoring Object for Sales Order in Business Process Monitoring:
    The details are as follows:
    Monitoring object should be able to fetch all the Sales Order created between a specified timeframe: (say 12:00:00 to 15:00:00) and give alert if the threshold is crossed.
    Say for eg: the Monitoring object should gather information of all the Sales orders created between the said time frame and give an alert. So the information of Sales Orders out of time frame is not required by the client. I could see that the standard monitoring object for (Sales Documents and Sales Document Items gives an option to select data from previous day or current day... but this is for the entire day whereas our requirement is for a said time frame.
    Is this feature available with standard monitoring object ?? Experts please advise.
    Thanks and Regards,
    Kavita

Maybe you are looking for

  • Line with the Slider

    Hi all I need to Create a line which can be drawn any where in the panel. And this line can be used as the slider, if i click on the "make as Slider" button. Planing to use the decorator pattren please help me by giving some ideas.

  • SOAP Header XSLT mapping

    Hi, I am working on Proxy to SOAP synchronous scenario.  How to create SOAP header message in XSLT mapping...I am trying but no sauces becz receiver side SOAP header and Body in different message types please see below. Header part is message type 1

  • Two characterisics in one hierarchy?

    Hi Gurus, can anybody say how to create hierarchy with 2 characteristics, for examle hierarchy of 0CS_ITEM and 0D_DEBCRED(credit debit position). I want to create hierarchy same as "Financial Statement Version" in R\3. HIERARCHY: ACCOUNT ............

  • Which is the BEST/most practical RAM to buy?

    Bought my PB last Nov of 2004 without any upgrades here in Japan. Since, I am getting tired of the COLOR WHEEL thing everytime I am just running few simple application - I am really thinking of upgrading my RAM to its fullest. However, since I am in

  • Access AM method from backing bean - best practice

    Hello, I need to call an appModule method from a backing bean. What is better? 1. Resolve bindings.AMDataControl.dataProvider, get AM and invoke the method directly or 2. Create method action in page definition, resolve OperationBinding from it's bin