Creating line item for a sales order in user exit

Hi
I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

You have to set the creation flag UPDKZ to 'I'.
to correctly use the user exit refer to OSS note 0381348 Using user exit, customer exit, VOFM in SD.
pls reward if helpful
Roberto

Similar Messages

  • Creating line item in a sales order by user exit

    Hi
    I have to create a line item through user exit "userexit_save_document_prepare" when saving the sales order.I am doing this by appending a row to the internal table XVBAP in the user exit.
    The row is getting appended to the internal table but the line item is not getting created in the sales order .I dont getting any error also.
    Can anyone tell me what could be the reason for this and is there any other means by which i can create a line item through the user exit.

    You may also need to add an entry to the internal table XVBEP for the schedule lines.

  • System status of line item for a sales order.

    Hi,
    Is there any way to find the system status(line item) directly by providing sales order number?
    Iam following the below procedure,but it takes lot of time:
    VBAP-object number
    JEST-system status
    TJ02T- status text.
    Please provide some suggestions or work arounds to find the system status.
    I have gone through entire sdn, but couldnt find an answer.
    Regards,
    Vinod Boga

    Hi
    Use t-code V.26
    And select processing level as DOCUMENT ITEM
    Kapil

  • How to capture an address change for a sale order in user exit MV45AFZZ?

    Hi ,
    My requirement is to capture the address change in sale order .
    I have to write the code in my own z-include in MV45AFZZ of SAPMV45A.
    Here I have to use VBAP-KUNNR for PARVW = ‘AG’ or ‘WE’. And  ADDR1_DATA.
    Could you please give me idea , how to capture the address change?
    Thanks ,
    Suresh.

    Farshid,
    As I understand it it is the RCS software that replaces the $Revision$ with $Revision: 1.2$. Is that correct?
    There are two things that you need to be aware of if this is the case.
    First, the length of the text fields are saved as part of the SystemBuild model file. This means that when the revision control software replaces the tag the length is no longer correct, and SystemBuild will not be able to load the file correctly. You can still change the text as long as you make sure the the length of the tag stays the same. For example if the version number is a single digit decimal then single digit, then when you create the file you could store the revision as $Revision: x.x$. When the tag gets replaced by the revision control software you would get
    $Revision: 1.2$ which is the same length.
    Next you need to be aware of potential line breaks. When the SystemBuild model is saved as ASCII then line breaks are added at regular intervals, so the tag might be broken up on two lines. This could prevent the revision control software from recognizing the tag. To prevent this save the file as binary.
    In short make sure that the text the revision control software adds is the same length as the text that it replaced and save the files as binary files.
    Carl L
    National Instruments
    www.ni.com/matrixx

  • Purchase Item for a sales order but not on sales order lines

    Hi,
    Is it possible to purchase an item for a sales order but item is not actually on sales order? I know we can create PO through SO logistic tab and also through procurement confirmation wizard but these functionalities can be used to buy the item which is on the SO. The problem is that the item is not on SO. It's kind of hidden cost going against the SO.
    Will be grateful for your help.
    Thanks,
    Kanu

    Thanks Gordon. Ok I can add items to the PO. But will those items be costed against the SO? Because there is no SO number (POR1.BaseRef field) on that extra PO line.
    I appreciate your help here.
    Best Regards,
    Kanu

  • Delivery doc creation for a selected line item of the Sales order

    Hi folks,
        Can any one help me in how to create a delivery order for a selected line item of the Sales order.My requirement is the request comes from the web browser where a sales document and details of the items are shown the user select one line item and request for delivery create of that particular SO doc.I have used couple of FM to create delivery but the delivery create is depend on the schedule line dates so iam unable to figure out where exactly i can distinguish between the line items.
    Example:
    SO:- 11193645
    Line item -1 has 2 schedule line 06/11
                                     06/13
    Line iteam-2 has 1 schedule line 06/12
    so if i try to create Delivery doc for date 06/12
    it creates partially for line 1 and line 2.
    but my requirement is i wanted to create SO for only line item 1 as i wanted to process Del Doc for only line item 1.
    If you have any idea please help me.

    hi ,
    You can develop a customised FM to process the Idoc data .
    1. Read the Idoc data into internal table for the line items which need to be delivered .
    2. Run BDC for transaction 'VL01N' ( delivery creation ) through which  eliminate the line items which are not in internal table and save the delivery document
    Note : Because in VL01N , you specify the sales document with respect to which you want to perform delivery hence automatically all items are copied to the delivery document .
    During BDC recording , select items by " MOVING TO TOP"
    and then deleting the selected item
    If you face problem in BDC recording , i can help u that too .

  • Required item no: to populate custom field while creating item for a Sales order

    Hello Experts,
    I have created a custom field for item data of sales order using AET .
    I want to populate this field automatically when ever we create a new item for a sales order using UI or CRMD_ORDER or WCEM by concatenation Sales order number and item number.
    We are getting Item GUID but not getting the item number(need item number before getting saved is their any chance to get item number from item GUID ) to populate the field and save it.
    For this we tried using BADI's
    CRM_BTX_EXTENSIONS
    CRM_ORDERADM_I_BADI
    Thanks in advance,
    Manasa Veena P.

    Where did you add the field ?

  • I want a push button for line items in my sales order entry screen.

    Hi,
    I want a push button for line items in my sales order entry screen.
    How can I do so?
    Thanks.

    Hi Kumar ,
    To have a push buttons you need to first assign a pf-status .
    here a sample code for a push button and its handling :
      set pf-status 'SELECT' .
    at user-command .
      describe table t_lpr lines w_lines .
      case sy-ucomm .
        when 'SELECTALL' .
          set pf-status 'SELECT' excluding 'SELECTALL' immediately.
          do w_lines times .
            read line w_line field value w_check . " INTO W_CHECK .
            if w_check = space .
              w_check = 'X' .
              modify line w_line field value w_check.    "INTO W_CHECK .
              add 1 to w_line .
            endif .                        " IF W_CHECK = ' '
          enddo .
    Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
    Hope it helps!
    Much Regards,
    Amuktha .

  • Unconfirmed line items of a sales order into account in credit management

    Hi Gurus
    Updated the customer orders via prog. RVKRED09.
    There is only one open order for this customer = 720662. My question is: in the credit master the sales value/credit exposure is USD 77.100,00. The order is for USD 105,900.00 .
    Found out that line item 20 is not confirmed in the schedule lines. So the value in the sales value/credit exposure  equals item 10 and 30. So my 1question is: Where is the setting that  does not take unconfirmed line items of a sales order into account in credit management?
    Thanks in advance
    Regards
    Nalini Iyer

    Hi nalini
    Even though , you create a sales order for that line item , but if that item is not confirmed then the value  wont be considered.  into credit exposure. .
    But once it gets confirmed then the value will be taken into credit exposure..
    Regards
    Srinath

  • Keep Quote line item numbers in Sales order

    While creating a Sales order from Quote, SAP always creates line items with 100,200,300...and so on.
    If quote has 3 line items say 100,110, & 120 and we create a sales order with reference to this quote in VA01. The sales order line items become 100,200 & 300.
    The requirement is for Sales order to also have same line item numbers i.e. 100,110 & 120.
    To retain quote line item numbers in Sales order the ABAP change will be in VOFM or user exit?

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • How to combine the line items of 2 Sales orders into 1 delivry

    how to combine the line items of 2 Sales orders into 1 delivry
    and their process, pre-requisites and tcode

    The prerequisites are:
    1) In the customer master sales area data, shipping tab, there is a field called Order combination. u must tick that.
    2) for the two orders, the sold to party & ship to party must be same
    3) both orders must have created from same plant & shipping points
    4) the line items must have same loading grp.
    5) the both orders sheduline line date must be same.
    transaction code for the same is VL04.
    enter the required data and select the order nos to be processed.
    Do reward points if it is useful

  • Route schedule not updated in some line item of a sales order

    Hi Gurus,
    All order are processed through the EDI interface automatically. Order
    XXXXXXXXX for USA customer 40000XXXX is maintained in route reschedule
    setup T-code VL52 on specific departure day thursday.
    above are line item of same sales order, with same shipping point and route .
    Why only some salesorder lines missing the route schedule ?? 
    Please Help
    Regards
    Abhilash

    When you post a query here, you need to have patience until some members go through your post.  Please dont expect somebody should respond to you immediately as everybody has their own priorities.
    Coming to your query, it could be due to many reasons as per the following note:-
    Note 1750978 - Route Schedule does not populate on sales order
    Go through the Resolutions given in the above note and check with your system
    G. Lakshmipathi

  • Send all line items of a sales order to IPC along with condition lines data

    We wrote some pricing routines in R/3, where while doing he calculations for condition line item, we needed to pull in the material information for previous line items. So we exported vbap and imported it inside the routine to be able to have access to all the line items in the sales order. Now, we need to put in the same kind of logic in CRM/IPC. My question is what would be the equivalent of SAP's(import/export) commands for internal tables in case of IPC. I looked at the BADI CRM_COND_COM_BADI but still do not see how I can send all the line items  data to IPC. So I guess, the question comes down to, how do I send all the line items of the sales order (whole VBAP in R/3 terms) to IPC along with the condition line data? Can someone please help?
    Thanks

    Hi Vaibhav,
    If you can get the list of Sales orders which has deleted line items and force completion status. You can manage them in BI via lookup  or navigation attribute.
    Just my views I am sharing .
    Thanks,
    KDJ

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • How to delete the line item from a sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

