Equipment Series number in Billing (Invoice) Document

Dear Experts,
Good day to you.
There is a request to add the equipment Series No in the invoice form. When user print the DO form, the series number will be printed on the DO form but not the Invoice, so user requested to add the Series number onto the Invoice form. Any advise how to add this?
For the invoice form, coding below:-
SPACE_LINE                                                                               
HEADER_DATA                                                             
INCLUDE &VBDKL-VBELN_VAUF(K)& OBJECT VBBK ID 0002 NEW-PARAGRAPH TH      
HEADER_TEXT                                                                               
ITEM_HEADER                                                                               
ITEM_LINE                                                               
DEFINE &ORDERNO1& = &VBDPL-VGBEL+(5)&                                   
DEFINE &ORDERNO2& = &VBDPL-VGBEL+5(5)&                                                                               
PERFORM XVBAP1 IN PROGRAM ZSRS0002_OCE                                  
USING &ORDERNO1&                                                        
USING &ORDERNO2&                                                        
USING &VBDPL-VGPOS&                                                     
USING &VBDPL-LFIMG&                                                     
CHANGING &BACKORDER&                                                    
CHANGING &ORDERQTY&                                                     
CHANGING &NETPR&                                                        
CHANGING &NETWR&                                                        
CHANGING &DISTXT1(80)&                                                  
CHANGING &DISTXT2(80)&                                                  
CHANGING &DISTXT3(80)&                                                  
CHANGING &DIS1(80)&                                                     
CHANGING &DIS2(80)&                                                     
CHANGING &DIS3(80)&                                                     
CHANGING &VBAPREF&                                                      
CHANGING &MATGRP&                                                       
ENDPERFORM                                                                               
DEFINE &ZNHGVPN&                                               
DEFINE &ZNHGBIN&                                               
PERFORM GET_VPN_BIN IN PROGRAM ZSRS0002_OCE                    
USING &VBDPL-MATNR&                                            
USING &VBDPL-WERKS&                                            
USING &VBDPL-LGORT&                                            
CHANGING &ZNHGVPN&                                             
CHANGING &ZNHGBIN&                                             
ENDPERFORM                                                     
VPN : &ZNHGVPN& BIN : &ZNHGBIN&                                
,,,,,,,,,,VPN : &ZNHGVPN& BIN : &ZNHGBIN&                      
&VBDPL-POSNR+03(03)&,,&VBDPL-MATNR(10)&,,&VBDPL-VRKME(03)&     
,,&ORDERQTY(6)&,,&VBDPL-LFIMG(6)&,,&MATGRP(C)& &VBDPL-ARKTX&   
,,&NETPR&,,&NETWR&                                             
,,&VBDPL-LFIMG(6)&,,&MATGRP(C)& &VBDPL-ARKTX&,,&NETPR&,,&NETWR&
,,,,,,,,,,&distxt1(20)&    &dis1(15)&                          
,,,,,,,,,,&distxt120(20)&    &dis115(15)&                    
,,,,,,,,,,&distxt140(20)&    &dis130(15)&                    
,,,,,,,,,,&distxt160(20)&    &dis145(15)&                    
,,,,,,,,,,&distxt2(20)&    &dis2(15)&                          
,,,,,,,,,,&distxt220(20)&    &dis215(15)&                    
,,,,,,,,,,&distxt240(20)&    &dis230(15)&                    
,,,,,,,,,,&distxt265(20)&    &dis245(15)&                    
,,,,,,,,,,&distxt3(20)&    &dis3(15)&                          
,,,,,,,,,,&distxt320(20)&    &dis315(15)&                    
,,,,,,,,,,&distxt340(20)&    &dis330(15)&                    
,,,,,,,,,,&distxt360(20)&    &dis345(15)&                                                                               
INCLUDE &VBAPREF& OBJECT VBBP ID 0001 PARAGRAPH TH                          
  ITEM_LINE_DG_HEADER                                                                               
