Reuse of Sales Invoice form

Hello,
I'm developing addon in SAP B1 2005 B Pl35.
I want to use existing Sales Invoice form again in my developed Addon Module.
Is it possible?
How?
Rgds
Subrata

Subrata,
it is possible to reuse the system forms by activating their menu id. for example, when you will make a seperate module, you will create an xml file where you will give some unique id for each menu.
on menu click event of each form, you will load the respective form. in case of sales order or invoice , you simply activate the resepective form's menu. like:
Private Sub sbo_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles sbo_Application.MenuEvent
        If pVal.MenuUID = "xxx" And pVal.BeforeAction = False Then
            sbo_Application.Menus.Item("2050").Activate()
        End If
    End Sub
'2050' is sales order form's menu id.
and 'xxx' is the menu id that you have specified in your xml through which you are making user defined menu.
HTH,
Binita Joshi

Similar Messages

  • Sales invoice form

    hi ,
    Iam using standard sales invoice form but the problem the adderss is not printing.
    please help me in this issue.

    Hai Srinivas,
    Tell which address you want. Is it customer, vendor or Plant.
    If it is customer.
    First, fetch the cutomer number and address number  from the KNA1 table.
    Second, pass the address number in the ADRC table to get the address fields.
    Check whether the value is maintained in the back end or not.

  • Change item value at Sales Invoice form before create a document

    HI,
    I am trying to change value for "TrackNo" item on the sales invoice form just before create a sales invoice,
    I have the following code:
    Dim oForm As SAPbouiCOM.Form
    Dim oItem As SAPbouiCOM.Item
    Dim oEdit As SAPbouiCOM.EditText
    Dim periodo As String
    Dim sf As String
    Try
       oForm = Nothing
       oForm = entorno.Forms.Item(FormUID)
       oItem = oForm.Items.Item("251")
       oEdit = oItem.Specific
       oEdit.String = "Y"
    Catch
    End Try
    It seems to work only If i have selected the logistics folder ( the folder where the "TrackNo" Item is located)
    If I have selected another folder as "contents" or "Accouting" when I create the document it fails.
    Can you help me with this problem?
    Many Thanks

    Buenas Sergio,
    Try forcing a click event on the logistic folder. I don´t think there is another option. You are only able to asign the value if the control is visible(and editable).
    Regards,
    Ibai Peñ

  • How can I change Posting Date on Sales Invoice form in UI?

    Hello,
    I cannot change the Posting Date on the Sales Invoice form in UI.
    The new date is earlier than the system date, but when I type it on the field on the form, it's not problem!
    I've tried to use the following code in vb.NET:
    SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Specific.value = DocDueDate.ToString("yyyyMMdd")
    But I've got an exception: <i>Form - Bad value</i>
    Next step I tried this, but I've got a same message:
    SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
    SBO_Application.SendKeys(DocDueDate.ToString("yyyy.MM.dd"))
    Any idea?
    THX,
    Csaba

    Hi Csaba!
    please, make sure that you've handled Sales Invoice form - just show the message:
    MessageBox.Show(pVal.FormUID)
    edDate = SBO_Application.Forms.Item(pVal.FormUID).Items.Item("10").Specific
    edDate.value = DocDueDate.ToString("yyyyMMdd")
    This has to show you 133. If not then put the IF-statement to check what form you are handling before you try to get the item's handler

  • How to display the Customer Name in the Sales invoice form

    Hi All!
    May I know the table from which I select the customer name for a certain customer number?
    Thanks in advance!

    Hi,
    Kna1 is the customer master table there you can find the name1 filed
    Thanks,
    NN.

  • Decimal conversion of Sales Tax in 'SPARE PARTS SALE INVOICE' ( smart form)

    Hello,
    I am displaying a the value of the Sales Taxc in 'SPARE PARTS SALE INVOICE'. (in Smart Form)
    The field(which holds the Sales Tax value is 'KWERT' -LBBIL_INVOICE-IT_KOND ), with datatype 'CURR', reference table 'KOMK' and reference field 'WAERK'.
    In my smart form,i have declared a variable 'SALES_VALUE' of datatype 'KWERT' and reference field 'IT_PRICE-WAERK' (LBBIL_INVOICE-IT_PRICE), where 'WAERK' is the SD document currency.
    Now when i display the field 'SALES_VALUE' i get 735.00 , whereas the original value in the field is 73.5
    how to correct this and where am i wrong ?
    Thankyou for yur time and really appreciate the help.
    Shehryar

    You are using currency fields that reference a currency code. Most currencies in SAP have two decimal places. Dividing by 100 will work in most cases. Ideally you should get the CURRDEC value in table TCURX for the currency you are working with... then divide by 10 that number of times.
    example-
    USD, 2 decimals, divide by 10 twice.
    There is a function module that will do this for you. Can't think of the name...???

  • Running a Invoice Form (VF00) through VA02 (Sales Order).

    Hi All,
    I am a little puzzled by our functional team. My SD Functional expert wants me to run the invoice form (Billing output type or V3) from VA02 (Sales output type or V1).
    Currently, we have the invoice print program tied to a invoice smartform. He wants all the functionality to be there on the invoice form, but to be able to run from VA02/VA03 (Sales order). So, run INVOICE from VA02. Currently we have a custom program modeled after RLB_INVOICE sap print program and our smartform is modeled after LB_BIL_INVOICE.
    Can anyone suggest if they have done something like this before?
    Regards,
    Salil

    Hello,
    I am having the same issue, How did yuo solve it?
    Thanks,
    Alex

  • Smart form - Sales invoice

    Hi all
    i have to develop a Sales Invoice in smart forms, is there any standard sap smart form available which I can use.
    regards
    AJ

    Hello AJ,
    SAP Standard smartform invoices
    SF_LB_INVOICE

  • Cnfigaration of purchase invoice (form)

    hi,
    In my requirement I have created a form  that  form gives the invoice details. that invoice is purchase invoice document. so I want to configure this purchas invoice form. how can I achieve it.
    Moderator message: please do more research before asking, show what you have done when posting.
    Edited by: Thomas Zloch on Feb 28, 2012

    Subrata,
    it is possible to reuse the system forms by activating their menu id. for example, when you will make a seperate module, you will create an xml file where you will give some unique id for each menu.
    on menu click event of each form, you will load the respective form. in case of sales order or invoice , you simply activate the resepective form's menu. like:
    Private Sub sbo_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles sbo_Application.MenuEvent
            If pVal.MenuUID = "xxx" And pVal.BeforeAction = False Then
                sbo_Application.Menus.Item("2050").Activate()
            End If
        End Sub
    '2050' is sales order form's menu id.
    and 'xxx' is the menu id that you have specified in your xml through which you are making user defined menu.
    HTH,
    Binita Joshi

  • Customer payment report against sales invoice

    Dear Experts.
    My client has requirement to track customer payment against sales invoice. Actually client sometimes do partial payment also. I know we can get from bsid(open item) & bsad(cleared item) table. I unable to find actual required data.
    regards
    sanjay verma

    Dear Sanjay,
    Apart form the FBL5N,  Please check the below path for more standard reports which helps you to fulfill your requirement.  Hope its helpful.
    In SAP Easy Access screen
    Regards,
    Inthiyaz

  • NAV 2013 R2; How to run a customized report (206 sales invoice) in the classic client

    Hello, in preparing a newly installed NAV 2013 R2, I'm questioning the following:
    In the Development Environment I have customized report 206 Sales - Invoice in the Design menu View Layout with the space of the logo (by Microsoft SQL Server Report Builder) and
    finally saved and compiled.
    When I do run it connects to the server of what I call the classic client or the real NAV 2013 R2 and I can select a posted sales invoice to show the new layout and the result is
    fine as customized as I wanted.
    When I later ordinary print one of the posted sales invoices this customized logo layout doesn't appear on the print. I print in PDF and paper. When I make a next new sales invoice
    this new layout is not in use either.
    Another thing is run print started from the Development Environment is called Sales - Invoice in the header and not just Invoice that it the name when printing when invoicing and
    printing of posted documents.
    Additionally this form of Sales - Invoice shows our company details and good information as web, e-mail, bank account and bank name that is well demanded on a perfect invoice.
    How to get these informations out normally?
    Is the classic client having a wrong report as sales invoice?
    How to run a customized report (206 sales invoice) in the classic client NAV 2013 R2?
    It is like the customized report (206 sales invoice) is not in use yet in the classic client.
    All you wise people out there are welcomed to help me now
    Best regards
    Carsten

    Try on Dynamics Community forum: https://community.dynamics.com/nav/f/34.aspx

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to email the sales invoice to customer on his email id

    hi masters,
    i have got one report for development in which i have to send the sales invoice to that respective customer's email ID(email id of any domain like yahoo, gmail etc). and like this they want to send the there respective invoice to all customer's email id. i am first time working on email sending report for the external email address. plz help me how to sort out this problem?
    thanks
    Vicky

    Hi check the following program:
    REPORT zemail_gm.
    *********Variable Declarations *****************************
    DATA: gv_form_name TYPE rs38l_fnam, " Used to store the function module generated by Smartform
    gv_bin_filesize TYPE i, " Store the file size
    gv_pos TYPE i,
    gv_len TYPE i,
    gv_tab_lines TYPE i.
    ********Constants *******************************************
    Data : gc_text(11) type c value 'Form Output',
    gc_tst(3) type c value 'TST',
    gc_testing(7) type c value 'Testing'.
    *********Work Area Declarations *****************************
    DATA: gs_docdata TYPE sodocchgi1, " Data of an object which can be changed
    gs_ctrlop TYPE ssfctrlop, " Smart Forms: Control structure
    gs_outopt TYPE ssfcompop, " SAP Smart Forms: Smart Composer (transfer) options
    gs_otfdata TYPE ssfcrescl, " Smart Forms: Return value at end of form printing
    gs_reclist TYPE somlreci1, " SAPoffice: Structure of the API Recipient List
    gs_pdf_tab TYPE tline, " Workarea for SAP Script Text Lines
    gs_objbin TYPE solisti1, " SAPoffice: Single List with Column Length 255
    gs_objpack TYPE sopcklsti1. " SAPoffice: Description of Imported Object Components
    *********Internal tables Declarations *****************************
    DATA: gt_reclist TYPE TABLE OF somlreci1, " SAPoffice: Structure of the API Recipient List
    gt_pdf_tab TYPE TABLE OF tline, " SAPscript: Text Lines
    gt_otf TYPE TABLE OF itcoo, " OTF Structure
    gt_objbin TYPE TABLE OF solisti1, " SAPoffice: Single List with Column Length 255
    gt_objpack TYPE TABLE OF sopcklsti1. " SAPoffice: Description of Imported Object Components
    CLEAR : gv_form_name,
    gs_ctrlop,
    gs_outopt,
    gs_otfdata,
    gv_bin_filesize,
    gv_pos,
    gv_len,
    gv_tab_lines.
    START-OF-SELECTION.
    • Generate Function Module name
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZPDF_G'
    IMPORTING
    fm_name = gv_form_name
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    • Assigning values to Form Control Structure and Form Composer
    gs_ctrlop-getotf = 'X'.
    gs_ctrlop-no_dialog = 'X'.
    gs_outopt-tdnoprev = 'X'.
    • Getting the OTFDATA
    CALL FUNCTION gv_form_name
    EXPORTING
    control_parameters = gs_ctrlop
    output_options = gs_outopt
    user_settings = 'X'
    IMPORTING
    job_output_info = gs_otfdata
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    • Assigning the OTFDATA to OTF Structure table
    CLEAR gt_otf.
    gt_otf] = gs_otfdata-otfdata[.
    • Convert the OTF DATA to SAP Script Text lines
    CLEAR gt_pdf_tab.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = gv_bin_filesize
    TABLES
    otf = gt_otf
    lines = gt_pdf_tab
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    OTHERS = 4.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    • Assigning the Description of the object sent in the mail
    CLEAR gs_docdata.
    gs_docdata-obj_name = gc_tst.
    gs_docdata-obj_descr = gc_testing.
    • Assigning the email id to Structure of the API Recipient List table
    CLEAR : gt_reclist, gs_reclist.
    gs_reclist-receiver = w_id. " Here give the mail ID
    gs_reclist-rec_type = 'U'.
    APPEND gs_reclist TO gt_reclist.
    • Passing the SAP Script text lines to SAPoffice: Single List with Column Length 255 table
    CLEAR : gs_objbin, gs_pdf_tab.
    LOOP AT gt_pdf_tab INTO gs_pdf_tab.
    gv_pos = 255 - gv_len.
    IF gv_pos > 134. "length of pdf_table
    gv_pos = 134.
    ENDIF.
    gs_objbin+gv_len = gs_pdf_tab(gv_pos).
    gv_len = gv_len + gv_pos.
    IF gv_len = 255. "length of out (contents_bin)
    APPEND gs_objbin TO gt_objbin.
    CLEAR: gs_objbin, gv_len.
    IF gv_pos < 134.
    gs_objbin = gs_pdf_tab+gv_pos.
    gv_len = 134 - gv_pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF gv_len > 0.
    APPEND gs_objbin TO gt_objbin.
    ENDIF.
    • Filling the details in SAPoffice: Description of Imported Object Components table
    DESCRIBE TABLE gt_objbin LINES gv_tab_lines.
    CLEAR gs_objbin.
    READ TABLE gt_objbin INTO gs_objbin INDEX gv_tab_lines.
    IF sy-subrc = 0.
    gs_objpack-doc_size = ( gv_tab_lines - 1 ) * 255 + STRLEN( gs_objbin ).
    gs_objpack-transf_bin = 'X'.
    gs_objpack-head_start = 1.
    gs_objpack-head_num = 0.
    gs_objpack-body_start = 1.
    gs_objpack-body_num = gv_tab_lines.
    gs_objpack-doc_type = 'PDF'.
    gs_objpack-obj_name = 'ATTACHMENT'.
    gs_objpack-obj_descr = 'test'.
    APPEND gs_objpack TO gt_objpack.
    ENDIF.
    • Sending the Form Output in the PDF format to email
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = gs_docdata
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = gt_objpack
    contents_bin = gt_objbin
    receivers = gt_reclist
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE 'Sent Successfully'.
    ENDIF.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    END-OF-SELECTION.
    Regards,
    Rock.

  • Where is the link between Sales Invoice and Downpayment Invoices

    We made a downpayment invoice. And processed incoming payment for such invoice.
    Then proceed to Sales Invoice, which was applied to the Downpayment invoice. Everyting went well.
    We tried to use crystal report to extract the Sales Invoice (OINV, INV1) and link to the downpayment table (ODPI) to print the breakdown in the invoice form. We could not find the relationship in this table.
    Can someone help ?
    KC

    Could it be helpful for you to use view in enterprise manager ? I just see the docentry field as the link field among OINV, INV1 and OPDI.
    If you use down payment request, I think you could not since it is a note and must be reconciled after invoice created
    Rgds,

  • Sales Invoice output

    Hi Friends,
    My client requirement is that they sales invoice to be sent by 1. Print output
    2.In PDF form
    3.By Email copy to be sent when we save Invoice.
    Thay want all three output types to be triggered in the vf01.My query is whether I need to create three out put types or how to cofigure this.
    Let me know u r valuable replies.
    regard,
    Amar

    Hi Friend,
    It is not required to create 3 output types, Just you have to maintain the condition records for these two mediums.
    1. printout (hard copy)
    2. Email.
    Goto Transaction code NACE and click on the application V3 and in the application tool bar there is CONDITION RECORDS option wil be there, click on this and maintain the condition records for your combination
    In Email you will send the PDF to him.
    regards,
    santosh

Maybe you are looking for