Maybe you are looking for

  • Payment System

    Hi 1.i ve created outgoing excise invoice.But on selecting that Vendor in outgoing payment form it does not show that invoice for payment.but if i make A/P invoice for that Goods receipt it shows. Does it mean that for every transaction A/P and A/R i

  • My Exif is not picking up Metering Mode

    my DPP can read the metering mode file in raw and the jpg thats been processed in APE6. but if you open the jpg in APE6 it cannot read the metering mode. The Exif information on metering mode is missing in my galley images see here http://www.birdfor

  • Communication Error

    I am getting this error very frequently can any one help me in the same. I want to know the reason for this error. Thanks in advance

  • ISQL*PLUS install at EBS 11.5.9

    Our System is OS : RedHat 2.1 AS EBS : 11.5.9 DB : 9.2.0.3 1. I download "Oracle9i Database Release 2 Enterprise/Standard Edition for Linux" (9.2.0.4) at the oracle homepage(otn.oracle.com) 2. when I execute "runInstaller" to add on package(isql*plus

  • Feature Request: Modify Column in list of Column Actions ...

    There's Comment, Rename, Add, Drop, Normalize ... but no plain ol' "Modify" ... it's probably somewhere else, and I'm too stoopid to know. If this is posted somewhere else, I'm sorry. If this should be posted on the Feature Exchange whatever-it-is, I