ITEM_LINE_DG                                                                               
ITEM_LINE_DG_TEXT                                                                               
ITEM_LINE_BATCH                                                             
  ,,&'Batch  'VBDPL-CHARG&,,&VBDPL-LFIMG(I15)&,,&VBDPL-VRKME&                 
  ,,&VBDPL-NTGEW(I15)&,,&VBDPL-GEWEI(03)&                                     
  ITEM_LINE_CONFIGURATION_BATCH_                                              
  ,,With the following batch valuation:                                       
  ,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&                                        
  ITEM_LINE_CONFIGURATION_BATCH                                               
  ,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&                                                                     
  ITEM_LINE_CONFIGURATION_HEADER                                              
  ,,With the following configuration:                                         
  ,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&                                        
  ITEM_LINE_CONFIGURATION                                                     
  ,,&CONF_OUT-ATBEZ&,,&CONF_OUT-ATWTB&                                        
  ITEM_REFERENCE                                                              
  ,,&'Order'VBDPL-VBELN_VAUF& &'from'VBDPL-AUDAT_VAUF&                        
  ,,&'Purchase order no.'VBDPL-BSTNK&                                         
  ITEM_PURCHASE_DATA                                                          
  ,,&'Purchase order no._K /Item:'VBDPL-BSTKD& &'/'VBDPL-POSEX&                 
  ,,&'Purchase order no._W /Item:'VBDPL-BSTKD_E& &'/'VBDPL-POSEX_E&             
  DG_STANDARD_TEXT                                                                               
INCLUDE &RDGTXTPRT-TDNAME& OBJECT HZ01 ID HZ01                                
  SUPPLEMENT_TEXT                                                                               
IF &VBDKL-LFART& = 'CRDO' OR &VBDKL-LFART& = 'LR' OR &VBDKL-LFART& = 'CP >    
  DEFINE &ORDERNO1& = &VBDKL-VGBEL+(5)&                                         
  DEFINE &ORDERNO2& = &VBDKL-VGBEL+5(5)&                                                                               
PERFORM XVBAK1 IN PROGRAM ZSRS0002_OCE                                        
  USING &ORDERNO1&                                                              
  USING &ORDERNO2&                                                              
  CHANGING &ORDERREASON&                                                        
  ENDPERFORM                                                                               
**Order Reason: &ORDERREASON&                                                 
  ENDIF                                                                         
  DEFINE &ORDERNO1& = &VBDKL-VBELN_VAUF+(5)&                                    
  DEFINE &ORDERNO2& = &VBDKL-VBELN_VAUF+5(5)&                                                                               
PERFORM XVBAKWAERK IN PROGRAM ZSRS0002_OCE                                    
  USING &ORDERNO1&                                                              
  USING &ORDERNO2&                                                              
  CHANGING &WAERK&                                                              
  CHANGING &VBAKREF&                                                            
  CHANGING &DEPOSIT&                                               
  ENDPERFORM                                                                               
INCLUDE &VBAKREF& OBJECT VBBK ID 0001 NEW-PARAGRAPH TH

Dear ,
I assume that your requirement is to Print the Equipment number in Invoice.
If you are asking for the logic of getting the Equipment number from the invoice, then please try the following logic.
Input 'invoice number' as VBELN in VBFA and get VBELV with VBTYP_V= J
Input 'VBELV' from the above step in SER01 as LIEF_NR  and get 'OBKNR'
Input 'OBKNR' from the above step in OBJK as 'OBKNR' and get 'EQUNR'.
This EQUNR will be the equipment number and SERNR will be the Serial number.
Please check and confirm whether your requirement is fulfilled with the above logic.
Thanks & Regards,
Hegal

