Smartform for Invoice: LB_BIL_INVOICE - Details of IS_BIL_INVOICE required

Hello all,
I am currently working on an Invoice Form and have created a copy of the standard SAP smartform LB_BIL_INVOICE.
In the form interface, there's an import parameter  IS_BIL_INVOICE  which has a deep structure and holds the data required to be printed.
1. Could someone give me the details of the various fields present in the deep structure? I have been given the table and field names in the specifications, but the structure of  IS_BIL_INVOICE has different names, e.g. MATERIAL for MATNR, etc. Hence it's a bit difficult to relate the standard SAP table-fields to the structure fields.
2. I have written select queries for selecting data from various tables like VBRK, VBRP, LIPS, MARA, etc. Is it wrong to write queries in the Global Initialization of the smartform even though we might have some data in the Form Interface in the structure above? This approach is better for me as I will then not have to find out what data is present and what isn't in IS_BIL_INVOICE.
Regards
Ameya

Hi Rohit,
You can use this...
select single WADAT_IST
   into W_WADAT_IST
   from likp
  where vbeln = is_bil_invoice-hd_ref-delvi_numb.
    W_WADAT_IST should be declared in GLOBAL DATA tab of type "WADAT_IST" and print theis variable at the required place inthe layout.
Thanks and Regard,
Bharat Kumar Reddy.V

