Smartform urgent req...

Hi Experts,
I need to create a smartform which contains all the infotypes.
The requirement is that whenever i will  make some changes in the infotype only those infotypes should appear in the smartform
QTN: can we dynamically handle the smartform fields.
Thanks
Krushna

You will have to give radio buttons on the selection screen..Based on the radio button the user selects i.e infotype name...pass the appropriate parameters and call the smartform
if rad = 'r1'.
call form abc
parameters p q r
else
call form abc
parameters l m n
endif

Similar Messages

  • How to use CALL FUNCTION '/1BCDWB/SF00000014' in smartform urgent

    hiiiiiiiii
    Iam doing classical report n i want my output to be printed in smartform.
    So my output is in IT_FINAL table.In smartform in Form Interface Table column i had declare :::
    Parameter Name: IT_FINAL
    Type Assignment:LIKE
    Associated Type:ZSD_FINAL ( Its a structure of IT_FINAL)
    And in SE38..iam using...............
    data: FM_NAME1 type RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZCSF_SDPRSR03_PR'
    importing
    FM_NAME = FM_NAME1.
    CALL FUNCTION FM_NAME1
    EXPORTING
    IT_FINAL = IT_FINAL.
    So while running its giving dump..
    I DONT KNOW HOW TO USE THE ABOVE FUNCTION MODULE.
    CALL FUNCTION '/1BCDWB/SF00000014'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    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.
    Please suggest me with example if possible......URGENT.
    (Rewards if solved)
    Regards.

    Hi
    see the below doc and do accordingly
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    <b>call function 'SSF_FUNCTION_MODULE_NAME'</b>
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    <b>call function FM_NAME</b>
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    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.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    Regards
    Anji

  • Problem in executing a smartform URGENT!!

    HI,
    I created a template in my layout and created a structure
    z_tab which i had to pass in the smartform now
    my problem is
    in form interface i gave i_tab type z_tab
    and in template-> text iam adding a feild&i_tab-raw&( this is my feild name which i have to show in output) and in se38 my interface program i gave the necessary.
    But iam getting error saying
    "Reference field I_TAB-RAW unknown in form."
    please help its urgent
    Thank you

    the reference field which i gave in the structure was making this problem it was currency field and reference table was mismatched.
    Thankyou for replying raam & rahul.

  • Sales order smartform:Urgent

    Hi
    Can anyone please mail me the preconfigured sales order confirmatiopn sales ordere. we dont have the preconfigured in our server and its urgent. This is my id:
    [email protected]
    Thanks in Advance,
    Srihari.

    hi
    thanks for the reply. Actually i dont have the preconfigured smartform and I dont have the time to do a new one from scratch.
    So, I am requesting anyone who has it to send it to my mail which i mentioned in my previous threads.
    I hope i was clear.
    Thanks and Regards,
    Srihari.

  • Documents for SMARTFORMS-Urgent

    Hi,
    I need to Learns SMARTFORMS In and Out, Can anyone please send my the material or link so that i can read it, it is really very urgent.
    Kindly Reply Back ASAP.

    hi,
    check these links
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.sap-basis-abap.com/sapsf001.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/8a/8c8a49def411d3969600a0c930660b/frameset.htm
    SAP PRESS REFERENCE
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Regards,
    Sailaja.

  • How to define internal table in smartform(urgent)

    Hi all,
    How can i define a internal table <b>with header line </b> in global data ???
    i defined like
    In Types,
    TYPES : BEGIN OF T_XVBPLP2 ,
             VENUM(10),
             VEPOS(10),
             POSNR(6),
             VEMNG LIKE LIPS-LFIMG,
             MATNR LIKE LIPS-MATNR,
             CHARG LIKE LIPS-CHARG,
             ARKTX LIKE LIPS-ARKTX,
             END OF T_XVBPLP2.
    TYPES: T_XVBPLP TYPE TABLE OF T_XVBPLP2.
    In Global Data,
    T_XVBPLP TYPE T_XVBPLP.
    Still, i am getting error message that, Internal table is not with header line.
    can u plz give me some examples , to  define internal table with header line in smartform ???
    any correct answers will be rewarded??
    Regards
    pabitra

    Hi
    define WA_ITAB  in Global variables
    variable name          type assin      associated type
    t_text                      like                     zstc_text
    you cannot define a internal table with header line in SMART Forms. Declare a internal table and a work area separately both referring to the same structure.
    Then you can use the work area. So, in this case WA_ITAB is declared as a global variable of TYPE ZSTC_TEXT.
    Regards
    Pavan

  • Smartform--urgent

    I have one requriment,
    From report i am calling smartform, in that report we have around 10 check box , based on this check boxes i need to display data in smartform, for everycheck box i have taken one window mean its 10 window, but problem
    suppose if we click 5 check box that 5 window should display in the output not all the 10 windows, here its displaying 10 windows,
    assume if click 1 check box the output will be only one window not all the 10 windows.
    please help me anybody.....

    Hi Srinivas,
    To display the windows besed on the check boxes checked in the program you have to declere the same  variable(c1) in smartforms form Interface and you have to pass those variables in windows condition.
    Ex: Window1 -> Condition -> c1 = 1.
          Window2 -> Condition -> c1 = 2.
          Window3 -> Condition -> c1 = 3.
          Window4 -> Condition -> c1 = 4.
          Window5 -> Condition -> c1 = 5.
    program:
    Parameters: C1 As checkbox,
                       C2 As checkbox.
    DATA          :C3 TYPE C,
    Start-of-selection.
    If c1 = 'X'.
       c3 = '1'.
    elseif c2 = 'X'.
       c3 = '2'.
    endif.
    pass c3 to the function module for parameter c1.
    hope your problem solved.

  • Null Values(Urgent Req)

    Hi Guys,
    I have a date column where I use Max(Date) function...
    As per the req I have changed the Date format to MMM-dd-YYYY from mm-dd-yyyy...
    Now I want to display "No Date" when ever the data value is null....
    I tried writing a case statement by casting the max(date) to char...but it shows MMM-dd-YYY instead of "No Date"
    Case when cast(max(date) as char) IS NULL then 'No Date' Else cast(max(date) as char) end;
    Can some one please let me know how this can be resolved?
    Thanks in advance...

    When you changed the format to CHAR in Criteria mode, a null value will display the format syntax since the column is now CHAR. So what you want now is a CASE statement that changes 'MMM-dd-YYYY' to 'No Date.'
    Try writing the CASE statement like this:
    CASE WHEN CAST(MAX(DATE) AS CHAR) IS 'MMM-dd-YYYY' THEN 'No Date' ELSE Max(Date) END
    Tell me if this works. I'm at home and can't test it.

  • Smartforms urgent

    Hello experts!
    i did the small program which is converting smartform output into PDF format and sent PDF attachment to the email.
    But when i execute the print program,it takes long time to get this in my inbox.
    some times it is taking 2 r 3 days.
    Is there any option/function module to overcome this problem.
    Can any one solve this.
    Following is my code.
    TABLES: MARA.
    DATA: ITAB LIKE MARA OCCURS 0 WITH HEADER LINE.
    SELECT * FROM MARA INTO TABLE ITAB.
    Internal Table declarations
    DATA: i_otf like itcoo OCCURS 0 WITH HEADER LINE,
          i_tline like tline occurs 1 WITH HEADER LINE,          "SAPscript: Text Lines
          i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,  "SAPoffice: Structure of the API Recipient list
          i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,      "SAPoffice: Single List with Column Length 255
    Objects to send mail.
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,   "SAPoffice: Description of Imported Object Components
          i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
          w_objhead TYPE soli_tab,      "Objcont and Objhead as Table Type
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,      "Smart Forms: Return value at end of form printing
          w_doc_chng typE sodocchgi1,   "Data of an object which can be changed
          w_data TYPE sodocchgi1,
          w_buffer TYPE string,         "To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,    "SOOD = SAPoffice: Object definition
          v_len_out LIKE sood-objlen,   "OBJLEN = Size of Document Content
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    DATA WA_SOLI TYPE SOLI.
    DATA WA_SOLIX TYPE SOLIX.
    DATA LT_SOLIX LIKE SOLIX OCCURS 0 WITH HEADER LINE.
    DATA DOC_SIZE(12) TYPE C.
    DATA LD_BINFILE TYPE XSTRING.
    DATA: I TYPE I, N TYPE I.
    FIELD-SYMBOLS: <PTR_HEX> TYPE SOLIX.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname = 'ZCS_FORM8'
    importing
      fm_name = v_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.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name                  "  '/1BCDWB/SF00000706'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = w_ctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = w_compop
       USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = w_return
      JOB_OUTPUT_OPTIONS         =
      TABLES
        ITAB9                      = ITAB
    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.
    Prepare Content
    REFRESH : i_otf, LT_SOLIX, i_OBJBIN.
    LOOP AT w_return-otfdata INTO I_OTF.
    APPEND I_OTF.
    ENDLOOP.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format = 'PDF'               "Target format for LINES table
    max_linewidth = 132          "For ASCII format: Number of lines in LINES-TDLINE
    IMPORTING
      BIN_FILE = LD_BINFILE
      bin_filesize = DOC_SIZE      "For binary format: Number of bytes in LINES
    TABLES
      otf = i_otf                  "Input table with OTF format
      lines = i_tline              "Output table with target format
    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.
    I = 0.
    N = XSTRLEN( LD_BINFILE ).
    WHILE I < N.
    LT_SOLIX-LINE = LD_BINFILE+I.
    APPEND LT_SOLIX.
    I = I + 255.
    ENDWHILE.
    LOOP AT LT_SOLIX INTO WA_SOLIX.
    CLEAR WA_SOLI.
    ASSIGN WA_SOLI TO <PTR_HEX> CASTING.
    MOVE WA_SOLIX TO <PTR_HEX>.
    APPEND WA_SOLI TO i_OBJBIN.
    ENDLOOP.
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    i_OBJPACK-TRANSF_BIN = 'X'.
    i_OBJPACK-HEAD_START = 1.
    i_OBJPACK-HEAD_NUM = 1.
    i_OBJPACK-BODY_START = 1.
    i_OBJPACK-BODY_NUM = v_lines_bin.
    i_OBJPACK-DOC_TYPE = 'PDF'.
    i_OBJPACK-OBJ_NAME = 'ATTACHMENT'.
    i_OBJPACK-OBJ_DESCR = 'Attached Document'.
    i_OBJPACK-DOC_SIZE = v_lines_bin * 255.
    append i_objpack.
    e-mail receivers.
    i_reclist-receiver = '[email protected]'.    "SAPoffice: Name of the recipient of a document (also ext.)
    i_reclist-rec_type = 'U'.                                "Specification of recipient type
                         U = INTERNET ADDRESS,
                         B = SAP USER,
                         P = PRIVATE DISTRIBUTION LIST,
                         O = SAPOFFICE USER,
                         R = SAP user in another SAP System
                         X = X400 ADDRESS
                         C = SHARED DISTRIBUTION LIST
    APPEND i_reclist.
    i_reclist-receiver = SY-UNAME.                         "SAPoffice: Name of the recipient of a document (also ext.)
    i_reclist-rec_type = 'B'.                              "Specification of recipient type
    APPEND i_reclist.
    Create Message Body
    Title and Description
    w_doc_chng-obj_name = 'TEST_ALI'.
    w_doc_chng-obj_descr = 'Test including PDF Attachment'.
    Object with main text of the mail.
    i_objtxt = 'Find attached the output of the smart form.'.
    APPEND i_objtxt.
    i_objtxt = 'Regards,'.
    APPEND i_objtxt.
    i_objtxt = 'Chandu'.
    APPEND i_objtxt.
    Sending mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data = w_doc_chng  "Attributes of new document
      put_in_outbox = 'X'         "Flag: Move document to outbox after send
      COMMIT_WORK = 'X'
    TABLES
      packing_list = i_objpack    "Information about structure of data tables
    object_header = w_objhead   "Header data for document (spec.header)
      contents_bin = i_objbin     "Binary contents of object and attachments
      contents_txt = i_objtxt     "ASCII contents of object and attachments
      receivers = i_reclist       "Document recipients with send attributes
    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.
      WRITE:/ 'THE ATTACHMENT IS SUCCEFULLY SENT TO RECEIVERS'.
    ENDIF.
    Points wl be given.
    Thanks in advance.

    Hi
    Are u converting spool to pdf or otf to pdf?
    If you are doing first one try to do otf to pdf.
    after that try to call FM: qce1_convert which will give pdf compatible by using otf.
    Regards,
    Sree

  • Smartforms - urgent ~ pls help

    Hi,
      I have a question on the smartforms.
      I need to create a cover page & content page. In the Cover page's Main window, I added a template because data is only displayed once and it is static.
      As for the Content Page, I have 1 template & 1 table. This template will also be displayed once & is static, whereas the table will have dynamic rows.
      (1) The Main Window for Content Page should contain both template & table or table only?
      (2) Currently I only added a table, and when I run, Content Page is not displayed? Do I need to manually link 1st & 2nd page together?
      (3) To loop the internal table, such as "it_tab" INTO "ls_tab", should i add this to "TABLE" on in the "Main Area~LOOP"? I am confused as both also need to add it.
      (4) The display of content page is:
           (1st line) - table header, such as <b>"ID no", "Product Name".</b>
           (2nd line) - display data, such as <b>"X123", "coat".</b>
           (3rd line) - header, such as <b>"material", "%"</b>
           (4th line) - display data, such as <b>"cashmere", "10"</b>
           Can anybody advise me how to create this table? 1st & 3rd line is header, whereas 2nd & 4th line are data. If my internal table has more than 1 row of data, first row of data must display like above, and loop for second row, display the header & data again, it's like a <b>BLOCK of table</b>.
    Kindly give me a clue, I am stuck!
    Thanks!!
    regards,
    Ginnie

    Hi,
    1. In main window you can use both template and table. if table content exceeds the page, it will automatically triggers another page for the rest of the data.
    2. If you are creating 2 pages in smartform, yes u need to connect each other. Check the 'Next page' value in Page1. (double click on page1, u can find the option.) select 'Page2' value.
    3. If you are using Table, provide it_tab in 'DATA' tabstrip. In this u can find Internal table option.
    Hope this helps u.

  • Urgent : req still running

    hello,
    i had strucked at ,one of ODS is uploading to three cubes ..where the req is still running the message is given as
    It is possible that data packets must be processed manually.
    error in inbox
    00397 IDocs searched through for date 06.12.2006.
    00006 of the IDocs belonged to this request.
    00006 IDocs found for this request up until now.
    regds
    SP

    Hi,
    Need more inputs,
    Let us know what is the technical status in the monitor screen for upload?
    (the one status below the QM status). If it shows processing...then wait till you get some error.
    <u>Other options:</u>
    check the job log in SM37 for the running upload.
    If the job has finished check at what stage the load is running.
    Check if source system is working fine.
    Regards,
    Vijay.

  • Barcoding in smartform(urgent)

    Hi folks,
      i am printing <b>2D barcode</b> in smartform by using PDF 417.it's somewhat large in size. but my customer wants the data matrix format for barcoding so that the barcode can be display in a smaller size.
      does SAP supports <b><u>DATA MATRIX</u></b> barcode ?? plz advice me , how to do this
    data matrix barcoding in SAP???
    Thanks & Regards
      madhu

    Hi
    see this link you will get idea of what is barcodes and use
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Steps to implement bar code in the smart form:
    1. Create a Smart Style: Use the transaction code smart style. Give a suitable name .Choose Create.
    2. Create a Character Node: In change mode of the Smart Style select the Character Formats Node and choose Create. In the Character format field enter a two-character key. Click Continue.
    3. Select desired attributes of Bar Code: Select the desired attributes of the Bar Code on the tab Standard Settings.
    4. Choose Activate.
    5. Use the Smart style in the Smart form: Assign the character format to the field or character string in the smart form.
    6. Activate the smart form.
    7. Test the same.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    Reward if usefull

  • Purpose of smartform(urgent)

    Hi Experts,
    I have Developed Arrival Notice SmartForm .What is the purpose of Arrival Notice.
    Thanks & Regards,
    VenkataRathnam.

    Hi,
    Found this explanation:
    "A document issued by railroads, airlines and/or steamship lines to notify consignees of the schedule arrival of goods."
    Another explanation here: <a href="http://www.oocl.com/eng/ourservices/eservices/arrivalnotice/">OOCL Arrival Notice</a>
    Regards, Johan

  • Combination of 2 smartforms - urgent!!! plss

    Hi,
    I've one driver program.
    The output contains 2 pages.The first page comes from one smartform and the 2nd page comes from an other smartform.The problem is that for the 2 pages , the page numbers are being displayed like 1 of 1 for both the pages.
    I want the page nos to be 1of 2 and 2 of 2.
    Thanks a lot.
    Points are assured.
    Regards
    Dipali

    Hi Dipali,
    If u have 2 pages and only 2 pages, there is really no need for Dynamic calculation of pages. You can use simple text element to Print 'Page 1 of 2' and 'Page 2 of 2' in the respective forms.
    Im not sure of how to handle this if the number of pages keep changing.
    Regards,
    Vignesh K.

  • Graphics-smartforms(urgent !)

    Hi,
    I'm developing a letter in smartforms. I need to print graphic (signature of HR)
    inline with the text. For this I've included the statement:
    BITMAP 'SIGN' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 100
    in the textmodule, but it's not getting printed. How to print graphics inline with the text using textmodule or standard text? (I can't use graphics node here for some reasons)
    regards,
    ravi.
    points will be given!

    Hi Ravi,
               Create a graphic node in the smartform.and specify following :
    Name  - SIGN
    Object - GRAPHICS
    ID        - BMAP
    in the general attributes tab of the graphic u can specify the DPI count also.
    Reward if useful.
    Cheers,
    Deepthee Kasal

Maybe you are looking for

  • APPCRASH

    I previously submitted the following APPCRASH to the community: Problem Event Name:APPCRASH Application Name:iTunes.exe Application Version:11.4.0.18 Application Timestamp:54045c47 Fault Module Name:CoreAudioToolbox.dll Fault Module Version:7.9.8.6 F

  • What's the Latest Actiontec MI-424-WR Firmware and where can I find it

    I'm currently running Firmware Verison: 4.0.16.1.56.0.10.11.3 and want to know if there's a firmware upgrade out there? 

  • Jsf portlet communication

    Dear All I have two JSF portlets on the same portal page both in the same context. I want to update the view of one portlet on the basis of a user click on the other portlet. Is there some event notification mechanism using which i can do this? I am

  • Time Capsule and all in one printer HP Photosmart C5580

    How can I get the HP Photosmart C5580 working fine with time capsule? It prints but do not anything else, like scanning, etc... Thanks in advance, AZ

  • Multiple Identities when selecting a stamp

    I want to use a dynamic stamp, that says "APPROVED" but I want a list of people to drop down so that I can choose the one whose name will appear on the stamp. I know that I can edit the stamp each time a different user wants to use it, but the users