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.

Similar Messages

  • 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

  • Add sales document number in a  Billing due list(VF05)

    Hi Experts,
    Like the thread There is a requirement to have the Billing due list(VF05) with the VAT numb
    There is a requirement,to have the Billing due list(VF05)-Out put with the sales document number VBAK-VBELN and customer purchase order number VBKD-BSTKD.
    I want to apply the OSS note 398575:
    Replace dummy in the structure VKDFIZ field with  VBELN  and BSTKD .
    in Table T180A , add two new data record:
                                  TBNAM = 'VKDFIF'
                                  FDNAM = 'BSTKD'
                                  ZUART = 'D'
    But my question is : for the record
                                  TBNAM = VKDFIF
                                  FDNAM = 'VBELN'
                                  ZUART = 'D'
    The fileds VBELN already exist in the structure VKDFIF and  don't designate the sales document number.
    What can I do to designate the sales document number added in the structure VKDFIZ ????
    Regards
    Marie-Madeleine

    Hi
    The Tcode VF05 is not billing duelist but it is the list of billing documents. For including the fields you want, please go through the OSS note 485928

  • 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

  • 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

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

  • Custom master data for Sales Document Number

    Is it possible to create master data for "sales document number" as a custom field and/or table in R/3?  We have a need to record the "end user" customer of an order but this data may be updated a long time after the order and sale is complete.  IT seems that loading to BW/BI may be simpler if this is treated as document attributes rather than transactional data since no delta will be trigger by changes to this field.  Does anyone have experience with this approach?

    Hi,
    it is possible to create attributes for this InfoObject. Add the Attributes you need in BW. You can use the attributes even if the sales doc is line item dimension of your cube.
    On Sourcesystem side you have to create a generic extractor in SBIW. I think a table view on VBAK or VBAP may fullfill your needs. Of course the tables are not the smallest ones but maybe u can use the timestamp to implement a generic delta. Check whether the timestamp is set when the 'end user' is set. Not every change in the sales document leads to an entry in the delta queue of logistic, but the timestamp should be set.
    After that replicate the datasource to BI and connect it to the attributes of 0SALES_DOC
    I had a similar enhancement at one customer reading the actual transport routes to the sales documents and it worked fine.
    Hope that helps
    Christoph Vortkamp

  • 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

  • Add Sales Document to Credit Limit Calculate

    Hi,
    How to Add Sales Document to Credit Limit Calculate?
    both for, to increase credit limit/to decrease credit limit.
    Thanks in advance.
    Swetha

    Hi,
    We assign sales document type to credit group.(OVAK)
    With credit groupcredit control arearisk category we maintain automatic credit control
    in credit control area we specify the credit limit(FD32) with the indivisual customer.
    1) SPRO- Enterprise Structure- Definition-Financial account- Define Credit Control area (OB45)
    The Credit limits specified here applies for new customers.
    2) Assigning company Code to credit Control (OB38)
    3) Credit control area is assigned to the sales area (OVFL)
    5) Defining Risk Categories (OB01)-High, low, medium
    6) Assign risk category to FD32 customer credit master data
    7) OVA7-item category type assignment (credit active)
    8) Define credit group (OB46)-sales doc., delivery doc., PGI
    9) OVAK-Sales doc. Type assignment
    10) Assignment of credit group (OVAD) to sales & delivery & PGI
    11) Maintaining Credit limits for Customer FD32
    12) Automatic Credit Control (OVA8): credit groupcredit control arearisk category
    Edited by: susrikant on Sep 4, 2008 8:02 AM

  • 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

Maybe you are looking for

  • How I fixed lost airtunes and lost shared library

    It happened to me over and over again. Sometimes it helped to restart AirPort Express, sometimes it didn't. Sometimes it helped to remove the preferences of iTunes, sometimes it didn't. What helped me this time (and this was the fastest solution so f

  • No file Exisits

    Dear All,  I have One document Library with the name of proposals & Quotation. This document library is working fine on Parent Site. I made the Web part for this library and place it under the Sub site.  The webpart display fines but when i tried to

  • Caling fm with "update task"

    hi frnds, the requirement is one RFC fm (fm1) is called in back ground mode and one more function module (fm2) is called inside fm1 in update task. the desired result is as soon as the fm1 is completed executed in background, (the commit work will ha

  • When i am on youtube, the videos keep starting and stopping. Why?

    some videos play alittle longer before it freezes and then begins again....and keep doing throughout the video... sometimes the video wont play at all...please help...thanks

  • HT201304 Dear all..help me in clash of clans please!!

    I can't buy gems in clash of clans anymore wich I already try many way but they still show me help to contact iTunes Store support to continue the transaction.this happened after I confirm to buy the amount...thanks bro for helping me..