How do I prevent a Sales Document number to be generated

Hi Experts,
I'm going to be using bapi_salesorder_create_fromdat1 to simulate a sales order create, but I will not commit it.
The BAPI has a flag that I can set to prevent a sales order from being created.
Problem is that: 
It still generates a Sales Document Number, which I don't want to have happen.
Has anyone done something similar or at the very least prevent a number from being taken from the number ranges from config?
Regards,
Orlando

Hi Orlando,
as per your last thread i understand no sales order generated but number rage is taken.
so for your test purpose you can assign new dummy number range to order type and after your simaltion you can reassign the original.
I know this is not what you want but still this could be one of soultion to your problem.
hope this solves your purpose.
regards/ashu

Similar Messages

  • How can I get the sales document number in CRM??

    Hello,everybody
    I want to create a document flow report in CRM.
    But I donnot know how to get the documen id which is in ERP (for example: Sales, Billing)
    Is there anyone who can give me some advice?
    Thanks.

    Do you have ERP documents in CRM ? I mean does ERP documents are getting replicated in CRM? or you want transaction no from ERP only ? Which version are you working on?
    Thanks,
    Nitin

  • How to send Sales Document Number and Item to BAPI_ACC_DOCUMENT_POST?

    Hello SAPients,
    We are using BAPI_ACC_DOCUMENT_POST to create an accounting document similar to what FB01 does, in FB01 you can type the number and position of a Sales Document even if you are using an Account Receivable account number. But in the BAPI, the  ACCOUNTRECEIVABLE table doesn't have a field to include those numbers. How should I pass the sales order number and item to the BAPI? I have tried several things but every time I receive more complicated error messages.
    Thank you in advance for your kind help.

    Let me know if you have any questions:
    Loop through your records and fill in the appropriate structure based on record type (GL, Vendor or Customer)
    IF NOT pcard_post_rec-zlsapac IS INITIAL.
        gt_gl_item-itemno_acc   = ls_posnr.
        gt_gl_item-gl_account = pcard_post_rec-zlsapac.
        gt_gl_item-comp_code = pcard_post_rec-zlsapco.
        "gt_gl_item-pstng_date = pcard_post_rec-zlgpsdt.
        gt_gl_item-pstng_date = gv_posting_date.
        gt_gl_item-doc_type = doctype.
        gt_gl_item-alloc_nmbr = ls_assignment.
        gt_gl_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_gl_item-item_text    = ''.
        ELSE.
          gt_gl_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        gt_gl_item-costcenter = pcard_post_rec-zlsapcc.
        gt_gl_item-orderid = lv_ordnum.
        APPEND gt_gl_item.
      ELSEIF NOT pcard_post_rec-zlsapven IS INITIAL.
        gt_ap_item-itemno_acc = ls_posnr.
        gt_ap_item-vendor_no = pcard_post_rec-zlsapven.
        gt_ap_item-comp_code = pcard_post_rec-zlsapco.
        gt_ap_item-alloc_nmbr = ls_assignment.
        gt_ap_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_ap_item-item_text = ''.
        ELSE.
          gt_ap_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        APPEND gt_ap_item.
      ELSEIF NOT pcard_post_rec-zlsapcus IS INITIAL.
        gt_ar_item-itemno_acc = ls_posnr.
        gt_ar_item-customer = pcard_post_rec-zlsapcus.
        gt_ar_item-comp_code = pcard_post_rec-zlsapco.
        gt_ar_item-alloc_nmbr = ls_assignment.
        gt_ar_item-ref_key_3 = pcard_post_rec-zlgvend.
        IF pcard_post_rec-zlsapac < 500000.
          gt_ar_item-item_text = ''.
        ELSE.
          gt_ar_item-item_text    = pcard_post_rec-zlguser.
        ENDIF.
        APPEND gt_ar_item.
      ENDIF.

  • How to populate the sales document number in FD10N or FBL5N report

    Hi Gurus,
    In the reports FBL5N and FD10N i am able to see the Billing document field(VBELN) populated with the number but The sales document number (AUBEL) is not populated with the number.
    How to get this number updated to the FBL5N or FD10N report.
    Thanks in advance.

    Hai
    Goto Settings Special Fields and add the required fields and save and come back and exceute again.
    Regards
    Raghavendra.M
    SAP-Practice

  • Sales Document number in FBL5N

    Hi Friends,
    In FBL5N (customer line item report) there is a field "Sales Document" Field Name "VBEL2". But the accounting document which is generated in FBL5N for billing document from SD in not populating the sales order number in this field, this field is blank.
    this field is getting populated for down payments with relevant sales document number and not for invoice document.
    Our client wants the sales order number to be reported in customer line item report for their tracking.
    Can any one please suggest how this can be achieved.
    Thanks & Regards

    You can map Sales Order number to either 'Assignment' or 'Reference' fields in accounting document using Copy control function in SD. Please use transaction VTFA, this needs to be maintained for combinations of billing type and sales document type. Please ensure these fields are not currently used in your system for other information.
    Following fields can be mapped to 'Assignment' or 'Reference'.
    A Purchase order number
    B Sales order number
    C Delivery number
    D External delivery number
    E Current billing document number
    F External delivery no. if available, otherwise delivery no.
    If you currently use 'Assignment' or 'Reference' fields for other details, you can use user exit EXIT_SAPLV60B_008.
    Thanks
    Venkata Ganesh Perumalla
    Edited by: Venkata Ganesh Perumalla on Oct 4, 2010 11:52 AM

  • The A dso SALES Document number is equal to B dso sales document number the

    Hi All,
                         i have two dso's ( A&B).I CREATED B DSO With the reference of A dso. and i loaded the data to B DSO. All the loads were done.now i am planning to compare the records throug ABAP Program.in the abap progran i am plaaning to write
    this type of logic that is where the A dso SALES Document number is equal to B dso sales document number then data is need to capture.how can i write this type of logic.
    thanks & Regards,

    Hello
    Do you mean , in your ABAP reoprt, you need to show all records from dso A which are there in dso B?
    you may code on follwoing lines.
    itab_A like /bic/Adso_A00.
    itab_B like /bic/Adso_B00.
    itab_result like /bic/Adso_A00.
    select * from /bic/Adso_A00 into table itab_A
    select * from /bic/Adso_B00 into table itab_B
    loop at itab_A.
    read table itab_B where sales_docno = itab_A-sales_docno.
    if sy-subrc = 0.
    append itab_A into itab_result.
    endif.
    endloop.
    hope that helps!
    regards,
    sanjyot

  • Sort key- Sales document number in assignment field-

    Hi,
    Please clarify how sales document number flows in to revenue line item when we release billing document to a/c in VF01/VF02.
    We maintained sort key042(sales order)- FS00 for G/L account .
    But data flowing to few documents only. What is reason?
    Thanks
    Chidambaram

    Hi
    In order to get the value you require in BSEG-ZUONR you need to populate field vbrk-zuonr in the userexit (RV60AFZC:                 
    USEREXIT_FILL_VBRK_VBRP)                                                                               
    In FI documents which are created from SD billing documents the assignment number in the customer line item of the FI document   (BSEG-ZUONR) is filled with the assignment number in the header of the billing document in FORM ACCOUNTING_HEAD_LINE of function module RV_ACCOUNTING_DOCUMENT_CREATE:                                       
    FORM ACCOUNTING_HEAD_LINE. (LV60BF00)                                
      XACCIT-ZUONR = VBRK-ZUONR.               
    Kind Regards
    davide

  • Add Sales Document Number in FBL5N

    How can we add the Sales Order Number in FBL5N. Although we have fields Sales Document Number and Order field but they are not populating.

    I write the following code to get the sales order in function module .
    Firt Try
    FUNCTION ZSAMPLE_INTERFACE_00001650.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    *"  EXPORTING
    *"     VALUE(E_POSTAB) LIKE  RFPOS STRUCTURE  RFPOS
    TABLES : VBRP.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-ZSORDER* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    Initialize Output by using the following line -
    E_POSTAB = I_POSTAB.
    I addZORDER field in RFPOSX structure and first I use the RFPOSX in into clause but it gives me the error component ZSORDER does not have component ZSORDER although I followed the instruction. (Is append is same thing like I did)
    Second Try
    I change ZSORDER with AUFNR which is RFPOSX FIELD  then ift gives me error report/program statement missing.
    SELECT SINGLE VBRP~AUBEL INTO E_POSTAB-AUFNR* FROM VBRP WHERE VBRP~VBELN = I_POSTAB-VBELN.*
    ENDFUNCTION.

  • Sales Document Number ranges Split

    Hi ,
    We need to load from DSO to Cube by splitting the load on Sales order Document number  because of the volume.
    Can you please help me how do we split the ranges , how can we find the starting sales order and the ending sales order .
    regards,
    Sruthi

    Hi,
    As per my understanding, you are trying to load data from DSO to cube on sales document number selection.
    To see the data in ODS, Right click on ODS -
    > Manage -
    > Contents ---> Click on Active table.
    You can see records in table. Sort the entries, then you can find the sales document numbers in order.
    You have to do full load.
    Hope this helps,
    Regards,
    Rama Murthy.
    Edited by: Rama Murthy Pvss on Nov 17, 2009 2:40 PM

  • Sales Document Number from billing document

    Dear all,
    How can i get the corresponding sales document number form a billing document number?
    I currently have data from VBRK and VBAK tables.
    so is it possible to get the corresponding sales order number for that billing doc no?
    Plz let me know.
    Regards
    Rahul.

    Dear Rahul
    If you want to see for a particular billing document the corresponding sale order reference, go to VF03, input the billing document and click on Document Flow
    If you want to see sale order references for multiple billing documents, go to SE16, input table VBFA, paste the billing document references in [Follow on doc] and C in [Prec doc categ] and execute.
    thanks
    G. Lakshmipathi

  • In FBL5N report user wants the sales document number to be displayed,

    HI, Guys
    Need ur help to sort out the problem
    In FBL5N report user wants the sales document number to be displayed,
    but the sales ducument number column is coming blank and this needs to pick from VBRP table
    As I discussed with Abaper, he reqiures a key field which common in BSEG abd VBRP table
    So,Please guide me in approaching the right way
    Munender

    Hi,
        Speak with your SD consultant. They can set up the copy control in SD so that the sales order is populated in the invoice in field ZUONR (Assignment).This will then copy to the assignment field in accounting.
    Alternatively you can use an exit to populate another field during the Posting.
    Kind regards

  • Sales Document Number field in ORDER05 IDoc

    Hi All,
    I am using a ORDERS05 message type for my inbound IDoc. I am using the copy of FM IDOC_INPUT_ORDERS. I am getting a Sales Document Number from BizTalk apart from other details. I want to feed this Sales Document Number in IDoc segment, so that the order is posted with the fed sales document number instead of system generating one.
    Please let me know in which segment and field, I should assign the Sales Document Number (received from biztalk) in the IDoc?
    Thanks in Advance,
    Bipen

    Pass external Order number in segment E1EDK02. Set the field QUALF as '066' (External Order Number) and pass the order number in field BELNR (See code lines 69 to 73 of include LVEDAF5S).  This assignment will work only if the Number range configuration for Order document type is External.

  • Sales document number not appearing in Work Item.

    Hello gurus,
         I have created a WorkFlow for approval of Sales order. My problem is, the sales document number is not appearing in the WorkItem for user decision task. I am passing container variable the sales document number in the Parameter1 of the User Decision task of the work flow. Value is populated correctly in the container variable for sales document number, but fails to appear in the work item content in SBWP.
         Please suggest a solution.
    Regards,
    Dnyanesh.

    Hello All,
         Thanks for your reply.
    I am passing the value of sales document number in parameter 1 of the standard task for approval as below.
    But in my Business Workplace I do not get the Sales document number. Below is the screenshot.
    Regards,
    Dnyanesh.

  • Sale document number range

    Dear all,
    I've a small issue with sales document number range. I create a range 01 from 1 to 4999999 by tcode VN01. But when the first sale document is created, the system gets the number 1000001 & assign to this sale doc. (Not 1 as usual). Do you know the reason why ?
    Thank you very much for your help,
    Regards,
    Tweety.

    Go to VOV8, select the sale document type and execute.  There ensure that this 01 is assigned to Number range int.assgt
    If not, maintain 01 and retry to create a sale order.
    thanks
    G. Lakshmipathi

  • Fm for status based on sales document number

    Hello Gurus,
    Can you please provide me the function module to get status( open, complete, inprocess) based on Sales document Number.
    Thanks

    Hi,
    Use FM BAPI_SALESORDER_GETSTATUS for getting the status of the Sales Order.
    Also:
    Check the given requirementcorrectly once again
    Because for sales order we don't use the field OBJNR (object no) to find the ststau
    Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
    and will read the STATUS of the Order
    So for sales order we don't have that field OBJNR
    if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
    Or use the table VBUK to find the Sales order status
    Reward points if found helpful...
    Cheers,
    Chandra Sekhar.

