Arbitrary Number Generated before Sales Order Document number is Generated

I want to know which is the arbitrary number generated before the sales Order Document number is created. In which table the arbitrary number is stored?
The Exit which triggers the arbitrary number in the transaction VA01?

Hi
You get the Arbitrary number throug the FM NUMBER_GET_NEXT.
interne Nummernvergabe
        data: da_rc like inri-returncode.
        call function 'NUMBER_GET_NEXT'
          exporting
            nr_range_nr = da_numki
            object      = 'RV_BELEG'
          importing
            returncode  = da_rc
            number      = vbak-vbeln.
And regarding userexit, there is
perform userexit_number_range using da_numki statement in include MV45AF0B_BELEG_SICHERN.
Regards
Raj

Similar Messages

  • External order document number in Substitution Switchover (F&R)

    Hello,
    We're using F&R as a stand alone system, there's a question for product substitution follow-up time controlled.
    When getting the substitution switchover information from the legacy system (non SAP) into F&R, the external order document number (org_ref_h, org_ref_i, org_ref_sched) is needed (interface error without these fields).
    But since we're not using SAP Retail, there's no outbound delivery that triggers the substitution (no PO number), therefore no external order document number is available to F&R. Substitution will happen after F&R receives the switchover information and when the switchover date is reached.
    In this case which order document number should we use?
    Thanks,
    Yang

    Hi Yang,
    could you solve this issue meanwhile?
    The fields org_ref_h, org_ref_i and org_ref_sched are not obligatory to fill. But you told you got an error.
    Kind regards, Rainer

  • Get OTF data for a sales order document

    I have a problem in getting the information of the created sales order document number  as OTF data. I need this OTF data so to convert into PDF format using function module 'CONVERT_OTF_2_PDF'. My situation is i am keeping a parameter for sales order document number . when i execute the report after giving a sales order document number, i should get the OTF data .

    Hi!
    Firstly you have to define what technique is used for creation of sales order as printed document - smartform or sapscript. Then proceed as follows.
    In case of smartform:
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZFORMNAME'
    IMPORTING
    fm_name = v_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
    EXPORTING
    control_parameters = w_ctrlop
    output_options = w_compop
    user_settings = 'X'
    IMPORTING
    job_output_info = w_return
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    i_otf[] = w_return-otfdata[].
    In case of sapscript:
      options-tdgetotf = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    options = options
      CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
       TABLES
         otfdata                        = i_otf
       EXCEPTIONS
         unopened                       = 1
         bad_pageformat_for_print       = 2
         send_error                     = 3
         spool_error                    = 4
         OTHERS                         = 5.
    i_otf -
    Regards,
    Maxim.

  • No Sales Order Item number in PCA document on Delivery

    Hi,
    We have an issue as below:
    Sales Order (Not a CO object)>Delivery is done> We cannot see Sales Order item number in the PCA document whereas it appears in Accounting Document.
    After Billing, a CO-PA document also generated.
    Thanks to provide any information on this.
    Umapathi G

    Hi,
      For billing documents, the information from the respective sales order and from the sales order item in the line item table GLPCA is only in the fields AUBEL and AUPOS.    
      You post a goods issue for delivery. If you post the goods issue for a sales order stock, the information of the sales order is updated in the profit center document (field GLPCA-KDAUF). If the goods issue is posted from the make-to-stock inventory, then the sales order information is not updated.
    regards
    Waman

  • Invoice/billing document Number  not appearing on sales order document flow

    Dear all,
    After saving the sales order invoice when i check in va02 sales order document flow invoice number is not generating

    Really something is wrong in your configuration.  When your delivery status shows Being Processed, I could see subsequent two documents, viz.Confirmation of Service and GD doc reference as complete.
    Can you let me know how many line items that delivery contains?  The reason for this query is normally, for stock item, we see Material Document reference and for non-stock item, we see Confirmation of service.  But in your case, I could see both.  From your VBFA table screen shot, I could see two different material document references.
    G. Lakshmipathi

  • How do I get the line number of the sales order and how do I save info?

    I am trying to create a form that is able to be called from a right click on the sales order matrix and will display some of the user defined fields associated with the line.
    I've managed to create a form and add a menu option to the right click but I'm now stuck because of the following:
    1. How to I know which line the user selected? I need the REAL Line Number from the RDR1 table because I need to use it on the data filter of the form.
    2. I hard coded a line to just to see if I can load a form and it appears to load and bind the data to the controls, but how do I save changes made? There are several text fields, combo boxes, and a picture control.

    Hi Coleman,
    1. The pVal returned form a menu event does no provide the LineId, but a pVal from a Item Event does. I suggest you use a DoubleClick or Control + Click on the Line to trigger an event that you can catch and use to launch your form.
    2. Please note that if the Sales Order line is closed you'll not be able to update the values. If it's not, then you need to instantiate a Sales Order document, get the correct document with the GetByKey method and update whatever fields you need.
                    Dim oSalesOrder As SAPbobsCOM.Documents = oCompany.GetBusinessObject(BoObjectTypes.oOrders)
                    If oSalesOrder.GetByKey(docentry) = True Then
                        oSalesOrder.Lines.SetCurrentLine(pVal.Row - 1)
                        oSalesOrder.Lines.UserFields.Fields.Item("U_MyUDF").Value = ""
                        oSalesOrder.Update()
                    End If
    Regards,
    Vítor Vieira

  • PO number change in Sales Order.

    Hi,
    We created one sales  order. ( Here we given Sold to Party, Ship to party and PO number). After that we did partial delivery and Billing. We opened the sales order and removed the PO numer and saved for some reasons. Again we opened the sales order in change mode and given the same PO number as earlier. But system throwing the error like "Purchage order does not exist in the system".
    Can u please tell me what is the reason.
    Regards
    JYOTHI.

    Hi
    The P.O number in the sales order will be controlled in the configuration of document type in T code VOV8
    Kindly check there  for the field Check purchase order no
    Check for the message setting in OVAH t code for the message no V4115
    Regards
    Damu

  • Alpha Numeric number Ranges for Sales order Acording to sales office wise.

    Hi Experts,
             I have a Issue for genrating sales order numbers With Alpha Numeric Number Ranges for sales office wise Internaly . How can we get this is there any Userexits or badi for this . If Any one Come across this issue plz guide me.
       The Alpha characters should not change that will be sales office region code. only the Numeric numbers should change .
    Ex;   Abc-123000  to Abc-200000
    Regards,
    Ravi.

    This alpha-numeric format is not possible directly with SNRO settings.
    You need to opt for external number range, and in the exit of your respective transaction you need to takecare of this number generation explicitly by programming.
    http://www.sap-img.com/sap-sd/number-ranges-in-sales-order.htm
    any more inputs from experts are welcome..
    Hi,
    1. goto include MV45AFZZ and to user exit Save_document This form is called before COMMITand double click on FORM USEREXIT_SAVE_DOCUMENT.
    2.it will show the program MV45AF0B_BELEG_SICHERN from were this user exit is called, selcet the program and click on Display.
    3. you can use the enhancement point enhancement-point beleg_sichern_01 spots es_sapmv45a. just below the PERFORM USEREXIT_SAVE_DOCUMENT to call the badi method on_costing_component.
    regards.
    santhosh reddy
    Message was edited by:
            Santhosh Reddy
    Message was edited by:
            Santhosh Reddy

  • Credit Card number entered CRM sales order is not appearing in R3 Sales ord

    Hi,
    We are entering our Sales orders in CRM which are gtting replicated to SAP R3,In the credit card scenario ,In some sales orders entered in CRM,where the Credit card numer has been entered,In some cases,the card numer is not appearing in R3 Sales order either in the overview screen or Payment card tab,due to ehich most of the times these cards fail authorization .
    Kindly let me know as to what could be the reasons as to why the card numer seen in CRM is not appearing in SAP R3,sales order?
    Appreciate your help on this.
    Regards
    Mohammed Roshan

    Hi All,
    Looking forward to your valuable inputs on this as to  how and why Credit Card number entered CRM sales order iwould not appear in R3 Sales order?
    Regards
    Mohammed Roshan

  • Number of times sales order./delivery blocked

    Hi,
    Do we have a report which gives details about number of times sales order/delivery blocked because of credit management.
    Or there is any work around for getting the same?
    I request you to kindly suggest your valuable inputs.
    Regards,
    Phani Prasad.

    Hi Balaji,
    Thanks for your reply.Please find the below example.
    Customer A was blocked for credit limit on 01.01.2011 and subsequently released using VKM3.
    Again the same customer was blocked on 02.01.2011 and once again released.
    How do I know the number of times Customer A was blocked and released for a given period.(2 times in the above example for that period).
    Please explain.
    Regards,
    Phani Prasad.

  • Assignment number Field in sales order header

    Hi All,
    Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
    I need to specify the assignment number while creating a new order through IDoc.
    Thanks.
    Regards,
    Riyaz

    Hi,
    Use transaction we60 to find the relevant documentation for your idoc type.
    regards,
    Jakub

  • Sales Order Line Number printing as it appears in UI

    Hi,
    I am trying to get the Line number in sales orders as it appears in the UI,but when i fetch the data from the underlying table i am getting a different value.Can any one help me out how to get the value as is from UI at line level.
    For Eg:
    The Sales order Line number is 1.1 in the UI,then the corresponding value when i fetch from the table is being displayed as 1.
    Thanks,
    Praveen

    select line_number||(decode(shipment_number,null,'','.'||shipment_number))
    ||(decode(option_number,null,'','.'||option_number))||
    (decode(component_number,null,'','.'||component_number))||
    (decode(service_number,null,'','.'||service_number)) LineNumber from apps.oe_order_lines_all where header_id= &head;
    Edited by: user9095588 on Feb 11, 2010 12:35 PM

  • Sales order line number

    Hi all
    Which field corresponds to SALES ORDER LINE NUMBER in VBAK table
    thanks in advance
    Regards
    Neha kapoor

    Hi Neha
    VBAK: is for Header data
    VBAP: is for Item data
    So take the key field VBELN , you can get the
    sales order line number which POSNR which in VBAP.
    so VBAK-VBELN = VBAP-VBELN  and get the VBAP-POSNR.
    Regards.
    Laxmi

  • How to get the ammendment sales order number and original sales order no?

    Hello sir's,
    Please tell me the table for ammendment(revised) sales order number and original sales order no.
    Thanks in advance,
    vikram

    Solved

  • Custom number range to sales orders

    HI Gurus
       I have a requirement to keep a custom number range to sales orders. The number range should start with X.The next two characters should be based on the user name. The remaning part is the sequence number. Please advice the best way to do it.

    HI Seshu
      If we need to use that user exit we should assign the number range as internal. From here you can select a number range but not the number. If we assign any number in the user exit then the vbeln is refreshed. I am thinking of creating externel number range and write some code in the field exit of vbak-vbelen. Will it have any side effects. And is there any number range object in SAP. I know in oracle we can create a number (counter). Please advice

Maybe you are looking for

  • Correct procedure to replace failed secondary ASA unit

    Hello i just received a RMA for failed ASA 5520 that was acting as secondary unit in multicontext configuration. What would be correct procedure to install it back in production? Do i need to restore backed up config of the fallen unit or is it just

  • Line item line no in ml11

    hi all, i developed a bdc for ml11 transaction.(multiple line items.) program is working fine line items are populating corresponding to line nunbers my data is populating in line no 9. but i want it to be in 10. is there any settings to do for that.

  • ALV list with 2 header lines

    Dear gurus, Need help in displaying ALV list report. the below report is an example of AR aging report. The report output is as below: DEC NOV OCT SEP 0-30 31-60 61-90 90+ xx xx xx xx SUBTOTAL The first 2 lines are the list header. While the 'x' is t

  • VAT in CIN- Business Place

    Hi,    In VAT, business place concept is there in India. where are the settings for business place is done. regards

  • International filenames using bash

    Hi Typing umlauts in the terminal is easily done. Using ls -v one can see filenames with international characters. However how does one enable it so that scripts that are run as other users also can recognized filenames that contain international cha