Adobe Form - Heading is Misssing

Hi Expert,
I created an ADOBE Form using WebDynpro.
I use the OTR to read the text for headings, used in table for Adobe form.
The problem is that for some PERNR ( HR Relted) the heading is coming but for some it is not coming.
Can u plz help.
Thanks
Mahesh

thks

Similar Messages

  • Header and Footer in not displaying correctly on each page in Adobe Forms

    Hi experts,
       I need your little help on Adobe Form.  I have develop a customer account statement and facing problem.
         In header and footer part I have to display customer address. It is ok if data is of one page. But when data is overflowing, customer address is showing only at first page in header, and not displaying address neither in header nor in footer(footer section will print on last page, it may be either first page or third page ) on other pages. (Address is table type data )
           Header and footer Section address has been designed on Master Page.
    Please help me to resolve these two problems as soon as possible.
    Regards
    Piyush

    I found this post which I hope helps:
    This can be done by bit of tweaking using JavaScript. 
    Actually the problem was, the header was printing continuously in subsequent pages and once the header data was over the rest of the pages contained blank header. But we need have to print same header for each group of items till that group of items finish in the specific page. And for new group of items different header will be filled and so on.
    So to overcome this issue, create the item table in such a way that the header data is also included in the item table for each group of items. In the layout, select your header field and the event READY LAYOUT and write the below JavaScript code. This event is called for each page for that header field, so you can directly map the item table value and put it in your header field.
    // Get the current page
    var currpage = xfa.layout.page(this);
    // variable to store number of fields in that page.
    var fields = 0;      
    // Get the number of fields
            fields = xfa.layout.pageContent(currpage-1, "field", 0);
    // Loop on each field on the page
            for ( i=0; i<= fields.length-1; i++ )
    // Check if the field is in the item table column (it will be actually header data column in your item table)
                if ( fields.item(i).name == "TL" ) 
    // Fetch that value and store in your header field.
                           this.rawValue = fields.item(i).rawValue;

  • Adobe Form Print Problem - Header is cut off without print preview

    We are currently experiencing a problem when trying to print Adobe forms.  We have created several forms and are experiencing the same issue with all forms.  The issue occurs when we are trying to print a form.  If we choose a print preview prior to printing, the form looks normal and prints fine.  However, if we do a direct print (i.e. no print preview), then the top part of the form is cut off.  It's almost like all of that data on the form gets shifted upward, cutting off about 1/2" to an 1" from the top of the form.  We have tried printing to different printers and are ending up with the same results each time.  We do not experience this issue with SAPScript.
    I have searched several threads and haven't been able to find an issue quite like the one we are experiencing.
    Has anyone ever exeperienced a problem like this before? 
    Currently using Adobe LiveCycle Designer 8.1.2 and are on Netweaver 7.00 EhP1.
    Thank you for any help.

    I am going to go ahead and close this thread as I believe we have found a solution.  Sai is correct that there is an issue with the design.
    If anyone else runs into this problem, take a look at note 968394 that talks about differences between print preview and printing from spool.  When you are in the print preview dialog box, under "Page Scaling," the default is "Shrink to printable area."  So if your form went outside the margins, it would shrink to fit giving you the impression that the problem is not with the print preview rather than the form itself. 
    After moving the header stuff down a bit everything is printing normal both through the spool and via print preview.
    Thank you!

  • Reg : Heading display in Adobe Forms

    I have Created an appln using Adobe Forms.
    In Body Pages Data is displayed with Heading. I have given Flowed Option for mulitple pages display.I want the Heading
    to be reflected in all the body pages.
    I  don't want to display it in Master Page bcos I am displaying some text in first body pages continued by the table.
    Any option is there for getting Heading in all the Table display pages only. Thnks in advance...

    Hi
        Go to the Table in the body page  -> then select the Header row only -> right click on the header  row -> Go to Palletes -> Object -> Under pagination tab -> Check the check box Include Header Row in Subsequent Pages .
    Then save and active it. Try this one. I think it will solve your problem.
    Thanks
    Sriiiiiiiiiiii(Srikanth)

  • Adobe Forms: Printing Header Text - Background as Dark

    Hi,
    We are upgrading our ECC system to Enahncement Pack 5.
    We have Adobe forms for Sales Order, Delivery Notes,... In Border Palatte, we have set 'Solid' as a background fill for our header texts
    After applying patches, Adobe forms started printing header texts background very Dark.We are not able to read the texts. If I view the document in the spool then they are displayed correctly. If I save spool document on the desktop and print it then also output is printed as we want. Only when we print it directly through VA01, VA02 ( directly from SAP ) then it gives this error.
    I removed the background fill then it prints text correctly but then I loose the separation between header and content.
    I will appreciate any help in this regard
    Jitendra Pongurlekar
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Mar 4, 2011 10:55 AM

    Hi mrudul,
    as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
    How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
    If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
    ~Florian

  • Adobe form printing on letter head as background

    Hi,
    I have developed BANK letter in HR  using adobe forms.
    Now user want to get PDF  on letter head .
    How to get background as letter head. I want to select differnt letter head PDF depends on company code (BUKRS).
    Where to write condition checking fo rcpmpany cod waise letter head .
    Please do reply.
    Its urgent.....

    Hi mrudul,
    as usual in programming, you got different ways to solve the problem. So if you work through the content here on SCN you will find a lot of examples how to decide between different letter heads. The easiest solution (and might be the best) is to pass the necessary data via the interface and do not add any condition in the form itself.
    How to create a dynamic field and all the stuff is very basic knowledge, so I think you do not need any explaination how to do that. If so I refer you to the official documentation provided by SAP.
    If you have some minutes please work through this blog Before You Ask - Just another guide and phrases like "urgent" or "do reply" are just not necessary to get an answer
    ~Florian

  • How to display line items corresponding to Header  adobe form

    Hi ,
    As I am new to Adobe Form, So struggling with below problem related with Adobe Form.
    For example, I have data in an internal table :
    Stage      item
    100         A
    100         B
    100         C
    200         D
    200         E
    Here you have for field 'Stage'  value '100' , I have 3 line items, for value '200' , it is 2 line items and so on.
    My requirement is , I have to show Stage field at top and corresponding line items should be displayed in table.
    Stage: 100
    item
    A
    B
    C
    Stage: 200
    D
    E
    I have used Nested table concept to achieve it but didn't get expected output.
    Please help me out.

    Hi,
         If all of your line items are getting displayed in different pages, to my knowledge, there may be two possibilities.
    1) May be the size of the main window can accomodate only one line item. If one item data fills up the window, then there wont' be any space for the next line item data to be accomodated in the same window in the same page, so, the system triggers the next page. Like-wise for each item data. If this is the case, increase the height of the main window to display items in same page.
    2) Check the driver program. Find the Write_form block, which is written inside an item loop. May be there is a Form-control Function module( Control_form with parameter 'NEW-PAGE' ) being called after the write_fom block, within the loop. If this is the case, remove the control_form FM section to make the data display in same page.
    Best Regards,
    Kumaar.S

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • Hi i am trying to disply image in adobe forms using ABAP, But i can't abl ?

    hi friends,
    I am using adobe forms to display the VORNA , NACHN and EMPPHOTO.
    for this i created an interface with the 3 import parameters like IM_VORNA, IM_NACHN and IM_PHOTO.
    Then i desingned the form with this interface.
    I dragged the IM_VORNA, IM_NACHN to ADOBE form layout.
    And for employee photo i created the IMAGEFILED in layout.
    And i setted the imagefield binding property to $record.IM_PHOTO.
    To call this ADOBE form i using the ABAP code.
    My code is like this......
    *& Report  ZHR_EMP_PHOTO1
    REPORT  ZHR_EMP_PHOTO1.
    TABLES: PA0001, PERSON.
    DATA: ITAB_EMPDATA LIKE TABLE OF PERSON,
          ITAB_DATA LIKE TABLE OF PERSON WITH HEADER LINE.
    DATA: P_CONNECT_INFO LIKE TABLE OF TOAV0 WITH HEADER LINE,
          P_DOCUMENT_TYPE LIKE TOAV0-RESERVE,
          URL TYPE char255.
    DATA: VORNA TYPE VORNA,   "VALUE 'SHANKAR',
          NACHN TYPE NACHN,   "VALUE 'REDDY',
          PATH  TYPE XSTRING,
          TPATH TYPE STRING.
    DATA: FM_NAME TYPE FUNCNAME.
    DATA: FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS,
          FP_DOCPARAMS TYPE SFPDOCPARAMS,
          FP_FORMOUTPUT TYPE FPFORMOUTPUT.
    PARAMETERS: PERNR LIKE PERSON-PERNR.
    START-OF-SELECTION.
    CALL FUNCTION 'HR_GET_EMPLOYEE_DATA'
      EXPORTING
        PERSON_ID = PERNR
        SELECTION_BEGIN = SY-DATUM
        SELECTION_END = SY-DATUM
      IMPORTING
        PERSONAL_DATA = ITAB_DATA
      EXCEPTIONS
        PERSON_NOT_FOUND = 1
        NO_ACTIVE_INTEGRATION = 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.
    MOVE ITAB_DATA-VORNA TO VORNA.
    MOVE ITAB_DATA-NACHN TO NACHN.
    *Function Module To check Existance of Image
    CALL FUNCTION 'HR_IMAGE_EXISTS'
      EXPORTING
        P_PERNR = PERNR
      IMPORTING
        P_CONNECT_INFO = P_CONNECT_INFO
      EXCEPTIONS
        OTHERS = 2.
    P_DOCUMENT_TYPE = P_CONNECT_INFO-RESERVE.
    *Function Module To Get the URL of Image
    CALL FUNCTION 'SCMS_DOC_URL_READ'
      EXPORTING
        STOR_CAT = SPACE
        CREP_ID = P_CONNECT_INFO-ARCHIV_ID
        DOC_ID = P_CONNECT_INFO-ARC_DOC_ID
        COMP_ID = 'DATA'
        DP_URL_ONLY = 'X'
      IMPORTING
        URL = URL
      EXCEPTIONS
        OTHERS = 10.
      IF SY-SUBRC <> 0.
      ENDIF.
    MOVE url TO tpath.
    CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
      EXPORTING
    *   CODEPAGE_TO            = '8500'
        unicode_string         = tpath
    *   OUT_LEN                =
    IMPORTING
       XSTRING_STREAM         = path
    EXCEPTIONS
       INVALID_CODEPAGE       = 1
       INVALID_STRING         = 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.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        I_NAME                    = 'ZHRIN_EMP_PHOTO'
    IMPORTING
       E_FUNCNAME                 = FM_NAME
    *   E_INTERFACE_TYPE           =
    *WRITE: fm_name.
    */1BCDWB/SM00000204
    *SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA
    *MOVE 'SAPR3://SAPR3CMS/get/520/Z2/4907DEB34A170115E10080000A8C6728/DATA' TO PATH.
    FP_OUTPUTPARAMS-NODIALOG = 'X'.
    FP_OUTPUTPARAMS-GETPDF = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        IE_OUTPUTPARAMS       = FP_OUTPUTPARAMS
    EXCEPTIONS
       CANCEL                = 1
       USAGE_ERROR           = 2
       SYSTEM_ERROR          = 3
       INTERNAL_ERROR        = 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.
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'IN'.
    fp_docparams-FILLABLE = ' '.
    CALL FUNCTION fm_name
    EXPORTING
       /1BCDWB/DOCPARAMS        = fp_docparams
       I_VORNA                  = vorna
       I_NACHN                  = nachn
       I_URL                    = path
    IMPORTING
       /1BCDWB/FORMOUTPUT       = fp_formoutput
    EXCEPTIONS
       USAGE_ERROR              = 1
       SYSTEM_ERROR             = 2
       INTERNAL_ERROR           = 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.
    CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
    EXCEPTIONS
       USAGE_ERROR          = 1
       SYSTEM_ERROR         = 2
       INTERNAL_ERROR       = 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.
    DATA: lt_att_content_hex TYPE STANDARD TABLE OF solix. "TABLE OF TEXT80.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = fp_formoutput-PDF
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
      TABLES
        BINARY_TAB            = lt_att_content_hex
    tables rlgrap.
    DATA: ld_filename TYPE string,
          ld_path TYPE string,
          ld_fullpath TYPE string,
          ld_result TYPE i,
          gd_file TYPE c.
    DATA: flength TYPE i.
    *selection-screen begin of block m with frame.
    data: p_file TYPE  rlgrap-filename.
    *selection-screen end of block m.
    flength = xstrlen( fp_formoutput-PDF ).
    * At selection screen
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    * Display save dialog window
          CALL METHOD cl_gui_frontend_services=>file_save_dialog
            EXPORTING
              window_title      = 'Enter File Name to Save'
              default_extension = 'PDF'
              default_file_name = 'accountsdata'
              initial_directory = 'c:\temp\'
            CHANGING
              filename          = ld_filename
              path              = ld_path
              fullpath          = ld_fullpath
              user_action       = ld_result.
              p_file            = ld_fullpath.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = flength
              filename                = p_file
              filetype                = 'BIN'
         importing
              act_filename            = p_file
         tables
              data_tab                = lt_att_content_hex.
    with this code I am able to see the  VORNA, NACHN field data in ADOBE Forms. But i am unable to see the employee photo.
    Any helps will be appreciated.....
    Regards,
    Shankar.

    Or post a URL.
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Alan" <[email protected]> wrote in
    message
    news:C0E592D7.29A315%[email protected]..
    > go back to the dialog box, and re-browse to pick the
    image.
    > Find the pulldown in the "browse to file" dialog box
    that gives a choice
    > of
    > Relative to site root, or Relative to document.
    >
    > set to relative to document.
    >

  • How to change co-ordinates of an internal table in page 1 & 2 using offline adobe forms?

    Hello All,
    How to change co-ordinates of an internal table(main window data) from page 2 onwards in offline adobe forms. For e.g., I need to print my internal table around 3-4 lines along with header&footer(only 1st page)in page 1. From 2nd page onwards Internal table should print header and use remaining page til end.
    Thanks in advance for your help.
    Thank you,
    Janakiram.

    Issue resolved...need to use content area option to achieve the same.
    Thanks,
    Janakiram.

  • Multiple rows in a single table cell - Adobe forms

    Dear All
    I am developing an adobe form which conatins a table alongwith other screen/ form elements.
    This table is bound to a data node and contains only two columns. Number of rows will be determined at run time.
    Each cell of the table will contain three rows seperated by a space in between them. Please refer to the diagram below for more understanding.
    Yes
    ABC
    No
    PQR
    Not Known
    XYZ
    I have no idea how to achieve this.  Can anyone help?
    Regards
    Vineet Vikram

    Hi,
    Here are the steps how you can do it.
    1. Create a table.
    2. In the Library palette, click the Standard category and drag the Table object into a cell in the main table.
    Note: If you selected Donu2019t Show This Again in the Insert Table dialog box, when you select the Table object from the Library palette, LiveCycle Designer automatically inserts a table with the same number of columns and rows that you inserted the last time you used the Insert Table dialog box.
    3. In the Insert Table dialog box, enter the number of columns and rows. You can enter a maximum of 20 columns and 50 rows. You can add more columns and rows after the table is created by using the Insert commands on the Table menu.
    4. To add a header row, select Include Header Row In Table.
    5. To add a footer row, select the Include Footer Row In Table.
    6. Click OK.
    Regards
    Runal

  • How to print Adobe Forms without the black/gray backgrounds in the side columns

    How can we print Adobe Forms without the black/gray backgrounds in the side columns? We are wasting a lot of ink printing out these forms and would like to have simply black ilnes to distinguish columns and black lettering, but no background colors.  Any help would be appreciated. Thanks.

    I am not positive what you are printing from but I am thinking it is from the View Responses tab with a response row selected and then shown in "Detail View" and that the column of field names has a dark grey background...
    To change the color of the column headers select the row of headers (do this by clicking on the first dark grey header field and then scroll to the last one and shift+click on the last one), then in the "Text" tools change the text color to Black and the Fill color to white:
    (Selected the header cells)
    Changed the text/font color to black and the fill color to white
    Now you can see the detail view does not have the dark grey.
    Thanks,
    Josh

  • How to send adobe form output in mail as a attachment

    i am get the adobe form output
    how to attach in a mail ....
    Regards
    Anbu B

    my program is like this.............
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name                     = 'YHRIN_WELCOME'
       IMPORTING
         e_funcname                 =  lv_funcname
      gs_output-nodialog = 'X'.
      gs_output-preview = 'X'.
    gs_output-getpdl = 'X'.
       gs_output-getpdf = 'X'.
       gs_output-dest = 'LP01'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams       = gs_output
      EXCEPTIONS
        CANCEL                = 1
        USAGE_ERROR           = 2
        SYSTEM_ERROR          = 3
        INTERNAL_ERROR        = 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.
    DATA : gs_outputpara TYPE sfpdocparams.
    DATA : ls_return TYPE fpformoutput .
    gs_outputpara-langu = 'E'.
    gs_outputpara-country = 'IN'.
      CALL FUNCTION lv_funcname
      EXPORTING
        /1bcdwb/docparams = gs_outputpara
        wa_data = wa_mail
        IMPORTING
          /1bcdwb/formoutput = ls_return
        EXCEPTIONS
          OTHERS = 1.
    DATA lv_output TYPE sdokcntbins WITH HEADER LINE.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = ls_return-pdf            "PDF file from function module
    TABLES
    binary_tab = lv_output  .
    *DATA : result TYPE sfpjoboutput WITH HEADER LINE .
      CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        e_result = result
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    DATA : iv_len_in LIKE sood-objlen,
           it_tline TYPE TABLE OF tline WITH HEADER LINE.
    PERFORM pdf_file.
    DATA:   lt_imessage TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
            lt_iattach TYPE STANDARD TABLE OF solisti1 WITH HEADER LINE,
            lt_ipacking_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            lt_ireceivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            lt_iattachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA  : lt_record LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA : it_otf TYPE itcoo OCCURS 0 WITH HEADER LINE.
    DATA: lv_email   TYPE somlreci1-receiver
                          VALUE 'anbu.'.
    PERFORM build_xls_data .
    APPEND lt_iattach.
    Populate message body text
      CLEAR lt_imessage.   REFRESH lt_imessage.
      lt_imessage = 'Please find attached PDF file'.
      APPEND lt_imessage.
    Send file by email as .xls speadsheet
      PERFORM send_email_with_xls TABLES lt_imessage
                                          lt_iattach
                                    USING lv_email
                                          'PDF Attachment of an Employee'
                                          'PDF'
                                          'TestFileName'
                                          'Employee Detail'.
         Form  BUILD_XLS_DATA
    FORM build_xls_data .
    DATA :lv_buffer TYPE string.
    Convert PDF from 132 to 255.
      LOOP AT it_tline.
    Replacing space by ~
        TRANSLATE it_tline USING ' ~'.
        CONCATENATE lv_buffer it_tline INTO lv_buffer.
      ENDLOOP.
       replacing ~ by space
      TRANSLATE lv_buffer USING '~'.
      DO.
        lt_record = lv_buffer.
    Appending 255 characters as a record
        APPEND lt_record.
        SHIFT lv_buffer LEFT BY 255 PLACES.
        IF lv_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
      lt_iattach[] = lt_record[].
    ENDFORM.
         Form  SEND_EMAIL_WITH_XLS
    FORM send_email_with_xls TABLES pit_message
                                              pit_attach
                                        USING p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription.
      DATA: es_xdocdata LIKE sodocchgi1,
            lv_xcnt TYPE i.
    Fill the document data.
      es_xdocdata-doc_size = 1.
    Populate the subject/generic message attributes
      es_xdocdata-obj_langu = sy-langu .
      es_xdocdata-obj_name  = 'SAPRPT' .
      es_xdocdata-obj_descr = p_mtitle .
    Fill the document data and get size of attachment
      CLEAR es_xdocdata.
      READ TABLE lt_iattach INDEX lv_xcnt.
      es_xdocdata-doc_size =
         ( lv_xcnt - 1 ) * 255 + STRLEN( lt_iattach ).
      es_xdocdata-obj_langu  = sy-langu.
      es_xdocdata-obj_name   = 'SAPRPT'.
      es_xdocdata-obj_descr  = p_mtitle.
      CLEAR lt_iattachment.  REFRESH lt_iattachment.
      lt_iattachment[] = pit_attach[].
    Describe the body of the message
      CLEAR lt_ipacking_list.  REFRESH lt_ipacking_list.
      lt_ipacking_list-transf_bin = space.
      lt_ipacking_list-head_start = 1.
      lt_ipacking_list-head_num = 0.
      lt_ipacking_list-body_start = 1.
      DESCRIBE TABLE lt_imessage LINES lt_ipacking_list-body_num.
      lt_ipacking_list-doc_type = 'RAW'.
      APPEND lt_ipacking_list.
    Create attachment notification
      lt_ipacking_list-transf_bin = 'X'.
      lt_ipacking_list-head_start = 1.
      lt_ipacking_list-head_num   = 1.
      lt_ipacking_list-body_start = 1.
      DESCRIBE TABLE lt_iattachment LINES lt_ipacking_list-body_num.
      lt_ipacking_list-doc_type   =  p_format.
      lt_ipacking_list-obj_descr  =  p_attdescription.
      lt_ipacking_list-obj_name   =  p_filename.
      lt_ipacking_list-doc_size   =  lt_ipacking_list-body_num * 255.
      APPEND lt_ipacking_list.
    Add the recipients email address
      CLEAR lt_ireceivers.  REFRESH lt_ireceivers.
      lt_ireceivers-receiver = p_email.
      lt_ireceivers-rec_type = 'U'.
      lt_ireceivers-com_type = 'INT'.
      lt_ireceivers-notif_del = 'X'.
      lt_ireceivers-notif_ndel = 'X'.
       APPEND lt_ireceivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = es_xdocdata
                put_in_outbox              = 'X'
                commit_work                = 'X'
           TABLES
                packing_list               = lt_ipacking_list
               contents_bin               = lt_iattachment
                 CONTENTS_HEX              = lv_output
                contents_txt               = lt_imessage
                receivers                  = lt_ireceivers
           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.
          SUBMIT rsconn01 WITH mode = 'INT'
                  WITH output = '' AND RETURN.
    ENDFORM.

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • Problem with table in Adobe Form in Web Dynpro JAVA??

    Hello all,
    I have an issue with the table displaying all the node values in the Adove Form. Right now it displays only the first element of the Node even if there are multiple entries.
    Not sure what is going wrong here.
    How is the table created in a interactive form? Any help is appreciated.
    Thank you, John

    Siva,
    I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
    Here is the heirarchy of the page with the properties set
    Master Pages ---
            ||--> Page 1
                     ||--> content area
                     ||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
                                ||--> Table
                                          ||--> HeaderRows (Object: Row - Type: Header Row)
                                          ||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
    Can't make it wor, not sure what's wrong here
    I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
    Appreciate your help
    John

Maybe you are looking for