Similar Messages

  • Which FM to use to change the PO number in an Invoice Document with status = 3

    Hi Experts,
    My requirement is to change the PO number  in an Invoice Document. The Document Status (RBSTAT ) is 3. I tried with 'BAPI_INCOMINGINVOICE_CHANGE' but  its not working instead showing a message 'Further processing of document not possible (Faulty status)'.
    I guess this BAPI works for only invoices with status  A, B, C, D or E. Please suggest me how to solve this.
    Regards,
    ABAP User

    You don't need to as Breakpoint mentioned.  The values are determined by the data you pass to the function module - if you need a different value in your 6.0 system than you have in your 4.6C system, then you need to adapt your call accordingly, e.g., blocking or closing any open items that you no longer need and thus setting the status to 'C' in one of the VBUK/VBUP fields.

  • Accouting Document Number along with Invoice Document Number

    Hi All,
    I want to see the Accouting Document Number along with Invoice Document Number
    while Posting the invoice in MIRO.
    Regards
    Arjun

    Check
    miro (invoiced document number & account documber number)

  • How to get PO number in FI Invoice Document??

    Dear All,
    Please guide me to get PO number in FI Logistics invoice Verification number against the vendor line item.
    Our requierement to develope a report to send to the vendor about -- Invoices -- pending & Invoices paid -- against each invoice there
    Regards,
    Siva Reddy.S

    Hello,
    When you want to define the required fields from the Index tables as special fields in the line item display, then you modify the item basic structure RFPOSX in the Data Dictionary (SE11) by attaching your own fields in an Append structure.
    The item structure RFPOSXEXT is generated automatically following the maintenance of the special fields in Customizing or alternatively by executing program RFPOSXEXTEND.
    The 'basic structure' for displaying the items is RFPOSX.
    Upon appending to the above structure, the entries in RFPOSX and the relevant entries in the T021S table, the system generates the structure RFPOSXEXT, which is used for the display.
    The special fields must have the first characters 'U_u2019.
    Alternate way:
    Alternatively to create the special fields, use Transaction FAKP, menu path: Account -> Display line items -> Special fields' or the R/3 Customizing via the IMG (Transaction SPRO).
    The fields you enter on this screen are saved in table T021S. Afterwards, the system generates structure RFPOSXEXT automatically so that the special fields starting with 'U_' are appended to structure RFPOSX. You can also regenerate the structure subsequently using program RFPOSXEXTEND.
    Thanks!
    Raju

  • Excise invoice number in Billing document number

    Hi
    Customer incoming payments are made with reference to Excise invoice number. We dont have this number while clearing incoming payments through F-28. How can we bring in Excise invoice number in the accounting document for billing invoice ( thro' VF01) so that we can use it while clearing through F-28.
    Thanks

    Hi
    We thought of a work around. We are going to issue the commercial billing invoice document to the customer, which will be treated as Excise invoice for him, and run J1In just for internal SAP updation purpose. This way, we can bring in commercial billing doc reference in 'Assignment' field of the accounting document and we can use it in F-28 for incoming payment clearing
    Thanks

  • Payment document cleared and invoice document number cleared

    Dear experts,
        Could you please help me to locate (table and field name) what is the payment document number clear and invoice document number cleared ?
        In my point of view, the invoice document number is :
              BSAD-BELNR: Customer Invoice document number cleared
             BSAK-BELNR: Vendor Invoice document number cleared
    Is it right ?
    How about the payment document number cleared ?
    How about the relation between these payment document number clear and invoice document number cleared?
    Thank you in advance

    Hi
    You can  see  data  on  invoices   cleared  using  following tables.
    For  customer -  BSAD
    For Vendor  - BSAK
    For   all  invoices ( open and cleared )   it is   BSID  &  BSIK.
    Thanks
    kamala

  • PO number using invoice document ?

    Dear All,
    Please guide me to get PO number in FI Logistics invoice Verification number against the vendor line item.
    How to get the PO number using MIRO document .???
    Because in one invoice document will be using more number of PO , so i need a report with PO number using invoice document .
    Thanks

    Hi,
    Goto SE16N ......enter the table "BSEG"  uncheck all the output fields and select only for field "BELNR"-Document Number here enter your LIV document number and also select the field "LIFNR" -Vnedor as desired and also field "EBELN".AND EXCEUTE it you will get all the entries of PO number for desires invoice document number and vendor number..........
    Here you filter based on company code and year also......
    Hope this may help you.........

  • Billing document and Excise invoice document number should be same

    Dear SD gurus
    kindly help me following client requirement
    in order to cash (domestic & Exports)
    and sto (intra and Inter plant to plant) scenarios the billing document number and excise invoices number should trigger  same number
    Example order- delivery- pgi- commercial invoice (VF01) --- billing document no.1234 here it should create automatically excise invoice no 1234
    in J1iin disply it show ref document no( billing document no: 1234.    & excise invoice no 1234

    Dear All,
    As per the standard it is not possible. But some times client says why two different numbers ranges we require same numbers ranges for both billing doc. & Excise invoice.
    Please go through the following link
    http://saptechsolutions.com/pdf/SDDocumentNumberRangeEnhancements.pdf
    Also check with the Abaper with explicit enhancement by maintaining the number range values in Custom table where we go when ever there is no option for(if client is not convincing) but which is not reccomandable but left out with no choice when client is demanding.
    Regards,
    S.Himavanth.

  • How to get an accounting document number from an Invoice number

    Dear All,
    I have a requirement where I need to know which accounting document is created against a  particular invoice. As we know that in the document flow of invoice we can see the Accounting document also. But to develop the report I need to pick the accounting document by the invoice document. Please suggest me a table where this value is getting stored. I already tried VBFA and VBKD but nowhere I am getting such information from which I can pick a accounting document number for a particular invoice.
    Please give me your suggestions.
    Regards,
    Sanju

    Dear,
    For Billing document create no. range by Tcode-VN01 and assign it to in Tcode-VOFA
    For Accounting document create no. range by Tcode-FBN1 and activate the External Field and assing it to in Tcode- OBA7
    but Assign the same no. range to both Document types for exp 1000000 to 1999999.
    Regards
    AJIT K SINGH
    HAPPY TO HELP U

  • How to club many sales orders in to one single invoice document number

    Dear Team,
    We are in to contract for 12 years with our client for a particular service,so we will raise a contract order for a particular item,with this we generate the order number,here we are generating some 150 orders numbers,this 150 order number I want to combine in to one single invoice document number,I have tried this in vf01 I am giving the all 150 document numbers,and excuting this but here for each sales order document number it is creating one billing document number,but I need one single invoice number for all this order numbers.
    My copy controls are
    In VTFA
    Header data
    Sales doc type-                                 zabc
    Target billing tye-                            zmv
    Copy requirement-                           001 header/order related
    Determination export data-               blank
    Assignment number-                         b
    Reference number-                            b
    Copy item number-                            tick box was selected
    Item category
    Copy requirements-                        Item/order related
    Data vbrk/vbrp-                              003  single invoice
    Billing quantity                               A
    Pos/neg                                            +
    Pricing type                                      c
    Pricing type exchange rate              blank
    Price source                                     blank
    Can any one guide what to do

    Hi
    In VTFA, please do the following changes,and then test by creating the sales orders then do collective billing.
    Keep Assignment number blank
    Keep Reference number blank
    Copy item number- Uncheck the box where tick box was selected
    Also make sure that PO Number in sales order is same
    Regards
    Srinath

  • Excise Invoice series number

    Hi Friends,
    Can anyone tell me what is the TCode for Excise Invoice series number. I want to change the Excise Invoice series number range.
    Please help me out.
    Rama

    Transaction Code: SNRO
    J_1I57FC --> 57FC Number Range Object
    J_1IARE1 --> ARE1 Doc No object based on Series Group
    J_1IARE3 --> ARE3 Doc No object based on Series Group
    J_1IBOND --> Excise Bonding: Bond number object
    J_1ICERT --> Withholding Tax Certificates (India)
    J_1ICHLNNO --> Internal number range for challans
    J_1ICONPLA --> Consolidated PLA serial no. generation
    J_1IDEPINV --> Excise Invoice Number for Depot Invoices
    J_1IEXCEXP --> Export excise invoice number range
    J_1IEXCINV --> Excise invoice number
    J_1IEXCLOC --> Local excise invoice numebr range
    J_1IEXCTST --> Excise invoice with intervals
    J_1IEXINEX --> Excise invoice number for export
    J_1IINTNUM --> Internally document number to be generated
    J_1IINTPR2 --> Despatch serial number
    J_1ILIC --> Excise Bonding: License number object
    J_1IPLA2 --> PLA part II number range object
    J_1IRG1 --> RG1 Number range object
    J_1IRG1_T     No. --> Range for RG1 - Excise group / Material
    J_1IRG23A1 --> RG23A part 1 no. range object
    J_1IRG23A2 --> RG23A part II number range object
    J_1IRG23C1 --> RG23C part I number range object
    J_1IRG23C2 --> RG23C part II number range object
    J_1IRG23D --> Folio Numbers for RG 23D
    Regards,
    Rajesh Banka

  • Billing Number Range problem ( accounting document not generated)

    Hi All,
    I have created some billing types and for them I have assigned some internal number ranges. Now when I create a billing document it is getting saved with the proper number range but no accounting document is getting generated.
    Also when I try to release the invoice I am getting an error which says " *Incorrect doc.no.: 10000009. Select document number between 0090000000 and 0099999999* "
    K I N D L Y     suggest  as U R G E N T.
    Regards,
    Danny.

    Dear,
              Billing Number Range problem ( accounting document not generated) is not an error because when you create billing document then accounting document not generated. Accounting done after posting of that billing document with VFX3 or VF02 T.Code by account department.
               And for second issue you had define number range between 0090000000 and 0099999999 for invoice so thats why it happen.
    Regards,
    Sandip Shaktavat

  • Same invoice number for two delivery documents

    Dear Folks,
    We are having the following business flow:
    Contract- S.O.- Del- PGI- PI- Excise Invoice- Commercial Invoice
    Now The system is generating the same commercial invoice number for two delivery documents.
    1.The two deliveries have 40 and 50 MT of materials respectively.
    2. The proforma invoices are separate for both and have quantity 40 an 50 MT respectively. Excise Invoice is also diffrent and of right quantity for both of deliveries.
    3. In one of the delivery (40 MT) it is showing aditionally "Confirmation of service" in document flow.
    4. But while doing commercial invoice the system created a single invoice with quanitity 50 MT ONLY.
    5. In the document flow of both deliveries it is showing the same invoice number.
    Please advice.
    Thanks in advance.
    Raghu

    Hi Raghu
    In standard settings,system always tries to combine the deliveries into one invoice if they have same Payer, Billing data, Destination country,Payment Term and same Incoterm.
    This is controlled by the routine "001" in the copy control table "Delivery to Billing" (t.code VTFL).
    Possibly, in your case, the above criterias are same and routine is "001" in the copy control table.
    If you want separate invoice for each delivery, then in the copy control table (t.code VTFL), go to item level and in the field VBRK/VBRP field put routine "003" and save it.
    Now, system will create separate invoice for each delivery even if the above criterias are same.

  • FBL3N-Sales/billing/invoice number

    Hi
    I want to see sales order Number Or Billing Number at FBL3N,Whaere there is the option for showing sales order number and billing or invoice number but it is showing Blank.
    Is there any solution?
    Regards
    Sahoo

    Jaga,
    FBL3N - G/L Account Line item Display it will display Document no(invoice no), Business Area, Type, Document Date, Posting Key, Amt in local currency.
    You can change the layout and bring in "Order no." Column.  and click refresh
    OR
    Double Click the document no, it will take you to specific line item no wherein it will display order no and invoice no.
    It is definite to show for all the sales and billing process.
    If the Columns are empty, then it should be miscellaneous process or the process could be handled through FI entry.
    Regards
    Sathya

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

Maybe you are looking for

  • What is difference in open account period and encumbrance year?

    hello experts, I want to open the accounting as well as financial year for 2012-2013. as I am using test application. in purchainsing->setup>-accounting->open and close period. their are are two terms accounting period and encumbrance year. what is t

  • Window 8.1 time syncing

     I have bought an installed Windows 8.1. It's a great operating system except for a certain issue with the clock sync. In task scheduler it fails for some reason or another. My clock does not stay synced, with is a huge issue for many, many reasons.

  • Maintain Default cost element in Controlling area - FI660

    Dear All, We have implemented PS module for some company codes and hadn't implemented for others, when we are trying ot create a downpayment requrest its asking for default cost element assignment. We would like to know wheather this default cost ele

  • Process order create

    Hi Experts, How to achieve follow. User should get error message while create process order if there is no price in material master of FG material so he can't create order.Now he gets error message while GR for process order.

  • Apple/Imac virgin How do I set up different users

    New to Apple community and trying to set up different account/users for my imac