Problem in invoice smartform requirement

Hi,
          Invoice smartform was developed without using the control structures, as some problems is occuring,
         i have used the control structures, earlier while calling the function module from the driver program.
         they have passed internal table it_head in the driver program and in the form interface of the smartform
        as i am using control structures i have taken in the loop. and passed work area from driver to smartform
        changing in the form interface of the smartform
        the runtime error is coming as The field "WA_HEAD" cannot be changed.
       can any pls expalin what is the wrong going on and steps to correct it.

Hi,
That will happen because you are using local structure in driver program,passing internal table of local structure to global intetface at smartform ,you are using the same structure as in driver program at smartform interface(that is local to driver program).
create Global structure in SE11,,then use the same structure to create internal table in both side(in driver and smartform)
run time error will clear.
any help revet back
Thanks...

Similar Messages

  • Invoice Smartforms

    Hello,
            I have written a bespoke invoice smartforms. The problem I am having is that sometimes the smartform is generating a 'next page' when it does not need to. There is a Footer detail defined within MAIN. The smartform lists the items and then prints the footer detail and then it sometimes prints the next page but with just the general information (i.e logo, title, invoice number, etc).  In some instances there is no item information so there is no secondary window expected to displayed on the next page.
            My question is, how do I stop this additional page from being produced when there are no items to be displayed on this page? I thought that the 'next page' is only suppose to be generated when it cannot fit the items all on the first page.
            Has anybody experienced the same  problem? Any help would be appreciated.
    Thanks in advance.

    Hi,
    I had this requirement, where the items should be displayed only on 1 page, as it was an Excise Invoice.
    If the Items spill over to the next page, I generate an error Pop-up message, thereby stopping the Print-preview processing.
    In your MAIN window, put this code to chk the current page no.
    if sfsy-formpages > 1.
      message 'Items splilling over to next page'  type 'E'.
      return.
    endif.

  • VF01- invoice smartform in PDF format to be sent thro' mail

    Hello Gurus,
    We have a requirement from our client that we need to trigger a mail of invoice smartform in PDF format on saving in VF01.
    Can any body suggest the steps in NACE and also output..
    Regards

    As per your post, I understood that,
    After saving Invoice , automatically Invoice has to send in PDF format to the respective email id maintained in CMR-Payer master
    if yes, this involves ABAP & BASIS ,
    ABAP- Program & FOrm routine has to created & assigned in respective output type & type-PDF (Check in NACE- Output type)
    for this, you need to maintain the Condition record- VV31 - with medium as "Mail" -
    or else,
    you can do this manually also, in VF31- you can give a print  & save in PDF format- you can send it - but its complete manual process.

  • Bill to party address printing in standard invoice smartform

    Hi Experts,
        I am trying to modify the standard invoice smartform as per client requirement.In the payment window, i deleted the fields which are not necessary and I have to print bIll to party address in payment information window. I wrote the code like this in program lines.
    CLEAR GS_HD_ADR.
    get customer adress number
    READ TABLE IS_BIL_INVOICE-HD_ADR INTO GS_HD_ADR
    WITH KEY BIL_NUMBER = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
                  partn_role = 'RE'.
    ADRNR = GS_HD_ADR-ADDR_NO.
    DATA : IT_ADRC TYPE STANDARD TABLE OF ADRC with header line
           WA_ADRC like line of  it_ADRC.
    SELECT * FROM ADRC INTO TABLE IT_ADRC
    WHERE ADdrnumber = GS_HD_ADR-ADDR_NO.
    read table IT_ADRC INTO WA_ADRC index 1.
    Next I Created one text node and I inserted fields like
    &wa_adrc-name1&
    &wa_adrc-street&.
    In SE16 , data is there for name1 and street fields of ADRC table. when I am trying to activate the form , iam getting warning message as field&wa_adrc-name1& has no defined value. In the output, data is not displayed for bill to party address. Please tell me the solution.

    Hi Parwez,
      Sorry Iam very busy from morning.So,Iam unable to reply .You can ignore the warning messages.
    In global definitions, types tab write the following code.
    types:begin of ty_adrc,
         addrnumber type AD_ADDRNUM,
         name1 type AD_NAME1,
         street type AD_STREET,
         city1 type AD_CITY1,
         city_code type AD_CITYNUM,
         end of ty_adrc.
    types:wa_adrc type table of ty_adrc.
    In global data,
    it_adrc type table of ty_adrc
    wa_adrc type ty_adrc
    In the program lines of address window, write this code.
    CLEAR gs_hd_adr.
    get customer adress number
    READ TABLE is_bil_invoice-hd_adr INTO gs_hd_adr
    WITH KEY bil_number = is_bil_invoice-hd_gen-bil_number
                   partn_role = 'RE'.
    adrnr = gs_hd_adr-addr_no.
    SELECT name1 street city1 city_code FROM adrc INTO corresponding fields of TABLE it_adrc
    WHERE addrnumber = gs_hd_adr-addr_no.
    loop at it_adrc into wa_adrc.
    READ TABLE it_adrc INTO wa_adrc with key addrnumber = gs_hd_adr-addr_no.
    endloop.
    try with this code

  • Regarding Purchase Invoice Smartform

    Hi.I need to develop a purchase invoice smartform.I am having the following fields.
    1) g/l Account
    2)Narration
    3) Posting Date
    4)Bill Number
    5) Bill DAte
    6)PO No
    7)PO Text
    8)Voucher No
    9)Voucher date
    10)quantity 11) rate 12)amount13)discount 14 ) sales tax
    What are the tables & Fields required for these.I'm not sure whether to take these from rbkp rseg or from purchase tables.
    It's very urgent.
    Helpful answers would be appreciated

    Hi
    Look at the tables EKBE.
    RKPF and RSEG  for the pur invoice info and if needed look at the tables BSIK and BSAK also for the accounting info
    Regards
    Anji

  • Regarding Purchase Invoices Smartform

    Hi.I need to develop a purchase invoice smartform.I am having the following fields.
    1) g/l Account
    2)Narration
    3) Posting Date
    4)Bill Number
    5) Bill DAte
    6)PO No
    7)PO Text
    8)Voucher No
    9)Voucher date
    10)quantity 11) rate 12)amount13)discount 14 ) sales tax
    What are the tables & Fields required for these.I'm not sure whether to take these from rbkp rseg or from purchase tables.
    Helpful answers would be appreciated.

    hi
    you can use RBKP and RSEG tables for Vendor invoice (purchase) form output
    if needed you can use EKBE, BSik and BSAK tables alos
    Regards
    Anji

  • Different invoice desc required

    Hi Experts,
    Diff sales invoice desc required in case of materials, please guide where we can maintain the same so that it can be shown in sales invoice thru abap

    In the sale order, maintain the item text by going to the sale order line item. In the invoice smartform you have to write the code to pick up the text and print against description. If text is not found then material description can be printed. I am assuming that you need more that 40 character length.
    Otherwise, you can directly change the material description in the sale order (which doesnt have any impact on the material master) and in the smartfrom you can pick up this field rather than fetching the material description from the material master.
    Regards,
    GSL.

  • PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보

    제품 : FIN_AP
    작성날짜 : 2005-05-10
    PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
    ==========================================================
    PURPOSE
    AP Open Interface Invoice Import 를 통해 Invoice 를 생성 코자 할 경우 반드시 필요한 Field 에 대한 정보이다.
    Explanation
    1. PO 나 Project 과 Match 하지 않는 Invoice Case
    Table : AP_INVOICE_INTERFACE
    ==============================
    Required Columns
    ================
    -INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
    -INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
    -VENDOR_ID/VENDOR_NUM/VENDOR_NAME : Active 하여야 하며 PO_VENDORS과 Mapping
    -VENDOR_SITE_ID/VENDOR_SITE_CODE : Active 한 Site 여야 하며 PO_VENDOR_SITES table과 mapping
    -INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
    -ORG_ID : AP_SYSTEM_PARAMETERS.ORG_ID
    -SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE' 중 하나
    Table : AP_INVOICE_LINES_INTERFACE
    ==================================
    Required Columns for LINE_TYPE_LOOKUP_CODE = 'ITEM'
    ===================================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE :'ITEM'
    -AMOUNT
    -ACCOUNTING_DATE: Optional. Defaulted from INVOICE_DATE or SYSDATE
    - DIST_CODE_CONCATENATED / DIST_CODE_COMBINATION_ID
    : select code_combination_id from gl_code_combinations
    where account_type = 'E' and enabled_flag = 'Y'
    and summary_flag = 'N'
    and sysdate between nvl(start_date_active, sysdate-1)
    and nvl(end_date_active, sysdate+1))
    Required Columns for LINE_TYPE_LOOKUP_CODE = 'TAX'
    ===================================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE : 'TAX'
    -TAX_CODE / TAX_CODE_ID : AP_TAX_CODES_ALL table에서 mapping
    -AMOUNT
    -ACCOUNTING_DATE : Optional. Defaulted from INVOICE_DATE or SYSDATE
    -DIST_CODE_CONCATENATED or DIST_CODE_COMBINATION_ID
    : select code_combination_id from gl_code_combinations
    where account_type = 'E' and enabled_flag = 'Y'
    and summary_flag = 'N'
    and sysdate between nvl(start_date_active, sysdate-1)
    and nvl(end_date_active, sysdate+1))
    2. PO Matched Invoice 의 경우                    Table: AP_INVOICE_INTERFACE
    ============================
    Required Columns
    ================
    -INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
    -INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
    -PO_NUMBER : approved 된 PO 여야 하며 cancelled, closed 혹은 final closed 된 PO NUMBER 는 안됨. PO_HEADERS Table 과 mapping
    -INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
    -SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE'
    -ORG_ID : AP_SYSTEM_PARAMETERS_ALL.ORG_ID
    Table: AP_INVOICE_LINES_INTERFACE
    =================================
    Required Columns for PO Matched Lines
    =====================================
    -INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
    -INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
    -LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
    -LINE_TYPE_LOOKUP_CODE : 'ITEM'
    -AMOUNT : QUANTITY_INVOICED * UNIT_PRICE
    If MATCH_OPTION is 'P', then populate:
    -RELEASE_NUM or PO_RELEASE_ID : Blanket Release only, validated against PO_RELEASES_ALL
    -PO_NUMBER or PO_HEADER_ID : Validated against PO_HEADER_ALL
    -PO_LINE_NUMBER or PO_LINE_ID : Validated against PO_LINES_ALL
    -PO_SHIPMENT_NUM or PO_LINE_LOCATION_ID : Validated against PO_LINE_LOCATIONS_ALL
    If MATCH_OPTION is 'R', then populate:
    -RECEIPT_NUMBER : RCV_SHIPMENT_HEADERS.RECEIPT_NUM
    -RCV_TRANSACTION_ID or PO_LINE_LOCATION_ID : RCV_TRANSACTIONS과 Mapping
    Example
    Reference Documents
    Note 205331.1

    Chandrasekar,
    as i know, the main thing you should consider is, that starting from R12 you will
    be able to import invoices only through the Payables Open Interface.
    basically, Invoice Import is used by OA to create invoice (from expense reports or from Oracle Projects). for standard invoice import, i've ever used Payables Open Interface.
    Milan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandrasekara Kayamboo ([email protected]):
    I would like to know which is the best way to import invoice and what are the advantages and disadvange in each.
    Regards
    Chandrasekar<HR></BLOCKQUOTE>
    null

  • Alignment problem in converting smartform printpreview into PDF

    Hi all,
    I am getting some alignment problem in converting smartform printpreview into PDF format, i.e the format of PDF is different from printpreviw of smartform.
    kindly suggest something so that alignment is not changed while converting to PDF.
    Regards,
    Sumalatha

    use below f.m to convert it into 255 characters....
         CALL FUNCTION 'QCE1_CONVERT'
            TABLES
              t_source_tab         = i_tline
              t_target_tab         = so_ali[]
            EXCEPTIONS
              convert_not_possible = 1
              OTHERS               = 2.

  • Problem printing a smartform!

    Hi Everybody!
    I have a problem with my smartform! In the main window I have a dinamic table, the problem is when the table is full the rest of the data don't go to another page, How can I make another page? I'm doing this with the transaction smartform and I don't know If I need a new page...and if I need, how can I make this and how can I put the same things that in the first?
    Moreover, I need to put one field only in  the last page...How can I control this?
    Thanks very much,
    Regards,
    Rebeca

    Hello to everybody and thanks for answer my doubt!
    I've done the second page but the problem is still there, In main window in page first I've two tables, and three templates, is something like this:
    Concepto | Mensual | Atrasos | Reintegro | Total |
    Retribuciones........................................| 9.741|
    Sueldo    | 1135      |               |              |  1135 |
    Cpto Des|  12         |               |              |      12 |
    Deducciones.........................................| 148,60|
    muface |  45,25       |               |              |   45,25|
    Liquido a percibir...................................|    4587|
    This is an example of my table, the structure is: The first line (concepto, mensual...) is a template because this is always the same, the second line is also a line, the third is a table because this is the changing thing, in this table I can have as minimum one field and for maximum 8 fields, but the problem is when I have for example 10 fields, the table cut the fields and only show the first 8.
    The fourth line is also a template because this is always the same, the fifth line (muface..) is a table and has the same conditions to the other line and the last one (liquido a percibir) is a template that I only have to show when the table third and fifht are full...
    Is this way to make my main window correct? How can I make this?
    Thanks a lot
    Regards,
    Rebeca

  • Printing double line / small box residing in main box - Invoice smartform

    Hi,
    I have 2 Invoice smartforms, meant for Country_A and Country_B. We r on ECC 6.00
    Country_A is printing fine.
    But, when comes to Country_B, in ITEM table, the header box, (where column labels are printed), one more box is printing!! it looks like (not exactly) instead of single line ________ its printing ======, so, pls. let me know, Wht culd be the reason?
    Thank you

    Hi,
    Check that if you used table borders in attributes of line types.
    And also check if you are using sy-unline...
    Regards,
    Shankar.

  • Problem with Invoice

    Hi Experts,
    Iam facing a problem with invoice document with batch wise . If I enter one batch it taking 2 mins to  add the the invoice document.i have removed Sp transaction notification and format searches even then it is taking 2 mins. So kindly give me solution how to solve this issue.
    client system Os Windows 7
    Ram 4 GB
    No addons connected and Lan was working without any abrupts.
    Regards
    Jenny

    Hi Jenny,
    Is this issue happen all the machines or it happens only at one specific machine?
    If it is happens on a specific machine, try to reconfigure the lan settings of the machine or reinstall the B1 client.
    You can check the sbo-common sevt table. this always triggered in some versions. this can cause performance issues.
    I hope it helps,
    János

  • Invoice Smartforms or Sapscript for Argentina

    Gurus,
    Does anyone knows if SAP provided an Invoice smartform or sascript specific for Argentina?
    Thanks,
    Apollo

    hELLO,
    You can take a copy of MEDRUCK sapscript and customize it to your needs.
    I´d recommend to create a new sapScript instead.
    Bye
    Gabriel P

  • Invoice smartform wrong format date

    Hi All,
    In the invoice smartform we have using the standart date form; thats means that the format date comes from the user profile (SU3 or SU01) in the default tab. In our case the users have the following form DD.MM.YYYY; but the output shows the format YYYY.DD.MM.
    Our IT guy told me, he have no found nothing wrong in the debuging; because we are using the standart tool.
    Has someone had these error? How resolved it?
    Thanks,
    JCR

    Hi,
    I remember other possibility. Check in the smartform (tcode SMARTFORMS) for the field, you can have a coding for it. Check the before commands (SET LOCALE and GET LOCALE). Look for the help of an ABAPer if you don't know this tool.
    Regards,
    Eduardo
    PD: or the command WRITE date TO field_date FORMAT yyyymmdd.
    Edited by: Eduardo Hinojosa on Jul 15, 2010 10:05 AM

  • Debugging Dunning Invoice Smartform

    Hi Guys,
                  I am testing Dunning Invoice smartform from tcode F.62
    Even though I put a break-point in the code still I couldn't debug it.
    Is this because its been called in the background ?
    How to enable debugging in this case.
    Thanks
    Senthil

    Hi Kartik,
                   Thanks for the reply.
    In this case I am calling F.62 tcode to genarate the form after I am viewing it in SP01.
    Not sure which background job its calling. I will search for it, Thanx for the info though.
    Cheers

Maybe you are looking for

  • B1if BizSteps that create new systems in SLD

    Hi, I want to create scenario that creates new updates system in SLD. I read in documentation that using B1if API new jobs can be added to JobCreator and JobExecutor. Is there any help or tutorial that shows how to create job step by step and use the

  • Preset DVCPRO HD 720P to DVD SD

    I just want to know the preset to burn sd dvd pal wtih dvcpro hd 720 FinalCut Source. did you think that i need to use filters. thanks

  • My iPad will not switch on or reset

    My iPad was sitting with a 75% charge in standby mode. When I opened the cover it did not restart. It did not start with the round button and slide nor by pressing the start/stop bar on the side. Following advice on the Apple set I reset by pressing

  • Automatic scheduling of bookmarked web pages

    Does anybody know how you can set up the E71 to automatically load and view a web page at a scheduled time of day ? The web page I want is one of my bookmarks.

  • Manual CUP provisioning

    We are using CUP (BO AC 5.3 SP14) with role provisioning via SAP CUA. Whenever there is a system upgrade etc on our CUA systems, we would prefer if any role requests could be "put on hold" in CUP, ie keep all workflow functionality but just not provi