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

Similar Messages

  • 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.

  • 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

  • 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 not updated in FI document

    Hi,
    Whenever invoice creates in FI through billing document, system will not update sales document number in FI document(Invoice). Please confirm if there is any way to update sales document number in FI document because  I want to create dunning notices on sales order basis.
    Request immediate help.
    Thanks in advance.

    Hi,
    In the standard system,  FI postings will be updated with FI document numbers only.  If you want to see respective billing document number in customer ledger, go to FBL5N, select 'Change Layout' icon and move billing document number from 'hidden fields' to display fields list and see.
    Regds
    Sarma BH

  • 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.

  • 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

  • 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.

  • Sales Document Number

    Hi All,
    Is there any function module that returns the sales document number for the relative billing document generated?
    Thanks in advance.
    Regards,
    Arunkumar S

    Hi Arun,
    did you check that...
    In se37  you can directly run the FM <b>RV_ORDER_FLOW_INFORMATION</b>
    Just don't do any thing enter only COMWA with your Billing Invoice (VBELN)
    <b> COMWA        107220249 0000000000  </b>  
    and Run it. and check the Table parameter <b>VBFA_TAB</b>.
    Regards
    vijay

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • Sales document number based on pricing procedure ,sales area , customer pri

    Hi,
    where can i get saler document number based on pricing procedure ,sales area , customer pricing procedure and document pricing procedure.
    please tell me the table name.
    Thanks
    Edited by: pandu123 on Jun 16, 2011 8:22 PM

    I never heard of this requirement before, pulling sales document number based on pricing procedure based on customer pricing proc + document pricing procedure +sales area. These data are found in tables VBAK, T683,KNVV and TVAK. I dont think you can use ABAP query to join these table, check with an ABAP'er to develop a program for this requirement.
    Regards,

  • Remodeling the cube and adding sales document number

    HI guys
    I have a requirement of sales order number in the sales over view cube ( 0sd_c03 ) so i am planing to remodel the cube to add sales order number and item
    as i can not create a new dimension i have to add these two charecteritics to a old dimension
    so whether it will give any perfomance issues later on as the sales document number will increase the
    records in that dimesion or can i go ahead to do it or i have to delete the data in cube and change the cube adding a new diemension ( line item dimension)
    please suggest..
    Regards
    Amiya

    Hi Amiya,
    Regarding ur case ..
    In my opinion, it should be separated into different dimension ..
    Because it will make that old table dimension become have huge data,
    it will make slow in fetching the data.
    To make it.
    1. Edit Info-Cube using t-code RSA1
    2. Create new dimension, and insert dummy characteristic, then save, and activate it.
    3. In the remodeling, t-code: RSMRT, you can add those 2 characteristics there, you also can initilize the value for those characteristic.
    4. Then, in the remodeling, you delete the dummy characteristic.
    Hopefully it can help you a lot.
    Best regards,
    Niel.

  • 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

Maybe you are looking for

  • Sharepoint - Tasks

    Hello, I have a question. I installed Sharepoint Foundation 2013 and now I'm testing "Tasks". Default settings is, that everyone can see all tasks. I know, I can change the options and everyone will see only self created tasks. But I need to achieve,

  • Cannot join network with ipod touch

    Please help - I just got the ipod touch and got the january software update. I want to have email & web surfing capability. When I try to join my home network, it asks for a password. I've tried my wireless network key, and my computer password. Noth

  • Updating master data for time dimensions from front end

    Hi Experts, I am sure this must be handled in a very straight forward way. Just want to know the best practice here. We are working on a copy of appset and want to completely revamp the time dimension papers as per client's fiscal year which is april

  • Want to check time take by each Individual statment

    Hi SAP gurus, I want to know is there any utility by which i will know how much time it is taking for execution of <b>each individual statement</b> (not only select statement) in ABAP.

  • Imovie shuts down when I click to Export Movie, share or finish project.

    Imovie shuts down when I click to Export Movie, share or finish project. I have upgraded RAM Memory cards from 4 to 8 GB and cleaned away the soft wear and files I do not need. The movie is in HD and about 25 min long. The "Problem Info" says: Proces