Date in smartform

hello guys,
in a smartform i want to have a date ina format <date nameof the month and year>
for example:
25 august 2008
how can i do that...plz help me
regds

Hi,
In your smart form, before you display date, create Program Lines & write following code in it. I hope it will solve your problem. For e.g. lets consider v_datum contains the date before conversion and v_date contains the date after conversion.
DATA : x_t247  TYPE t247,
       v_datum TYPE sy-datum VALUE '20070823',
       v_date  TYPE string,
       v_month TYPE fcktx.
SELECT SINGLE ktx
  FROM t247
  INTO v_month
  WHERE spras = sy-langu
    AND mnr   = v_datum+4(2).
CONCATENATE sy-datum+6(2) v_month sy-datum+0(4) INTO v_date.
Here, if v_datum has a value '20070823', v_date will contain '23 Aug 2007'.
Reward points if the answer is helpful.
Regards,
Mukul

Similar Messages

  • Display data in smartforms using report

    hi,
    i want to display data from smartform using report.
    i have a preview buttons in report when i select preview buttons displays in smarts
    regards
    amit

    design the smartform as per ur need and get  the function module generated by smartform and pass it to ur report programas below..
    case sy-ucomm.
    when 'smartform'.
    pass the f.m that is generated by system in smartforms
           CALL FUNCTION '/1BCDWB/SF00000265'
        EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         =
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
          DATE_L                     = s_fkdat-low
          DATE_H                     = s_fkdat-high
          PLANT_L                    = s_werks-low
          PLANT_H                    = s_werks-high
      IMPORTING
        DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            =
        JOB_OUTPUT_OPTIONS         =
        TABLES
          IFINAL                     = ifinal1[]
      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.
    endcase.

  • How can i print data in smartforms from ABAP program.

    Dear gurus:
    in my abap program i process require data, and saved in a internal table.
    how can l print the data in smartforms.?
    who can give me a code sample is better:)
    reward all helpful advise.

    Try this....
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    <b>Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module --> smart form function module and pass your internal table</b>
    Regards,
    SaiRam

  • To display execise number and date in smartform

    Hi Abappers,
    i want to display execise number and date in smartform and by using driver program also.
    i have taken fields from vbrk,vbrp and send to final internal table,but now i want to display execise number in my Smartform also.
    Thanking u,
    sri.

    Create a window inside window create text element inside that insert field your excise number and date field names.
    Go to form interface -> import parameters declare your internal table name type vbrp/vbrk.
    In your print program smart form function module pass this table.

  • Any Function Module to translate variable data in smartform

    Hi All,
    I am working with smartform.
    My requirement is, when user logins with Japan language.
    then all the data  ( text template and variable data )  should be in Japan .
    By using  SE63 ,i can translate only text data.  How about the variable data in smartform?
    Please suggest any solution.
    Regards,
    Kishan

    Hope you are passing the variable from print program. If not then do the same. and in the print program do the below thing.
       wf_spras = sy-langu.
    CALL FUNCTION 'CONVERSION_EXIT_ISOLA_OUTP
          EXPORTING
               input  = wf_spras
          IMPORTING
               output = wf_language.
      SET LANGUAGE wf_language.
    wa_control_parameters-langu = wf_spras.
    PS : wa_control_parameter , you pass through control_parameters, in to the SMARTFORM calling FM .
    Make sure that the data, which u fill into the variable you are talking about in maintained in the log on language also.

  • How i can display i_tab data in smartform as required

    hi all
          i have tried a lot but not able to make logic for displaying data frm i_tab to SF as required ,
         my requirement is , i have data in i_tab as given below
    field 1, 2,3,4,  are TRNTYP   CHAPID   MATNR  MAKTX  OF J_1IEXCDTL respectivly.
    GRPO     8707.00   0025F     AC92 CON ROD FORGING.
    ARE1               1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
    DLFC               1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
                       1315F     CONNECTING ROD      
           now i want to display this data on SF like as :
      <b>discription of 8700.00
      export against = ARE1
                  1315F              CONNECTING ROD      
                  1315F              CONNECTING ROD      
                  1315F              CONNECTING ROD      </b>
        Way to Display :-
               1.      Chapter id in one single line
               2.      then if TRNTYP is ARE1 or ARE3 it should display in second single
                        line. <b><not any other TRNTYP></b>
               3.      then field no. 3 & 4 of i_tab should come based on TRNTYP
       please guide me and help me , if possible help me with dummy code example
      or if not then help me to make logic by give hint,
                      <b>i have all related data in one single i_tab</b>
    Message was edited by: SACHIN
            sachin sharma

    Hi
    see this 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
    call function 'SSF_FUNCTION_MODULE_NAME'
    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.
    call function FM_NAME
    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.
    Reward if useful
    Anji

  • How to pull the data into smartform after designing layout?

    how to pull the data into smartform after designing layout?

    call the smartform in your Driver program and pass your output internal tables in the smartforms paramaters
    Check the below Sample code.
    FORM label_print.
      DATA : g_fm_name TYPE rs38l_fnam,
             g_output  TYPE ssfcompop,
             g_control TYPE ssfctrlop,
             g_form TYPE tdsfname VALUE 'ZPRINT_LABELS',
             g_dest TYPE rspopname,
             g_printer TYPE rspoptype..
      REFRESH : i_out[],i_qals[].
      SELECT matnr maktx
             INTO TABLE i_out
             FROM makt
             FOR ALL ENTRIES IN i_mseg
             WHERE matnr = i_mseg-matnr
             AND   spras = sy-langu.
      SELECT prueflos objnr ersteldat erstelzeit matnr revlv charg mengeneinh
             INTO TABLE i_qals
             FROM qals
             FOR ALL ENTRIES IN i_mseg
             WHERE matnr = i_mseg-matnr
             AND   charg = i_mseg-charg.
    *FM to accept the device type and returns the short name of the output device
      CALL FUNCTION 'EFG_GET_PRINTER'
        EXPORTING
          x_no_dialog  = ' '
          x_obligatory = 'X'
        IMPORTING
          y_tddest     = g_dest
        EXCEPTIONS
          cancelled    = 1
          failed       = 2
          OTHERS       = 3.
    *device type name for the output device
      SELECT SINGLE patype                                  "#EC CI_NOFIELD
             FROM tsp03d
             INTO g_printer
             WHERE padest = g_dest.
    *printer setting
      g_control-no_dialog = 'X'.
      g_output-tdarmod = '1'.
      g_output-tdcopies = '001'.
      g_output-tddest = g_dest.
      g_output-tdprinter = g_printer.
      g_output-tdnewid = 'X'.
      g_output-tdimmed = 'X'.
      CLEAR wa_mseg.
      LOOP AT i_mseg INTO wa_mseg.
        READ TABLE i_out INTO wa_out WITH KEY matnr = wa_mseg-matnr.
    check for the status and filter the records
        CLEAR : wa_qals.
        LOOP AT i_qals INTO wa_qals WHERE matnr = wa_mseg-matnr
                                    AND charg = wa_mseg-charg.
          CALL FUNCTION 'STATUS_TEXT_EDIT'
            EXPORTING
              objnr            = wa_qals-objnr
              spras            = sy-langu
            IMPORTING
              line             = l_status
            EXCEPTIONS
              object_not_found = 1
              OTHERS           = 2.
          IF l_status CS 'LTCA' OR l_status CS 'SKIP'.
            DELETE i_qals.
          ENDIF.
        ENDLOOP.
        SORT i_qals BY ersteldat DESCENDING erstelzeit DESCENDING.
        IF i_qals IS INITIAL.
          l_msg = text-002.
        ELSE.
          READ TABLE i_qals INTO wa_qals INDEX 1.
          SELECT prueflos vbewertung
                 INTO TABLE i_qave
                 FROM qave
                 WHERE prueflos = wa_qals-prueflos
                 AND   kzart = 'L'.
          IF sy-subrc <> 0.
            l_msg1 = text-003.
          ENDIF.
          SORT i_qave.
          CLEAR : wa_qave.
          IF NOT i_qave IS INITIAL.
            READ TABLE i_qave INTO wa_qave INDEX 1.
            IF wa_qave-vbewertung = 'A'.
              l_msg = text-002.
            ELSEIF wa_qave-vbewertung = 'R'.
              l_msg1 = text-003.
            ELSE.
              l_msg1 = text-003.
            ENDIF.
          ENDIF.
        ENDIF.
        CLEAR : wa_ser03.
        READ TABLE i_ser03 INTO wa_ser03 WITH KEY mblnr = wa_mseg-mblnr.
    *Calling Smartform
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = g_form
          IMPORTING
            fm_name            = g_fm_name
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        LOOP AT i_objk INTO wa_objk WHERE obknr = wa_ser03-obknr.
    *Calling FM generated from the smartform
          DATA : l_date(10) TYPE c,
                 l_date1(10) TYPE c,
                 l_date2(10) TYPE c,
                 l_date3(10) TYPE c,
                 l_hyphen(1) TYPE c VALUE '-'.
          CLEAR : l_date,l_date1,l_date2,l_date3.
          l_date1 = wa_mseg-vfdat+0(4).
          l_date2 = wa_mseg-vfdat+4(2).
          l_date3 = wa_mseg-vfdat+6(2).
          CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
          CALL FUNCTION g_fm_name
            EXPORTING
              control_parameters = g_control
              output_options     = g_output
              user_settings      = ' '
              g_matnr            = wa_mseg-matnr
              g_mat_text         = wa_out-maktx
              g_batch            = wa_mseg-charg
              g_rev              = wa_qals-revlv
              g_edate            = l_date
              g_lot              = wa_qals-prueflos
              g_qty              = wa_mseg-erfmg
              g_uom              = wa_mseg-erfme
              g_serial           = wa_objk-sernr
              g_smsg             = l_msg
              g_fmsg             = l_msg1
            EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
          CLEAR  g_output-tdnewid.
        ENDLOOP.
        IF sy-subrc <> 0.
          CLEAR : l_date,l_date1,l_date2,l_date3.
          l_date1 = wa_mseg-vfdat+0(4).
          l_date2 = wa_mseg-vfdat+4(2).
          l_date3 = wa_mseg-vfdat+6(2).
          CONCATENATE l_date1 l_hyphen l_date2 l_hyphen l_date3 INTO l_date.
          CALL FUNCTION g_fm_name
            EXPORTING
              control_parameters = g_control
              output_options     = g_output
              user_settings      = ' '
              g_matnr            = wa_mseg-matnr
              g_mat_text         = wa_out-maktx
              g_batch            = wa_mseg-charg
              g_rev              = wa_qals-revlv
              g_edate            = l_date
              g_lot              = wa_qals-prueflos
              g_qty              = wa_mseg-erfmg
              g_uom              = wa_mseg-erfme
              g_serial           = wa_objk-sernr
              g_smsg             = l_msg
              g_fmsg             = l_msg1
            EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
          CLEAR g_output-tdnewid.
        ENDIF.
      ENDLOOP.
      IF sy-subrc = 0.
        MESSAGE i000(zm).
      ENDIF.
    ENDFORM.                    " label_print

  • Problems with E-Recruiting Data Overview Smartforms

    Hello,
    We recently upgraded from E-Recruiting 3.0 sp12 to sp15.  During this upgrade we have noticed that our custom Data Overview Smartforms have not being displayed.  Instead the system is calling the original SAP delivered forms.  The problem is that in table T77RCF_UI_PARAM we have the parameters set to display the correct forms.  As strange as that sounds we were able to fix most of them by changing the case, i.e. from lower to upper or upper to lower, of the BSP application name.  We are still however having problems with one particular BSP application:
    <b>Name                         Paramtyp             Parameter</b>
    HRRCF_CAND_DOVR    DISPLAY_PDF     Z_ER_CANDIDATE_PREVIEW
    HRRCF_CAND_DOVR    SF_VIEW_CAND     Z_ER_CANDIDATE_PREVIEW
    The SAP delivered smartform is HRRCF_CANDIDATE_PREVIEW.
    This one, regardless of what case the BSP application is in, continually displayes the SAP delivered smartform.
    I have verified that the custom form is indeed active.  And we also went as far as appying oss notes:
    Note 1017662 - T77RCF_UI_PARAM: Application name is case-sensitive
    Note 1037121 - T77RCF_UI_PARAM: Length of Input Field ‘Parameters” too short
    Yet another twist to this is that when I log on as an Internal Candidate and click on the Data Overview link on the external candidate personnel page the custom form is displayed.  However, when I log on as an External Candidate and click on the same link the SAP delivered form is displayed.
    Could this have something to do with the type of roles assigned?  Just incase I verified that the roles for the External Candidate were indeed SAP_RCF_EXTERNAL_CANDIDATE and the internal role was SAP_RCF_INTERNAL_CANDIDATE.
    Any help would be appreciated!
    Respectfully,
    Ryan

    Well the error you are facing, that the external candidate does not see the custom smartform depends on a new BSP application that is delivered with SP14.
    You need to copy the customizing of hrrcf_cand_dovr to hrrcf_cdovr_ext.
    Regards

  • Format the date in Smartform

    Hi Experts,
              Please tell me how to format the date in Smartform...I mean if my date is
    '04.03.2007' ..I wanted to print it as 4 March,2007.
    Please reply me back..its urgent..

    hai
    plz check this code
    DATA :i_monthname   TYPE TABLE OF t247,
          w_monthname   TYPE t247,
          v_date        TYPE sy-datum,
          v_year        TYPE bkpf-gjahr,
          v_month       TYPE bkpf-monat,
          v_day(2)      TYPE c,
          v_ndate(11)   TYPE c.
    CALL FUNCTION 'MONTH_NAMES_GET'
      EXPORTING
        language    = sy-langu
      TABLES
        month_names = i_monthname.
    CALL FUNCTION 'CACS_DATE_GET_YEAR_MONTH'
      EXPORTING
        i_date  = sy-datum
      IMPORTING
        e_month = v_month
        e_year  = v_year.
    MOVE sy-datum TO v_date.
    SHIFT v_date BY 6 PLACES.
    v_day = v_date.
    READ TABLE i_monthname INTO w_monthname WITH KEY mnr = v_month .
    CONCATENATE v_day '-' w_monthname-ktx '-' v_year INTO v_ndate.
    WRITE:/ v_ndate , sy-datum.
    **Please reward suitable points***
    With Regards
    Navin Khedikar

  • How to pass the internal table data to smartforms

    Hi Gurus,
    I have a problem in passing the internal table data to the smartforms. In the print program
    I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
    CALL FUNCTION fm_name
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = T_SSFCTRLOP
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = T_SSFCOMPOP
        USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        LT_PRDLBL                 = LT_PRDLBL1
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    In the print program I had defined the internal tables like
    Data: lt_prdlbl  type standard table of zprdlbl.
    Data: Begin of lt_prdlbl1 occurs 0.
            include structure zprdlbl.
    Data: End of lt_prdlbl1.
    How do I define the internal table in the smartform to get the values printed in the smartform?.
    <REMOVED BY MODERATOR>
    Thanks,
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PM

    Nehal,
    Thanks for quick response.
    In the smartform under the Form Interface->Tables tab
    I had defined
    LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
    In the main window I have created LOOP, in which I have ticked the internal table and
    LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
    &LT_PRDLBL-XXXX&.
    I am able to get the print but the data is not printing.
    Please help me with this.
    Thanks,

  • How to create 2 tables data in smartforms

    Hi
      I am new to smartform. I have minimum knowledge in smartform.
    here I have 2 tables. I want to display 2 tables data. How to create a smartform using these two tables? I know create a smart form using one table.
    Please tell me
    Thanks

    Ok you are passing fields from two different tables i believe
    1)For that jus give internal tables name as i said in your form interface->tables
    2)And in global data please mention your both tables work area
    3)Now in main window create table and ther in data give any 1 of the internal table name into WA
    4)Create loop for that right click->flowlogic->loop here mention your second table and its respective WA.
    5)Under this loop create table line->row->cells.
    6)Now mention your fields in respective cells as per your req
    This fields can be from any of your two internal tables.
    Swetha

  • Inserting PDF data in smartform? Possible?

    Hi guys,
    I'm very new to this but i hope i can explain it correctly.
    Lets say right now l have some pdf stored in SAP(Service Contract for example) and we're reading them as binary image files right?
    Is it possible to retrieve such binary image and display them in an existing smartform?
    I hope i'm explaining the right way...this has something to do with DMS ??
    Below are some codes to further help in my questions.
    CALL FUNCTION 'SCMS_UPLOAD'
        EXPORTING
          filename       =  '/usr/sap/XXXX/XXXXXX/test.pdf'
          binary         = 'X'
          frontend       = ' '
    *   MIMETYPE       =
        IMPORTING
          filesize       = size
        TABLES
          data           = file_data
    * EXCEPTIONS
    *   ERROR          = 1
    *   OTHERS         = 2
      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: BEGIN OF content_bin OCCURS 1,
              line TYPE SDOK_SDATX,
            END   OF content_bin.
      DATA: BEGIN OF content_txt OCCURS 1,
              line TYPE sdokcntasc,
            END   OF content_txt.
      CALL FUNCTION 'SCMS_DOC_READ'
        EXPORTING
          mandt                       = sy-mandt
          stor_cat                    = ' '
          crep_id                     = crep_id
          doc_id                      = doc_id
        TABLES
    *   ACCESS_INFO                 =
          content_txt                 = content_txt
          content_bin                 = content_bin
    * EXCEPTIONS
    *   BAD_STORAGE_TYPE            = 1
    *   BAD_REQUEST                 = 2
    *   UNAUTHORIZED                = 3
    *   COMP_NOT_FOUND              = 4
    *   NOT_FOUND                   = 5
    *   FORBIDDEN                   = 6
    *   CONFLICT                    = 7
    *   INTERNAL_SERVER_ERROR       = 8
    *   ERROR_HTTP                  = 9
    *   ERROR_SIGNATURE             = 10
    *   ERROR_CONFIG                = 11
    *   ERROR_FORMAT                = 12
    *   ERROR_PARAMETER             = 13
    *   ERROR                       = 14
    *   OTHERS                      = 15
      IF sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Basically, If I understand correctly, what I have now is are converted binary data from the PDF document?
    Is there a way to take these data and displaying it meaningfully(may be through some other processes like conversion again) in a smartform? Is this possible?
    Edited by: Slow ABAPer on Mar 17, 2008 2:45 AM

    ...binary image and display them in an existing smartform..
    1. What do you mean by image? It is not a picture you are storing, but a pdf file.
    2. You want to display the smartform???? This does not really make sense you know.
    Or do you want to upload the file from the server and display the PDF on the front end somehow?

  • Problem in Passing the select-options data in smartforms

    Dear ABAPers,
    I have developed new layout for Delivery Chellan using smartforms.
    using parameters i am getting document no, corresponding all details getting print.
    but the client wants to use multiple document no.
    in function module also i am passing only one import parameter (i.e. doc.no).
    my requirement is how to pass multiple data in smartfroms.
    Thanks & Regards,
    Ashok

    Dear ABAPers,
    Here i give my code Please check it out and tell me where i am going wrong.
    *& Report  ZMM_DC_FORM                                                 *
    REPORT  ZMM_DC_FORM                            .
           Data Declaration
    tables : mseg,
             mkpf,
             ekpo,
             ekko,
             objk,
             mbew,
             ser03,
             twlad,
             makt,
             adrc.
    data : begin of struct_mblnr,
           mblnr type mblnr,
           end of struct_mblnr.
    data : it_mblnr like table of struct_mblnr with header line.
    data : begin of i_struct,
           mblnr like mseg-mblnr,
           mjahr like mseg-mjahr,
           matnr like mseg-matnr,
           erfmg like mseg-erfmg,
           werks like mseg-werks,
           lgort like mseg-lgort,
           ebeln like mseg-ebeln,
           ebelp like mseg-ebelp,
           umwrk like mseg-umwrk,
           end of i_struct.
    data : begin of bednr_struct,
           matnr type ekpo-matnr,
           bednr type ekpo-bednr,
           end of bednr_struct.
    data : begin of price_struct,
           matnr type mseg-matnr,
           verpr type mbew-verpr,
           stprs type mbew-stprs,
           end of price_struct.
    data : begin of serial_struct,
           matnr like objk-matnr,
           sernr like objk-sernr,
           end of serial_struct.
    data : begin of fi_struct,
           matnr type mseg-matnr,
           maktx type makt-maktx,
           bednr type ekpo-bednr,
           erfmg type mseg-erfmg,
           verpr type mbew-verpr,
           val_p type mbew-verpr,
           end of fi_struct.
    data : it_tab like table of i_struct with header line.
    data : it_add1 type table of adrc with header line,
           it_add2 type table of adrc with header line.
    data : it_bednr like table of bednr_struct with header line.
    data : it_price like table of price_struct with header line.
    data : it_ser type table of ZMM_DC_SERIAL with header line.
    data : it_final like table of fi_struct with header line.
    data : s_date like mkpf-budat.
    data : s_ebeln like ekpo-ebeln.
    DATA : FM_NAME TYPE RS38L_FNAM.
            Selection Screen Variables
    selection-screen : begin of block b1 with frame title text-001.
    select-options : s_mblnr for mseg-mblnr.
    parameters : s_mjahr type mseg-mjahr.
    selection-screen : end of block b1.
              Start of Selection
    start-of-selection.
    select mblnr from mseg into table it_mblnr where mblnr ge s_mblnr-low
                                     and   mblnr le s_mblnr-high.
    delete adjacent Duplicates  from it_mblnr.
    *loop at it_mblnr.
    *write : it_mblnr-mblnr.
    *endloop.
    loop at it_mblnr.
    select mblnr
           mjahr
           matnr
           erfmg
           werks
           lgort
           ebeln
           ebelp
           umwrk from mseg into table it_tab where mblnr = it_mblnr-mblnr
                                           and   mjahr = s_mjahr
                                           and   xauto <> 'X'.
    read table it_tab index 1.
    *code for PO Number
    s_ebeln = it_tab-ebeln.
    *code for Supplying plant address
    select single adrnr from twlad into twlad-adrnr where werks = it_tab-werks
                                                    and   lgort = it_tab-lgort.
    select single * from adrc into it_add1 where addrnumber = twlad-adrnr.
    clear twlad-adrnr.
    *code for receiving plant address
    select single lgort from ekpo into ekpo-lgort where ebeln = it_tab-ebeln
                                                  and   ebelp = it_tab-ebelp.
    select single adrnr from twlad into twlad-adrnr where werks = it_tab-umwrk
                                                    and   lgort = ekpo-lgort.
    select single * from adrc into it_add2 where addrnumber = twlad-adrnr.
    clear : twlad-adrnr,
            ekpo-lgort.
    *code for the Material Document Date
    select single budat from mkpf into s_date where mblnr = it_mblnr-mblnr
                                                  and   mjahr = s_mjahr.
    loop at it_tab.
    it_final-matnr = it_tab-matnr.
    it_final-erfmg = it_tab-erfmg.
    *Code for Material Description
    select single maktx from makt into makt-maktx where matnr = it_tab-matnr.
    it_final-maktx = makt-maktx.
    clear makt-maktx.
    *Code for Service order Number
    select single matnr
                  bednr from ekpo into it_bednr where ebeln = it_tab-ebeln
                                         and   ebelp = it_tab-ebelp
                                         and   matnr = it_tab-matnr.
    it_final-bednr = it_bednr-bednr.
    *Code for Price for the Material
    select single matnr
                  verpr
                  stprs from mbew into it_price where matnr = it_tab-matnr
                                                and   bwkey = it_tab-werks.
    if it_price-verpr <> 0.
    it_final-verpr = it_price-verpr.
    else.
    it_final-verpr = it_price-stprs.
    endif.
    it_final-val_p = it_final-erfmg * it_price-stprs.
    append it_final.
    clear it_final.
    endloop.
    *Code for Serial Number
    select single obknr from ser03 into ser03-obknr where mblnr = it_mblnr-mblnr
                                                    and   vorgang = 'MMSL'.
    select matnr
           sernr from objk into table it_ser where obknr = ser03-obknr.
    clear ser03-obknr.
    *Calling Function Module for Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME                 = 'ZMM_DC_FORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = FM_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.
    CALL FUNCTION FM_NAME
    EXPORTING
    L_MBLNR = it_mblnr-mblnr
    L_DATE = S_DATE
    L_EBELN = S_EBELN
    IT_ADD1 = IT_ADD1
    IT_ADD2 = IT_ADD2
    TABLES
    IT_FINAL = IT_FINAL
    IT_SER = IT_SER.
    endloop.
    Please help me to solve this problem.It is very urgent.
    Thanks & Regards,
    Ashok.

  • Invisible meta data in smartforms

    Hello,
    I want to include meta data on every single page of a smartform that can be used as control codes by our printing service provider. This meta data has to be invisible on the printed page, but must be existent in the resulting spool (to be specific: in the PCL-file, in which the spool is printed).
    How can I achieve this?
    I tried the SPOOL-ATTRIBUTES of the COMMAND-folder. But they werenu2019t there in the OTF-Stream of the spool.
    I tried to write white text on white background. On the screen the text was indeed invisible, but on the printed page the text was standard-black!
    I tried to include a very small window on the smartform and write the text so that it is outside the visible part of the window. The text does not appear in the OTF-Stream.
    I tried to write in a very small font, but although I used smaller values (everything from 0px to 6px), the smallest font used by sap was 6px!
    I tried to place a window under the existing main-window, hoping it would be invisible there. But the text of both windows is overlapping.
    Do you know of any way to include invisible meta data on every page of the smartform, so that it is still existing in the PCL-file?
    Thanks in advance for your help,
    Uwe

    Hi Uwe,
    We are facing the same problem here, but then with Postscript output. Did you find a solution for this problem?
    Thanks,
    Marcello

  • I need to display the data of smartform in the printed paper (Invoice)

    Hi Experts,
    I have a requirement where i need to print the invoice. The paper is already printed with respective Text. When this printed paper is placed to the printer, I need to print my data in the respective places.
    The standard output type is rd00.
    For this i have created a separate output type with customized program and smartform.
    I have taken the exact measurement of the paper and designed my smartform layout accordingly, But when i print my data it is not at all fitting at the space provided.
    Please help me on this.
    It would be great. If you can provide me your email id, I can forward the scanned copy of the printed paper.
    Thanks in advance.
    Regards,
    Abdur Rafique

    thats an issue of page size then, either in your printer type or in your form you have a not according paper size declared.
    Hi Floren,
    How should I declare what paper size is this? Where do i need to make the changes? My Actual Paper is a invoice stationary paper.
    The measurement of the paper is below.
    Total width is 24.2 cm
    Total Height is 27.8 cm
    Data starts from
    Upper MArgin 0.5 cm
    Total Left Margin - 2.2cm  (This paper has punched holes on both right hand left side) including this hole measurement.
    If i exclude the whole measurement, it comes to 0.85 cm.
    Total Right MArgin - 2cm (This includes the hole measurement) 
    If it excludes the measurement, it comes to  0.6 cm.
    Bottom Margin
    is 0.3 cm
    The actual data should be printed in is 20.2 cm width and height is 27.6 cm( In this the header of measurement 3.6cm is printed already with text and at the footer 2.2 cm is already printed with the text.
    This is the page size of my paper. Please suggest me how should i go on.
    Thanks and Regards,
    Abdur Rafique

  • How to pass data from smartform to user exits in appl form print workbench

    Dear All,
    I am using print workbench + smartforms to develop a form.
    But facing problem with passing data from the smartform back to
    the user exits includes in the application form of the print workbench.
    For eg:- Supppose the case , passing the total number of pages 'sfsy-formapages'  to the application form .
    I tried with the export interface of the smartform, still it doesn't works!
    Any suggestions/solutions
    Thanks
    santhv

    Hi Prashanti,
    Thank you very much...
    Using EXPORT/IMPORT , I am able to pass the data.
    But I would like to know whether it is  the final solution.
    As there is export interface is available for smartform....
    why it is not possible to get back the data in Application form.
    Please confirm, so that I can close the post.
    Anyway thank you once again....
    Regards,
    santhv

Maybe you are looking for

  • OSX Mountain Lion says not compatible when it is. Advice please.

    Hi. i am running OSX Lion 10.7.5 and waht to upgrade to mountain lion. i purchased this on my macbook via the app store and it downloaded no problem but when i go to download it on my mac pro tower its says the following.... "We could not complete yo

  • Contacts sync ****

    In Feb this year I tried to get rid of my Palm V and bought an iPod Touch. I was a happy man until end of June. Then contact sync **** broke out. I had to move to a different laptop that runs Outlook 2000 instead of Outlook 2003. Step #1: Try synchin

  • Stopping Junk Mail once and for all.

    Hi everyone! Like most everyone I think that spam is rather annoying. I was thinking about how to get rid of it and came up with a very simple yet powerful idea. I've never heard of this way so at least in my own little world I can say I came up with

  • Medias for Adobe CS3 Design Standard/Premium (Windows) Volume License

    Hello, We have volume licenses for CS3 Design Standard /Design Premium but no media kit for Windows, unfortunately. All attempts at finding this or buying it have failed. I've spoken direct to Adobe and the official solution is to upgrade to CS6 or A

  • What file types are included PDFExportConverter for Oracle UCM 11g (PS3)

    For UCM 11g PS3 or later, (WebCenter Content if you prefer), I am trying to find out the list of file types supported for conversion to PDF, and which are out of the box, and which need a 3rd party download. Is there any documentation that lists supp