Similar Messages

  • How to modify inbuiltsap smartform for invoice.

    please provide me the steps

    Hi
    Welcome to SDN forum
    see the std Invoice Smartform for Invoice
    INVOICE
    Output type         : RD00
    ScriptForm Name     : RVINVOICE01
    Driver Program Name : RVADIN01
    <b>smartform name </b>     : <b>LB_BIL_INVOICE</b>
    Smartform Driver Pgm: RLB_INVOICE
    goto tcode SMARTFORMS
    copy the above smartform into ZFORM
    and do the changes as per your requirement
    then attach the same in the NACE tcode against the same Driver program.
    then execute the Output from VF02 Tcode
    by entering the Invoice no
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Standard Smartform for consignment process or Invoice verification

    Hi All,
               What is the standard smartform for Invoice verification
    or consignment process.

    hi,
    check these.
    LB_BIL_INVOICE     Invoice     Standard Form
    SF_LB_INVOICE     Invoice     Standard Form

  • Functional Spec for Invoice

    SD, Gurus,
    I am new to SD, I am in the process of doing to functional spec to create a physical invoice. The Invoice will be done via Smartform. I am doing some specs for our ABAP person. We are using Sales Order, and Shipping functionality. Can some give me an overview of what I need to look for? I am familiar with most of the billing tables VBRK, VBRP, and sales order VBAK and VBAP.
    I just need some guidance as to how should I give the functional spec to the ABAP, do I need to include documetn flow, since we are using picking, and delivery?
    Do I get all from the billing document? or I have to go to Sales order also? how do I reference the order?
    Thank You for your help,

    Hi Frank,
    Good day to you.
    1 ) The table for address is generally "ADRC".
        Say you need to find the address details for the customer.
       Go to the customer table "KNA1" and from this table get the field "ADRNR".
       Using "ADRNR" check the table "ADRC".
    Here are the technical details that you can provide to your ABAPer...
    a): you need the table KNA1 with the customer data. With the key of KNA1-KUNNR you get the KNA1-ADRNR.
    b): With the contact person number you search in KNVK-PARNR the value KNVK-PERSNR
    c): call function module ADDR_PERS_COMP_GET_COMPLETE with
    import parameters ADDRNUMBER = KNA1-ADRNR and PERSNUMBER = KNVK-PERSNR.
    d): result is in the structure ADDR3_COMPLETE.
    now you have all address and communication data from the contact person
    e): you can use the function module ADDR_CONVERT_TO_BAPIADDR3_V2
    to map the result given in ADDR3_COMPLETE.
    2.Now comming to the document flow.
    The flow of Sales & Distribution is as follows as you already know:
    Inquiry (Optional) --> Quotation (optional) --> Sales Order --> Outbound Delivery (Delivery + Pick (optional) + Pack (optional) + Post Goods Issue) --> Billing --> Excise Invoice (incase of Indian Manufacturing Scenario).
    For example use Table VBFA. Here in order to get sales order for corresponding Billing document, in the subsequent document field enter the billing document number.In the preceding document category field enter the type of the sales order eg. OR. You can now get your required sales order no.
    the tables would be:
    1. VBAK sales order header, VBAP sales order item
    2. LIPS outbound delivery header, LIKP outbound delivery item
    3. VBRK billing header, VBRP billing items
    pls go through this thread it may help you..
    Re: Reg: SD Flow (Sales to Delivery)
    3)To get to get the whole document flow for
    a given sales order ask the ABAPer to use Function module  ' RV_FLOW'
    Please refer to standard smartform for invoice ..
    LB_BIL_INVOICE layout and RLB_INVOICE driver program
    Please let me know if you need futher clarification.
    Note it is not necessary to use the table vbfa , but if you want all the details in one table ( ie sales order num , delivery num , billing num etc ) at this time we need to use VBFA table.
    Regards,
    Vvieks

  • Standard smartforms for order confirmation

    Hi all
    i search the standard smartforms for order confirmation. What's the name for this form....
    i have only find for invoice LB_BIL_INVOICE and for Delivery LE_SHP_DELNOTE, but not for oder confirmation....
    thx abap_begin....

    Hi,
    For the printing of the order confirmation there is a standard script RVORDER01. You can find this in transaction NACE by choosing application as V1 then output type as BA00 and then Processing routines.
    Regards
    Dillip Sahoo

  • Table for Invoice

    Hello Gurus,
    Can any one tell me the table for Invoicing header details and Line item details,
    Regards,
    Prasanna

    Hello
    Invoice Header table: RBKP
    Invoice item table: RSEG
    Regards
    Gregory Mathews

  • Adjust/Accept task for Invoice

    Hi,
    We are  implementing Process controlled workflow in SRM7.01. for Invoice(BUS2205). we have the requirement to send the invoice to creator after rejection to edit or accept the rejection. But when I checked there is no standard task available for Adjust /Accept Invoice.
    Is it possible to include this functionality by creating a custom task for Invoice and modifying the standard workflow?
    Has anyone come across this requirement?
    Or is there any limitation in including this functionality?
    Thanks,
    Sivagami

    Hi,
    Yes, this task is not developed in the standard yet.
    In the following note you can see for each documents this functionality is available:
    http://wiki.sdn.sap.com/wiki/display/SRM/EnablingWIreturningtotherequestorwhendocumentisfullyrejected
    Maybe some other forum members can help you on this regard.
    Thanks,
    Melina

  • This is a question:      Smartforms for RCTI Invoice generation

    Hi Guys (and Girls),
    I have client who would like to generate an RCTI invoice via smartforms.  The system has been configured to immediately print a form once transaction MRRL has been called.  However, our attempts to date to get a Smartform to print on creation of the invoice via MRRL has failed miserably.
    SAP comes pre-configured to generate RCTI invoices via SAP Script with Form MR_PRINT.  This can be changed in config via transaction NACE (Output type MR) to enable a smartform to be selected instead - but the standard program RX08NAST does not appear to be set up to execute smartforms, so all attempts to call the Custom smartform result in SAP Script being called instead.  And attempts to change the program from RX08NAST to something like RLB_INVOICE causes the invoice generation program to generate a workflow error and not print anything.
    SO, the 8 point question - does anyone know of a program that can be assigned to the RCTI invoice generation output type that will result in a Smartform being called instead if s SAP Script form?
    And secondly , the 2 point question, is LB_BIL_INVOICE the best smartform to copy for an RCTI invoice (The RCTI  looks the same as a standard Sales Invoice, but I'm concerned because we require vendor data, not customer data, and I don't know if the data structure passed into the LB_BIL_INVOICE form is set up for that)?  Can anyone confirm or deny this?
    Cheers,
    Steve
    Message was edited by:
            Stephen Keam

    r u printing this invoice from the VF01/02/03
    if Yes you can do this as follows.. As i understood.. you are printing a form for Inovice... you need to print invoice details and Venodr and Purchase order Details.
    you can achive this as follows..
    Note1: in LB_BIL_INVOICE you wont get the vendor details and Purchase Order details... but still you cane achive this bye writing you own select query in Smart form layout - Gobal declaraions>initialization..
    <b>Use the RLB_invoice as u r print Program.. Creat your own Layout in SMrtforms ther retrieve the VEnodr and PO Details.. and  confiur the output type as  Print program is RLB_Invoice and layout is your zLayout.</b>
    now you have Invoice details and Vendor and PO details... Prepare a invoice in Smatform asd your Requirement...
    In Smartform "Create Form inter face as mentioned in the Print Pogram
    <b>JUST this is Exampl only</b>
    first call this *   Determine smartform function module for invoice
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  FORMNAME           = LF_FORMNAME
                    variant            = ' '
                    direct_call        = ' '
             IMPORTING  FM_NAME            = LF_FM_NAME
             EXCEPTIONS NO_FORM            = 1
                        NO_FUNCTION_MODULE = 2
                        OTHERS             = 3.
        IF SY-SUBRC <> 0.
        Error handling
          CF_RETCODE = SY-SUBRC.
          PERFORM PROTOCOL_UPDATE.
        ENDIF.
    then
        Call smartform invoice
          CALL FUNCTION LF_FM_NAME
            EXPORTING
              ARCHIVE_INDEX      = TOA_DARA
              ARCHIVE_PARAMETERS = ARC_PARAMS
              CONTROL_PARAMETERS = LS_CONTROL_PARAM
              MAIL_RECIPIENT     = LS_RECIPIENT
              MAIL_SENDER        = LS_SENDER
              OUTPUT_OPTIONS     = LS_COMPOSER_PARAM
              USER_SETTINGS      = SPACE
              IS_BIL_INVOICE     = LS_BIL_INVOICE
            IMPORTING
              JOB_OUTPUT_INFO    = LS_JOB_INFO
            EXCEPTIONS
              FORMATTING_ERROR   = 1
              INTERNAL_ERROR     = 2
              SEND_ERROR         = 3
              USER_CANCELED      = 4
              OTHERS             = 5.
          IF SY-SUBRC <> 0.
          Error handling
            CF_RETCODE = SY-SUBRC.
         endif.
    <b>Close this thread if when u r problem ise solved
    Regards
    Naresh Reddy K</b>

  • Creating only one or several invoice smartforms for a global company

    Hi,
    I'd like to hear your thoughts how smartform development should be arranged for a global company. Let's take an invoice as an example.
    A global company has several divisions, company codes, plants and sales organizations. Invoices are printed in different languages in several countries.
    Of course it would be better to build exactly one smartform for everything, but on the other hand, the smartform would be extreme complex and difficult to maintain in future, since each company has slightly different requirements for the invoice. On the other hand, it doesn't make any sense to just keep on creating a new smartform for each country, since at the end you will have tens of almost identical smartforms which doesn't sound good either.
    What is your experience--should one try to build exactly one smartform for all the company codes, or would it be better to create a new smartform for each company code? In general, I would say that the latter one is perhaps a better approach.
    Thanks in advance for your thoughts,
    Jarmo Tuominen
    Edited by: Jarmo Tuominen on Mar 1, 2008 12:17 PM

    My first thought was that it is better to maintain only one form for everything.
    However, I am aware that there are also opposite opinions. They explain that creating one form for everything is not the best approach. Because of this, I would like to understand the reasons for that. Do others have any other point of views?

  • PAAPINVW -- how to fetch values for invoice line level details

    My requirement is such that we define one of our account segments at invoice line dff's while creating the invoice against a project. So the ccid would need to driven from this invoice line dff, to be complete and valid.
    Project Supplier Invoice Account Generator (PAAPINVW) has already defined attributes for Invoice Header DFF's and Invoice Distribution level DFF's; but Invoice line level DFF's have not been defined.
    Also there are no attributes that would help me query the invoice line to fetch these details.
    Working on this workflow in R12. Has anyone tried to fetch any sort of details from invoice lines, using any existing attributes in PAAPINVW; or has anyone done something in accordance to this??
    Looking for suggestions.. have anyone faced a similar situation before??

    Hi user;
    Pelase check below note cause and solution part please,which at least can gives u some ideas
    Projects Supplier Invoice Account Generation Error: APP-SQLAP-97734: The System Cannot Generate Distributions [ID 823787.1]Regard
    Regard
    Helios

  • Report: Create report for invoice details, shipping details and partner fn.

    hi,
    i want to know the table used for Invoice Details, Shipping Details and Partner Function in SD.
    thanks in advance.

    Hi Chandrasekar,
    Welcome to SDN.
    Please check this link for SD tables.
    http://www.sapgenie.com/abap/tables_sd.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Division wise Separate numbering range required for invoices

    Hi Gurus,
    The requirement is Division wise Separate numbering range required for invoices. For e.g  like 11 Steel Fabrication, 12 Aluminum Fab, 13 Carpentry & Join, 14 GRP/GRC, 15 Stone & Marble
    Already a table ZSD_NUM_RANGE with fields like Client, Plant, Number range in the case of internal number assignment
    Presently number range is based on plants.
    I understand that Division field SPART is to be included in this table by using the exit given below:
    User Exit For Billing
    USEREXIT_NUMBER_RANGE (Module pool SAPLV60A, program RV60AFZZ)
    The internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    May I know how far this is feasible to shift plant wise no. range to division wise no. range.?
    Also if we do division wise number range, How about shifting to new invoice numbers in the middle of the FISCAL year?
    Kindly revert back to me at your earliest.
    Regards,
    Anbu

    Dear Anbu
    Ideally speaking, invoice number range should be per plant and the user exit what you had indicated holds good.  May be you can try with the same user exit.
    thanks
    G. Lakshmipathi

  • I have creatd smartform for vendor return invoice and i m using std zprog o

    i have creatd smartform for vendor return invoice and i m using std zprog of other client and corresponding prog.. when i run this program using  .....after creating transc in se93. is it not workin ..
    where should i check for error and i am not getting selection screen in se38 program which i am using with this smartform..
    can u tel me step wise....what is the procedure so i can run and execute and see my output..
    please
    regards.

    Hi,
    when you run program from SE38 are you able to see the selection screen and able to exucute with out error....
    And when you run the t-code which you created for your Z-prog whats the message its giving...
    Regards,
    Shankar.

  • Any fm for PO Invoice receipt details ?

    Hi all,
    Is there any function which gives invoice receipt details for a purchase order ?
    I am aware of the tables to be used.

    What kind of details are you looking for ? Method  : IF_PURCHASE_ORDER_ITEM_MM~GET_HISTORY in class :CL_PO_ITEM_HANDLE_MM may be helpful.  See the WiKi post [Purchase Order Data Extraction using ABAP Classes|https://wiki.sdn.sap.com/wiki/display/stage/PurchaseOrderDataExtractionusingABAPClasses] for details.

  • GR notnot required for invoice

    Hello All,
    Which are the scenarios where GR is not required for invoice verification> for eg, In Blanket POs , standrad SAP suggests no GR. Similar scenarios.
    regards
    N Banu

    Hi,
    GR is basically not required when u have to do the Invoice Planning.e.g. suppose u have broadband connection for validity period of 3 month and for one month charges are Rs 100.
    Now u raise a blanket service PO for 3 months and rate fixed as Rs 100 per month.
    Now service provider can send u invoice of Rs 90 for a month. In this case no GR/SES is required....u just simply go by Invoice verification as per ur invoive planning.
    2. For PIPE material, there is no PO raised in the system and no GR is required and neither it is a stock material in store. How much you use, pay for that one either Daily, fortnightly or monthly etc.
    Hope Clear U !
    Regards,
    pardeep Malik

Maybe you are looking for