Maybe you are looking for

  • How to avoid print configuration screen

    Hi everybody, I'm executing a program which has to print two smartforms, one followed by the other, but I don't want the printing configuration screen before printing each one, I want it only to appear in the first one and then inherit printing param

  • DVD Player no longer plays a VIDEO_TS folder.

    I used to be able to play a VIDEO_TS folder that I had ripped from a DVD into a hard disk. There is still "Open DVD Media" on the File menu, but when I select a VIDEO_TS folder it pops up an error window: "There was a problem opening the media. The m

  • Return order BUS2102 Workflow container data not populated

    Hi All, Please requesting you to provide your advise on the below issue. I have created a custom workflow with business object BUS2102 In the Workflowtemplate (E.g. WS90000XXX) i have included the triggering event for BUS2102 with EVENT "CREATED" and

  • Xml parsing issue with the existsnode function

    Hi Friends, I have a question as like below We have the contacts and alternate contacts request as like below. <TXLife> <UserAuthRequest> <UserLoginName>hqtest24</UserLoginName> <UserDate>2012-07-11</UserDate> <UserTime>12:42:55</UserTime> </UserAuth

  • Financial Services Profitability Analytics 7.9.5 Fusion Edition with OFSA

    Who to configure Financial Services Profitability Analytics *7.9.5* Fusion Edition with OFSA, I know it's supported in version 7.9.2 & 7.9.3 and i have the documents [http://www.oracle.com/technology/products/bi/bi-vertical-analytics.html] and the in